Simulation setup
To simulate FMU `Stairs.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 --suppressPath=true --timeout=60 Stairs.lua ``` Lua file: ```lua -- Lua file for Stairs.fmu oms_setTempDirectory("/tmp/cross-check") oms_newModel("model") oms_addSystem("model.root", oms_system_wc) -- instantiate FMU oms_addSubModel("model.root.fmu", "Stairs.fmu") -- Simulation settings oms_setResultFile("model", "Stairs_out.csv") oms_setStartTime("model", 0.0) oms_setStopTime("model", 5.0) oms_setTolerance("model", 1e-08, 0.5) oms_setFixedStepSize("model", 0.5) -- 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:
warning: temp directory "Z:\tmp\cross-check\model-5dy2pgmu" couldn't be removed filesystem error: cannot remove all: Input/output error [Z:\tmp\cross-check\model-5dy2pgmu] [Z:\tmp\cross-check\model-5dy2pgmu\temp\0001_fmu\binaries\win64\Stairs.dll] info: 1 warnings info: 6 errors
Stderr:
0129:err:module:import_dll Library cygwin1.dll (which is needed by L"Z:\\tmp\\cross-check\\model-5dy2pgmu\\temp\\0001_fmu\\binaries\\win64\\Stairs.dll") not found error: [fmiLogger] module FMICAPI: Could not load the FMU binary: Module not found. error: [instantiate] Could not load "resources/0001_fmu.fmu" which is associated with "model.root.fmu"; it may be corrupted or may not support your platform error: [initialize] Model "model" is in wrong model state error: [simulate] Model "model" is in wrong model state error: [terminate] Model "model" is in wrong model state error: [terminate] Model "model" is in wrong model state