Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
ed74d54
[ModelExecution*] create classes to handle model execution
syntron Jan 18, 2026
3f4f80e
[test_ModelicaSystemCmd] update unittest
syntron Jan 18, 2026
5468f46
[OMCSession] add get_version() and get_workdir()
syntron Jan 18, 2026
fbd7f28
[OMCPathReal] remove dummy function stat()
syntron Jan 18, 2026
de0e3c2
[OMCSession] use function keyword arguments if possible
syntron Jan 18, 2026
6dd7815
[ModelicaSystem] use function keyword arguments if possible
syntron Jan 18, 2026
1af6916
update docstring of __init__.py - do not promote depreciated OMCSessi…
syntron Jan 9, 2026
5587e8c
[ModelicaSystem] update handling of outputs and continuous data
syntron Jan 20, 2026
96ad82c
[ModelicaSystem] use KeyError in getOutputsFinal()
syntron Jan 21, 2026
595ee5c
[ModelicaSystem] use KeyError in getContinuousFinal()
syntron Jan 21, 2026
91841bb
[ModelicaSystem] fix docstring of getContinuous()
syntron Jan 21, 2026
7c7fed5
[test_ModelicaSystem.py] needed changes due to update of output / con…
syntron Jan 20, 2026
41dda2b
[ModelExecutionData] include the original exception if reraised as Mo…
syntron Jan 24, 2026
ff35a8b
[ModelicaSystem] define check_model_executable() - test if the model …
syntron Jan 20, 2026
eb56b86
Merge branch 'OMCPath_remove_stat' into v4.2.0-status20260124
syntron Jan 24, 2026
b789248
Merge branch 'ModelicaSystem_cleanup' into v4.2.0-status20260124
syntron Jan 24, 2026
c7e1662
Merge branch 'use_function_keyword_arguments' into v4.2.0-status20260124
syntron Jan 24, 2026
f02a559
Merge branch 'update_init_docstring' into v4.2.0-status20260124
syntron Jan 24, 2026
ddf345c
Merge branch 'ModelicaSystem_getContinuous_getOutputs' into v4.2.0-st…
syntron Jan 24, 2026
f38e243
Merge branch 'ModelicaSystem_check_model_executable' into v4.2.0-stat…
syntron Jan 24, 2026
4a2eaca
[ModelicaSystemDoE] simplify definition; use a Modelicasystem instanc…
syntron Jan 18, 2026
a98f4fd
[ModelicaSystemDoE] update docstring
syntron Jan 18, 2026
a80d543
[ModelicaSystemDoE] fix for relative paths
syntron Jan 18, 2026
117b01a
[ModelicaSystemDoE] fix unittest
syntron Jan 18, 2026
cf1529a
Merge branch 'ModelicaSystemDoE' into v4.2.0-status20260124
syntron Jan 24, 2026
f5f2bb5
[ModelicaSystemOMC] add docstring for sendExpression()
syntron Jan 24, 2026
79d842e
[ModelicaSystemBase] define parse_om_version() as staticmethod
syntron Jan 21, 2026
44d50b2
[ModelicaSystemBase] include the original exception if reraised as Mo…
syntron Jan 24, 2026
48eab90
[ModelicaSystem] fix order of imports
syntron Jan 20, 2026
94fc5c3
Merge branch 'ModelicaSystem_small_fixes' into v4.2.0-status20260124
syntron Jan 24, 2026
70e3b76
[OMCSession] fix import order; zmq is a 3rd party package
syntron Jan 21, 2026
a5244b1
Merge branch 'OMCSession_small_fixes' into v4.2.0-status20260124
syntron Jan 24, 2026
873cbb8
[ModelicaSystem] split ModelicaSystem into ModelicaSystemABC and Mode…
syntron Jan 24, 2026
9abf38d
[ModelicaSystem] rename ModelicaSystem => ModelicaSystemOMC
syntron Jan 24, 2026
991adf2
[test_ModelicaSystemOMC] rename from ModelicaSystem and update
syntron Jan 24, 2026
46ef920
[test_*] use ModelicaSystemOMC
syntron Jan 24, 2026
e499308
[ModelicaSystem] split ModelicaSystemDoE into ModelicaDoEABC and Mode…
syntron Jan 24, 2026
59c3471
[ModelicaSystem] rename ModelicaSystemDoE => ModelicaDoEOMC
syntron Jan 24, 2026
4bce6d7
[test_ModelicaDoEOMC] rename from ModelicaSystemDoE and update
syntron Jan 24, 2026
52b6403
[ModelicaSystem] update ModelicaDoEABC to use ModelicaSystemABC
syntron Jan 24, 2026
90bb065
[ModelicaSystem] define doe_get_solutions() as separate method
syntron Jan 24, 2026
b99ef6e
[OMCSession] update OMCPath to use OMPathABC as baseline and further …
syntron Jan 25, 2026
3f48c24
[ModelicaSystem] shortcut to use OMCPath = OMPathABC for now
syntron Jan 25, 2026
571ce75
[ModelicaSystem] fix usage of OMCPath; replace by OMPathABC
syntron Jan 26, 2026
b337e8c
[ModelicaSystem] define (_)simulate_cmd() as private function
syntron Jan 26, 2026
9a42128
Merge branch 'ModelicaSystem_simulate_cmd' into OMCSession_OMPathABC
syntron Jan 26, 2026
d6eb0e3
[OMCSession] update OMCSession* to use OMSessionABC as baseline and f…
syntron Jan 26, 2026
bb73a89
[ModelicaSystem] shortcut to use OMCSession = OMSessionABC for now
syntron Jan 26, 2026
4256238
[ModelicaSystem] fix usage of OMCSession; replace by OMSessionABC
syntron Jan 26, 2026
d21e7df
[OMCSession] add *Runner related classes for OMPath and OMSession
syntron Jan 27, 2026
2fb4bc1
[ModelicaSystem] add ModelicaSystemRunner
syntron Jan 27, 2026
a22ad1c
[test_ModelicaSystemRunner] add test case for ModelicaSystemRunner
syntron Jan 27, 2026
7cfe79c
[ModelicaSystem] add ModelicaDoERunner
syntron Jan 27, 2026
0da155d
[test_ModelicaDoERunner] add test case for ModelicaDoERunner
syntron Jan 27, 2026
be452d1
Revert "[ModelicaSystem] define (_)simulate_cmd() as private function"
syntron Feb 3, 2026
7b68938
syntron RFC status 2026/02/06
syntron Feb 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: Test-Publish

