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: translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay") translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008931/0.0008928, allocations: 177.5 kB / 17.41 MB, free: 4.289 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.386/1.386, allocations: 205.4 MB / 223.6 MB, free: 9.008 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.0007851/0.000785, allocations: 96.72 kB / 271.9 MB, free: 8.227 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.326/0.326, allocations: 43.56 MB / 363.8 MB, free: 51.87 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000432/0.000432, allocations: 12 kB / 432.6 MB, free: 5.641 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1144, allocations: 58.85 MB / 491.4 MB, free: 10.7 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3007/0.4151, allocations: 89.14 MB / 0.567 GB, free: 13.1 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002321/0.4154, allocations: 63.97 kB / 0.567 GB, free: 13.04 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02117/0.4366, allocations: 6.021 MB / 0.5729 GB, free: 7.062 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.418e-06/0.4367, allocations: 4 kB / 0.5729 GB, free: 7.059 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.867e-05/0.4367, allocations: 3.938 kB / 0.5729 GB, free: 7.055 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.001061/0.4378, allocations: 0.6367 MB / 0.5735 GB, free: 6.344 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.642e-05/0.4378, allocations: 12.03 kB / 0.5736 GB, free: 6.332 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.4379, allocations: 36.66 kB / 0.5736 GB, free: 6.297 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00054/0.4385, allocations: 278.9 kB / 0.5739 GB, free: 5.988 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001158/0.4386, allocations: 93.59 kB / 0.5739 GB, free: 5.879 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.104e-05/0.4387, allocations: 16.38 kB / 0.574 GB, free: 5.863 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004531/0.4391, allocations: 166.3 kB / 0.5741 GB, free: 5.684 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.4392, allocations: 4 kB / 0.5741 GB, free: 5.68 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.235e-05/0.4392, allocations: 8 kB / 0.5741 GB, free: 5.672 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.4392, allocations: 0 / 0.5741 GB, free: 5.672 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003505/0.4396, allocations: 95.86 kB / 0.5742 GB, free: 5.578 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.4407, allocations: 0.6258 MB / 0.5748 GB, free: 4.895 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004701/0.4412, allocations: 187.9 kB / 0.575 GB, free: 4.684 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002742/0.4415, allocations: 90.55 kB / 0.5751 GB, free: 4.586 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.4415, allocations: 4 kB / 0.5751 GB, free: 4.582 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005742/0.4421, allocations: 445.8 kB / 0.5755 GB, free: 4.07 MB / 394.7 MB Notification: Performance of pre-optimization done (n=23): time 2.054e-06/0.4421, allocations: 0 / 0.5755 GB, free: 4.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=23): time 0.001192/0.4433, allocations: 451.2 kB / 0.576 GB, free: 3.605 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/0.4434, allocations: 213.6 kB / 0.5762 GB, free: 3.348 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005441/0.444, allocations: 324.8 kB / 0.5765 GB, free: 3.023 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.682e-05/0.444, allocations: 33.7 kB / 0.5765 GB, free: 2.984 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.4442, allocations: 136.6 kB / 0.5766 GB, free: 2.848 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.176e-05/0.4443, allocations: 55.39 kB / 0.5767 GB, free: 2.793 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.648e-05/0.4443, allocations: 7.938 kB / 0.5767 GB, free: 2.785 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.4445, allocations: 338.8 kB / 0.577 GB, free: 2.445 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002195/0.4447, allocations: 55.97 kB / 0.5771 GB, free: 2.391 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002998/0.445, allocations: 150.2 kB / 0.5772 GB, free: 2.207 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005889/0.4456, allocations: 359.9 kB / 0.5776 GB, free: 1.789 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.4456, allocations: 0 / 0.5776 GB, free: 1.789 MB / 394.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007999/0.4464, allocations: 358.5 kB / 0.5779 GB, free: 1.414 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.347e-05/0.4465, allocations: 93.09 kB / 0.578 GB, free: 1.305 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.4465, allocations: 4 kB / 0.578 GB, free: 1.301 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.4466, allocations: 4 kB / 0.578 GB, free: 1.297 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.4467, allocations: 27.92 kB / 0.578 GB, free: 1.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-05/0.4467, allocations: 7.938 kB / 0.578 GB, free: 1.262 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002206/0.447, allocations: 32.05 kB / 0.5781 GB, free: 1.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.035e-05/0.447, allocations: 12 kB / 0.5781 GB, free: 1.219 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.0002857/0.4473, allocations: 257.5 kB / 0.5783 GB, free: 0.9375 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.255e-05/0.4474, allocations: 35.7 kB / 0.5783 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005268/0.4479, allocations: 207.1 kB / 0.5785 GB, free: 0.6953 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.448, allocations: 7.938 kB / 0.5786 GB, free: 0.6875 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.79e-06/0.448, allocations: 4 kB / 0.5786 GB, free: 0.6836 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.448, allocations: 0 / 0.5786 GB, free: 0.6836 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003843/0.4484, allocations: 301.5 kB / 0.5788 GB, free: 348 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.4484, allocations: 0 / 0.5788 GB, free: 348 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.188e-05/0.4485, allocations: 11.92 kB / 0.5789 GB, free: 336 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.4485, allocations: 4 kB / 0.5789 GB, free: 332 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.824e-05/0.4485, allocations: 4 kB / 0.5789 GB, free: 328 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.349e-06/0.4485, allocations: 7.938 kB / 0.5789 GB, free: 320 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4485, allocations: 0 / 0.5789 GB, free: 320 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009585/0.4495, allocations: 460.4 kB / 0.5793 GB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/0.4496, allocations: 112.8 kB / 0.5794 GB, free: 15.69 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.545e-05/0.4497, allocations: 12 kB / 0.5794 GB, free: 15.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001763/0.4499, allocations: 23.92 kB / 0.5795 GB, free: 15.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.45, allocations: 27.97 kB / 0.5795 GB, free: 15.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.099e-05/0.4501, allocations: 8 kB / 0.5795 GB, free: 15.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003688/0.4504, allocations: 232.4 kB / 0.5797 GB, free: 15.39 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4505, allocations: 0 / 0.5797 GB, free: 15.39 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005303/0.451, allocations: 68 kB / 0.5798 GB, free: 15.33 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.001294/0.4523, allocations: 455.3 kB / 0.5802 GB, free: 14.98 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007787/0.4531, allocations: 398 kB / 0.5806 GB, free: 14.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.4531, allocations: 0 / 0.5806 GB, free: 14.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005031/0.4536, allocations: 354 kB / 0.5809 GB, free: 14.17 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004879/0.4541, allocations: 44.86 kB / 0.581 GB, free: 14.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001057/0.4552, allocations: 0.5316 MB / 0.5815 GB, free: 13.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003677/0.4556, allocations: 0.7521 MB / 0.5822 GB, free: 12.79 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.88e-05/0.4557, allocations: 23.44 kB / 0.5822 GB, free: 12.76 MB / 410.7 MB Notification: Performance of SimCode: time 3e-07/0.4557, allocations: 0 / 0.5822 GB, free: 12.76 MB / 410.7 MB Notification: Performance of Templates: time 0.007777/0.4635, allocations: 3.601 MB / 0.5858 GB, free: 9.16 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.makefile (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 & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/OnDelay/OnDelay.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches