The Virtual Grid Integration Laboratory (VirGIL) is a modular co-simulation platform designed to study interactions between demand response strategies, building comfort, communication networks, and power system operation. It couples power systems, buildings, communications, and control and optimization under a master algorithm. VirGIL uses a modular architecture, based on the Functional Mock-up Interface (FMI), where several different modules can be added, exchanged, and tested. It further integrates Quantized State System (QSS) methods for simulation. VirGIL couples a commercial power system simulation tool, trusted by power system operators, DigSILENT Powerfactory. The goal is to reduce the barriers to the industry for adopting, investigating, and subsequently deploying demand response strategies in their daily operation. The current use case uses the LBNL network and real consumption data.
Steps:
sudo apt-get install subversion
sudo apt-get install default-jdk
sudo apt-get install ant
svn co https://repo.eecs.berkeley.edu/svn-anon/projects/eal/ptII/trunk ptII
cd ptII
export PTII=`pwd`
./configure
ant
cd bin
make
./vergil
sudo apt-get install eclipse-platform
eclipse
workbench
New Java Project
Name: ptII_qss
Location: the whole ptII folder
Allow output folders for source folders (this is a checkbox)
Then, create the project
Right click on the project name
Run As... --> Run Configurations...
Java Application
Name: vergil
Main Class: ptolemy.vergil.VergilApplication
Run
go to the folder ptII
cd ptII
export PTII=`pwd`
./bin/vergil
This is a quick “check-list” with the steps needed to install the commsFMU.
Install all OMNeT++ dependencies.
OMNeT++ requires that the Ubuntu machine where it is going to be run count with a number of installed libraries. To do so, run the following commands on a terminal window:
sudo apt-get update
sudo apt-get upgrade
Answer “yes” to the question in case there exist new updates.
sudo apt-get install build-essential gcc g++ bison flex perl tcl-dev tk-dev libxml2-dev zlib1g-dev default-jre doxygen graphviz libwebkitgtk-1.0-0 openmpi-bin libopenmpi-dev libpcap-dev
Install simulator libraries. In order for the FMU to work, it needs to access the simulator libraries. These libraries are placed at VirGIL//OMNeT/FMU_installation/simulator_libraries. Copy all .so files in the simulator_libraries folder into the file system. When shared libraries are used in Ubuntu, the operating system looks for libraries in the current path and in paths contained in the $LD_LIBRARY_PATH environment variable. For this reason, we need to include the folder where we copied the simulator libraries in this variable. The easiest (and permanent) way is to include this variable in the .bashrc script, which is run every time a user logs in. To do so, edit the file placed in ~/.bashrc with any text editor (notice it is a hidden file, so it won't be visible in the file explorer) and copy at the end of the file the following line:
export LD_LIBRARY_PATH=absolute_path_to_the_simulator_libraries
where “absolute_path_to_the_simulator_libraries” is … the absolute path where you placed the simulator libraries. Save and close the file. For this change to take effect you need to re-log in the system. You can do so by typing: “su – your_user_name” in a terminal window.
Now you should be able to work with the commsFMU.