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.001204/0.001204, allocations: 84.34 kB / 22.21 MB, free: 2.285 MB / 18.57 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.001435/0.001435, allocations: 166.8 kB / 25.61 MB, free: 8.582 MB / 18.57 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 0.9877/0.9877, allocations: 177 MB / 205.9 MB, free: 4.461 MB / 186.7 MB " [Timeout remaining time 179] 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.1579/0.1579, allocations: 34.88 MB / 297.4 MB, free: 13.43 MB / 282.7 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 2.224e-06/2.224e-06, allocations: 0 / 380 MB, free: 22.77 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.36e-05/3.583e-05, allocations: 2.312 kB / 380 MB, free: 22.77 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002186/0.002222, allocations: 1.925 MB / 381.9 MB, free: 20.84 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001125/0.003347, allocations: 1.145 MB / 383.1 MB, free: 19.68 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.674e-05/0.003444, allocations: 0 / 383.1 MB, free: 19.68 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000502/0.003946, allocations: 191.3 kB / 383.2 MB, free: 19.5 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002834/0.004229, allocations: 171.2 kB / 383.4 MB, free: 19.33 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002836/0.004513, allocations: 171.4 kB / 383.6 MB, free: 19.16 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002246/0.004738, allocations: 291.2 kB / 383.9 MB, free: 18.88 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.856e-05/0.004826, allocations: 21.8 kB / 383.9 MB, free: 18.85 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001287/0.004955, allocations: 151.7 kB / 384 MB, free: 18.7 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001121/0.005067, allocations: 103.7 kB / 384.1 MB, free: 18.6 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.005091, allocations: 20 kB / 384.2 MB, free: 18.58 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001191/0.00521, allocations: 71.83 kB / 384.2 MB, free: 18.51 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.322e-05/0.005273, allocations: 63.75 kB / 384.3 MB, free: 18.45 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 5.389e-05/0.005327, allocations: 75.83 kB / 384.4 MB, free: 18.38 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002149/0.005542, allocations: 223.2 kB / 384.6 MB, free: 18.16 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.005545, allocations: 0 / 384.6 MB, free: 18.16 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.005546, allocations: 0 / 384.6 MB, free: 18.16 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.00555, allocations: 0 / 384.6 MB, free: 18.16 MB / 314.7 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.0006236/0.006173, allocations: 0.697 MB / 385.3 MB, free: 17.4 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.006205, allocations: 12.03 kB / 385.3 MB, free: 17.39 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.073e-05/0.006266, allocations: 44.75 kB / 385.3 MB, free: 17.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001972/0.006463, allocations: 232.3 kB / 385.6 MB, free: 17.09 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.794e-05/0.006521, allocations: 170.8 kB / 385.7 MB, free: 16.89 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.671e-05/0.006538, allocations: 20.36 kB / 385.7 MB, free: 16.87 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001807/0.006719, allocations: 225.6 kB / 386 MB, free: 16.61 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.006727, allocations: 0 / 386 MB, free: 16.61 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.006738, allocations: 4 kB / 386 MB, free: 16.61 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.006744, allocations: 0 / 386 MB, free: 16.61 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.427e-05/0.006818, allocations: 141 kB / 386.1 MB, free: 16.45 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000405/0.007223, allocations: 0.6307 MB / 386.7 MB, free: 15.79 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001503/0.007373, allocations: 226.5 kB / 387 MB, free: 15.51 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.53e-05/0.007429, allocations: 148.1 kB / 387.1 MB, free: 15.33 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.228e-05/0.007441, allocations: 4 kB / 387.1 MB, free: 15.33 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001982/0.007639, allocations: 0.4964 MB / 387.6 MB, free: 14.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.954e-06/0.007641, allocations: 0 / 387.6 MB, free: 14.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003664/0.008008, allocations: 0.5417 MB / 388.1 MB, free: 14.13 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.584e-05/0.008043, allocations: 199.8 kB / 388.3 MB, free: 13.89 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001396/0.008183, allocations: 308.2 kB / 388.6 MB, free: 13.57 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.008198, allocations: 33.7 kB / 388.7 MB, free: 13.54 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.802e-05/0.008256, allocations: 191.2 kB / 388.9 MB, free: 13.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.192e-05/0.008288, allocations: 55.61 kB / 388.9 MB, free: 13.29 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.664e-05/0.008334, allocations: 55.33 kB / 389 MB, free: 13.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.22e-05/0.008396, allocations: 0.5195 MB / 389.5 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.921e-05/0.008446, allocations: 113.1 kB / 389.6 MB, free: 12.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.742e-05/0.008523, allocations: 251.3 kB / 389.8 MB, free: 12.25 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001421/0.008665, allocations: 339 kB / 390.2 MB, free: 11.84 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.008668, allocations: 0 / 390.2 MB, free: 11.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002699/0.008938, allocations: 393 kB / 390.6 MB, free: 11.41 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.125e-05/0.00898, allocations: 97.3 kB / 390.7 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.008987, allocations: 12 kB / 390.7 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.009003, allocations: 4 kB / 390.7 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.663e-05/0.009079, allocations: 19.92 kB / 390.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.009084, allocations: 8.141 kB / 390.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.787e-05/0.009162, allocations: 27.89 kB / 390.7 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.231e-05/0.009174, allocations: 15.92 kB / 390.7 MB, free: 11.21 MB / 314.7 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.0001126/0.009287, allocations: 284.2 kB / 391 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.216e-05/0.009329, allocations: 52 kB / 391.1 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001986/0.009528, allocations: 214.7 kB / 391.3 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.666e-06/0.00953, allocations: 4 kB / 391.3 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.009533, allocations: 0 / 391.3 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.349e-06/0.009538, allocations: 0 / 391.3 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001341/0.009672, allocations: 185.1 kB / 391.5 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.009674, allocations: 0 / 391.5 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.425e-05/0.009698, allocations: 8 kB / 391.5 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.009701, allocations: 0 / 391.5 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.009714, allocations: 8 kB / 391.5 MB, free: 10.39 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.009718, allocations: 7.984 kB / 391.5 MB, free: 10.39 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.009719, allocations: 7.938 kB / 391.5 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002955/0.01001, allocations: 0.5103 MB / 392 MB, free: 9.801 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.584e-05/0.01004, allocations: 31.78 kB / 392 MB, free: 9.77 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.098e-05/0.01007, allocations: 12 kB / 392.1 MB, free: 9.758 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.149e-05/0.01013, allocations: 19.98 kB / 392.1 MB, free: 9.738 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.596e-05/0.01019, allocations: 19.97 kB / 392.1 MB, free: 9.719 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.802e-05/0.01021, allocations: 12 kB / 392.1 MB, free: 9.707 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.234e-05/0.01029, allocations: 209 kB / 392.3 MB, free: 9.504 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01029, allocations: 0 / 392.3 MB, free: 9.504 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002493/0.01054, allocations: 67.92 kB / 392.4 MB, free: 9.438 MB / 314.7 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.0009121/0.01145, allocations: 408.3 kB / 392.8 MB, free: 9.188 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002717/0.01172, allocations: 499.8 kB / 393.3 MB, free: 8.621 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.01172, allocations: 0 / 393.3 MB, free: 8.621 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001284/0.01185, allocations: 352.8 kB / 393.6 MB, free: 8.219 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000258/0.01211, allocations: 67.97 kB / 393.7 MB, free: 8.156 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005233/0.01263, allocations: 0.5048 MB / 394.2 MB, free: 7.594 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.002e-05/0.01267, allocations: 87.97 kB / 394.3 MB, free: 7.488 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.82e-05/0.01273, allocations: 26.53 kB / 394.3 MB, free: 7.465 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000134/0.01287, allocations: 146.2 kB / 394.4 MB, free: 7.32 MB / 314.7 MB Notification: Performance of SimCode: time 1.342e-06/0.01287, allocations: 3.938 kB / 394.4 MB, free: 7.316 MB / 314.7 MB Notification: Performance of Templates: time 0.006094/0.01896, allocations: 4.057 MB / 398.5 MB, free: 3.305 MB / 314.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.7048317813314497]