Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008394/0.0008394, allocations: 84 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003533/0.003533, allocations: 144.5 kB / 24.68 MB, free: 9.434 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8055/0.8055, allocations: 173.4 MB / 201.2 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|booleanTable.y|integerTable.y|start.on|start.reset.1.|stop.on|stop.reset.1.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1") translateModel(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|booleanTable.y|integerTable.y|start.on|start.reset.1.|stop.on|stop.reset.1.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 319.7 MB, free: 5.848 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.297e-05/2.422e-05, allocations: 6.219 kB / 319.7 MB, free: 5.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.002486/0.00251, allocations: 2.384 MB / 322.1 MB, free: 3.441 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001907/0.004418, allocations: 1.737 MB / 323.8 MB, free: 1.699 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001634/0.004581, allocations: 11.94 kB / 323.8 MB, free: 1.688 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001039/0.00562, allocations: 0.5443 MB / 324.3 MB, free: 1.145 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004821/0.006102, allocations: 450.3 kB / 324.8 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009369/0.007039, allocations: 0.6904 MB / 325.5 MB, free: 24 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005491/0.007588, allocations: 0.7907 MB / 326.3 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.007726, allocations: 62.16 kB / 326.3 MB, free: 15.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003185/0.008045, allocations: 427 kB / 326.7 MB, free: 14.74 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000279/0.008324, allocations: 351.1 kB / 327.1 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.584e-05/0.00837, allocations: 47.94 kB / 327.1 MB, free: 14.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002772/0.008647, allocations: 235.6 kB / 327.4 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001583/0.008805, allocations: 215.3 kB / 327.6 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001261/0.008931, allocations: 167.4 kB / 327.7 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000675/0.009606, allocations: 0.8802 MB / 328.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.00961, allocations: 0 / 328.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.009611, allocations: 0 / 328.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.009618, allocations: 0 / 328.6 MB, free: 12.86 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001141/0.01076, allocations: 1.146 MB / 329.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.01079, allocations: 8.031 kB / 329.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001017/0.01089, allocations: 84.41 kB / 329.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000524/0.01142, allocations: 0.524 MB / 330.4 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.901e-05/0.01145, allocations: 20.33 kB / 330.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.795e-05/0.01148, allocations: 23.94 kB / 330.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004199/0.01189, allocations: 454.6 kB / 330.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.01191, allocations: 0 / 330.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.01193, allocations: 8 kB / 330.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.636e-05/0.01194, allocations: 11.91 kB / 330.9 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002692/0.01221, allocations: 280.9 kB / 331.2 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001169/0.01338, allocations: 1.188 MB / 332.3 MB, free: 8.898 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004381/0.01382, allocations: 431.9 kB / 332.8 MB, free: 8.422 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001985/0.01402, allocations: 252.4 kB / 333 MB, free: 8.145 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.777e-05/0.01403, allocations: 7.938 kB / 333 MB, free: 8.137 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004185/0.01445, allocations: 0.5474 MB / 333.6 MB, free: 7.516 MB / 298.7 MB Notification: Performance of pre-optimization done (n=42): time 2.154e-06/0.01446, allocations: 0 / 333.6 MB, free: 7.516 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.000898/0.01535, allocations: 0.9641 MB / 334.5 MB, free: 6.492 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/0.01547, allocations: 354.1 kB / 334.9 MB, free: 6.066 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007008/0.01617, allocations: 0.9419 MB / 335.8 MB, free: 5.117 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.132e-05/0.0162, allocations: 45.64 kB / 335.9 MB, free: 5.066 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001767/0.01638, allocations: 312.8 kB / 336.2 MB, free: 4.758 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.32e-05/0.01644, allocations: 111.1 kB / 336.3 MB, free: 4.648 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.978e-05/0.01653, allocations: 94.19 kB / 336.4 MB, free: 4.551 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.683e-05/0.01661, allocations: 326 kB / 336.7 MB, free: 4.227 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002158/0.01682, allocations: 254 kB / 336.9 MB, free: 3.961 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003107/0.01714, allocations: 0.5396 MB / 337.5 MB, free: 3.301 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004544/0.01759, allocations: 0.5934 MB / 338.1 MB, free: 2.621 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.01759, allocations: 0 / 338.1 MB, free: 2.621 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009163/0.01851, allocations: 0.7923 MB / 338.9 MB, free: 1.785 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.961e-05/0.01856, allocations: 101.1 kB / 339 MB, free: 1.668 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.01857, allocations: 4.281 kB / 339 MB, free: 1.664 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.01858, allocations: 12 kB / 339 MB, free: 1.652 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/0.01873, allocations: 59.84 kB / 339 MB, free: 1.594 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.056e-06/0.01874, allocations: 8 kB / 339 MB, free: 1.586 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001488/0.01889, allocations: 43.83 kB / 339.1 MB, free: 1.543 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.472e-05/0.01891, allocations: 27.98 kB / 339.1 MB, free: 1.516 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 51 ($PRE.start.pre_reset[1],$PRE.stop.pre_reset[1],$PRE.integerTable.combiTimeTable.nextTimeEvent,$whenCondition9,integerTable.combiTimeTable.nextTimeEventScaled,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.y,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition8,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.y,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.start.table.combiTimeTable.nextTimeEvent,$whenCondition2,stop.on,$PRE.stop.on,start.reset[1],stop.reset[1],start.on,$PRE.start.on,stop.pre_reset[1],stop.table.combiTimeTable.nextTimeEventScaled,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEvent,stop.table.y,$PRE.stop.table.y,$PRE.stop.reset[1],$whenCondition5,$whenCondition4,start.pre_reset[1],start.table.combiTimeTable.nextTimeEventScaled,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEvent,start.table.y,$PRE.start.table.y,$PRE.start.reset[1],$whenCondition7,$whenCondition6,timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,$whenCondition1,booleanValue.active,integerValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 50 * 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.0002538/0.01916, allocations: 394.7 kB / 339.5 MB, free: 1.105 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.967e-05/0.01923, allocations: 87.42 kB / 339.6 MB, free: 1.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005955/0.01983, allocations: 0.6058 MB / 340.2 MB, free: 388 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.01983, allocations: 4 kB / 340.2 MB, free: 384 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.01984, allocations: 7.938 kB / 340.2 MB, free: 376 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.01984, allocations: 3.984 kB / 340.2 MB, free: 372 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007199/0.02056, allocations: 0.9184 MB / 341.1 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.02057, allocations: 0 / 341.1 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.727e-05/0.02063, allocations: 31.98 kB / 341.2 MB, free: 15.35 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.147e-06/0.02064, allocations: 4 kB / 341.2 MB, free: 15.35 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.238e-05/0.02066, allocations: 19.98 kB / 341.2 MB, free: 15.33 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.02067, allocations: 4 kB / 341.2 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.02067, allocations: 3.938 kB / 341.2 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006965/0.02136, allocations: 0.9241 MB / 342.1 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.432e-05/0.02144, allocations: 87.59 kB / 342.2 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.567e-05/0.0215, allocations: 27.97 kB / 342.2 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001219/0.02163, allocations: 27.98 kB / 342.3 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.372e-05/0.0217, allocations: 35.94 kB / 342.3 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.697e-05/0.02173, allocations: 20 kB / 342.3 MB, free: 14.14 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000504/0.02223, allocations: 0.6825 MB / 343 MB, free: 13.46 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.02223, allocations: 0 / 343 MB, free: 13.46 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003819/0.02261, allocations: 155.8 kB / 343.1 MB, free: 13.31 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled,$whenCondition3,$whenCondition2,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,start.reset[1],start.on,start.table.y,start.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],stop.reset[1],stop.on,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],$whenCondition8,booleanTable.y,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition9,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 26 (integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEventScaled,$whenCondition5,stop.on,$whenCondition4,stop.pre_reset[1],stop.reset[1],stop.table.y,start.table.combiTimeTable.nextTimeEventScaled,$whenCondition7,start.on,$whenCondition6,start.pre_reset[1],start.reset[1],start.table.y,timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 8 * 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.0008105/0.02342, allocations: 0.5264 MB / 343.7 MB, free: 12.96 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006329/0.02406, allocations: 0.7657 MB / 344.4 MB, free: 12.12 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.02406, allocations: 0 / 344.4 MB, free: 12.12 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003078/0.02437, allocations: 478 kB / 344.9 MB, free: 11.6 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004771/0.02484, allocations: 164.3 kB / 345.1 MB, free: 11.44 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00152/0.02636, allocations: 1.372 MB / 346.4 MB, free: 10 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002103/0.02657, allocations: 338.2 kB / 346.8 MB, free: 9.645 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.375e-05/0.02667, allocations: 56.48 kB / 346.8 MB, free: 9.59 MB / 314.7 MB Notification: Performance of SimCode: time 6.61e-07/0.02667, allocations: 4 kB / 346.8 MB, free: 9.586 MB / 314.7 MB Notification: Performance of Templates: time 0.009069/0.03574, allocations: 10.07 MB / 356.9 MB, free: 15.54 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.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: 5.352381623350084]