Running UCEF Simulations - SCU-Smart-Grid-CPS/smart-grid-energy-simulation-research GitHub Wiki

After building, go to federationName_deployment folder in Terminal, type bash run-default.sh ../federationName_generated

A black window called "Federation Manager" will pop up. Beware it can be slow, up to a few minutes. Additional windows will appear for each federate.

To stop the simulation, find the terminal window, and follow instructions to press a random key. It may be slow but it should stop. Sometimes it does not stop on its own, and the various black windows need to be closed manually using the regular red "x".

The output of the simulation is saved under projectName_deployment/logs. They end in the file extension .log and are labeled by the federate and the date and time the simulation was run; if the simulation has been run multiple times all of the previous logs can be found there as well. The log file can be opened as a regular text file.