Dynamic Simulation of Distribution Power Systems with Distributed Renewable Generation