Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.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.0009701/0.0009701, allocations: 85.17 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.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.001093/0.001093, allocations: 147.4 kB / 24.9 MB, free: 8.727 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.9658/0.9658, allocations: 173.4 MB / 201.5 MB, free: 8.738 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.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.0.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.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 268.5 MB, free: 5.977 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.104e-05/2.245e-05, allocations: 10.05 kB / 268.5 MB, free: 5.969 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.003743/0.003765, allocations: 4.217 MB / 272.7 MB, free: 1.719 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001682/0.005447, allocations: 1.418 MB / 274.1 MB, free: 304 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001721/0.005619, allocations: 15.88 kB / 274.2 MB, free: 288 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002418/0.005861, allocations: 118.8 kB / 274.3 MB, free: 168 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002628/0.006124, allocations: 241.9 kB / 274.5 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006031/0.006727, allocations: 435 kB / 274.9 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00066/0.007387, allocations: 1.158 MB / 276.1 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002119/0.007599, allocations: 188.1 kB / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005169/0.008116, allocations: 0.6783 MB / 277 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000351/0.008467, allocations: 423 kB / 277.4 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.486e-05/0.008562, allocations: 92 kB / 277.5 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001936/0.008755, allocations: 159.9 kB / 277.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001406/0.008896, allocations: 231.3 kB / 277.8 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000201/0.009097, allocations: 327.2 kB / 278.2 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000577/0.009674, allocations: 0.8176 MB / 279 MB, free: 11.42 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.633e-06/0.009676, allocations: 0 / 279 MB, free: 11.42 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.009677, allocations: 0 / 279 MB, free: 11.42 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.009682, allocations: 0 / 279 MB, free: 11.42 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.001249/0.01093, allocations: 1.104 MB / 280.1 MB, free: 10.29 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.807e-05/0.01096, allocations: 12.92 kB / 280.1 MB, free: 10.27 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001799/0.01114, allocations: 112.8 kB / 280.2 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003405/0.01148, allocations: 327.3 kB / 280.5 MB, free: 9.816 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.438e-05/0.01154, allocations: 50.38 kB / 280.6 MB, free: 9.77 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.759e-05/0.01162, allocations: 76.33 kB / 280.7 MB, free: 9.695 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006334/0.01226, allocations: 0.5705 MB / 281.2 MB, free: 9.117 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/0.01228, allocations: 8.141 kB / 281.2 MB, free: 9.109 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.464e-05/0.01232, allocations: 32.11 kB / 281.3 MB, free: 9.078 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.01233, allocations: 16 kB / 281.3 MB, free: 9.062 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005256/0.01286, allocations: 357.7 kB / 281.6 MB, free: 8.711 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001752/0.01461, allocations: 1.361 MB / 283 MB, free: 7.312 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006057/0.01521, allocations: 402.3 kB / 283.4 MB, free: 6.91 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002276/0.01544, allocations: 207.7 kB / 283.6 MB, free: 6.711 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.101e-05/0.01549, allocations: 17 kB / 283.6 MB, free: 6.695 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003342/0.01583, allocations: 356.8 kB / 283.9 MB, free: 6.332 MB / 266.7 MB Notification: Performance of pre-optimization done (n=86): time 1.803e-06/0.01583, allocations: 0 / 283.9 MB, free: 6.332 MB / 266.7 MB Notification: Performance of matching and sorting (n=106): time 0.003569/0.0194, allocations: 2.466 MB / 286.4 MB, free: 3.832 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.79e-05/0.01943, allocations: 64.41 kB / 286.5 MB, free: 3.758 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001816/0.01961, allocations: 347.2 kB / 286.8 MB, free: 3.406 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.255e-05/0.01966, allocations: 61.69 kB / 286.9 MB, free: 3.34 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.259e-05/0.01975, allocations: 254 kB / 287.1 MB, free: 3.086 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001644/0.01992, allocations: 372.8 kB / 287.5 MB, free: 2.719 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001775/0.02009, allocations: 190.8 kB / 287.7 MB, free: 2.527 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.039e-05/0.02018, allocations: 378.6 kB / 288 MB, free: 2.148 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002375/0.02042, allocations: 166.5 kB / 288.2 MB, free: 1.984 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002363/0.02066, allocations: 271.3 kB / 288.5 MB, free: 1.703 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003927/0.02105, allocations: 445.7 kB / 288.9 MB, free: 1.254 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.02105, allocations: 0 / 288.9 MB, free: 1.254 MB / 266.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.0008641/0.02192, allocations: 0.7101 MB / 289.6 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.02194, allocations: 6.969 kB / 289.6 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.02194, allocations: 0 / 289.6 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005536/0.0225, allocations: 0.5059 MB / 290.1 MB, free: 8 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1081/0.1306, allocations: 203.4 kB / 290.3 MB, free: 29.58 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001976/0.1325, allocations: 2.719 MB / 293 MB, free: 27.29 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005868/0.1331, allocations: 116.8 kB / 293.2 MB, free: 27.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.632e-05/0.1332, allocations: 27.23 kB / 293.2 MB, free: 27.29 MB / 266.7 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,7), (1,5), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002971/0.1335, allocations: 179.2 kB / 293.4 MB, free: 27.17 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001405/0.1336, allocations: 78.86 kB / 293.4 MB, free: 27.17 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001155/0.1337, allocations: 107.2 kB / 293.5 MB, free: 27.16 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.428e-06/0.1337, allocations: 11 kB / 293.6 MB, free: 27.16 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.1338, allocations: 4.969 kB / 293.6 MB, free: 27.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.1338, allocations: 9.188 kB / 293.6 MB, free: 27.16 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002062/0.1358, allocations: 1.315 MB / 294.9 MB, free: 26.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.1358, allocations: 2.953 kB / 294.9 MB, free: 26.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004755/0.1363, allocations: 190.4 kB / 295.1 MB, free: 26.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000637/0.1369, allocations: 0.4955 MB / 295.6 MB, free: 26.81 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.907e-05/0.137, allocations: 33.69 kB / 295.6 MB, free: 26.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001399/0.1384, allocations: 2.574 MB / 298.2 MB, free: 24.66 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.1384, allocations: 2.125 kB / 298.2 MB, free: 24.66 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001344/0.1398, allocations: 0.9898 MB / 299.2 MB, free: 24.4 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002388/0.14, allocations: 91.09 kB / 299.3 MB, free: 24.4 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.699e-05/0.1401, allocations: 31.47 kB / 299.3 MB, free: 24.4 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004107/0.1405, allocations: 137.6 kB / 299.4 MB, free: 24.39 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005713/0.1411, allocations: 362.3 kB / 299.8 MB, free: 24.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.721e-05/0.1411, allocations: 34.91 kB / 299.8 MB, free: 24.39 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001478/0.1413, allocations: 135.2 kB / 299.9 MB, free: 24.37 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1413, allocations: 0 / 299.9 MB, free: 24.37 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000744/0.142, allocations: 251.1 kB / 300.2 MB, free: 24.37 MB / 266.7 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 (89): * Single equations (assignments): 86 * 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,6), (1,6), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002769/0.1423, allocations: 156.2 kB / 300.3 MB, free: 24.29 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001135/0.1435, allocations: 0.684 MB / 301 MB, free: 24.14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.261e-05/0.1435, allocations: 3.938 kB / 301 MB, free: 24.14 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006286/0.1441, allocations: 472.7 kB / 301.5 MB, free: 24.01 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005535/0.1446, allocations: 168.1 kB / 301.7 MB, free: 24 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002758/0.1474, allocations: 1.512 MB / 303.2 MB, free: 23.31 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001535/0.1476, allocations: 168.7 kB / 303.3 MB, free: 23.23 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003163/0.1479, allocations: 78.92 kB / 303.4 MB, free: 23.21 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003664/0.1482, allocations: 192.6 kB / 303.6 MB, free: 23.16 MB / 266.7 MB Notification: Performance of SimCode: time 1.202e-06/0.1482, allocations: 0 / 303.6 MB, free: 23.16 MB / 266.7 MB Notification: Performance of Templates: time 0.02211/0.1704, allocations: 17.19 MB / 320.8 MB, free: 9.25 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.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.1417716811411083]