PWM MODULATION SIMULATION IN ENERGY STORAGE SYSTEM