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.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.000999/0.000999, allocations: 95.2 kB / 20.43 MB, free: 4.141 MB / 18.57 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.001146/0.001146, allocations: 165 kB / 23.79 MB, free: 0.7773 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.026/1.026, allocations: 158.6 MB / 185.7 MB, free: 2.914 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1538/0.1538, allocations: 32.37 MB / 270.4 MB, free: 14.71 MB / 266.7 MB " [Timeout remaining time 180] 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.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_3.2.3_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_3.2.3_ModelicaTest.Blocks.OnDelay") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.036e-06/3.036e-06, allocations: 4 kB / 347.6 MB, free: 9.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.097e-05/3.401e-05, allocations: 2.312 kB / 347.6 MB, free: 9.457 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003579/0.003613, allocations: 1.931 MB / 349.6 MB, free: 7.523 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001807/0.00542, allocations: 0.9517 MB / 350.5 MB, free: 6.562 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001718/0.005592, allocations: 0 / 350.5 MB, free: 6.562 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008441/0.006436, allocations: 195.3 kB / 350.7 MB, free: 6.371 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000373/0.006809, allocations: 135.4 kB / 350.9 MB, free: 6.238 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004645/0.007273, allocations: 171.5 kB / 351 MB, free: 6.07 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003809/0.007654, allocations: 271.3 kB / 351.3 MB, free: 5.805 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.007781, allocations: 13.81 kB / 351.3 MB, free: 5.789 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002076/0.007988, allocations: 159.7 kB / 351.5 MB, free: 5.633 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001939/0.008182, allocations: 99.75 kB / 351.6 MB, free: 5.535 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.016e-05/0.008233, allocations: 16 kB / 351.6 MB, free: 5.52 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002018/0.008434, allocations: 75.83 kB / 351.6 MB, free: 5.445 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001063/0.008541, allocations: 59.81 kB / 351.7 MB, free: 5.387 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.055e-05/0.008631, allocations: 71.83 kB / 351.8 MB, free: 5.316 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003849/0.009016, allocations: 231.2 kB / 352 MB, free: 5.09 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.00902, allocations: 0 / 352 MB, free: 5.09 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.009022, allocations: 0 / 352 MB, free: 5.09 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.009029, allocations: 0 / 352 MB, free: 5.09 MB / 282.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.000896/0.009925, allocations: 0.6931 MB / 352.7 MB, free: 4.336 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/0.009977, allocations: 8.031 kB / 352.7 MB, free: 4.328 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001063/0.01008, allocations: 48.78 kB / 352.7 MB, free: 4.281 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003253/0.01041, allocations: 224.3 kB / 353 MB, free: 4.031 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001041/0.01051, allocations: 166.8 kB / 353.1 MB, free: 3.832 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.976e-05/0.01054, allocations: 16.38 kB / 353.1 MB, free: 3.816 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003101/0.01085, allocations: 234 kB / 353.4 MB, free: 3.551 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.01086, allocations: 0 / 353.4 MB, free: 3.551 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.102e-05/0.01088, allocations: 8 kB / 353.4 MB, free: 3.543 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.477e-05/0.0109, allocations: 8 kB / 353.4 MB, free: 3.535 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001516/0.01105, allocations: 145 kB / 353.5 MB, free: 3.375 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007065/0.01176, allocations: 0.6614 MB / 354.2 MB, free: 2.668 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002559/0.01201, allocations: 238.5 kB / 354.4 MB, free: 2.379 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.01213, allocations: 148.1 kB / 354.6 MB, free: 2.203 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.66e-05/0.01214, allocations: 4 kB / 354.6 MB, free: 2.199 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003232/0.01247, allocations: 0.5158 MB / 355.1 MB, free: 1.582 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.923e-06/0.01247, allocations: 0 / 355.1 MB, free: 1.582 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006336/0.0131, allocations: 0.5632 MB / 355.7 MB, free: 0.957 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.406e-05/0.01316, allocations: 191.9 kB / 355.8 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002373/0.01339, allocations: 312.3 kB / 356.1 MB, free: 416 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.392e-05/0.01342, allocations: 33.7 kB / 356.2 MB, free: 376 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.967e-05/0.01351, allocations: 179.3 kB / 356.4 MB, free: 192 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.13e-05/0.01356, allocations: 55.58 kB / 356.4 MB, free: 136 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.166e-05/0.01363, allocations: 59.3 kB / 356.5 MB, free: 68 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001996/0.01383, allocations: 0.5157 MB / 357 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001268/0.01396, allocations: 125 kB / 357.1 MB, free: 15.4 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001969/0.01415, allocations: 255.3 kB / 357.3 MB, free: 15.08 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002963/0.01445, allocations: 347.3 kB / 357.7 MB, free: 14.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.01446, allocations: 4.031 kB / 357.7 MB, free: 14.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004757/0.01493, allocations: 403.5 kB / 358.1 MB, free: 14.22 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.547e-05/0.01501, allocations: 101.1 kB / 358.2 MB, free: 14.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.01502, allocations: 4 kB / 358.2 MB, free: 14.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.01504, allocations: 0 / 358.2 MB, free: 14.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001141/0.01515, allocations: 23.92 kB / 358.2 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.01516, allocations: 7.938 kB / 358.2 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001112/0.01527, allocations: 28.11 kB / 358.2 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/0.01529, allocations: 15.98 kB / 358.3 MB, free: 14.02 MB / 298.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.0001943/0.01549, allocations: 280.2 kB / 358.5 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.655e-05/0.01555, allocations: 47.81 kB / 358.6 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003207/0.01587, allocations: 218.7 kB / 358.8 MB, free: 13.44 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.01588, allocations: 7.938 kB / 358.8 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.01589, allocations: 3.938 kB / 358.8 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.461e-06/0.01589, allocations: 0 / 358.8 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002314/0.01613, allocations: 212.5 kB / 359 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.01613, allocations: 4 kB / 359 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.65e-05/0.01617, allocations: 4 kB / 359 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.01617, allocations: 7.984 kB / 359 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.389e-05/0.0162, allocations: 16 kB / 359 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.0162, allocations: 0 / 359 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.0162, allocations: 0 / 359 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005993/0.0168, allocations: 0.534 MB / 359.6 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.98e-05/0.01684, allocations: 27.8 kB / 359.6 MB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.355e-05/0.01688, allocations: 8 kB / 359.6 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.838e-05/0.01698, allocations: 19.98 kB / 359.6 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.735e-05/0.01707, allocations: 35.89 kB / 359.7 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.709e-05/0.0171, allocations: 8 kB / 359.7 MB, free: 12.46 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001773/0.01727, allocations: 213.1 kB / 359.9 MB, free: 12.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01727, allocations: 0 / 359.9 MB, free: 12.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003562/0.01763, allocations: 67.98 kB / 360 MB, free: 12.19 MB / 298.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.001163/0.01879, allocations: 405.2 kB / 360.3 MB, free: 11.88 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005461/0.01934, allocations: 0.4999 MB / 360.8 MB, free: 11.3 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.01934, allocations: 0 / 360.8 MB, free: 11.3 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002819/0.01962, allocations: 366.7 kB / 361.2 MB, free: 10.88 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003751/0.02, allocations: 81.23 kB / 361.3 MB, free: 10.8 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008097/0.02081, allocations: 0.5023 MB / 361.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.737e-05/0.02088, allocations: 87.97 kB / 361.9 MB, free: 10.14 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.632e-05/0.02096, allocations: 25.58 kB / 361.9 MB, free: 10.11 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.892e-05/0.02102, allocations: 20.5 kB / 361.9 MB, free: 10.09 MB / 298.7 MB Notification: Performance of SimCode: time 1.312e-06/0.02102, allocations: 4 kB / 361.9 MB, free: 10.09 MB / 298.7 MB Notification: Performance of Templates: time 0.007974/0.029, allocations: 3.876 MB / 365.8 MB, free: 6.234 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 240] 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","",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.310776470694691]