My screwup in sim, used 1 Khz, not 50 Hz. my apologies.
Such situation may happen in best families. And it happens to me once a while
I ran sim out to a second, seems like your relay current causing a lot of latency,
eg. time V exceeds trip to time load disconnected......
Good Remark. The worst case is when the initial voltage of the mains is 246V (assuming the set limit is 245V). The lag time before disconnecting the load would be about 2s! Even for 380V, it is 0.5s. This is the time that 470u capacitor, CP1, takes to reach about 16V (the lowest DC voltage of my small 24V relay).
Now, I wonder if the circuit works without CP1. As you know, the relay coil has an inductance which also smoothes the rectified current. But this needs a test in real because the coil resistance only could be known/measured while here its inductance determines the result(s).
The main drawback of this simple solution is that it doesn't have hysteresis which needs suitable positive feedback. So, I was fortunate that the SMPS (the load) turns off normally (without oscillation) even at the limit voltage (when the minimum relay pulling current is reached).
For instance, CP1 is usually charged already near the lowest voltage of the relay (when the mains voltage is below limit, as 220V). Anyway, the real test of this circuit is running now at some customer's houses
Regards,
Kerim
====================================
IMPORTANT: (in general):
I am afraid that testing circuit on mains is not for newcomers to electronics. The AC high supply on the test table should be isolated from the mains lines by 1:1 transformer (primary and secondary coils are electrically isolated). When one of the two floating terminals (secondary coil) is touched, it becomes at earth level. It is safe as long the two secondary terminals are not touched simultaneously. Adding a fast fuse (or equivalent) at the primary side protects the wires in case of a short circuit during a test. Also adding an autotransformer helps increasing the AC voltage gradually when working on the first test(s) of a new circuit.