Distributed simulation of traffic networks with Open Traffic Models.
$ java -version
java version "11.0.5" 2019-10-15 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.5+10-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.5+10-LTS, mixed mode)
- Download
- Build:
cd $HOME
gunzip -c openmpi-4.0.5.tar.gz | tar xf -
cd openmpi-4.0.5
./configure --enable-mpi-java --with-jdk-bindir=$JAVA_HOME/bin --with-jdk-headers=$JAVA_HOME/include --prefix=$HOME/openmpi-4.0.5
make all install
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/openmpi-4.0.5/lib
export PATH=$HOME/openmpi-4.0.5/bin:$PATH
export OPENMPIJAVA=$HOME/openmpi-4.0.5/ompi/mpi/java
sudo apt update
sudo apt install metis
- Download the latest OTM jar file. This is the most recent file of the form
otm-sim-1.0-YYYYMMDD.HHMMSS-N-jar-with-dependencies.jar
. - Assign the location of the jar file to environment variable
OTMSIMJAR
. For example,
export OTMSIMJAR=$HOME/Downloads/otm-sim-1.0-20190924.222012-1-jar-with-dependencies.jar
- Download the source code.
- Build the network splitter with
scripts/build_splitter.sh
. (Uses Maven) - Build the runner with
scripts/build_mpi.sh
. (Uses OpenMPI'smpijavac
command)
- Create a scenario configuration file, for example from OSM using otm-tools.
- Split the network (script). This script generates a series of XML files corresponding to each of the subnetworks. These should be made available to the machines that will run the MPI processes.
- Run (script).
- Load the results into Python using otm-tools.