Skip to content

Commit c86f68b

Browse files
committed
[test_FMIExport] try also convertFmu2Mo()
1 parent 781e508 commit c86f68b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tests/test_FMIExport.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ def test_CauerLowPassAnalog():
1313
try:
1414
fmu = mod.convertMo2Fmu(fileNamePrefix="CauerLowPassAnalog")
1515
assert os.path.exists(fmu)
16+
17+
# TODO: check if solution is identical to original simulation?!
18+
mod2 = OMPython.ModelicaSystem()
19+
mod2.convertFmu2Mo(
20+
fmu=fmu,
21+
)
22+
1623
finally:
1724
shutil.rmtree(tmp, ignore_errors=True)
1825

@@ -27,5 +34,12 @@ def test_DrumBoiler():
2734
try:
2835
fmu = mod.convertMo2Fmu(fileNamePrefix="DrumBoiler")
2936
assert os.path.exists(fmu)
37+
38+
# TODO: check if solution is identical to original simulation?!
39+
mod2 = OMPython.ModelicaSystem()
40+
mod2.convertFmu2Mo(
41+
fmu=fmu,
42+
)
43+
3044
finally:
3145
shutil.rmtree(tmp, ignore_errors=True)

0 commit comments

Comments
 (0)