How to get phase shift from PWM out in offline simulation

Hello!

I have a question about simulation with the utilization of the PWM out blocks to simulate the variable phase shift signal. I want to change the phase shift with a sinusoidal waveform, with RT box system everything is good, but when I am trying to simulate this in offline mode just in plecs in result I get only one phase shift.

The model included.

How to fix this issue?

phase_shift_test2.plecs (16 KB)