Simulation Model of 50Hz Single-Phase PWM Grid-Connected Inverter