Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3.2.3_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_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001264/0.001265, allocations: 103.6 kB / 16.27 MB, free: 5.93 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.00157/0.00157, allocations: 190.1 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.761/1.761, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2334/0.2334, allocations: 43.52 MB / 313.9 MB, free: 0.5156 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001738/0.001738, allocations: 67.38 kB / 382.7 MB, free: 56.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1397, allocations: 57.8 MB / 440.5 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.00402/0.1437, allocations: 1.879 MB / 442.4 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001764/0.1455, allocations: 0.9519 MB / 443.3 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002394/0.1458, allocations: 0 / 443.3 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008132/0.1466, allocations: 191.4 kB / 443.5 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004023/0.1471, allocations: 127.5 kB / 443.7 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00062/0.1477, allocations: 171.3 kB / 443.8 MB, free: 3.574 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004553/0.1482, allocations: 275.4 kB / 444.1 MB, free: 3.305 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001959/0.1484, allocations: 45.89 kB / 444.1 MB, free: 3.258 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002439/0.1486, allocations: 103.7 kB / 444.2 MB, free: 3.156 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001999/0.1488, allocations: 115.5 kB / 444.3 MB, free: 3.043 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.62e-05/0.1489, allocations: 16 kB / 444.4 MB, free: 3.027 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002057/0.1491, allocations: 55.98 kB / 444.4 MB, free: 2.973 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.1492, allocations: 67.8 kB / 444.5 MB, free: 2.906 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001307/0.1494, allocations: 107.4 kB / 444.6 MB, free: 2.801 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004272/0.1498, allocations: 275.1 kB / 444.9 MB, free: 2.531 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1498, allocations: 0 / 444.9 MB, free: 2.531 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1498, allocations: 4 kB / 444.9 MB, free: 2.527 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.1498, allocations: 0 / 444.9 MB, free: 2.527 MB / 318.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.001078/0.1509, allocations: 0.6533 MB / 445.5 MB, free: 1.801 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.151, allocations: 11.89 kB / 445.5 MB, free: 1.789 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001073/0.1511, allocations: 28.66 kB / 445.6 MB, free: 1.762 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003788/0.1515, allocations: 282.6 kB / 445.8 MB, free: 1.449 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.947e-05/0.1516, allocations: 93.67 kB / 445.9 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.02e-05/0.1516, allocations: 23.94 kB / 445.9 MB, free: 1.316 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003327/0.1519, allocations: 150.3 kB / 446.1 MB, free: 1.152 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.152, allocations: 3.938 kB / 446.1 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.611e-05/0.152, allocations: 11.98 kB / 446.1 MB, free: 1.137 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.152, allocations: 7.938 kB / 446.1 MB, free: 1.129 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002292/0.1522, allocations: 91.86 kB / 446.2 MB, free: 1.039 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007888/0.153, allocations: 0.6063 MB / 446.8 MB, free: 384 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003222/0.1534, allocations: 179.9 kB / 447 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001476/0.1535, allocations: 86.55 kB / 447.1 MB, free: 80 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.652e-05/0.1536, allocations: 3.938 kB / 447.1 MB, free: 76 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005264/0.1541, allocations: 435.1 kB / 447.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 2.975e-06/0.1541, allocations: 0 / 447.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008782/0.155, allocations: 446.6 kB / 447.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001381/0.1552, allocations: 225.6 kB / 448.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003784/0.1556, allocations: 309 kB / 448.5 MB, free: 14.53 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.104e-05/0.1556, allocations: 37.7 kB / 448.5 MB, free: 14.49 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.829e-05/0.1557, allocations: 132.5 kB / 448.6 MB, free: 14.36 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.593e-05/0.1558, allocations: 55.34 kB / 448.7 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.475e-05/0.1559, allocations: 53.69 kB / 448.7 MB, free: 14.24 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.156, allocations: 334.8 kB / 449.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001585/0.1562, allocations: 59.97 kB / 449.1 MB, free: 13.85 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000194/0.1564, allocations: 138.3 kB / 449.3 MB, free: 13.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004062/0.1568, allocations: 366.9 kB / 449.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.1568, allocations: 4 kB / 449.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005665/0.1574, allocations: 346.1 kB / 450 MB, free: 12.88 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.033e-05/0.1575, allocations: 97.09 kB / 450 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.1575, allocations: 0 / 450 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.1575, allocations: 4 kB / 450.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.1576, allocations: 23.92 kB / 450.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.1577, allocations: 4.219 kB / 450.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001504/0.1578, allocations: 27.89 kB / 450.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.296e-05/0.1578, allocations: 12 kB / 450.1 MB, free: 12.7 MB / 334.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.0002505/0.1581, allocations: 277.3 kB / 450.4 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.183e-05/0.1582, allocations: 31.66 kB / 450.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.788e-05/0.1582, allocations: 21.88 kB / 450.4 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.1583, allocations: 7.984 kB / 450.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.1583, allocations: 4 kB / 450.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.1583, allocations: 0 / 450.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003292/0.1586, allocations: 289.4 kB / 450.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1586, allocations: 0 / 450.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.745e-05/0.1587, allocations: 11.92 kB / 450.7 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.1587, allocations: 0 / 450.7 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.671e-05/0.1587, allocations: 8 kB / 450.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.492e-06/0.1587, allocations: 4 kB / 450.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.1587, allocations: 7.922 kB / 450.8 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007236/0.1595, allocations: 447.4 kB / 451.2 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.849e-05/0.1596, allocations: 108.9 kB / 451.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.069e-05/0.1596, allocations: 15.94 kB / 451.3 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/0.1598, allocations: 15.98 kB / 451.3 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.1599, allocations: 23.95 kB / 451.4 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.385e-05/0.1599, allocations: 19.98 kB / 451.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002601/0.1602, allocations: 232.5 kB / 451.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1602, allocations: 0 / 451.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003698/0.1606, allocations: 67.98 kB / 451.7 MB, free: 11 MB / 334.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.001165/0.1617, allocations: 429 kB / 452.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000782/0.1625, allocations: 406 kB / 452.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.1626, allocations: 0 / 452.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004632/0.163, allocations: 346.1 kB / 452.8 MB, free: 9.852 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003809/0.1634, allocations: 61.02 kB / 452.9 MB, free: 9.793 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000938/0.1644, allocations: 453.7 kB / 453.3 MB, free: 9.32 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004388/0.1648, allocations: 0.7479 MB / 454.1 MB, free: 8.547 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001104/0.1649, allocations: 25.55 kB / 454.1 MB, free: 8.523 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.454e-05/0.165, allocations: 23.44 kB / 454.1 MB, free: 8.5 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.165, allocations: 0 / 454.1 MB, free: 8.5 MB / 334.1 MB Notification: Performance of Templates: time 0.008568/0.1736, allocations: 3.461 MB / 457.6 MB, free: 5.047 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches