Skip to content
High Performance Computing modules for powsybl
Branch: master
Clone or download
mathbagu Fix distribution dependencies
Signed-off-by: Mathieu BAGUE <>
Latest commit bf2d482 Jul 22, 2019


Build Status Build status Coverage Status Quality Gate MPL-2.0 License Join the community on Spectrum Javadocs

PowSyBl (Power System Blocks) is an open source framework written in Java, that makes it easy to write complex software for power systems’ simulations and analysis. Its modular approach allows developers to extend or customize its features.

PowSyBl is part of the LF Energy Foundation, a project of The Linux Foundation that supports open source innovation projects within the energy and electricity sectors.

PowSyBl Logo

Read more at !

This project and everyone participating in it is governed by the PowSyBl Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to

Environment requirements

The project contains both Java and C++ modules. If you are only interested in the Slurm computation manager, you can build the Java part only. If you're also interested in the MPI computation manager, you need to compiler C++ modules also.

To build the Java modules, you need the following requirements:

  • JDK (1.8 or greater)
  • Maven (3.3.9 or greater)
$> yum install java-1.8.0-openjdk maven 

To build the C++ modules, you need the additional requirements:

  • CMake (2.6 or greater)
  • A recent C++ compiler (GNU g++ or Clang)
  • OpenMPI (1.8.3 or greater)
  • Some development packages (zlib, bzip2)
$> yum install bzip2 bzip2-devel cmake gcc-c++ make wget zlib-devel


In order to support the MPI modules, you need to compile and install the OpenMPI library.

$> wget
$> tar xjf openmpi-1.8.3.tar.bz2
$> cd openmpi-1.8.3
$> ./configure --prefix=<INSTALL_DIR> --enable-mpi-thread-multiple
$> make install
$> export PATH=$PATH:<INSTALL_DIR>/bin


Simple Java Build

If you're interested in the Slurm computation manager only, you can easily compile the project using the following command:

$> mvn package

Full Build

We provide a toolchain to help people to build this project. This toolchain downloads thirdparties (boost, libarchive, log4cpp, protobuf) from the Intenet, compiles both Java and C++ modules and create an iTools distribution. It's a standalone external folder that contains all the built objects required to run powsybl programs through the itools command-line interface. This repository contains the script to do so easily. By default, the will download dependencies from the Internet, compile code and finally copy the resulting iTools distribution to the install folder.

$> ./

This will run both the C++ build and the java build and copy their results to the install folder.

A more detailled description of the script options follows:


Target Description
clean Clean modules
clean-thirdparty Clean the thirdparty libraries
compile Compile modules
package Compile modules and create a distributable package
install Compile modules and install it
docs Generate the documentation (Doxygen/Javadoc)
help Display this help


The script options are saved in the install.cfg configuration file. This configuration file is loaded and updated each time you use the script.

Global options

Option Description Default value
--help Display this help
--prefix Set the installation directory $HOME/powsybl


Option Description Default value
--with-thirdparty Enable the compilation of thirdparty libraries
--without-thirdparty Disable the compilation of thirdparty libraries
--thirdparty-prefix Set the thirdparty installation directory $HOME/powsybl_thirdparty
--thirdparty-download Sets false to compile thirdparty libraries from a local repository true
--thirdparty-packs Sets the thirdparty libraries local repository $HOME/powsybl_packs

Default configuration file

#  -- Global options --

#  -- Thirdparty libraries --
You can’t perform that action at this time.