Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002438/0.002438, allocations: 188.4 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.389/2.389, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001177/0.001177, allocations: 91.39 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.6273/0.6273, allocations: 43.55 MB / 362.7 MB, free: 51.92 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005087/0.0005086, allocations: 12 kB / 431.5 MB, free: 5.824 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1377, allocations: 58.83 MB / 490.3 MB, free: 10.9 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5783/0.716, allocations: 89.08 MB / 0.5658 GB, free: 13.31 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/0.7163, allocations: 67.97 kB / 0.5659 GB, free: 13.25 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02854/0.7449, allocations: 6.031 MB / 0.5718 GB, free: 7.266 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.745, allocations: 0 / 0.5718 GB, free: 7.266 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.036e-05/0.745, allocations: 4 kB / 0.5718 GB, free: 7.262 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.001249/0.7463, allocations: 0.6483 MB / 0.5724 GB, free: 6.543 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/0.7463, allocations: 8.031 kB / 0.5724 GB, free: 6.535 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.644e-05/0.7464, allocations: 42.56 kB / 0.5724 GB, free: 6.484 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.7465, allocations: 31.16 kB / 0.5725 GB, free: 6.457 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006358/0.7472, allocations: 277.7 kB / 0.5727 GB, free: 6.148 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001253/0.7473, allocations: 93.09 kB / 0.5728 GB, free: 6.039 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.145e-05/0.7474, allocations: 16 kB / 0.5728 GB, free: 6.023 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005081/0.7479, allocations: 172.5 kB / 0.573 GB, free: 5.84 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.748, allocations: 0 / 0.573 GB, free: 5.84 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.979e-05/0.748, allocations: 4 kB / 0.573 GB, free: 5.836 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.748, allocations: 5.031 kB / 0.573 GB, free: 5.832 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004416/0.7485, allocations: 107.8 kB / 0.5731 GB, free: 5.727 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001326/0.7498, allocations: 0.6181 MB / 0.5737 GB, free: 5.051 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005599/0.7504, allocations: 183.9 kB / 0.5739 GB, free: 4.844 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.75e-05/0.7504, allocations: 0 / 0.5739 GB, free: 4.844 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007046/0.7512, allocations: 433.1 kB / 0.5743 GB, free: 4.344 MB / 394.7 MB Notification: Performance of pre-optimization done (n=23): time 2.826e-06/0.7512, allocations: 0 / 0.5743 GB, free: 4.344 MB / 394.7 MB Notification: Performance of matching and sorting (n=23): time 0.002154/0.7533, allocations: 0.686 MB / 0.575 GB, free: 3.578 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000205/0.7536, allocations: 217.6 kB / 0.5752 GB, free: 3.316 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008533/0.7545, allocations: 288.1 kB / 0.5755 GB, free: 3.031 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.379e-05/0.7546, allocations: 37.64 kB / 0.5755 GB, free: 2.988 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001989/0.7548, allocations: 191 kB / 0.5757 GB, free: 2.801 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.5e-05/0.7549, allocations: 47.41 kB / 0.5757 GB, free: 2.754 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.521e-05/0.755, allocations: 4 kB / 0.5757 GB, free: 2.75 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.7551, allocations: 318.8 kB / 0.576 GB, free: 2.43 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002833/0.7554, allocations: 64.14 kB / 0.5761 GB, free: 2.367 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003469/0.7558, allocations: 151.2 kB / 0.5762 GB, free: 2.184 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003529/0.7562, allocations: 151.4 kB / 0.5764 GB, free: 2.02 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.341e-06/0.7562, allocations: 4.031 kB / 0.5764 GB, free: 2.016 MB / 394.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001001/0.7572, allocations: 334.3 kB / 0.5767 GB, free: 1.664 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001054/0.7573, allocations: 101.1 kB / 0.5768 GB, free: 1.547 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.7573, allocations: 384 / 0.5768 GB, free: 1.547 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.578e-05/0.7574, allocations: 4 kB / 0.5768 GB, free: 1.543 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001821/0.7576, allocations: 20.2 kB / 0.5768 GB, free: 1.523 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.61e-05/0.7576, allocations: 15.89 kB / 0.5768 GB, free: 1.508 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002973/0.7579, allocations: 31.92 kB / 0.5769 GB, free: 1.477 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.154e-05/0.758, allocations: 8 kB / 0.5769 GB, free: 1.469 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$whenCondition5,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003893/0.7584, allocations: 261.5 kB / 0.5771 GB, free: 1.184 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.826e-05/0.7585, allocations: 35.62 kB / 0.5772 GB, free: 1.148 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006285/0.7591, allocations: 216.9 kB / 0.5774 GB, free: 0.9219 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.7591, allocations: 0 / 0.5774 GB, free: 0.9219 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.437e-06/0.7592, allocations: 4 kB / 0.5774 GB, free: 0.918 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-06/0.7592, allocations: 3.953 kB / 0.5774 GB, free: 0.9141 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004496/0.7596, allocations: 293.5 kB / 0.5777 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.7596, allocations: 0 / 0.5777 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.453e-05/0.7597, allocations: 7.984 kB / 0.5777 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.7598, allocations: 7.938 kB / 0.5777 GB, free: 0.5625 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.692e-05/0.7598, allocations: 12 kB / 0.5777 GB, free: 0.5508 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.7598, allocations: 0 / 0.5777 GB, free: 0.5508 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.7598, allocations: 4 kB / 0.5777 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001345/0.7612, allocations: 479.8 kB / 0.5781 GB, free: 24 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001745/0.7614, allocations: 112.8 kB / 0.5783 GB, free: 15.89 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.202e-05/0.7615, allocations: 12 kB / 0.5783 GB, free: 15.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002191/0.7617, allocations: 23.94 kB / 0.5783 GB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.7619, allocations: 23.91 kB / 0.5783 GB, free: 15.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.275e-05/0.7619, allocations: 15.98 kB / 0.5783 GB, free: 15.82 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004416/0.7624, allocations: 232.4 kB / 0.5785 GB, free: 15.59 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.7624, allocations: 0 / 0.5785 GB, free: 15.59 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005173/0.7629, allocations: 76 kB / 0.5786 GB, free: 15.52 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition5,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 14 (onDelay3.t_next,onDelay3.delaySignal,$whenCondition2,$whenCondition1,onDelay2.t_next,onDelay2.delaySignal,$whenCondition4,$whenCondition3,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003978/0.7669, allocations: 1.476 MB / 0.5801 GB, free: 14.08 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001149/0.7681, allocations: 405.8 kB / 0.5804 GB, free: 13.65 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.7681, allocations: 448 / 0.5804 GB, free: 13.65 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006804/0.7688, allocations: 358.1 kB / 0.5808 GB, free: 13.26 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005096/0.7694, allocations: 40.55 kB / 0.5808 GB, free: 13.22 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004688/0.7741, allocations: 2.887 MB / 0.5836 GB, free: 10.24 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004725/0.7746, allocations: 0.7637 MB / 0.5844 GB, free: 9.453 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002349/0.7749, allocations: 71.41 kB / 0.5845 GB, free: 9.383 MB / 410.7 MB Notification: Performance of SimCode: time 1.473e-06/0.7749, allocations: 0 / 0.5845 GB, free: 9.383 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.913/3.688, allocations: 4.582 MB / 0.5889 GB, free: 4.797 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat