## 5 Conclusions  
The large-scale integration of the DG into EM presents several challenges for the stakeholders, aiming at a balance between satisfying its own needs, not wasting energy and preventing failures. In this scope, analysis and simulation tools allow participant entities to have mechanisms that allow them to achieve their objectives. This paper presents the TOOCC framework as a new solution to allow the interoperability between heterogeneous systems in the area of energy systems simulation, through the construction of scenarios, its simulation and analysis of the obtained results. Scenarios can be configured to simulate more or less complex problems, integrating multiple multi-agent systems and combining their individual capabilities into a more complete simulator, in order to study the behavior of the involved entities, new market models, consumption profiles, energy management of the network and virtual power plants, among other concepts, and its relations. In addition, the simulation of tools for different contexts can also provide decision support to a wide variety of entity types, depending on the user's purpose. TOOCC provides interoperability; flexibility in the creation of the scenario due to the combination of infinite possibilities that result from the personalization of models and possible tools to use; realism by providing historical data; centralized management of the simulation and the scenario's configuration; results analysis to provide decision support to its user; automation in all simulation processes; human error reduction; and a graphical interface for the user be able to follow all process. In order to achieve interoperability between systems, TOOCC relies on public ontologies to enable systems to understand the same concepts. For a new tool to be able to communicate with TOOCC, it needs to implement those ontologies or make the necessary mappings. A case study was presented to exemplify how the systems which simulate different entities of energy and power systems are interoperable by using the TOOCC framework. The case study is relative to energy management in a real microgrid, where the interactions between the consumer and the microgrid aggregator were simulated and studied, in order to understand the benefits that can result from this. Through forecasts of the consumer's energy consumption, the aggregator can perform better energy management of the network, avoiding the waste of energy in the grid and providing the consumer with cost savings. With this, the consumer can take advantage of periods where energy has a lower cost, through consumption shifting, avoiding consumption peaks at times where the price of energy is higher, without having to reduce his/her comfort and compromising his/her daily needs. Results show that TOOCC allows the simplified configuration of scenarios with a high degree of complexity and that its execution is done automatically, without the need for any human intervention. This supports the conclusion that TOOCC is an innovative enhanced decision support system, which allows one to go a step further in the study and simulation of this field. For this purpose, the proposed framework provides the mechanisms for the joint simulation and analysis of multiple systems directed to the study of specific problems, resulting in a complete tool for studying the problem as a whole. As future work, the priority is to enable interoperability with further external systems, to cover the simulation of other areas in energy systems. It is also intended to provide a public version of the tool, but it is not yet possible to make it fully available due to the existence of integrated systems that interact directly with physical devices, some of which may be critical. Since it is intended that the tool is always available to the user, it is important that there are no critical faults that jeopardize the good functioning of the system. TOOCC has mechanisms to prevent communication failures between agents, taking advantage of the potential of the ACL's message format.