OpenModelica Smart Runner is a Python-based GUI application built using PyQt6 that allows users to execute OpenModelica-generated simulation executables with custom parameters.
The application:
- Runs compiled OpenModelica models (
.exe) - Accepts simulation parameters (start time, stop time)
- Handles runtime dependencies automatically
- Provides a simple and user-friendly interface
- ✅ Execute OpenModelica simulation executables
- ✅ Input validation (
0 ≤ start < stop < 5) - ✅ Automatic runtime environment handling
- ✅ Works with or without OpenModelica installed
- ✅ Clean and intuitive GUI
OpenModelica/
│
├── gui.py # Main PyQt6 GUI application
├── model/
│ ├── TwoConnectedTanks.exe # Compiled OpenModelica model
│ └── ... # Supporting simulation files
├── dependencies/ # Fallback DLLs (Install from Drive)
│ └── ... # Required bin files/DLLs
├── requirements.txt # Project dependencies
└── README.md # Documentation
- Python 3.6+
- PyQt6
- OpenModelica (optional but recommended)
git clone https://github.com/Akhileswaran-K-R/OpenModelica.git
cd OpenModelica
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
python gui.py
-
Click Browse and select the executable from the
model/folder -
Enter:
- Start Time
- Stop Time
-
Click Run Simulation
-
Output (
result.mat) will be generated in themodel/folder
The application intelligently handles runtime dependencies:
- Uses
OPENMODELICAHOMEenvironment variable - Automatically adds
/binto PATH
- Uses DLLs from:
dependencies/
You can download dependencies from:
👉 Download Link: Library files
- Extract the files to folder dependencies
- Copy the folder to the project root
- Ensure required
.dllfiles are present independencies/if OpenModelica is not installed - Input condition must satisfy:
0 ≤ start < stop < 5
- The GUI collects user inputs
- Builds execution command:
-startTime=<value> -stopTime=<value>
- Dynamically configures runtime environment
- Executes the simulation using Python
subprocess
- Simulation result file:
model/result.mat
You can download the application from:
Steps:
- Download ZIP
- Extract
- Run
gui_app.exe
- 📊 Graph visualization of simulation results
- 🧾 Live simulation logs in GUI
- 🎛️ Variable selection for plotting
- 🌙 Dark mode UI
Akhileswaran K.R.