POWER SYSTEM MODELING AND SIMULATION FOR DISTRIBUTED GENERATION