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.0009139/0.0009139, allocations: 93.61 kB / 17 MB, free: 6.113 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.001005/0.001005, allocations: 181.5 kB / 17.89 MB, free: 5.691 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.53/1.53, allocations: 223.3 MB / 241.9 MB, free: 252 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.242/0.242, allocations: 44.25 MB / 337.3 MB, free: 2.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003465/0.0003466, allocations: 9.625 kB / 409.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1516/0.1519, allocations: 61.93 MB / 471.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002859/0.1548, allocations: 1.545 MB / 473.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001913/0.1568, allocations: 0.9556 MB / 474.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002247/0.1571, allocations: 4 kB / 474.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009113/0.158, allocations: 163.6 kB / 474.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000472/0.1585, allocations: 115.6 kB / 474.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006525/0.1591, allocations: 155.2 kB / 474.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004548/0.1596, allocations: 231.4 kB / 474.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001559/0.1598, allocations: 49.5 kB / 474.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002636/0.1601, allocations: 91.67 kB / 474.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002274/0.1603, allocations: 99.64 kB / 475 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.37e-05/0.1603, allocations: 11.94 kB / 475 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001861/0.1605, allocations: 47.92 kB / 475 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001186/0.1607, allocations: 55.8 kB / 475.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001174/0.1608, allocations: 69.58 kB / 475.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003912/0.1612, allocations: 207.8 kB / 475.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.1612, allocations: 0 / 475.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.1612, allocations: 0 / 475.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.359e-05/0.1612, allocations: 0 / 475.4 MB, free: 9.918 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.0012/0.1624, allocations: 0.6143 MB / 476 MB, free: 9.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.1625, allocations: 12.02 kB / 476 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.1626, allocations: 31.72 kB / 476 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004454/0.1631, allocations: 261.7 kB / 476.3 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001272/0.1632, allocations: 93.11 kB / 476.4 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.562e-05/0.1633, allocations: 23.94 kB / 476.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004078/0.1637, allocations: 156.4 kB / 476.5 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.1637, allocations: 7.938 kB / 476.6 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.185e-05/0.1638, allocations: 4 kB / 476.6 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.1638, allocations: 0 / 476.6 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003537/0.1641, allocations: 91.94 kB / 476.6 MB, free: 8.488 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.1652, allocations: 0.6141 MB / 477.3 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003915/0.1656, allocations: 183.9 kB / 477.4 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000193/0.1659, allocations: 90.55 kB / 477.5 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.601e-05/0.1659, allocations: 3.984 kB / 477.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006015/0.1665, allocations: 441 kB / 478 MB, free: 7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.214e-06/0.1665, allocations: 0 / 478 MB, free: 7 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001103/0.1676, allocations: 438.4 kB / 478.4 MB, free: 6.547 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001749/0.1678, allocations: 225.6 kB / 478.6 MB, free: 6.277 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004594/0.1683, allocations: 312.9 kB / 478.9 MB, free: 5.965 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.139e-05/0.1684, allocations: 37.69 kB / 479 MB, free: 5.922 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001324/0.1685, allocations: 128.7 kB / 479.1 MB, free: 5.789 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.052e-05/0.1686, allocations: 51.34 kB / 479.1 MB, free: 5.738 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.71e-05/0.1686, allocations: 8 kB / 479.1 MB, free: 5.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000193/0.1688, allocations: 342.8 kB / 479.5 MB, free: 5.387 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000168/0.169, allocations: 64.09 kB / 479.5 MB, free: 5.324 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002113/0.1692, allocations: 139.2 kB / 479.7 MB, free: 5.152 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002349/0.1694, allocations: 157 kB / 479.8 MB, free: 4.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-06/0.1695, allocations: 0 / 479.8 MB, free: 4.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006147/0.1701, allocations: 346.5 kB / 480.2 MB, free: 4.617 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.131e-05/0.1702, allocations: 101.1 kB / 480.3 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.1702, allocations: 0 / 480.3 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/0.1702, allocations: 4 kB / 480.3 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.1703, allocations: 23.94 kB / 480.3 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/0.1704, allocations: 11.92 kB / 480.3 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001611/0.1705, allocations: 28.06 kB / 480.3 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.255e-05/0.1706, allocations: 12 kB / 480.3 MB, free: 4.422 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,$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.0002847/0.1709, allocations: 273.6 kB / 480.6 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.385e-05/0.1709, allocations: 32.09 kB / 480.6 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.4e-05/0.171, allocations: 25.7 kB / 480.7 MB, free: 4.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.171, allocations: 4 kB / 480.7 MB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.1711, allocations: 7.938 kB / 480.7 MB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.1711, allocations: 4 kB / 480.7 MB, free: 4.055 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003415/0.1714, allocations: 297.3 kB / 481 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.1714, allocations: 0 / 481 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.424e-05/0.1715, allocations: 7.938 kB / 481 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.1715, allocations: 0 / 481 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.233e-05/0.1715, allocations: 15.98 kB / 481 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.688e-06/0.1715, allocations: 4 kB / 481 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1715, allocations: 0 / 481 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007186/0.1723, allocations: 447.4 kB / 481.4 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.671e-05/0.1724, allocations: 104.8 kB / 481.5 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.689e-05/0.1724, allocations: 8 kB / 481.5 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001244/0.1726, allocations: 23.98 kB / 481.6 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.035e-05/0.1727, allocations: 27.91 kB / 481.6 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.65e-05/0.1727, allocations: 12 kB / 481.6 MB, free: 3.016 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000268/0.173, allocations: 232.4 kB / 481.8 MB, free: 2.789 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.173, allocations: 0 / 481.8 MB, free: 2.789 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000365/0.1734, allocations: 64 kB / 481.9 MB, free: 2.727 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 (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.001136/0.1745, allocations: 426.5 kB / 482.3 MB, free: 2.461 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006179/0.1752, allocations: 394 kB / 482.7 MB, free: 2.039 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.1752, allocations: 0 / 482.7 MB, free: 2.039 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000498/0.1757, allocations: 350.1 kB / 483 MB, free: 1.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004475/0.1761, allocations: 70.95 kB / 483.1 MB, free: 1.594 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001122/0.1773, allocations: 484.4 kB / 483.6 MB, free: 1.086 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005567/0.1778, allocations: 0.7521 MB / 484.3 MB, free: 316 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001301/0.178, allocations: 30.2 kB / 484.4 MB, free: 288 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.138e-05/0.1781, allocations: 15.44 kB / 484.4 MB, free: 272 kB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1781, allocations: 0 / 484.4 MB, free: 272 kB / 350.1 MB Notification: Performance of Templates: time 0.008127/0.1862, allocations: 3.069 MB / 487.4 MB, free: 13.21 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