A substation connects the microgrid to the main grid. The loads and the PV are connected to the outgoing feeder. The model also contains a separate Operator Control Room subsystem. In a real system, the operator control room can be at the substation or somewhere distant to the microgrid. These are the main components of the system: *Substation * Subsystem that connects the microgrid to the main grid. It has a connecting breaker,. These plots show: This plot shows the three phase voltage and current output of the BESS, as well as the grid current during resynchronization. The plot shows the measured values. These plots show the results of the system performance and the impact of the resynchronization function. These performance indices include: This plot shows the minimum and.