Install OpenModelica

On Windows

  • go to this URL to download OpenModelica Installer: https://openmodelica.org/download/download-windows
  • Double click the OpenModelica installer and follow the wizards
  • Ensure you can locate omc.exe (E.g. C:\OpenModelica1.9.2\bin\omc.exe)

On Linux

Go to the URL (https://openmodelica.org/download/download-linux) and follow the instructions:

1. Run the following script to add OpenModelica to your additional repository 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

NOTE: if you are installing on Linux Mint Rosa, this Repository can be created:

  • deb http://build.openmodelica.org/apt rosa nightly
  • deb-src http://build.openmodelica.org/apt rosa nightly

You need to change "rosa" to "trusty" in order to make it work.

Menu | Search Bar | Software Sources (type in password) | Additional repositories | Select "Openmodelica" | Edit URL | change rosa to trusty | OK | Do the same for "Openmodelica(Sources)"

2. Import the GPG key used to sign the releases:

  • wget -q http://build.openmodelica.org/apt/openmodelica.asc -O- | sudo apt-key add -

3. Then update and install OpenModelica

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

Ensure you can find file under /usr/bin/omc

Configure OpenModelica in EA

Ribbon

Simulate > SysMLSim > Manage > SysMLSim Configuration Manager > Menu > Configure Modelica Solver

Other

Double click on an Artifact with the SysMLSimConfiguration stereotype > Menu > Configure Modelica Solver

Configure Solver

Displayed the 'Modelica Solver Path' dialog, in which you type or browse for the path to the Modelica solver to use

  • For windows, it looks like this:

  • For Linux, it looks like this: