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.001089/0.001089, allocations: 80.72 kB / 22.21 MB, free: 2.289 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.001121/0.001121, allocations: 143 kB / 25.59 MB, free: 8.605 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.982/0.982, allocations: 173.4 MB / 202.2 MB, free: 8.316 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 9.42e-07/9.42e-07, allocations: 0 / 269.2 MB, free: 9.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.769e-05/1.864e-05, allocations: 2.312 kB / 269.2 MB, free: 9.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.003696/0.003715, allocations: 4.18 MB / 273.4 MB, free: 5.609 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001664/0.005379, allocations: 1.366 MB / 274.7 MB, free: 4.25 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001844/0.005563, allocations: 13.78 kB / 274.7 MB, free: 4.238 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002112/0.005774, allocations: 118.8 kB / 274.9 MB, free: 4.121 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000271/0.006045, allocations: 240.7 kB / 275.1 MB, free: 3.887 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006213/0.006667, allocations: 435.1 kB / 275.5 MB, free: 3.461 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007162/0.007383, allocations: 1.173 MB / 276.7 MB, free: 2.277 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002052/0.007588, allocations: 170.2 kB / 276.9 MB, free: 2.098 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005541/0.008142, allocations: 0.6706 MB / 277.5 MB, free: 1.426 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003605/0.008503, allocations: 435 kB / 277.9 MB, free: 1 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.119e-05/0.008594, allocations: 88 kB / 278 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001716/0.008765, allocations: 159.8 kB / 278.2 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001473/0.008913, allocations: 227.3 kB / 278.4 MB, free: 0.5352 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000216/0.009129, allocations: 331.2 kB / 278.7 MB, free: 216 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006145/0.009743, allocations: 0.8138 MB / 279.6 MB, free: 15.39 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.442e-06/0.009745, allocations: 0 / 279.6 MB, free: 15.39 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.009745, allocations: 0 / 279.6 MB, free: 15.39 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.009752, allocations: 3.938 kB / 279.6 MB, free: 15.39 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.001507/0.01126, allocations: 1.376 MB / 280.9 MB, free: 13.96 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.484e-05/0.01128, allocations: 8.031 kB / 280.9 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002008/0.01148, allocations: 140.4 kB / 281.1 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003649/0.01185, allocations: 406 kB / 281.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.28e-05/0.01188, allocations: 54.38 kB / 281.5 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.022e-05/0.01196, allocations: 72.31 kB / 281.6 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007878/0.01275, allocations: 0.5706 MB / 282.2 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.534e-05/0.01278, allocations: 8.141 kB / 282.2 MB, free: 12.69 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.54e-05/0.01283, allocations: 32.11 kB / 282.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.01284, allocations: 16 kB / 282.2 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005499/0.01339, allocations: 421.5 kB / 282.6 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002031/0.01542, allocations: 1.671 MB / 284.3 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005247/0.01595, allocations: 446 kB / 284.7 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002442/0.01619, allocations: 227.1 kB / 285 MB, free: 9.832 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.592e-05/0.01625, allocations: 21 kB / 285 MB, free: 9.812 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000363/0.01661, allocations: 354.6 kB / 285.3 MB, free: 9.449 MB / 266.7 MB Notification: Performance of pre-optimization done (n=86): time 1.683e-06/0.01661, allocations: 0 / 285.3 MB, free: 9.449 MB / 266.7 MB Notification: Performance of matching and sorting (n=106): time 0.003761/0.02037, allocations: 2.497 MB / 287.8 MB, free: 6.91 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.746e-05/0.0204, allocations: 64.41 kB / 287.9 MB, free: 6.832 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002226/0.02062, allocations: 406.3 kB / 288.3 MB, free: 6.422 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.484e-05/0.02069, allocations: 57.69 kB / 288.3 MB, free: 6.359 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.02082, allocations: 328.1 kB / 288.7 MB, free: 6.031 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002003/0.02102, allocations: 380.8 kB / 289 MB, free: 5.656 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002084/0.02123, allocations: 192.5 kB / 289.2 MB, free: 5.461 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.02136, allocations: 0.5468 MB / 289.8 MB, free: 4.902 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002763/0.02164, allocations: 198.5 kB / 290 MB, free: 4.707 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002834/0.02192, allocations: 312.3 kB / 290.3 MB, free: 4.379 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004664/0.02239, allocations: 454.8 kB / 290.7 MB, free: 3.914 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.02239, allocations: 3.938 kB / 290.7 MB, free: 3.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.001144/0.02354, allocations: 0.9015 MB / 291.6 MB, free: 2.988 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.02355, allocations: 6.031 kB / 291.6 MB, free: 2.984 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/0.02356, allocations: 4 kB / 291.6 MB, free: 2.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005687/0.02413, allocations: 0.5259 MB / 292.2 MB, free: 2.441 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000389/0.02451, allocations: 191.7 kB / 292.3 MB, free: 2.254 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002172/0.02669, allocations: 3.948 MB / 296.3 MB, free: 14.12 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003687/0.02706, allocations: 116 kB / 296.4 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.472e-05/0.0271, allocations: 31.98 kB / 296.4 MB, free: 13.98 MB / 282.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.0002091/0.02731, allocations: 228.4 kB / 296.7 MB, free: 13.74 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/0.02743, allocations: 99.58 kB / 296.8 MB, free: 13.64 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001011/0.02753, allocations: 102.9 kB / 296.9 MB, free: 13.54 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.02754, allocations: 19.94 kB / 296.9 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.02754, allocations: 0 / 296.9 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.02755, allocations: 3.984 kB / 296.9 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00197/0.02952, allocations: 1.71 MB / 298.6 MB, free: 11.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.02952, allocations: 4 kB / 298.6 MB, free: 11.73 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003743/0.0299, allocations: 172 kB / 298.8 MB, free: 11.56 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005624/0.03046, allocations: 0.5221 MB / 299.3 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.879e-05/0.03052, allocations: 47.91 kB / 299.3 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001947/0.03247, allocations: 3.713 MB / 303 MB, free: 7.086 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.03247, allocations: 4 kB / 303 MB, free: 7.082 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001515/0.03399, allocations: 1.225 MB / 304.3 MB, free: 5.797 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002474/0.03423, allocations: 155.4 kB / 304.4 MB, free: 5.645 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.445e-05/0.03432, allocations: 31.98 kB / 304.5 MB, free: 5.613 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004335/0.03475, allocations: 139.8 kB / 304.6 MB, free: 5.477 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000483/0.03523, allocations: 364.2 kB / 304.9 MB, free: 5.117 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.273e-05/0.03529, allocations: 35.97 kB / 305 MB, free: 5.082 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001294/0.03542, allocations: 259 kB / 305.2 MB, free: 4.832 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.03542, allocations: 0 / 305.2 MB, free: 4.832 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004786/0.03589, allocations: 251.9 kB / 305.5 MB, free: 4.586 MB / 282.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.0002003/0.03609, allocations: 171.8 kB / 305.6 MB, free: 4.414 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008507/0.03695, allocations: 0.7908 MB / 306.4 MB, free: 3.605 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.03695, allocations: 4.125 kB / 306.4 MB, free: 3.602 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000509/0.03746, allocations: 0.5399 MB / 307 MB, free: 3.035 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000487/0.03794, allocations: 173 kB / 307.1 MB, free: 2.871 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002151/0.04009, allocations: 1.681 MB / 308.8 MB, free: 1.121 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001055/0.0402, allocations: 165.1 kB / 309 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000205/0.04041, allocations: 73.34 kB / 309.1 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002956/0.0407, allocations: 222.1 kB / 309.3 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of SimCode: time 4.01e-07/0.0407, allocations: 0 / 309.3 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of Templates: time 0.02205/0.06275, allocations: 17.56 MB / 326.8 MB, free: 15.23 MB / 314.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 -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.366246269084513]