# Smart Grid Testing Management Platform (SGTMP) +
## 4 SGTMP Deployment Scenario--SG Component Stress Testing
### Test Execution  
In this test, the power production is accomplished by using SGTMP controlled photovoltaic panels, based on the prototype described in Schvarcbacher and Rossi [22], where a node for testing SG components was presented. The SG topology in this scenario includes multiple power sources, energy distributors, and energy consumers. Electrical energy is created by using various **power production nodes**, which consist of a PV panel with an LED array enclosed in a light-proof container. Each of the LEDs is individually controllable, which enables fine-grained control of the light levels inside the container. If enough LEDs are present, a full day-night light cycle profile can be simulated with a light-level resolution depending on the possible Watt output combinations of the LEDs. The power output from the PV panel is then routed outside the container to be used in other parts of the SG system as an energy source. The power production node is a self-contained system controlled only by the simulation platform. In this way, the testing platform can have full control of the energy available for simulation in the SG. By using several of these power production nodes, it is possible to simulate a power grid from various geographical locations with different power outputs sending energy to the energy distribution network. By using an entirely controlled energy source, it is possible to simulate different weather and light conditions and in turn observe their effect on the network.  
In this scenario, all systems use real hardware, with power production nodes scaled down for ease of use and setup. The power production node is similar to the one described in [PERSON] and [PERSON] [22]. SM and SMDC are prototype devices provided by an energy distribution vendor for testing. The devices are connected to both the physical energy grid and SGTMP for monitoring and control.  
The main focus of this test involves the testing of the SMs attached to the houses and the SMDCs. The SMDC need to be able to handle the data collection from multiple SMs at once without losing data or crashing due to data overloading. Additionally, SMDCs must forward the received data to a central collection server in periodic intervals to enable different parts of the SG infrastructure to respond to currently happening events. Each SM in the network is instructed to send their observed data by an attached SGTMP node to their SMDC. The performance of the SMDC is examined and evaluated using criteria including data loss, maximum responses processed per unit of time, accuracy and percentage of data sent from SMDC to the central collection server. If network losses are ignored, then the SMDC should collect all of the SM data, aggregate it and forward to the central server. Depending on the energy provider criteria, these parameters should not fall below a certain threshold, under which the test is considered a failure. As an example, if the SMDC stops processing any new data from SM following a larger than expected data size (simulated overload), the vendor can be notified with the situation description including the full simulation data set for their tests.  
On a low level, SGTMP must instruct the SMs to send data to the SMDC and then measure the used power coming into the house and out of the house (if PV panels are available) to verify the accuracy of data reporting. On the SMDC side, the performance of the SMDC is monitored, including the data sent out of the SMDC to confirm the correct functionality of the data collection process.