on:
push:
branches: ['master']
tags:
- 'v*' # only publish when pushing version tags (e.g., v1.0.0)
pull_request:
workflow_dispatch:

jobs:
Expand All @@ -14,9 +9,9 @@ jobs:
timeout-minutes: 30
strategy:
matrix:
python-version: ['3.10', '3.12', '3.13']
python-version: ['3.14']
os: ['ubuntu-latest', 'windows-latest']
omc-version: ['stable', 'nightly']
omc-version: ['stable']

steps:
- uses: actions/checkout@v6
Expand Down
66 changes: 66 additions & 0 deletions .github/workflows/Test_v400.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Test-v4.0.0

on:
workflow_dispatch:

jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
matrix:
python-version: ['3.10', '3.14']
os: ['ubuntu-latest', 'windows-latest']
omc-version: ['stable', 'nightly']

steps:
- uses: actions/checkout@v6

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'

- name: Install dependencies
run: |
python -m pip install --upgrade pip build setuptools wheel twine
pip install . pytest pytest-md pytest-emoji pre-commit

- name: Set timezone
uses: szenius/set-timezone@v2.0
with:
timezoneLinux: 'Europe/Berlin'

- name: Run pre-commit linters
run: 'pre-commit run --all-files'

- name: "Set up OpenModelica Compiler"
uses: OpenModelica/setup-openmodelica@v1.0.5
with:
version: ${{ matrix.omc-version }}
packages: |
omc
libraries: |
'Modelica 4.0.0'
- run: "omc --version"

