Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001543/0.001543, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001695/0.001695, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 230.3 MB / 258 MB, free: 8.223 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2066/0.2066, allocations: 46.89 MB / 361.3 MB, free: 4.453 MB / 286.1 MB
"
[Timeout remaining time 180]
Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo)
Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.OnDelay") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002259/0.002259, allocations: 83.81 kB / 0.497 GB, free: 7.613 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2643, allocations: 66.03 MB / 0.5615 GB, free: 4.637 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003517/0.2678, allocations: 1.924 MB / 0.5634 GB, free: 2.703 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002057/0.2699, allocations: 1.212 MB / 0.5646 GB, free: 1.484 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001046/0.27, allocations: 3.938 kB / 0.5646 GB, free: 1.48 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0006593/0.2707, allocations: 195.4 kB / 0.5648 GB, free: 1.289 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.000443/0.2711, allocations: 167.3 kB / 0.5649 GB, free: 1.125 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004307/0.2715, allocations: 163.6 kB / 0.5651 GB, free: 0.9648 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0003764/0.2719, allocations: 283.3 kB / 0.5654 GB, free: 0.6875 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001058/0.272, allocations: 21.8 kB / 0.5654 GB, free: 0.6641 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001754/0.2722, allocations: 115.6 kB / 0.5655 GB, free: 0.5508 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001897/0.2724, allocations: 123.5 kB / 0.5656 GB, free: 440 kB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 4.047e-05/0.2724, allocations: 20 kB / 0.5656 GB, free: 420 kB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.000162/0.2726, allocations: 67.95 kB / 0.5657 GB, free: 352 kB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.2727, allocations: 67.83 kB / 0.5658 GB, free: 284 kB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001291/0.2728, allocations: 115.3 kB / 0.5659 GB, free: 168 kB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.000403/0.2732, allocations: 285.4 kB / 0.5661 GB, free: 15.89 MB / 414.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2732, allocations: 4 kB / 0.5661 GB, free: 15.89 MB / 414.1 MB
Notification: Performance of FrontEnd: time 1.082e-06/0.2732, allocations: 0 / 0.5661 GB, free: 15.89 MB / 414.1 MB
Notification: Performance of Transformations before backend: time 7.414e-06/0.2732, allocations: 0 / 0.5661 GB, free: 15.89 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.000954/0.2742, allocations: 0.5972 MB / 0.5667 GB, free: 15.23 MB / 414.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.2742, allocations: 11.97 kB / 0.5667 GB, free: 15.22 MB / 414.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.987e-05/0.2743, allocations: 32.8 kB / 0.5668 GB, free: 15.19 MB / 414.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003632/0.2747, allocations: 225.5 kB / 0.567 GB, free: 14.94 MB / 414.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001074/0.2748, allocations: 93.66 kB / 0.5671 GB, free: 14.83 MB / 414.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.118e-05/0.2748, allocations: 16.38 kB / 0.5671 GB, free: 14.82 MB / 414.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003517/0.2752, allocations: 168.6 kB / 0.5673 GB, free: 14.64 MB / 414.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.2752, allocations: 0 / 0.5673 GB, free: 14.64 MB / 414.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.075e-05/0.2752, allocations: 8 kB / 0.5673 GB, free: 14.63 MB / 414.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.2752, allocations: 4 kB / 0.5673 GB, free: 14.62 MB / 414.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002369/0.2754, allocations: 87.88 kB / 0.5674 GB, free: 14.54 MB / 414.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008629/0.2763, allocations: 0.582 MB / 0.5679 GB, free: 13.91 MB / 414.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003425/0.2766, allocations: 155.9 kB / 0.5681 GB, free: 13.73 MB / 414.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/0.2768, allocations: 78.52 kB / 0.5681 GB, free: 13.64 MB / 414.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.2768, allocations: 4 kB / 0.5681 GB, free: 13.64 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004859/0.2773, allocations: 433.1 kB / 0.5686 GB, free: 13.14 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=23): time 1.553e-06/0.2773, allocations: 0 / 0.5686 GB, free: 13.14 MB / 414.1 MB
Notification: Performance of matching and sorting (n=23): time 0.0008883/0.2782, allocations: 446.8 kB / 0.569 GB, free: 12.68 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001392/0.2783, allocations: 217.6 kB / 0.5692 GB, free: 12.41 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003804/0.2787, allocations: 329.8 kB / 0.5695 GB, free: 12.09 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.486e-05/0.2788, allocations: 33.7 kB / 0.5695 GB, free: 12.05 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.2789, allocations: 128.6 kB / 0.5697 GB, free: 11.92 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 6.495e-05/0.2789, allocations: 55.58 kB / 0.5697 GB, free: 11.86 MB / 414.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 8.81e-05/0.279, allocations: 57.69 kB / 0.5698 GB, free: 11.8 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001547/0.2792, allocations: 338.8 kB / 0.5701 GB, free: 11.46 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001558/0.2793, allocations: 59.95 kB / 0.5702 GB, free: 11.4 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002215/0.2795, allocations: 146.7 kB / 0.5703 GB, free: 11.22 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.000435/0.28, allocations: 363 kB / 0.5706 GB, free: 10.8 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.28, allocations: 0 / 0.5706 GB, free: 10.8 MB / 414.1 MB
Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005711/0.2806, allocations: 346.4 kB / 0.571 GB, free: 10.44 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 7.175e-05/0.2806, allocations: 99.44 kB / 0.5711 GB, free: 10.32 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.2806, allocations: 3.938 kB / 0.5711 GB, free: 10.32 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.2807, allocations: 4.219 kB / 0.5711 GB, free: 10.32 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.977e-05/0.2808, allocations: 27.92 kB / 0.5711 GB, free: 10.29 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.2808, allocations: 4 kB / 0.5711 GB, free: 10.29 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001374/0.2809, allocations: 27.88 kB / 0.5711 GB, free: 10.26 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.982e-05/0.2809, allocations: 8 kB / 0.5711 GB, free: 10.25 MB / 414.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.0002569/0.2812, allocations: 271.2 kB / 0.5714 GB, free: 9.961 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 5.501e-05/0.2812, allocations: 27.86 kB / 0.5714 GB, free: 9.934 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003824/0.2816, allocations: 212.9 kB / 0.5716 GB, free: 9.707 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.2816, allocations: 4 kB / 0.5716 GB, free: 9.703 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.2816, allocations: 0 / 0.5716 GB, free: 9.703 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.2816, allocations: 0 / 0.5716 GB, free: 9.703 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002869/0.2819, allocations: 272.4 kB / 0.5719 GB, free: 9.395 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.2819, allocations: 0 / 0.5719 GB, free: 9.395 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.118e-05/0.2819, allocations: 8 kB / 0.5719 GB, free: 9.387 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2819, allocations: 0 / 0.5719 GB, free: 9.387 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.69e-05/0.282, allocations: 19.86 kB / 0.5719 GB, free: 9.367 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.282, allocations: 0 / 0.5719 GB, free: 9.367 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.282, allocations: 0 / 0.5719 GB, free: 9.367 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006888/0.2827, allocations: 451.5 kB / 0.5723 GB, free: 8.883 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 4.433e-05/0.2827, allocations: 27.78 kB / 0.5724 GB, free: 8.855 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.329e-05/0.2828, allocations: 19.94 kB / 0.5724 GB, free: 8.836 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001319/0.2829, allocations: 19.98 kB / 0.5724 GB, free: 8.816 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.744e-05/0.283, allocations: 23.97 kB / 0.5724 GB, free: 8.793 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.883e-05/0.283, allocations: 15.98 kB / 0.5724 GB, free: 8.777 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 0.0002561/0.2833, allocations: 237.2 kB / 0.5727 GB, free: 8.543 MB / 414.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.2833, allocations: 0 / 0.5727 GB, free: 8.543 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0003181/0.2836, allocations: 71.88 kB / 0.5727 GB, free: 8.473 MB / 414.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,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled)
 * 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.001482/0.2851, allocations: 430.1 kB / 0.5732 GB, free: 8.188 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.0005777/0.2856, allocations: 358 kB / 0.5735 GB, free: 7.801 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2856, allocations: 0 / 0.5735 GB, free: 7.801 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.000343/0.286, allocations: 274 kB / 0.5738 GB, free: 7.496 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003394/0.2863, allocations: 52.47 kB / 0.5738 GB, free: 7.445 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007957/0.2871, allocations: 461.6 kB / 0.5742 GB, free: 6.957 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003874/0.2875, allocations: 0.7479 MB / 0.575 GB, free: 6.176 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 8.79e-05/0.2876, allocations: 30.31 kB / 0.575 GB, free: 6.148 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.101e-05/0.2876, allocations: 27.42 kB / 0.575 GB, free: 6.125 MB / 414.1 MB
Notification: Performance of SimCode: time 3.4e-07/0.2876, allocations: 0 / 0.575 GB, free: 6.125 MB / 414.1 MB
Notification: Performance of Templates: time 0.007772/0.2954, allocations: 3.609 MB / 0.5786 GB, free: 2.527 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.makefile [Timeout 660]
(rm -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 4.60267773270607]