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.001479/0.00148, allocations: 105.4 kB / 18.4 MB, free: 4.57 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.001681/0.001681, allocations: 188 kB / 19.34 MB, free: 3.641 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.334/1.334, allocations: 222.9 MB / 243 MB, free: 15.08 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.2028/0.2028, allocations: 44.17 MB / 337.4 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 55.12 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.1452, allocations: 60.84 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.005027/0.1503, allocations: 1.88 MB / 472.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002511/0.1528, allocations: 1.04 MB / 473.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.153, allocations: 7.938 kB / 473.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000824/0.1538, allocations: 179.5 kB / 473.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004186/0.1543, allocations: 131.5 kB / 473.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006702/0.1549, allocations: 190.4 kB / 474.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004628/0.1554, allocations: 287.3 kB / 474.4 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001451/0.1556, allocations: 21.69 kB / 474.4 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001789/0.1558, allocations: 111.7 kB / 474.5 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002037/0.156, allocations: 111.6 kB / 474.6 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.288e-05/0.156, allocations: 20 kB / 474.7 MB, free: 9.688 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000189/0.1562, allocations: 67.91 kB / 474.7 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.1564, allocations: 63.81 kB / 474.8 MB, free: 9.559 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001689/0.1566, allocations: 115.4 kB / 474.9 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004383/0.157, allocations: 275.1 kB / 475.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.247e-06/0.157, allocations: 0 / 475.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.157, allocations: 0 / 475.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.157, allocations: 0 / 475.2 MB, free: 9.176 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.001208/0.1583, allocations: 0.6611 MB / 475.8 MB, free: 8.441 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/0.1583, allocations: 8.031 kB / 475.8 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.1584, allocations: 28.66 kB / 475.9 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005237/0.159, allocations: 274.7 kB / 476.1 MB, free: 8.098 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001369/0.1591, allocations: 101.7 kB / 476.2 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.014e-05/0.1592, allocations: 19.94 kB / 476.3 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004093/0.1596, allocations: 153 kB / 476.4 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.1596, allocations: 3.938 kB / 476.4 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.529e-05/0.1596, allocations: 4 kB / 476.4 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.1597, allocations: 4 kB / 476.4 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003128/0.16, allocations: 91.88 kB / 476.5 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/0.161, allocations: 0.6063 MB / 477.1 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004565/0.1615, allocations: 171.9 kB / 477.3 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002326/0.1617, allocations: 98.53 kB / 477.4 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.953e-05/0.1618, allocations: 0 / 477.4 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005624/0.1623, allocations: 434.7 kB / 477.8 MB, free: 6.227 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 3.597e-06/0.1624, allocations: 112 / 477.8 MB, free: 6.227 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001113/0.1635, allocations: 450.1 kB / 478.2 MB, free: 5.762 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001459/0.1636, allocations: 221.6 kB / 478.5 MB, free: 5.496 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004602/0.1641, allocations: 316.9 kB / 478.8 MB, free: 5.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.415e-05/0.1642, allocations: 33.7 kB / 478.8 MB, free: 5.141 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.1643, allocations: 128.7 kB / 478.9 MB, free: 5.008 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.789e-05/0.1644, allocations: 55.34 kB / 479 MB, free: 4.953 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000114/0.1645, allocations: 53.7 kB / 479 MB, free: 4.895 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.1647, allocations: 334.8 kB / 479.4 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002004/0.1649, allocations: 55.97 kB / 479.4 MB, free: 4.504 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002744/0.1652, allocations: 146.2 kB / 479.6 MB, free: 4.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005246/0.1657, allocations: 358.6 kB / 479.9 MB, free: 3.906 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1657, allocations: 0 / 479.9 MB, free: 3.906 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007393/0.1665, allocations: 351.2 kB / 480.2 MB, free: 3.539 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.898e-05/0.1666, allocations: 105.1 kB / 480.4 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.1666, allocations: 0 / 480.4 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.127e-05/0.1666, allocations: 11.92 kB / 480.4 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001383/0.1668, allocations: 19.94 kB / 480.4 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.552e-05/0.1668, allocations: 7.984 kB / 480.4 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001796/0.167, allocations: 19.94 kB / 480.4 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.694e-05/0.167, allocations: 8 kB / 480.4 MB, free: 3.352 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.0002763/0.1673, allocations: 265.5 kB / 480.7 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.989e-05/0.1674, allocations: 39.56 kB / 480.7 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.147e-05/0.1675, allocations: 25.7 kB / 480.7 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.1675, allocations: 4 kB / 480.7 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.1675, allocations: 0 / 480.7 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.1675, allocations: 0 / 480.7 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003578/0.1679, allocations: 297.4 kB / 481 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.1679, allocations: 0 / 481 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.09e-05/0.168, allocations: 7.938 kB / 481 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.168, allocations: 0 / 481 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.61e-05/0.168, allocations: 15.98 kB / 481.1 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.168, allocations: 4 kB / 481.1 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.168, allocations: 3.938 kB / 481.1 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008841/0.1689, allocations: 431.5 kB / 481.5 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.573e-05/0.169, allocations: 112.7 kB / 481.6 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.925e-05/0.1691, allocations: 12 kB / 481.6 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001774/0.1693, allocations: 19.98 kB / 481.6 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.049e-05/0.1694, allocations: 19.92 kB / 481.6 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.292e-05/0.1695, allocations: 16 kB / 481.7 MB, free: 1.965 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003246/0.1698, allocations: 232.4 kB / 481.9 MB, free: 1.738 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1698, allocations: 0 / 481.9 MB, free: 1.738 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005246/0.1703, allocations: 67.94 kB / 482 MB, free: 1.672 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.001431/0.1718, allocations: 430.4 kB / 482.4 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008135/0.1726, allocations: 390 kB / 482.8 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.1726, allocations: 4 kB / 482.8 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005302/0.1732, allocations: 334.1 kB / 483.1 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005073/0.1737, allocations: 68.73 kB / 483.2 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.1748, allocations: 457.3 kB / 483.6 MB, free: 84 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004446/0.1752, allocations: 0.7517 MB / 484.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001318/0.1754, allocations: 37.81 kB / 484.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.737e-05/0.1755, allocations: 19.44 kB / 484.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1755, allocations: 0 / 484.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of Templates: time 0.01026/0.1858, allocations: 3.45 MB / 487.9 MB, free: 11.81 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches