Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.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.001924/0.001924, allocations: 85.17 kB / 20.68 MB, free: 1.02 MB / 14.72 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.002288/0.002288, allocations: 163.1 kB / 23.95 MB, free: 4.16 MB / 14.72 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 1.409/1.409, allocations: 177.1 MB / 204.3 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.352e-06/1.352e-06, allocations: 0 / 325 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.902e-05/2.037e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005585/0.005605, allocations: 4.083 MB / 329.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003001/0.008607, allocations: 1.535 MB / 330.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002878/0.008895, allocations: 17.59 kB / 330.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004094/0.009304, allocations: 142.6 kB / 330.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006256/0.00993, allocations: 293.9 kB / 331.1 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000996/0.01093, allocations: 440.3 kB / 331.5 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00122/0.01215, allocations: 1.206 MB / 332.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000324/0.01247, allocations: 171.8 kB / 332.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009537/0.01342, allocations: 0.698 MB / 333.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006201/0.01404, allocations: 438.3 kB / 334 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001544/0.0142, allocations: 95.03 kB / 334.1 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003529/0.01455, allocations: 170.3 kB / 334.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000296/0.01485, allocations: 238.6 kB / 334.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004022/0.01525, allocations: 342.1 kB / 334.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001389/0.01664, allocations: 1.21 MB / 336.1 MB, free: 9.238 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.01664, allocations: 1.312 kB / 336.1 MB, free: 9.238 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.01664, allocations: 0 / 336.1 MB, free: 9.238 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.01665, allocations: 0 / 336.1 MB, free: 9.238 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.003555/0.02021, allocations: 1.4 MB / 337.5 MB, free: 8.234 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/0.02024, allocations: 8.969 kB / 337.5 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005308/0.02077, allocations: 118.6 kB / 337.6 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007482/0.02152, allocations: 413.9 kB / 338 MB, free: 7.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.868e-05/0.02158, allocations: 56.59 kB / 338.1 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001365/0.02172, allocations: 69.62 kB / 338.1 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001766/0.02348, allocations: 0.8 MB / 338.9 MB, free: 7.188 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.237e-05/0.02351, allocations: 11.89 kB / 338.9 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.293e-05/0.02361, allocations: 28 kB / 339 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.729e-05/0.02362, allocations: 16 kB / 339 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002124/0.02575, allocations: 0.8354 MB / 339.8 MB, free: 6.301 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004429/0.03018, allocations: 1.87 MB / 341.7 MB, free: 4.371 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001611/0.03179, allocations: 0.6748 MB / 342.4 MB, free: 3.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000971/0.03276, allocations: 432.1 kB / 342.8 MB, free: 3.254 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.991e-05/0.03283, allocations: 9 kB / 342.8 MB, free: 3.246 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001278/0.03411, allocations: 0.5399 MB / 343.3 MB, free: 2.688 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.926e-06/0.03411, allocations: 0 / 343.3 MB, free: 2.688 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.01227/0.04638, allocations: 3.78 MB / 347.1 MB, free: 14.87 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.622e-05/0.04643, allocations: 64.41 kB / 347.2 MB, free: 14.79 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000556/0.04699, allocations: 417.7 kB / 347.6 MB, free: 14.38 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001178/0.04711, allocations: 57.7 kB / 347.6 MB, free: 14.32 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002533/0.04736, allocations: 285.5 kB / 347.9 MB, free: 14.04 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003697/0.04773, allocations: 388.7 kB / 348.3 MB, free: 13.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004124/0.04814, allocations: 190.9 kB / 348.5 MB, free: 13.46 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002868/0.04843, allocations: 374.8 kB / 348.9 MB, free: 13.09 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001031/0.04946, allocations: 410.4 kB / 349.3 MB, free: 12.69 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001175/0.05063, allocations: 0.5072 MB / 349.8 MB, free: 12.16 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001841/0.05248, allocations: 0.7479 MB / 350.5 MB, free: 11.39 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.05248, allocations: 4 kB / 350.5 MB, free: 11.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003432/0.05591, allocations: 1.28 MB / 351.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.05594, allocations: 4 kB / 351.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.05595, allocations: 8 kB / 351.8 MB, free: 10.08 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001254/0.0572, allocations: 0.5333 MB / 352.3 MB, free: 9.539 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000924/0.05812, allocations: 195.7 kB / 352.5 MB, free: 9.348 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004985/0.06311, allocations: 3.268 MB / 355.8 MB, free: 5.926 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/0.06446, allocations: 175.8 kB / 356 MB, free: 5.754 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001203/0.06458, allocations: 35.98 kB / 356 MB, free: 5.719 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,massWithStopAndFriction.stopped,massWithStopAndFriction.mode,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.locked,massWithStopAndFriction.startBackward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,elastoGap.contact,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,9), (1,5), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0004507/0.06503, allocations: 221.7 kB / 356.2 MB, free: 5.496 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001734/0.0652, allocations: 75.53 kB / 356.3 MB, free: 5.422 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002583/0.06546, allocations: 111.1 kB / 356.4 MB, free: 5.309 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/0.06547, allocations: 12 kB / 356.4 MB, free: 5.297 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.06548, allocations: 0 / 356.4 MB, free: 5.297 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.396e-05/0.06549, allocations: 7.922 kB / 356.4 MB, free: 5.289 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004906/0.0704, allocations: 2.141 MB / 358.6 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.0704, allocations: 128 / 358.6 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008317/0.07124, allocations: 179.9 kB / 358.7 MB, free: 2.898 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001066/0.0723, allocations: 0.506 MB / 359.2 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.922e-05/0.07239, allocations: 31.97 kB / 359.3 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004138/0.07653, allocations: 3.042 MB / 362.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.07653, allocations: 4.031 kB / 362.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004085/0.08062, allocations: 1.757 MB / 364.1 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003954/0.08101, allocations: 155.4 kB / 364.2 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001574/0.08117, allocations: 32 kB / 364.3 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001496/0.08267, allocations: 207.7 kB / 364.5 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001014/0.08368, allocations: 392.4 kB / 364.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.87e-05/0.08378, allocations: 47.95 kB / 364.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003373/0.08412, allocations: 275.1 kB / 365.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.08412, allocations: 0 / 365.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008233/0.08494, allocations: 251.9 kB / 365.4 MB, free: 12.02 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,7), (1,8), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00154/0.08648, allocations: 437.8 kB / 365.8 MB, free: 11.74 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002598/0.08908, allocations: 1.087 MB / 366.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.08908, allocations: 4 kB / 366.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001721/0.0908, allocations: 0.7312 MB / 367.7 MB, free: 9.891 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009017/0.09171, allocations: 152.9 kB / 367.8 MB, free: 9.746 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004105/0.09581, allocations: 1.807 MB / 369.6 MB, free: 7.887 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003823/0.09619, allocations: 353.5 kB / 370 MB, free: 7.516 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003389/0.09653, allocations: 81.64 kB / 370 MB, free: 7.434 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000225/0.09676, allocations: 68.48 kB / 370.1 MB, free: 7.367 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.09676, allocations: 4 kB / 370.1 MB, free: 7.363 MB / 334.1 MB Notification: Performance of Templates: time 0.02801/0.1248, allocations: 15.86 MB / 386 MB, free: 7.629 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.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: 4.955770742148161]