OpenModelica

The OpenModelica Linux released software is classified according to the table below:

Official Release
  • contains only validated new features
  • intended for productive usage
Stable Development
  • dev.xx versions are released during development when the performance is
    sufficiently stable; they contain bug fixes and some new features that still
    need to be validated
  • dev.betaxx versions are released in preparation to official releases for testing;
    no  new features are added to beta versions, only bug fixes
Nightly Build
  • built daily with the latest additions to the code base that pass the standard
    regression tests
  • intended to make the latest developments and enhancements available for
    testers and developers, not for productive usage
  • features that are not subject to regression testing may get broken between
    one nightly build and the next

 

Debian / Ubuntu Packages

We provide .deb packages compiled on Ubuntu and Debian: jessietrusty, xenial, yakkety (x86, amd64, and armv7). 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 release build installs the latest official release of OpenModelica with validated features, possibly with some critical maintenance fixes (versions x.y.z with z > 0). The stable build installs the latest stable version released during the development of a new official release, or the latest beta version during the beta testing phase of a new official release. We recommend to use the stable build if you need recent bug fixes between official releases, but at the same time require a stable version that does not change daily. The nightly build is generated automatically from the git sources (master branch) every night at 1 am; it will usually be working properly since all commits are checked against the test suite, though it is still possible that some features that are not included in the regression tests occasionally get broken. We recommend to use the nightly build if you are interested in following and testing the latest developments of the code in the master branch.

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)

 

Installing older releases or using a specific OpenModelica version

Older releases are stored for some stable Debian/Ubuntu versions along with the libraries that existed at the time of the release. You can find the releases at https://build.openmodelica.org/omc/builds/linux/releases and newer versions of libraries at https://build.openmodelica.org/libraries/. Starting with OpenModelica 1.9.4 you can use apt to download the packages using a deb-line such as the one below; make sure all existing OpenModelica packages have been uninstalled (so you do not end up with mismatching versions of dependencies):

deb https://build.openmodelica.org/omc/builds/linux/releases/1.12.0/

 

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 yum repositories (to be downloaded to /etc/yum.repos.d/) available for CentOS/RHEL/Fedora

Note that CentOS/RHEL requires the EPEL (all version) and devtoolset (CentOS/RHEL 6 only) repositories enabled (see the linked repo files for details). Devtoolset includes C++11 compilers (not available in the GCC 4.4 shipped in the 2010 OS). EPEL includes the omniORB libraries (needed for OMPython and other OpenModelica clients). Only Fedora supports 3D visualization (it includes OpenSceneGraph in the repositories).

Once the repository has been enabled in the OS, use sudo yum install openmodelica-1.9 openmodelica-1.11 openmodelica-1.12 openmodelica-nightly. (Fedora users can skip installing the suggested Modelica libraries.) It is possible to select if /usr/bin/omc (and OMEdit, etc) should point to a different OpenModelica version using sudo alternatives --config openmodelica. You can also use commands like omc-1.12 or /opt/openmodelica-1.12/bin/omc directly if you to try your model uising a particular OpenModelica version.

 

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 2018-12-09

Please consider supporting our efforts.

Amount: 

You are here: