Real Time Simulation of Distribution System with Distributed Energy Resources