Skip to content

OpenModelica/OMPython

Folders and files

NameName
Last commit message
Last commit date
Apr 7, 2025
May 20, 2025
May 20, 2025
Apr 28, 2015
Jul 12, 2024
Oct 18, 2017
Apr 15, 2025
Apr 25, 2025
Apr 7, 2025

Repository files navigation

OMPython

OMPython is a Python interface that uses ZeroMQ to communicate with OpenModelica.

FMITest Test

Dependencies

  • Python 3.x supported
  • PyZMQ is required

Installation

Installation using pip is recommended.

Via pip

pip install OMPython

Via source

Clone the repository and run:

cd <OMPythonPath>
python -m pip install -U .

Usage

Running the following commands should get you started

import OMPython
help(OMPython)
from OMPython import OMCSessionZMQ
omc = OMCSessionZMQ()
omc.sendExpression("getVersion()")

or read the OMPython documentation online.

Bug Reports

Contact