Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001812/0.001812, allocations: 112.5 kB / 18.45 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002382/0.002382, allocations: 207.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.478/1.478, allocations: 230.6 MB / 254.8 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2214/0.2214, allocations: 46.92 MB / 357.8 MB, free: 10.3 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5020,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.1.0_ModelicaTest.Blocks.OnDelay") translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5020,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.1.0_ModelicaTest.Blocks.OnDelay") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 67.91 kB / 0.4921 GB, free: 7.449 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1433, allocations: 66 MB / 0.5565 GB, free: 5.324 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003696/0.147, allocations: 1.92 MB / 0.5584 GB, free: 3.387 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002138/0.1491, allocations: 1.189 MB / 0.5595 GB, free: 2.191 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001349/0.1492, allocations: 4 kB / 0.5595 GB, free: 2.188 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007647/0.15, allocations: 187.4 kB / 0.5597 GB, free: 2.004 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004287/0.1504, allocations: 159.3 kB / 0.5599 GB, free: 1.848 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004774/0.1509, allocations: 175.5 kB / 0.56 GB, free: 1.676 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003733/0.1513, allocations: 267.3 kB / 0.5603 GB, free: 1.414 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.1514, allocations: 25.67 kB / 0.5603 GB, free: 1.391 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001727/0.1516, allocations: 123.5 kB / 0.5604 GB, free: 1.27 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001762/0.1518, allocations: 119.6 kB / 0.5606 GB, free: 1.152 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.421e-05/0.1518, allocations: 16 kB / 0.5606 GB, free: 1.137 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001687/0.152, allocations: 71.95 kB / 0.5606 GB, free: 1.066 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.381e-05/0.152, allocations: 67.75 kB / 0.5607 GB, free: 1 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001368/0.1522, allocations: 111.4 kB / 0.5608 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004056/0.1526, allocations: 278.9 kB / 0.5611 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1526, allocations: 4 kB / 0.5611 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1526, allocations: 0 / 0.5611 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.1526, allocations: 4 kB / 0.5611 GB, free: 0.6094 MB / 414.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.001127/0.1537, allocations: 0.6802 MB / 0.5617 GB, free: 15.86 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.1538, allocations: 9.109 kB / 0.5618 GB, free: 15.85 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.947e-05/0.1538, allocations: 28.8 kB / 0.5618 GB, free: 15.82 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003977/0.1542, allocations: 275.9 kB / 0.562 GB, free: 15.51 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/0.1544, allocations: 97.66 kB / 0.5621 GB, free: 15.4 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.331e-05/0.1544, allocations: 19.88 kB / 0.5622 GB, free: 15.38 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000354/0.1547, allocations: 161 kB / 0.5623 GB, free: 15.2 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.1548, allocations: 0 / 0.5623 GB, free: 15.2 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.184e-05/0.1548, allocations: 8 kB / 0.5623 GB, free: 15.2 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.1548, allocations: 0 / 0.5623 GB, free: 15.2 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002508/0.155, allocations: 95.86 kB / 0.5624 GB, free: 15.1 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009047/0.1559, allocations: 0.6063 MB / 0.563 GB, free: 14.44 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000356/0.1563, allocations: 151.9 kB / 0.5631 GB, free: 14.26 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001715/0.1565, allocations: 78.53 kB / 0.5632 GB, free: 14.18 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.923e-05/0.1565, allocations: 0 / 0.5632 GB, free: 14.18 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005269/0.157, allocations: 433.1 kB / 0.5636 GB, free: 13.68 MB / 430.1 MB Notification: Performance of pre-optimization done (n=23): time 3.487e-06/0.157, allocations: 7.984 kB / 0.5636 GB, free: 13.67 MB / 430.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009627/0.158, allocations: 446.5 kB / 0.5641 GB, free: 13.21 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001542/0.1581, allocations: 213.6 kB / 0.5643 GB, free: 12.95 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003954/0.1585, allocations: 330.6 kB / 0.5646 GB, free: 12.62 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.011e-05/0.1586, allocations: 33.7 kB / 0.5646 GB, free: 12.58 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.1587, allocations: 136.7 kB / 0.5648 GB, free: 12.44 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.003e-05/0.1587, allocations: 55.58 kB / 0.5648 GB, free: 12.39 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.363e-05/0.1588, allocations: 49.7 kB / 0.5649 GB, free: 12.33 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.159, allocations: 342.8 kB / 0.5652 GB, free: 11.99 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000148/0.1592, allocations: 55.95 kB / 0.5652 GB, free: 11.93 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002291/0.1594, allocations: 152.5 kB / 0.5654 GB, free: 11.75 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004397/0.1598, allocations: 355 kB / 0.5657 GB, free: 11.34 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.1598, allocations: 4 kB / 0.5657 GB, free: 11.33 MB / 430.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005736/0.1604, allocations: 358.2 kB / 0.5661 GB, free: 10.96 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.037e-05/0.1605, allocations: 97.08 kB / 0.5662 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.1605, allocations: 0 / 0.5662 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.1605, allocations: 4 kB / 0.5662 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.1606, allocations: 20 kB / 0.5662 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.263e-05/0.1606, allocations: 11.92 kB / 0.5662 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001324/0.1608, allocations: 19.89 kB / 0.5662 GB, free: 10.79 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.315e-05/0.1608, allocations: 16.22 kB / 0.5662 GB, free: 10.77 MB / 430.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.0002489/0.161, allocations: 259.7 kB / 0.5665 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.612e-05/0.1611, allocations: 35.8 kB / 0.5665 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.352e-05/0.1612, allocations: 25.7 kB / 0.5665 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.1612, allocations: 7.938 kB / 0.5665 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.1612, allocations: 0 / 0.5665 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.1612, allocations: 0 / 0.5665 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003413/0.1615, allocations: 301.4 kB / 0.5668 GB, free: 10.08 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1615, allocations: 7.938 kB / 0.5668 GB, free: 10.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.588e-05/0.1616, allocations: 15.92 kB / 0.5668 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.1616, allocations: 7.938 kB / 0.5669 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.414e-05/0.1616, allocations: 8 kB / 0.5669 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.1616, allocations: 0 / 0.5669 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1616, allocations: 0 / 0.5669 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000702/0.1623, allocations: 454.6 kB / 0.5673 GB, free: 9.555 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.88e-05/0.1624, allocations: 100.9 kB / 0.5674 GB, free: 9.438 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.185e-05/0.1624, allocations: 12 kB / 0.5674 GB, free: 9.426 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.1626, allocations: 15.98 kB / 0.5674 GB, free: 9.41 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.547e-05/0.1626, allocations: 19.98 kB / 0.5674 GB, free: 9.391 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-05/0.1627, allocations: 15.98 kB / 0.5675 GB, free: 9.375 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002759/0.1629, allocations: 241.9 kB / 0.5677 GB, free: 9.137 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1629, allocations: 0 / 0.5677 GB, free: 9.137 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003283/0.1633, allocations: 71.89 kB / 0.5678 GB, free: 9.066 MB / 430.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.001594/0.1649, allocations: 443.1 kB / 0.5682 GB, free: 8.785 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006336/0.1655, allocations: 361.9 kB / 0.5685 GB, free: 8.395 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1655, allocations: 448 / 0.5685 GB, free: 8.395 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003555/0.1659, allocations: 274.4 kB / 0.5688 GB, free: 8.09 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003678/0.1662, allocations: 59.09 kB / 0.5688 GB, free: 8.039 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009562/0.1672, allocations: 490.8 kB / 0.5693 GB, free: 7.52 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004241/0.1676, allocations: 0.7518 MB / 0.57 GB, free: 6.738 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.628e-05/0.1677, allocations: 23.42 kB / 0.5701 GB, free: 6.719 MB / 430.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1677, allocations: 0 / 0.5701 GB, free: 6.719 MB / 430.1 MB Notification: Performance of Templates: time 0.006947/0.1746, allocations: 3.589 MB / 0.5736 GB, free: 3.137 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.105046470009256]