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.0008957/0.0008957, allocations: 84.73 kB / 21.5 MB, free: 2.992 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.0009244/0.0009244, allocations: 161.1 kB / 24.91 MB, free: 9.211 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.9896/0.9896, allocations: 177 MB / 205.2 MB, free: 5.473 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.2405/0.2405, allocations: 34.87 MB / 296.6 MB, free: 0.4922 MB / 266.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 1.153e-06/1.153e-06, allocations: 0 / 325.9 MB, free: 7.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.444e-05/1.559e-05, allocations: 10 kB / 325.9 MB, free: 7.172 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002257/0.002273, allocations: 1.93 MB / 327.8 MB, free: 5.227 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001301/0.003574, allocations: 1.169 MB / 329 MB, free: 4.047 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.87e-05/0.003652, allocations: 7.938 kB / 329 MB, free: 4.039 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004822/0.004135, allocations: 187.4 kB / 329.2 MB, free: 3.855 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003145/0.004449, allocations: 171.2 kB / 329.4 MB, free: 3.688 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002293/0.004678, allocations: 167.5 kB / 329.5 MB, free: 3.523 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002219/0.0049, allocations: 284 kB / 329.8 MB, free: 3.246 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.014e-05/0.00498, allocations: 26.38 kB / 329.8 MB, free: 3.219 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001365/0.005117, allocations: 159.6 kB / 330 MB, free: 3.062 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001104/0.005227, allocations: 103.8 kB / 330.1 MB, free: 2.961 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.476e-05/0.005252, allocations: 16 kB / 330.1 MB, free: 2.945 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.64e-05/0.005348, allocations: 63.95 kB / 330.2 MB, free: 2.883 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.661e-05/0.005415, allocations: 71.75 kB / 330.2 MB, free: 2.812 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.036e-05/0.005475, allocations: 67.83 kB / 330.3 MB, free: 2.746 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000214/0.005689, allocations: 227.1 kB / 330.5 MB, free: 2.523 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.736e-06/0.005692, allocations: 8 kB / 330.5 MB, free: 2.516 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.005693, allocations: 0 / 330.5 MB, free: 2.516 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.795e-06/0.005695, allocations: 0 / 330.5 MB, free: 2.516 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.0005089/0.006204, allocations: 0.5658 MB / 331.1 MB, free: 1.902 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.784e-05/0.006232, allocations: 12.03 kB / 331.1 MB, free: 1.891 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.811e-05/0.00628, allocations: 36.91 kB / 331.1 MB, free: 1.855 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001968/0.006477, allocations: 205.6 kB / 331.3 MB, free: 1.629 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.626e-05/0.006553, allocations: 170.8 kB / 331.5 MB, free: 1.426 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.994e-05/0.006573, allocations: 16.38 kB / 331.5 MB, free: 1.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001886/0.006762, allocations: 227.8 kB / 331.7 MB, free: 1.156 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.006769, allocations: 4 kB / 331.7 MB, free: 1.152 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.919e-06/0.006779, allocations: 0 / 331.7 MB, free: 1.152 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.006783, allocations: 4 kB / 331.7 MB, free: 1.148 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.116e-05/0.006875, allocations: 143.8 kB / 331.9 MB, free: 0.9883 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003699/0.007245, allocations: 414 kB / 332.3 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001601/0.007405, allocations: 251.6 kB / 332.5 MB, free: 272 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.896e-05/0.007474, allocations: 139.7 kB / 332.7 MB, free: 104 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001452/0.007619, allocations: 4 kB / 332.7 MB, free: 100 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002474/0.007866, allocations: 497.5 kB / 333.2 MB, free: 15.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.232e-06/0.007867, allocations: 3.938 kB / 333.2 MB, free: 15.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.000296/0.008163, allocations: 472.5 kB / 333.6 MB, free: 14.99 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.919e-05/0.008223, allocations: 195.9 kB / 333.8 MB, free: 14.75 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001467/0.008369, allocations: 250.6 kB / 334.1 MB, free: 14.5 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.008386, allocations: 37.7 kB / 334.1 MB, free: 14.45 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.378e-05/0.00843, allocations: 117.1 kB / 334.2 MB, free: 14.33 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.562e-05/0.008466, allocations: 55.56 kB / 334.3 MB, free: 14.28 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.622e-05/0.008512, allocations: 53.67 kB / 334.3 MB, free: 14.22 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.726e-05/0.008589, allocations: 338.7 kB / 334.7 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.686e-05/0.008646, allocations: 111.9 kB / 334.8 MB, free: 13.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.546e-05/0.008742, allocations: 224.1 kB / 335 MB, free: 13.47 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001594/0.008901, allocations: 321.7 kB / 335.3 MB, free: 13.09 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.008904, allocations: 7.984 kB / 335.3 MB, free: 13.08 MB / 314.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0001962/0.0091, allocations: 336.8 kB / 335.6 MB, free: 12.71 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.27e-05/0.009142, allocations: 101.1 kB / 335.7 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.009147, allocations: 224 / 335.7 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.009158, allocations: 8 kB / 335.7 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.732e-05/0.009215, allocations: 16 kB / 335.8 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.00922, allocations: 7.938 kB / 335.8 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.866e-05/0.009289, allocations: 27.88 kB / 335.8 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.118e-05/0.0093, allocations: 8 kB / 335.8 MB, free: 12.53 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.0001141/0.009414, allocations: 244.2 kB / 336 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.476e-05/0.009449, allocations: 35.97 kB / 336.1 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001328/0.009582, allocations: 174.8 kB / 336.2 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.009585, allocations: 4 kB / 336.2 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.009586, allocations: 0 / 336.2 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.00959, allocations: 0 / 336.2 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001131/0.009703, allocations: 133.7 kB / 336.4 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.009704, allocations: 0 / 336.4 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.577e-05/0.00973, allocations: 15.92 kB / 336.4 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.009732, allocations: 0 / 336.4 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.558e-05/0.009757, allocations: 12 kB / 336.4 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.009758, allocations: 0 / 336.4 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.009759, allocations: 0 / 336.4 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002267/0.009986, allocations: 424.9 kB / 336.8 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.317e-05/0.01001, allocations: 23.81 kB / 336.8 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.053e-05/0.01004, allocations: 16 kB / 336.9 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.267e-05/0.01009, allocations: 15.98 kB / 336.9 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.532e-05/0.01014, allocations: 23.97 kB / 336.9 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/0.01015, allocations: 8 kB / 336.9 MB, free: 11.29 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.422e-05/0.01023, allocations: 101.6 kB / 337 MB, free: 11.19 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01023, allocations: 0 / 337 MB, free: 11.19 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001717/0.0104, allocations: 63.94 kB / 337.1 MB, free: 11.13 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.0009954/0.01139, allocations: 0.5215 MB / 337.6 MB, free: 10.86 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002627/0.01166, allocations: 488.9 kB / 338.1 MB, free: 10.3 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.01166, allocations: 0 / 338.1 MB, free: 10.3 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001561/0.01181, allocations: 352.3 kB / 338.4 MB, free: 9.902 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001576/0.01197, allocations: 62.83 kB / 338.5 MB, free: 9.844 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004592/0.01243, allocations: 0.499 MB / 339 MB, free: 9.289 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.434e-05/0.01248, allocations: 83.97 kB / 339.1 MB, free: 9.188 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.845e-05/0.01252, allocations: 22.09 kB / 339.1 MB, free: 9.164 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001339/0.01266, allocations: 127.3 kB / 339.2 MB, free: 9.039 MB / 314.7 MB Notification: Performance of SimCode: time 7.12e-07/0.01266, allocations: 0 / 339.2 MB, free: 9.039 MB / 314.7 MB Notification: Performance of Templates: time 0.00512/0.01778, allocations: 3.859 MB / 343.1 MB, free: 5.238 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: 2.9355620173737407]