Download Linux

Official Release
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.beta.xx versions are released in preparation to official releases for testing; no new features are added to beta versions, only bug fixes
  • latest stable release: 1.24.2 (commit history) (release notes)
Nightly Build
  • built daily with the latest additions to the code base that pass the standard regression tests (commit history)
  • 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
  • current nightly builds 1.25.0-dev

Debian / Ubuntu Packages

We provide .deb packages for the following Debian and Ubuntu versions: LTS versions of both and non-LTS versions of the latest Ubuntu (x86, amd64, and armv7). You can also check the full list including latest update.

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).

Use the following lines in a shell to update your packages and install the certificate signing the OpenModelica packages:

sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo curl -fsSL http://build.openmodelica.org/apt/openmodelica.asc | \
  sudo gpg --dearmor -o /usr/share/keyrings/openmodelica-keyring.gpg

Then update your sources.list using the lines below. Choose your CPU architecture, OS and preferred release branch to follow. If you are unsure, select the auto options and the stable release branch. If your OS is not in the list, it is probably outdated and you might be able install an older version using the auto option, or it is a recent Debian/Ubuntu release not yet on the list (contact us to get it added once there is a release candidate for the OS), or you are running Mint Linux (use the corresponding Debian/Ubuntu upstream release; check /etc/os-release to see which one or use the auto option).

CPU architecture OS Release branch

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/openmodelica-keyring.gpg] \
  https://build.openmodelica.org/apt \
  $(cat /etc/os-release | grep "\(UBUNTU\\|DEBIAN\\|VERSION\)_CODENAME" | sort | cut -d= -f 2 | head -1) \
  stable" | sudo tee /etc/apt/sources.list.d/openmodelica.list

Then update and install OpenModelica:

sudo apt update
sudo apt install openmodelica

For a smaller installation without graphical clients:

sudo apt install --no-install-recommends omc

Modelica libraries

There is a package manager for Modelica libraries built into the scripting interface and the OMEdit graphical user interface. See the documentation for details.

Offline Installation

If you install OpenModelica from a USB stick in a place without Internet access, for example during a tutorial at a conference, it is still possible to install the Modelica Standard Library.

sudo apt install omlibrary

This installs cached versions of the Modelica Standard library to the system directory. These libraries will be automatically installed by the package manager in the user’s .openmodelica directory as soon as any OpenModelica tool tries to load any system library for the first time, e.g. when starting OMEdit.

C++ runtime

The C++ runtime is an alternative to the default C runtime. To install the C++ runtime run this command:

sudo apt install libomccpp

Older Releases

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.

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.13.0/ bionic release

RPM packages

To add the OpenModelica yum/dnf repository to your system, choose your OS below and run the command(s):

CPU architecture OS Release branch

dnf config-manager --add-repo https://build.openmodelica.org/rpm/ENTER-RPM-OS-VERSION-HERE/omc.repo

Once the repository has been enabled in the OS, install OpenModelica:

dnf install openmodelica-nightly

It is possible to install multiple version of OpenModelica (although this use-case has mostly been replaced by using docker). You can then select which version /usr/bin/omc (and OMEdit, etc) should point to:

alternatives --config openmodelica

You can also use commands like omc-1.24.2 or /opt/openmodelica-1.24.2/bin/omc directly if you want to try other OpenModelica versions.

To install libraries, see above.

Source Code

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

Please consider supporting our efforts.

Amount: