Simulation setup
To simulate FMU `BouncingBall.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 BouncingBall.lua ``` Lua file: ```lua -- Lua file for BouncingBall.fmu oms_setTempDirectory("/tmp/cross-check") oms_newModel("model") oms_addSystem("model.root", oms_system_wc) -- instantiate FMU oms_addSubModel("model.root.fmu", "BouncingBall.fmu") -- Simulation settings oms_setResultFile("model", "BouncingBall_out.csv") oms_setStartTime("model", 0.0) oms_setStopTime("model", 3.0) oms_setTolerance("model", 1e-08, 0.001) oms_setFixedStepSize("model", 0.001) -- 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-7bzfdnqs" couldn't be removed filesystem error: cannot remove all: Input/output error [Z:\tmp\cross-check\model-7bzfdnqs] [Z:\tmp\cross-check\model-7bzfdnqs\temp\0001_fmu\binaries\win64\BouncingBall.dll] info: 1 warnings info: 7 errors
Stderr:
error: [fmiLogger] module FMI2XML: Initial 'approx' is not allowed for variability 'discrete' and causality 'input'. Setting initial to 'Undefined' for variable '_e' 0127:err:module:import_dll Library cygwin1.dll (which is needed by L"Z:\\tmp\\cross-check\\model-7bzfdnqs\\temp\\0001_fmu\\binaries\\win64\\BouncingBall.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