LTSpice simulation issue
Okay, great, it's easy to load the circuit using the provided .asc file. This should be SOP for all LTspice questions. 

Your problem has to do with the way the solver works and the non-differentiable discontinuity introduced by your behavioral voltage source 'if' statement. Even though you've set the switches to smoothly transition via the negative hysteresis settings. 

If you change the behavioral source 'value' to V=if(V(Vout)>V(Vdc),V(Vout)-V(Vdc),0) it should work (I also added an RC low pass filter to smooth it more), though 145 is right on the edge. Setting input voltage to 311 (220VAC RMS) and adding an RC as shown allows it to work properly: 


Edit: Okay, that inverter is also causing problems. Adding a second smooth control behavioral voltage source gets rid of the RC kluge: