Abstract—Appropriate control of high penetration renewable energies in power systems requires a complete modeling of the system. In this paper, a comprehensive state space modeling of voltage source inverters, networks and loads are studied. We have modeled a secondary voltage control that utilizes the nominal set points of the output voltage as the input for the controller design. A distributed control algorithm only requiring a sparse communication between neighboring distributed generators (DGs) is used. The proposed secondary voltage model is applied on a microgrid with three DGs and two loads to verify the results.