The battery V1 is drawn backwards. It should be +40 volts or +30 volts. (some thing +)If the voltage of V1 is greater than -12v it should work,
I am worried there is a dead op-amp or we are working outside the input operating range of the op-amp.