Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 107.7 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001959/0.001959, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 222.9 MB / 241.8 MB, free: 13.86 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2088/0.2088, allocations: 44.18 MB / 336.1 MB, free: 2.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 67.77 kB / 407.7 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1486, allocations: 60.83 MB / 468.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003698/0.1524, allocations: 1.927 MB / 470.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00239/0.1548, allocations: 1.033 MB / 471.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001067/0.1549, allocations: 4 kB / 471.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007081/0.1557, allocations: 175.6 kB / 471.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002541/0.1559, allocations: 115.6 kB / 471.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005513/0.1565, allocations: 174.6 kB / 471.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000412/0.1569, allocations: 259.3 kB / 472.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.1571, allocations: 29.67 kB / 472.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001811/0.1572, allocations: 99.61 kB / 472.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000141/0.1574, allocations: 107.6 kB / 472.4 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.447e-05/0.1574, allocations: 12 kB / 472.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001417/0.1576, allocations: 51.97 kB / 472.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.361e-05/0.1577, allocations: 63.75 kB / 472.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001159/0.1578, allocations: 99.47 kB / 472.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003115/0.1581, allocations: 263.4 kB / 472.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.1581, allocations: 3.984 kB / 472.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1581, allocations: 0 / 472.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.137e-06/0.1582, allocations: 0 / 472.9 MB, free: 10.42 MB / 350.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.0009868/0.1591, allocations: 0.6573 MB / 473.6 MB, free: 9.688 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.1592, allocations: 8.031 kB / 473.6 MB, free: 9.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.742e-05/0.1593, allocations: 32.59 kB / 473.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003873/0.1597, allocations: 278.7 kB / 473.9 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/0.1598, allocations: 89.67 kB / 474 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.265e-05/0.1598, allocations: 19.94 kB / 474 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003369/0.1602, allocations: 161 kB / 474.1 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.1602, allocations: 0 / 474.1 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.222e-05/0.1602, allocations: 4 kB / 474.1 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.1602, allocations: 7.984 kB / 474.1 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003299/0.1606, allocations: 95.86 kB / 474.2 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009037/0.1615, allocations: 0.5986 MB / 474.8 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004975/0.162, allocations: 179.9 kB / 475 MB, free: 8.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001843/0.1622, allocations: 90.55 kB / 475.1 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.992e-05/0.1622, allocations: 4 kB / 475.1 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004761/0.1627, allocations: 430.9 kB / 475.5 MB, free: 7.473 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.393e-06/0.1627, allocations: 3.938 kB / 475.5 MB, free: 7.469 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008939/0.1636, allocations: 450.6 kB / 476 MB, free: 7.004 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000152/0.1638, allocations: 217.6 kB / 476.2 MB, free: 6.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003454/0.1641, allocations: 316.9 kB / 476.5 MB, free: 6.426 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.06e-05/0.1642, allocations: 33.7 kB / 476.5 MB, free: 6.387 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.1643, allocations: 136.7 kB / 476.7 MB, free: 6.246 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.372e-05/0.1643, allocations: 51.34 kB / 476.7 MB, free: 6.195 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.129e-05/0.1644, allocations: 49.7 kB / 476.8 MB, free: 6.141 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.1646, allocations: 342.8 kB / 477.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/0.1647, allocations: 55.97 kB / 477.1 MB, free: 5.742 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003658/0.1651, allocations: 154.7 kB / 477.3 MB, free: 5.555 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000456/0.1656, allocations: 358.6 kB / 477.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.1656, allocations: 4 kB / 477.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006127/0.1662, allocations: 350.2 kB / 478 MB, free: 4.766 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.825e-05/0.1663, allocations: 89.09 kB / 478.1 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.1663, allocations: 4 kB / 478.1 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.304e-05/0.1664, allocations: 4 kB / 478.1 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.1665, allocations: 27.92 kB / 478.1 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.356e-05/0.1665, allocations: 4 kB / 478.1 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001472/0.1667, allocations: 19.92 kB / 478.1 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.196e-05/0.1667, allocations: 12 kB / 478.2 MB, free: 4.59 MB / 350.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,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition5,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay1.t_next,onDelay1.delaySignal,onDelay1.y,onDelay1.u,$whenCondition7,$whenCondition6,onDelay2.t_next,onDelay2.delaySignal,onDelay2.y,onDelay2.u,$whenCondition4,$whenCondition3,onDelay3.t_next,onDelay3.delaySignal,onDelay3.y,onDelay3.u,$whenCondition2,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003058/0.167, allocations: 265.6 kB / 478.4 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.776e-05/0.1671, allocations: 39.56 kB / 478.5 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.722e-05/0.1672, allocations: 25.7 kB / 478.5 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.1672, allocations: 0 / 478.5 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.1672, allocations: 4 kB / 478.5 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.1672, allocations: 0 / 478.5 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003421/0.1676, allocations: 293.4 kB / 478.8 MB, free: 3.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1676, allocations: 4 kB / 478.8 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.702e-05/0.1676, allocations: 19.88 kB / 478.8 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.594e-06/0.1676, allocations: 3.938 kB / 478.8 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.506e-05/0.1677, allocations: 8 kB / 478.8 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.1677, allocations: 0 / 478.8 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.1677, allocations: 4.156 kB / 478.8 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007244/0.1684, allocations: 439.4 kB / 479.2 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.344e-05/0.1685, allocations: 104.8 kB / 479.3 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.776e-05/0.1686, allocations: 11.98 kB / 479.3 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.1687, allocations: 16.19 kB / 479.4 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.666e-05/0.1688, allocations: 27.89 kB / 479.4 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.15e-05/0.1688, allocations: 11.98 kB / 479.4 MB, free: 3.203 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002644/0.1691, allocations: 236.4 kB / 479.6 MB, free: 2.973 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1691, allocations: 0 / 479.6 MB, free: 2.973 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003851/0.1695, allocations: 71.94 kB / 479.7 MB, free: 2.902 MB / 350.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,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001115/0.1706, allocations: 438.1 kB / 480.1 MB, free: 2.629 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005833/0.1712, allocations: 382 kB / 480.5 MB, free: 2.219 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.1712, allocations: 0 / 480.5 MB, free: 2.219 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003684/0.1716, allocations: 346.5 kB / 480.8 MB, free: 1.844 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003773/0.172, allocations: 67.98 kB / 480.9 MB, free: 1.781 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008291/0.1728, allocations: 495.1 kB / 481.4 MB, free: 1.266 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003315/0.1732, allocations: 0.7559 MB / 482.2 MB, free: 492 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.902e-05/0.1733, allocations: 21.55 kB / 482.2 MB, free: 472 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.683e-05/0.1734, allocations: 27.42 kB / 482.2 MB, free: 444 kB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1734, allocations: 0 / 482.2 MB, free: 444 kB / 350.1 MB Notification: Performance of Templates: time 0.007102/0.1805, allocations: 3.175 MB / 485.4 MB, free: 13.27 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches