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.001327/0.001327, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001237/0.001237, allocations: 177.2 kB / 24.91 MB, free: 8.77 MB / 18.57 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 0.9795/0.9795, allocations: 177.1 MB / 205.3 MB, free: 5.094 MB / 186.7 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.2474/0.2474, allocations: 32.8 MB / 294.6 MB, free: 1.203 MB / 266.7 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.402e-06/1.402e-06, allocations: 0 / 323.2 MB, free: 9.746 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.338e-05/1.478e-05, allocations: 5.156 kB / 323.2 MB, free: 9.742 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.005576/0.005591, allocations: 1.931 MB / 325.1 MB, free: 7.801 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001592/0.007183, allocations: 1.172 MB / 326.3 MB, free: 6.621 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.58e-05/0.007269, allocations: 0 / 326.3 MB, free: 6.621 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003545/0.01081, allocations: 187.4 kB / 326.5 MB, free: 6.438 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003048/0.01112, allocations: 179.1 kB / 326.7 MB, free: 6.262 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002858/0.0114, allocations: 163.5 kB / 326.8 MB, free: 6.102 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000275/0.01168, allocations: 283.8 kB / 327.1 MB, free: 5.824 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.762e-05/0.01177, allocations: 30.39 kB / 327.1 MB, free: 5.793 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000162/0.01193, allocations: 147.7 kB / 327.3 MB, free: 5.648 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001346/0.01206, allocations: 107.7 kB / 327.4 MB, free: 5.543 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.199e-05/0.0121, allocations: 20 kB / 327.4 MB, free: 5.523 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001144/0.01221, allocations: 63.89 kB / 327.5 MB, free: 5.461 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.527e-05/0.01229, allocations: 67.81 kB / 327.5 MB, free: 5.395 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.766e-05/0.01236, allocations: 75.77 kB / 327.6 MB, free: 5.32 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002575/0.01262, allocations: 227.1 kB / 327.8 MB, free: 5.098 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.784e-06/0.01262, allocations: 0 / 327.8 MB, free: 5.098 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.01262, allocations: 0 / 327.8 MB, free: 5.098 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.01263, allocations: 0 / 327.8 MB, free: 5.098 MB / 298.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.0006078/0.01323, allocations: 0.5619 MB / 328.4 MB, free: 4.488 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.01327, allocations: 15.98 kB / 328.4 MB, free: 4.473 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.191e-05/0.01333, allocations: 36.91 kB / 328.4 MB, free: 4.438 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002377/0.01357, allocations: 205.5 kB / 328.6 MB, free: 4.207 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.235e-05/0.01366, allocations: 166.8 kB / 328.8 MB, free: 4.008 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.409e-05/0.01368, allocations: 20.36 kB / 328.8 MB, free: 3.988 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002184/0.0139, allocations: 220.4 kB / 329 MB, free: 3.738 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.01391, allocations: 3.938 kB / 329 MB, free: 3.734 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.409e-05/0.01392, allocations: 8 kB / 329 MB, free: 3.727 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.01393, allocations: 0 / 329 MB, free: 3.727 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001049/0.01403, allocations: 144.5 kB / 329.2 MB, free: 3.566 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004222/0.01446, allocations: 418 kB / 329.6 MB, free: 3.133 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001902/0.01465, allocations: 247.6 kB / 329.8 MB, free: 2.844 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.358e-05/0.01473, allocations: 131.7 kB / 330 MB, free: 2.688 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.34e-05/0.01474, allocations: 4 kB / 330 MB, free: 2.684 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002817/0.01503, allocations: 0.4963 MB / 330.5 MB, free: 2.094 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.112e-06/0.01503, allocations: 0 / 330.5 MB, free: 2.094 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003743/0.0154, allocations: 484.7 kB / 330.9 MB, free: 1.559 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.056e-05/0.01547, allocations: 191.9 kB / 331.1 MB, free: 1.328 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001915/0.01566, allocations: 258.6 kB / 331.4 MB, free: 1.062 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.004e-05/0.01568, allocations: 33.7 kB / 331.4 MB, free: 1.023 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.13e-05/0.01573, allocations: 109.1 kB / 331.5 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.293e-05/0.01578, allocations: 55.58 kB / 331.6 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.204e-05/0.01584, allocations: 53.66 kB / 331.6 MB, free: 0.793 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.864e-05/0.01593, allocations: 346.7 kB / 332 MB, free: 456 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.508e-05/0.016, allocations: 115.9 kB / 332.1 MB, free: 320 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000115/0.01612, allocations: 216.2 kB / 332.3 MB, free: 44 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002222/0.01834, allocations: 317.3 kB / 332.6 MB, free: 15.66 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.01834, allocations: 0 / 332.6 MB, free: 15.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002666/0.01861, allocations: 338.4 kB / 332.9 MB, free: 15.29 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.531e-05/0.01867, allocations: 101 kB / 333 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.01867, allocations: 4 kB / 333 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.01869, allocations: 0 / 333 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.223e-05/0.01876, allocations: 23.92 kB / 333.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.01877, allocations: 8.141 kB / 333.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.334e-05/0.01886, allocations: 32.41 kB / 333.1 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.499e-05/0.01887, allocations: 12 kB / 333.1 MB, free: 15.09 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.000144/0.01902, allocations: 244.5 kB / 333.3 MB, free: 14.83 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.894e-05/0.01907, allocations: 39.97 kB / 333.4 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001689/0.01924, allocations: 172.8 kB / 333.6 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.01924, allocations: 4 kB / 333.6 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.924e-06/0.01924, allocations: 0 / 333.6 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.01925, allocations: 3.938 kB / 333.6 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001501/0.0194, allocations: 134.5 kB / 333.7 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.0194, allocations: 4 kB / 333.7 MB, free: 14.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.635e-05/0.01942, allocations: 11.98 kB / 333.7 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.01943, allocations: 0 / 333.7 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.512e-05/0.01944, allocations: 8 kB / 333.7 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.01944, allocations: 0 / 333.7 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.01945, allocations: 4 kB / 333.7 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002973/0.01974, allocations: 425.2 kB / 334.1 MB, free: 13.94 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.959e-05/0.01977, allocations: 23.81 kB / 334.2 MB, free: 13.92 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.732e-05/0.01981, allocations: 12 kB / 334.2 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.864e-05/0.01988, allocations: 15.98 kB / 334.2 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.274e-05/0.01993, allocations: 27.97 kB / 334.2 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.111e-05/0.01995, allocations: 12 kB / 334.2 MB, free: 13.85 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.173e-05/0.02004, allocations: 93.59 kB / 334.3 MB, free: 13.76 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.02004, allocations: 0 / 334.3 MB, free: 13.76 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002552/0.0203, allocations: 71.88 kB / 334.4 MB, free: 13.69 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.00132/0.02162, allocations: 0.5229 MB / 334.9 MB, free: 13.43 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002943/0.02191, allocations: 485.1 kB / 335.4 MB, free: 12.88 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.02192, allocations: 4 kB / 335.4 MB, free: 12.87 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001716/0.02209, allocations: 352 kB / 335.7 MB, free: 12.47 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001636/0.02225, allocations: 63.7 kB / 335.8 MB, free: 12.41 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005019/0.02275, allocations: 0.4904 MB / 336.3 MB, free: 11.86 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.678e-05/0.0228, allocations: 91.97 kB / 336.4 MB, free: 11.75 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.8e-05/0.02285, allocations: 26.53 kB / 336.4 MB, free: 11.73 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.02298, allocations: 127.3 kB / 336.5 MB, free: 11.6 MB / 314.7 MB Notification: Performance of SimCode: time 8.21e-07/0.02298, allocations: 0 / 336.5 MB, free: 11.6 MB / 314.7 MB Notification: Performance of Templates: time 0.005312/0.02829, allocations: 3.859 MB / 340.4 MB, free: 7.801 MB / 314.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 240] 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","",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.084507484920323]