Simulation setup
To simulate FMU `Rectifier.fmu` with OMSimulator run ```bash $ wine64 /var/lib/jenkins2/ws/Sandbox/Andreas/OMSimulator-FMI-Cross-Check/OMSimulatorBinaries/OMSimulator-mingw64/bin/OMSimulator.exe --stripRoot=true --skipCSVHeader=true --addParametersToCSV=true --intervals=500 --suppressPath=true --timeout=60 Rectifier.lua ``` Lua file: ```lua -- Lua file for Rectifier.fmu oms_setTempDirectory("temp") oms_newModel("model") oms_addSystem("model.root", oms_system_wc) -- instantiate FMU oms_addSubModel("model.root.fmu", "../../../../../../../../../fmus/2.0/cs/win64/PROOSIS/6.0.2/Rectifier/Rectifier.fmu") -- Simulation settings oms_setSignalFilter("model", ".*") oms_setResultFile("model", "Rectifier_out.csv") oms_setStartTime("model", 0.0) oms_setStopTime("model", 0.04) oms_setTolerance("model", 1e-06) initialStepSize, minimumStepSize, maximumStepSize, status = oms_getVariableStepSize("model") oms_setVariableStepSize("model", 8e-05, minimumStepSize, 8e-05) oms_setFixedStepSize("model", 8e-05) -- Instantiate, initialize and simulate oms_instantiate("model") oms_initialize("model") oms_simulate("model") oms_terminate("model") oms_delete("model") ``` See the [OMSimulator documentation](https://openmodelica.org/doc/OMSimulator/master/html/index.html) for more information.
Stdout:
Begin reading symbols table... Variables: 79 Equations: 32 End of reading symbols table. [INITIAL] Resetting variables to the initial values... [INITIAL] Executing the INIT block of experiment... info: Result file: Rectifier_out.csv (bufferSize=1) Deck: [INITIAL] begin reading cardpack - phase1... Deck: [INITIAL] end of reading cardpack - phase1. Deck: [INITIAL] begin reading cardpack - phase2... Deck: warning, boundary Triphasic_Rectifier_1.I1.v will follow its default definition. Deck: warning, boundary Triphasic_Rectifier_1.I2.v will follow its default definition. Deck: warning, boundary Triphasic_Rectifier_1.I3.v will follow its default definition. Deck: [INITIAL] end of reading cardpack - phase2. warning: temp directory "Z:\var\lib\jenkins2\ws\Sandbox\Andreas\OMSimulator-FMI-Cross-Check\OMSimulator\testsuite\fmi-cross-check\fmi-cross-check\results\2.0\cs\win64\OMSimulator\v2.0.0\PROOSIS\6.0.2\Rectifier\temp\model-1sv2r1ou" couldn't be removed filesystem error: cannot remove all: Permission denied [Z:\var\lib\jenkins2\ws\Sandbox\Andreas\OMSimulator-FMI-Cross-Check\OMSimulator\testsuite\fmi-cross-check\fmi-cross-check\results\2.0\cs\win64\OMSimulator\v2.0.0\PROOSIS\6.0.2\Rectifier\temp\model-1sv2r1ou] info: 1 warnings info: 0 errors
Stderr:
01df:fixme:heap:RtlSetHeapInformation 0x1430000 0 0x32e550 4 stub 01df:fixme:heap:RtlSetHeapInformation 0x1650000 0 0x32e590 4 stub 01df:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x32dff0 1 C) semi-stub 01df:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x32da70 1 C) semi-stub 01df:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x321ce0 1 C) semi-stub 01df:fixme:msvcrt:__clean_type_info_names_internal (0x18001a180) stub 01df:fixme:msvcrt:__clean_type_info_names_internal (0xdde260) stub