This paper presents an analysis and modeling of a micro-smart grid using the systems modeling language SysML. Worldwide, a large number of environmental problems are associated with the energy production. However, global warming, greenhouse gases, Co2 emissions and climate change are the most significant impacts of energy generation damage. Solving these environmental issues, in the context of optimizing our resources and developing in a more sustainable way, will be a great challenge. This challenge calls for introducing renewable energy sources. Therefore, the deployment of smart grid can provide a very interesting answer to the objectives of using renewable energies. In this work, we start with introducing smart grids systems. Next, we describe the systems modeling language SysML. Subsequently, a graphical description of the functionality of a microgrid system based on SysML diagrams are shown here. Finally, some conclusions are presented.