- name: Pull OpenModelica docker image
if: runner.os != 'Windows'
run: docker pull openmodelica/openmodelica:v1.25.0-minimal

- name: Build wheel and sdist packages
run: python -m build --wheel --sdist --outdir dist

- name: Check twine
run: python -m twine check dist/*

- name: Run pytest
uses: pavelzw/pytest-action@v2
with:
verbose: true
emoji: true
job-summary: true
custom-arguments: '-v ./tests_v400 '
click-to-expand: true
report-title: 'Test Report'
66 changes: 66 additions & 0 deletions .github/workflows/Test_v400_py310.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Test-v4.0.0-py310

on:
workflow_dispatch:

jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
matrix:
python-version: ['3.10']
os: ['ubuntu-latest']
omc-version: ['stable']

steps:
- uses: actions/checkout@v6

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'

- name: Install dependencies
run: |
python -m pip install --upgrade pip build setuptools wheel twine
pip install . pytest pytest-md pytest-emoji pre-commit

- name: Set timezone
uses: szenius/set-timezone@v2.0
with:
timezoneLinux: 'Europe/Berlin'

- name: Run pre-commit linters
run: 'pre-commit run --all-files'

- name: "Set up OpenModelica Compiler"
uses: OpenModelica/setup-openmodelica@v1.0.5
with:
version: ${{ matrix.omc-version }}
packages: |
omc
libraries: |
'Modelica 4.0.0'
- run: "omc --version"

- name: Pull OpenModelica docker image
if: runner.os != 'Windows'
run: docker pull openmodelica/openmodelica:v1.25.0-minimal

- name: Build wheel and sdist packages
run: python -m build --wheel --sdist --outdir dist

- name: Check twine
run: python -m twine check dist/*

- name: Run pytest
uses: pavelzw/pytest-action@v2
with:
verbose: true
emoji: true
job-summary: true
custom-arguments: '-v ./tests_v400 '
click-to-expand: true
report-title: 'Test Report'
66 changes: 66 additions & 0 deletions .github/workflows/Test_v4xx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Test-v4.x.x

on:
workflow_dispatch:

jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
matrix:
python-version: ['3.10', '3.14']
os: ['ubuntu-latest', 'windows-latest']
omc-version: ['stable', 'nightly']

steps:
- uses: actions/checkout@v6

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'

- name: Install dependencies
run: |
python -m pip install --upgrade pip build setuptools wheel twine
pip install . pytest pytest-md pytest-emoji pre-commit

- name: Set timezone
uses: szenius/set-timezone@v2.0
with:
timezoneLinux: 'Europe/Berlin'

- name: Run pre-commit linters
run: 'pre-commit run --all-files'

- name: "Set up OpenModelica Compiler"
uses: OpenModelica/setup-openmodelica@v1.0.5
with:
version: ${{ matrix.omc-version }}
packages: |
omc
libraries: |
'Modelica 4.0.0'
- run: "omc --version"

- name: Pull OpenModelica docker image
if: runner.os != 'Windows'
run: docker pull openmodelica/openmodelica:v1.25.0-minimal

- name: Build wheel and sdist packages
run: python -m build --wheel --sdist --outdir dist

- name: Check twine
run: python -m twine check dist/*

- name: Run pytest
uses: pavelzw/pytest-action@v2
with:
verbose: true
emoji: true
job-summary: true
custom-arguments: '-v ./tests '
click-to-expand: true
report-title: 'Test Report'
7 changes: 3 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@ repos:
hooks:
- id: codespell

- repo: https://github.com/pre-commit/mirrors-mypy.git
rev: "v1.15.0"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
hooks:
- id: mypy
args: []
exclude: tests/
exclude: 'test|test_v400'
additional_dependencies:
- pyparsing
- types-psutil
Expand Down
Loading