You do not seem to have any means to control the power supply voltage to the op amps.
The current to the op amp supply is controled by the reactance of C5. I would normally expect to see a zener diode across the supply lines to control the voltage.
You say "I want to measure the resistor on 2 contacts, not closed contacts". You do not have any resistor connected to the relay contacts.
I am guessing that you want the relay to be energised only when the mains voltage is between two specified voltages.
In other words if the voltage is too high or too low you do not want the relay to be energised.
Is this guess correct.
Les.