OpenModelica

Debian / Ubuntu Packages

We provide .deb packages compiled on Ubuntu and Debian: jessietrusty, xenial. Source packages are also provided if your distribution is too old (or still not released yet) for the binary packages. Older distributions may not have all build dependencies used by omc, but can still be built. Some older distributions still have binary packages, but are no longer maintained. Note that armhf packages are only available for more recent versions of Ubuntu (and not Debian at all).

Add one of the following lines to the sources.list (or use your favourite GUI-based tool). The nightly build is generated automatically from the git sources (master branch); it will usually be working properly since all commits are checked against the test suite (status). The stable build follows the next release (maintenance branch of the upcoming release or if there is no beta of the upcoming release, it follows the release's maintenance branch and might get bugfixes before a new official version is released). The release builds only contain the latest released version of OpenModelica.

Use one of the following builds depending on your personal preference (if you are new to OpenModelica, we recommend using the nightly (or possibly, stable) build on your personal machine and the release for things like student labs in order to stay current and make sure models will still work in the next release; you can modify openmodelica.list later and uninstall+install other versions as well):

for deb in deb deb-src; do echo "$deb http://build.openmodelica.org/apt `lsb_release -cs` nightly"; done | sudo tee /etc/apt/sources.list.d/openmodelica.list
for deb in deb deb-src; do echo "$deb http://build.openmodelica.org/apt `lsb_release -cs` stable"; done | sudo tee /etc/apt/sources.list.d/openmodelica.list
for deb in deb deb-src; do echo "$deb http://build.openmodelica.org/apt `lsb_release -cs` release"; done | sudo tee /etc/apt/sources.list.d/openmodelica.list

You will also need to import the GPG key used to sign the releases:

wget -q http://build.openmodelica.org/apt/openmodelica.asc -O- | sudo apt-key add - 
# To verify that your key is installed correctly
apt-key fingerprint
# Gives output:
# pub 2048R/64970947 2010-06-22 # Key fingerprint = D229 AF1C E5AE D74E 5F59 DF30 3A59 B536 6497 0947 # uid OpenModelica Build System

Then update and install OpenModelica

sudo apt update
sudo apt install openmodelica
sudo apt install omlib-.* # Installs optional Modelica libraries (most have not been tested with OpenModelica)

Downloading source code from repository

If your platform is too old for the pre-built packages, you can install them from any of the source repositories:

sudo apt install devscripts debhelper
mkdir ~/tmp
cd ~/tmp
sudo apt build-dep openmodelica sudo apt install libsundials-kinsol1 libqtwebkit-dev # Might be needed depending on platform
apt -b source openmodelica
sudo dpkg -i *.deb

Virtual Machine Image

If you do not have a Debian-based distribution and do not want to try the RPM packages or building from source code, there is also a pre-built virtual machine image available.

RPM packages

There are alien-generated rpm packages and binary tarballs based on the Debian Stable build which might work (if your system has the same versions of the libraries installed).

Source Code

If you can't use deb packages at all, we recommended installing OpenModelica from source code.

If you have any questions about the installation, feel free to ask either Martin or the bug tracker.

OpenModelica includes SystemDynamics library with World modeling. Instructions for systemdynamics World3 simulations.

Instructions updated 2016-02-09

Please consider supporting our efforts.

Amount: 

You are here: