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.0009475/0.0009476, allocations: 93.3 kB / 16.98 MB, free: 5.938 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.001114/0.001114, allocations: 185.8 kB / 17.87 MB, free: 5.594 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.396/1.396, allocations: 223.2 MB / 241.8 MB, free: 14.65 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.2446/0.2446, allocations: 44.21 MB / 337.1 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003351/0.0003351, allocations: 12 kB / 409.5 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1471, allocations: 61.91 MB / 471.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002525/0.1497, allocations: 1.534 MB / 473 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001564/0.1513, allocations: 0.9245 MB / 473.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.1514, allocations: 11.94 kB / 473.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006937/0.1521, allocations: 167.5 kB / 474.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002576/0.1524, allocations: 111.7 kB / 474.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000522/0.1529, allocations: 150.3 kB / 474.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000227/0.1531, allocations: 159.7 kB / 474.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.1533, allocations: 29.67 kB / 474.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001321/0.1534, allocations: 91.67 kB / 474.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001471/0.1536, allocations: 107.6 kB / 474.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.784e-05/0.1536, allocations: 8 kB / 474.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001387/0.1538, allocations: 39.86 kB / 474.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.257e-05/0.1539, allocations: 55.88 kB / 474.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.271e-05/0.1539, allocations: 61.58 kB / 474.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002598/0.1542, allocations: 203.8 kB / 475.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.1542, allocations: 0 / 475.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1542, allocations: 0 / 475.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.1542, allocations: 0 / 475.1 MB, free: 10.08 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.0009621/0.1552, allocations: 0.626 MB / 475.7 MB, free: 9.383 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.1553, allocations: 8.031 kB / 475.7 MB, free: 9.375 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.246e-05/0.1553, allocations: 27.72 kB / 475.7 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000381/0.1557, allocations: 265.7 kB / 476 MB, free: 9.047 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001155/0.1558, allocations: 93.11 kB / 476.1 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.901e-05/0.1559, allocations: 15.95 kB / 476.1 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003415/0.1562, allocations: 171.6 kB / 476.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.1563, allocations: 0 / 476.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/0.1563, allocations: 8 kB / 476.3 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.1563, allocations: 0 / 476.3 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002371/0.1565, allocations: 99.86 kB / 476.4 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008968/0.1574, allocations: 0.6141 MB / 477 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003546/0.1578, allocations: 175.9 kB / 477.2 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.1578, allocations: 4 kB / 477.2 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004601/0.1583, allocations: 441.2 kB / 477.6 MB, free: 7.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.854e-06/0.1583, allocations: 0 / 477.6 MB, free: 7.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.000918/0.1593, allocations: 0.6657 MB / 478.3 MB, free: 6.504 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/0.1594, allocations: 213.6 kB / 478.5 MB, free: 6.246 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003479/0.1597, allocations: 320.9 kB / 478.8 MB, free: 5.926 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.545e-05/0.1598, allocations: 33.7 kB / 478.8 MB, free: 5.887 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.1599, allocations: 128.7 kB / 478.9 MB, free: 5.754 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.825e-05/0.16, allocations: 55.34 kB / 479 MB, free: 5.699 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.159e-05/0.16, allocations: 4 kB / 479 MB, free: 5.695 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.1602, allocations: 342.8 kB / 479.3 MB, free: 5.352 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.1603, allocations: 60.16 kB / 479.4 MB, free: 5.293 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001996/0.1605, allocations: 147.1 kB / 479.5 MB, free: 5.113 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002052/0.1607, allocations: 161.3 kB / 479.7 MB, free: 4.938 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.1607, allocations: 4.031 kB / 479.7 MB, free: 4.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005248/0.1613, allocations: 342.2 kB / 480 MB, free: 4.574 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.288e-05/0.1614, allocations: 101.1 kB / 480.1 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.1614, allocations: 0 / 480.1 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.1614, allocations: 4 kB / 480.1 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.1615, allocations: 20.2 kB / 480.1 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.956e-06/0.1615, allocations: 11.94 kB / 480.2 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001322/0.1617, allocations: 27.84 kB / 480.2 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.947e-05/0.1617, allocations: 11.98 kB / 480.2 MB, free: 4.383 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.0002467/0.1619, allocations: 269.4 kB / 480.5 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.67e-05/0.162, allocations: 31.72 kB / 480.5 MB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.658e-05/0.1621, allocations: 29.7 kB / 480.5 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.1621, allocations: 4 kB / 480.5 MB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1621, allocations: 0 / 480.5 MB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.1621, allocations: 3.984 kB / 480.5 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002667/0.1624, allocations: 293.3 kB / 480.8 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1624, allocations: 4 kB / 480.8 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.838e-05/0.1624, allocations: 4 kB / 480.8 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.1624, allocations: 0 / 480.8 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.522e-05/0.1624, allocations: 15.98 kB / 480.8 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.1624, allocations: 3.938 kB / 480.8 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1624, allocations: 4 kB / 480.8 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005859/0.163, allocations: 473.4 kB / 481.3 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.258e-05/0.1631, allocations: 109 kB / 481.4 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.221e-05/0.1632, allocations: 12 kB / 481.4 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.1633, allocations: 19.98 kB / 481.4 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.291e-05/0.1634, allocations: 23.95 kB / 481.5 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.8e-05/0.1634, allocations: 12 kB / 481.5 MB, free: 2.949 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002179/0.1636, allocations: 236.4 kB / 481.7 MB, free: 2.719 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1637, allocations: 0 / 481.7 MB, free: 2.719 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000306/0.164, allocations: 60 kB / 481.8 MB, free: 2.66 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.00134/0.1653, allocations: 436.3 kB / 482.2 MB, free: 2.387 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008371/0.1662, allocations: 398 kB / 482.6 MB, free: 1.961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1662, allocations: 448 / 482.6 MB, free: 1.961 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005116/0.1667, allocations: 350.1 kB / 482.9 MB, free: 1.582 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004799/0.1672, allocations: 50.94 kB / 483 MB, free: 1.535 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00116/0.1684, allocations: 472.6 kB / 483.4 MB, free: 1.039 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006278/0.169, allocations: 0.7598 MB / 484.2 MB, free: 260 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001383/0.1692, allocations: 29.53 kB / 484.2 MB, free: 232 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.823e-05/0.1693, allocations: 23.42 kB / 484.3 MB, free: 208 kB / 350.1 MB Notification: Performance of SimCode: time 8.32e-07/0.1693, allocations: 0 / 484.3 MB, free: 208 kB / 350.1 MB Notification: Performance of Templates: time 0.01078/0.1801, allocations: 3.059 MB / 487.3 MB, free: 13.16 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","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches