The simulation runs in 2ms. To make the measurement, I put a voltage converter on the H-bridge output and isolated the GND line from the MOSFETs. I set the power voltage to 20 volts to see it better on the oscilloscope. I set the switching frequency to 2khz so that it works better in the simulation. I put the output capacitor so that I can see the signal clearly. The green signal is the sine signal generated in the circuit. The orange and purple ones are the Pwm signals in the H-bridge. The red signal shows the output signal.