I'm not clear how your circuit is intended to function, but the way the relays are wired the current through L1 is the same direction whichever relay gets energised. Is that correct?
In the .png pic the in/out of U1 have been transposed.
In the Testing Circuit, ++ seems not to be recognised as a voltage source. The positive supply pin of one LT1017 has two labels (14, ++). LTspice doesn't always like that. If you want a node to have two labels, use a jumper (from the Misc folder).