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.002234/0.002233, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.047/2.047, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001108/0.001107, allocations: 86.81 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3064/0.3064, allocations: 43.48 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.554e-05/2.586e-05, allocations: 4 kB / 418.3 MB, free: 40.97 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.42/0.4201, allocations: 58.85 MB / 477.2 MB, free: 5.164 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1852/0.6053, allocations: 88.33 MB / 0.5522 GB, free: 10.89 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003986/0.6058, allocations: 71.47 kB / 0.5523 GB, free: 10.82 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.045/0.6508, allocations: 5.948 MB / 0.5581 GB, free: 4.871 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.6509, allocations: 0 / 0.5581 GB, free: 4.871 MB / 395.1 MB Notification: Performance of Transformations before backend: time 4.648e-05/0.6509, allocations: 4 kB / 0.5581 GB, free: 4.867 MB / 395.1 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.00156/0.6525, allocations: 0.5949 MB / 0.5587 GB, free: 4.203 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.231e-05/0.6526, allocations: 12.03 kB / 0.5587 GB, free: 4.191 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000188/0.6528, allocations: 23.81 kB / 0.5587 GB, free: 4.168 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.6538, allocations: 289.5 kB / 0.559 GB, free: 3.848 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001917/0.6541, allocations: 93.09 kB / 0.5591 GB, free: 3.738 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.007e-05/0.6542, allocations: 12 kB / 0.5591 GB, free: 3.727 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003828/0.6546, allocations: 68.16 kB / 0.5592 GB, free: 3.656 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004981/0.6551, allocations: 137.6 kB / 0.5593 GB, free: 3.504 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.6551, allocations: 4 kB / 0.5593 GB, free: 3.5 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.714e-05/0.6552, allocations: 4 kB / 0.5593 GB, free: 3.496 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.6552, allocations: 4 kB / 0.5593 GB, free: 3.492 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001891/0.6571, allocations: 0.5951 MB / 0.5599 GB, free: 2.852 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000586/0.6578, allocations: 152 kB / 0.5601 GB, free: 2.676 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000289/0.6581, allocations: 86.62 kB / 0.5601 GB, free: 2.582 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.337e-05/0.6582, allocations: 3.938 kB / 0.5601 GB, free: 2.578 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000784/0.659, allocations: 417 kB / 0.5605 GB, free: 2.094 MB / 395.1 MB Notification: Performance of pre-optimization done (n=23): time 4.388e-06/0.659, allocations: 0 / 0.5605 GB, free: 2.094 MB / 395.1 MB Notification: Performance of matching and sorting (n=23): time 0.001171/0.6602, allocations: 245.5 kB / 0.5608 GB, free: 1.848 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002017/0.6604, allocations: 225.5 kB / 0.561 GB, free: 1.578 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008392/0.6613, allocations: 280.3 kB / 0.5613 GB, free: 1.293 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 9.266e-05/0.6614, allocations: 29.7 kB / 0.5613 GB, free: 1.258 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002074/0.6617, allocations: 187 kB / 0.5615 GB, free: 1.074 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001339/0.6618, allocations: 55.34 kB / 0.5615 GB, free: 1.02 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.034e-05/0.6619, allocations: 0 / 0.5615 GB, free: 1.02 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.000204/0.6621, allocations: 322.8 kB / 0.5618 GB, free: 0.6953 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002479/0.6624, allocations: 44.19 kB / 0.5619 GB, free: 0.6523 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000361/0.6627, allocations: 134.5 kB / 0.562 GB, free: 496 kB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002785/0.663, allocations: 59.88 kB / 0.562 GB, free: 436 kB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.692e-06/0.6631, allocations: 0 / 0.562 GB, free: 436 kB / 395.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0009271/0.664, allocations: 197.4 kB / 0.5622 GB, free: 232 kB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001668/0.6642, allocations: 97.31 kB / 0.5623 GB, free: 116 kB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/0.6643, allocations: 7.938 kB / 0.5623 GB, free: 108 kB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.331e-05/0.6643, allocations: 4 kB / 0.5623 GB, free: 104 kB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000269/0.6646, allocations: 19.98 kB / 0.5624 GB, free: 84 kB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.052e-05/0.6646, allocations: 7.938 kB / 0.5624 GB, free: 76 kB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004516/0.6651, allocations: 19.98 kB / 0.5624 GB, free: 56 kB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.284e-05/0.6652, allocations: 15.95 kB / 0.5624 GB, free: 40 kB / 395.1 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 () * 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.0004251/0.6656, allocations: 229.1 kB / 0.5626 GB, free: 15.79 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001229/0.6669, allocations: 269.2 kB / 0.5629 GB, free: 15.52 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.6671, allocations: 31.72 kB / 0.5629 GB, free: 15.49 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007096/0.6678, allocations: 159.3 kB / 0.5631 GB, free: 15.33 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.306e-05/0.6678, allocations: 4 kB / 0.5631 GB, free: 15.32 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/0.6679, allocations: 3.953 kB / 0.5631 GB, free: 15.32 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.287e-05/0.6679, allocations: 0 / 0.5631 GB, free: 15.32 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006072/0.6685, allocations: 274 kB / 0.5633 GB, free: 15.02 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.6685, allocations: 0 / 0.5633 GB, free: 15.02 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001174/0.6687, allocations: 16.27 kB / 0.5633 GB, free: 15 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.047e-06/0.6687, allocations: 0 / 0.5633 GB, free: 15 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.51e-05/0.6688, allocations: 12 kB / 0.5634 GB, free: 14.99 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.877e-06/0.6688, allocations: 3.938 kB / 0.5634 GB, free: 14.98 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.6688, allocations: 0 / 0.5634 GB, free: 14.98 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001172/0.67, allocations: 349.5 kB / 0.5637 GB, free: 14.61 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002161/0.6703, allocations: 116.8 kB / 0.5638 GB, free: 14.48 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001266/0.6704, allocations: 8 kB / 0.5638 GB, free: 14.47 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000364/0.6708, allocations: 24.03 kB / 0.5638 GB, free: 14.45 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.671, allocations: 19.92 kB / 0.5639 GB, free: 14.43 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.024e-05/0.6711, allocations: 15.98 kB / 0.5639 GB, free: 14.41 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0005657/0.6716, allocations: 220.5 kB / 0.5641 GB, free: 14.2 MB / 411.1 MB Notification: Performance of sort global known variables: time 9.82e-07/0.6717, allocations: 7.938 kB / 0.5641 GB, free: 14.19 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0008163/0.6725, allocations: 64 kB / 0.5641 GB, free: 14.12 MB / 411.1 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) * 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.003319/0.6759, allocations: 1.26 MB / 0.5654 GB, free: 12.86 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.00113/0.677, allocations: 362 kB / 0.5657 GB, free: 12.47 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 9.528e-06/0.6771, allocations: 3.938 kB / 0.5657 GB, free: 12.47 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007249/0.6778, allocations: 326.6 kB / 0.566 GB, free: 12.11 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007664/0.6786, allocations: 55.02 kB / 0.5661 GB, free: 12.07 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002183/0.6808, allocations: 462.4 kB / 0.5665 GB, free: 11.57 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006603/0.6815, allocations: 0.7597 MB / 0.5673 GB, free: 10.78 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002781/0.6819, allocations: 71.41 kB / 0.5673 GB, free: 10.71 MB / 411.1 MB Notification: Performance of SimCode: time 1.523e-06/0.6819, allocations: 0 / 0.5673 GB, free: 10.71 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.864/3.546, allocations: 4.552 MB / 0.5718 GB, free: 6.148 MB / 411.1 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