Debian / Ubuntu Packages
We provide .deb packages compiled on Ubuntu and Debian: jessie, trusty, 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 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
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.
There are yum repositories (to be downloaded to /etc/yum.repos.d/) available for:
Note that CentOS/RHEL requires the EPEL and devtoolset (CentOS/RHEL 6) 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-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.11 or /opt/openmodelica-1.11/bin/omc directly if you to try your model uising a particular OpenModelica version.
If you can't use deb packages at all, we recommended installing OpenModelica from source code.
OpenModelica includes SystemDynamics library with World modeling. Instructions for systemdynamics World3 simulations.
Instructions updated 2016-02-09
Please consider supporting our efforts.
Please consider supporting our efforts.