The structure and behavior of Electrical Grids share many of the properties of Complex Computer Systems, with microgrids and other decentralized electrical systems attached to them, so they can be interpreted as Systems of Systems. Furthermore, the evolution of the future electrical system will bring a higher degree of decentralization concerning specially production and control. To deal with this paradigm change, new models and tools are necessary. In this paper a model of an electrical microgrid is presented.