Simulation of Integration of Distributed Generation into Power System Control