Simulation of Power System with Renewables