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.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.001551/0.001551, allocations: 84.7 kB / 20.68 MB, free: 1.023 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.001637/0.001637, allocations: 164.5 kB / 23.95 MB, free: 4.156 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.391/1.391, allocations: 177.1 MB / 204.3 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1961/0.1961, allocations: 32.81 MB / 293.5 MB, free: 32 kB / 270.1 MB " [Timeout remaining time 180] 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.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.0.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.0.0_ModelicaTest.Blocks.OnDelay") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.353e-06/1.353e-06, allocations: 0 / 440.1 MB, free: 8.152 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.779e-05/1.915e-05, allocations: 8.953 kB / 440.1 MB, free: 8.145 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002972/0.002991, allocations: 1.855 MB / 441.9 MB, free: 6.277 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001926/0.004917, allocations: 1.13 MB / 443.1 MB, free: 5.141 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.784e-05/0.004995, allocations: 3.938 kB / 443.1 MB, free: 5.137 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006186/0.005614, allocations: 195.2 kB / 443.3 MB, free: 4.945 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004086/0.006022, allocations: 185.5 kB / 443.4 MB, free: 4.766 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003703/0.006392, allocations: 159.4 kB / 443.6 MB, free: 4.609 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003461/0.006739, allocations: 283.3 kB / 443.9 MB, free: 4.332 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.749e-05/0.006836, allocations: 25.78 kB / 443.9 MB, free: 4.309 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001966/0.007033, allocations: 151.6 kB / 444 MB, free: 4.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001715/0.007204, allocations: 111.7 kB / 444.2 MB, free: 4.051 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.662e-05/0.007241, allocations: 19.94 kB / 444.2 MB, free: 4.031 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001427/0.007383, allocations: 63.91 kB / 444.2 MB, free: 3.969 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.007486, allocations: 63.81 kB / 444.3 MB, free: 3.906 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001035/0.007589, allocations: 75.77 kB / 444.4 MB, free: 3.832 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003869/0.007976, allocations: 295.1 kB / 444.7 MB, free: 3.543 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.693e-06/0.007978, allocations: 0 / 444.7 MB, free: 3.543 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.007979, allocations: 0 / 444.7 MB, free: 3.543 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.007983, allocations: 4 kB / 444.7 MB, free: 3.539 MB / 366.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.0008843/0.008867, allocations: 0.5972 MB / 445.3 MB, free: 2.887 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.186e-05/0.008899, allocations: 11.98 kB / 445.3 MB, free: 2.875 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.729e-05/0.008976, allocations: 32.75 kB / 445.3 MB, free: 2.844 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003405/0.009317, allocations: 220.8 kB / 445.5 MB, free: 2.602 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001447/0.009462, allocations: 170.8 kB / 445.7 MB, free: 2.398 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.072e-05/0.009492, allocations: 16.38 kB / 445.7 MB, free: 2.383 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003761/0.009868, allocations: 237.6 kB / 445.9 MB, free: 2.117 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.009877, allocations: 4 kB / 445.9 MB, free: 2.113 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.215e-05/0.0099, allocations: 11.98 kB / 446 MB, free: 2.102 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.009906, allocations: 4 kB / 446 MB, free: 2.098 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000317/0.01022, allocations: 184.9 kB / 446.1 MB, free: 1.898 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007682/0.01099, allocations: 0.524 MB / 446.7 MB, free: 1.336 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004/0.01139, allocations: 237 kB / 446.9 MB, free: 1.059 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002289/0.01162, allocations: 163.6 kB / 447.1 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.335e-05/0.01163, allocations: 0 / 447.1 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005358/0.01217, allocations: 0.5208 MB / 447.6 MB, free: 264 kB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.433e-06/0.01217, allocations: 3.938 kB / 447.6 MB, free: 260 kB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.1541/0.1663, allocations: 0.6083 MB / 448.2 MB, free: 21.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.726e-05/0.1663, allocations: 196.5 kB / 448.4 MB, free: 21.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003558/0.1667, allocations: 328.6 kB / 448.7 MB, free: 21.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.656e-05/0.1667, allocations: 35.58 kB / 448.7 MB, free: 21.42 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.093e-05/0.1668, allocations: 134 kB / 448.9 MB, free: 21.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.474e-05/0.1668, allocations: 53.98 kB / 448.9 MB, free: 21.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.132e-05/0.1669, allocations: 52.45 kB / 449 MB, free: 21.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.364e-05/0.167, allocations: 341.5 kB / 449.3 MB, free: 20.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.1671, allocations: 142.5 kB / 449.4 MB, free: 20.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001873/0.1673, allocations: 248.3 kB / 449.7 MB, free: 20.65 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003145/0.1676, allocations: 371.2 kB / 450 MB, free: 20.33 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.1676, allocations: 5.062 kB / 450.1 MB, free: 20.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005172/0.1682, allocations: 450.3 kB / 450.5 MB, free: 20.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.604e-05/0.1682, allocations: 97.28 kB / 450.6 MB, free: 19.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.1682, allocations: 2.281 kB / 450.6 MB, free: 19.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.1682, allocations: 3.281 kB / 450.6 MB, free: 19.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.1683, allocations: 22.83 kB / 450.6 MB, free: 19.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.1683, allocations: 6.281 kB / 450.6 MB, free: 19.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001435/0.1685, allocations: 27.06 kB / 450.6 MB, free: 19.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.06e-05/0.1685, allocations: 10.06 kB / 450.7 MB, free: 19.91 MB / 366.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.000164/0.1687, allocations: 278 kB / 450.9 MB, free: 19.67 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.02e-05/0.1687, allocations: 29.45 kB / 451 MB, free: 19.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003396/0.1691, allocations: 240.6 kB / 451.2 MB, free: 19.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.1691, allocations: 3.125 kB / 451.2 MB, free: 19.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1691, allocations: 1.953 kB / 451.2 MB, free: 19.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1691, allocations: 0.8906 kB / 451.2 MB, free: 19.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000188/0.1693, allocations: 204.4 kB / 451.4 MB, free: 19.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1693, allocations: 5.656 kB / 451.4 MB, free: 19.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.792e-05/0.1693, allocations: 13.39 kB / 451.4 MB, free: 19.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.1693, allocations: 4.797 kB / 451.4 MB, free: 19.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.376e-05/0.1693, allocations: 8.953 kB / 451.4 MB, free: 19.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.1693, allocations: 2.25 kB / 451.4 MB, free: 19.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1693, allocations: 0 / 451.4 MB, free: 19.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006031/0.1699, allocations: 0.5343 MB / 452 MB, free: 18.97 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.039e-05/0.17, allocations: 32.41 kB / 452 MB, free: 18.95 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.209e-05/0.17, allocations: 15.72 kB / 452 MB, free: 18.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.1701, allocations: 14.95 kB / 452 MB, free: 18.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.569e-05/0.1702, allocations: 28.69 kB / 452.1 MB, free: 18.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.814e-05/0.1702, allocations: 10.77 kB / 452.1 MB, free: 18.94 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002063/0.1705, allocations: 243.5 kB / 452.3 MB, free: 18.81 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1705, allocations: 0 / 452.3 MB, free: 18.81 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003934/0.1708, allocations: 64.22 kB / 452.4 MB, free: 18.81 MB / 366.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 (15): * Single equations (assignments): 10 * 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.001513/0.1724, allocations: 472.2 kB / 452.8 MB, free: 18.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005181/0.1729, allocations: 0.5271 MB / 453.4 MB, free: 18.22 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.1729, allocations: 0 / 453.4 MB, free: 18.22 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002845/0.1732, allocations: 370.1 kB / 453.7 MB, free: 17.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003405/0.1735, allocations: 72.53 kB / 453.8 MB, free: 17.87 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007194/0.1742, allocations: 0.5451 MB / 454.3 MB, free: 17.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001125/0.1743, allocations: 139.5 kB / 454.5 MB, free: 17.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.634e-05/0.1744, allocations: 28.75 kB / 454.5 MB, free: 17.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.402e-05/0.1745, allocations: 26.8 kB / 454.5 MB, free: 17.39 MB / 366.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1745, allocations: 0 / 454.5 MB, free: 17.39 MB / 366.1 MB Notification: Performance of Templates: time 0.007589/0.1821, allocations: 3.644 MB / 458.2 MB, free: 16.91 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.makefile [Timeout 660] (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) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 4.578555542975664]