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.001175/0.001175, allocations: 77.14 kB / 21.5 MB, free: 2.832 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.001324/0.001324, allocations: 142.9 kB / 24.89 MB, free: 9.277 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.943/0.943, allocations: 173.4 MB / 201.5 MB, free: 8.266 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.463e-06/1.463e-06, allocations: 0 / 268.5 MB, free: 9.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.63e-05/1.776e-05, allocations: 2.312 kB / 268.5 MB, free: 9.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005473/0.005491, allocations: 4.175 MB / 272.6 MB, free: 5.629 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002991/0.008481, allocations: 1.412 MB / 274.1 MB, free: 4.223 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003249/0.008806, allocations: 19.88 kB / 274.1 MB, free: 4.203 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003596/0.009166, allocations: 118.8 kB / 274.2 MB, free: 4.086 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005129/0.009679, allocations: 237.8 kB / 274.4 MB, free: 3.852 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00113/0.01081, allocations: 435 kB / 274.8 MB, free: 3.426 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001269/0.01208, allocations: 1.177 MB / 276 MB, free: 2.238 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003316/0.01241, allocations: 184.1 kB / 276.2 MB, free: 2.039 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009615/0.01337, allocations: 0.6706 MB / 276.9 MB, free: 1.367 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000633/0.014, allocations: 431 kB / 277.3 MB, free: 0.9453 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002049/0.01421, allocations: 88 kB / 277.4 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002886/0.0145, allocations: 151.9 kB / 277.5 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002148/0.01471, allocations: 231.2 kB / 277.8 MB, free: 496 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003949/0.01511, allocations: 323.2 kB / 278.1 MB, free: 172 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001128/0.01623, allocations: 0.8176 MB / 278.9 MB, free: 15.35 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.01624, allocations: 4 kB / 278.9 MB, free: 15.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.01624, allocations: 0 / 278.9 MB, free: 15.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.464e-05/0.01626, allocations: 4 kB / 278.9 MB, free: 15.34 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.002166/0.01842, allocations: 1.1 MB / 280 MB, free: 14.21 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.01846, allocations: 12.03 kB / 280 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003086/0.01877, allocations: 120.8 kB / 280.1 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005609/0.01933, allocations: 311.5 kB / 280.4 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.397e-05/0.01939, allocations: 54.38 kB / 280.5 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001363/0.01952, allocations: 80.31 kB / 280.6 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.02056, allocations: 0.5705 MB / 281.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.589e-05/0.0206, allocations: 12.12 kB / 281.1 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.684e-05/0.02067, allocations: 28.12 kB / 281.2 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.149e-05/0.02069, allocations: 20 kB / 281.2 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000785/0.02148, allocations: 365.6 kB / 281.5 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003083/0.02456, allocations: 1.35 MB / 282.9 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007968/0.02536, allocations: 410.1 kB / 283.3 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003742/0.02573, allocations: 208.3 kB / 283.5 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.397e-05/0.02581, allocations: 17 kB / 283.5 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005531/0.02636, allocations: 348.9 kB / 283.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of pre-optimization done (n=86): time 3.286e-06/0.02636, allocations: 0 / 283.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=106): time 0.006121/0.03248, allocations: 2.469 MB / 286.3 MB, free: 7.754 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/0.03253, allocations: 68.34 kB / 286.4 MB, free: 7.676 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003293/0.03286, allocations: 351.1 kB / 286.7 MB, free: 7.32 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.85e-05/0.03294, allocations: 57.69 kB / 286.8 MB, free: 7.258 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.0331, allocations: 242.1 kB / 287 MB, free: 7.016 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002795/0.03338, allocations: 372.8 kB / 287.4 MB, free: 6.648 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003038/0.03368, allocations: 190.8 kB / 287.6 MB, free: 6.457 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.03383, allocations: 386.6 kB / 288 MB, free: 6.07 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004156/0.03424, allocations: 166.5 kB / 288.1 MB, free: 5.906 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004151/0.03466, allocations: 263.4 kB / 288.4 MB, free: 5.633 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006766/0.03534, allocations: 445.6 kB / 288.8 MB, free: 5.184 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.03534, allocations: 0 / 288.8 MB, free: 5.184 MB / 266.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.00151/0.03685, allocations: 0.7101 MB / 289.5 MB, free: 4.457 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.03687, allocations: 4 kB / 289.5 MB, free: 4.453 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.03688, allocations: 4 kB / 289.5 MB, free: 4.449 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009433/0.03782, allocations: 0.502 MB / 290 MB, free: 3.938 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006268/0.03845, allocations: 199.7 kB / 290.2 MB, free: 3.742 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002717/0.04116, allocations: 2.714 MB / 292.9 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000674/0.04184, allocations: 119.9 kB / 293.1 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.409e-05/0.04191, allocations: 35.97 kB / 293.1 MB, free: 0.7305 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.0003195/0.04223, allocations: 172.5 kB / 293.3 MB, free: 0.5508 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001642/0.0424, allocations: 79.92 kB / 293.3 MB, free: 484 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000143/0.04254, allocations: 102.9 kB / 293.4 MB, free: 380 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.04255, allocations: 12 kB / 293.5 MB, free: 368 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.04256, allocations: 3.938 kB / 293.5 MB, free: 364 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.04257, allocations: 7.969 kB / 293.5 MB, free: 356 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002804/0.04537, allocations: 1.326 MB / 294.8 MB, free: 14.96 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.874e-06/0.04538, allocations: 7.984 kB / 294.8 MB, free: 14.95 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006142/0.046, allocations: 163.8 kB / 295 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007298/0.04673, allocations: 0.4944 MB / 295.5 MB, free: 14.29 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.072e-05/0.04678, allocations: 31.97 kB / 295.5 MB, free: 14.26 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00152/0.0483, allocations: 2.566 MB / 298 MB, free: 11.55 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.0483, allocations: 11.92 kB / 298.1 MB, free: 11.54 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001181/0.04948, allocations: 0.9882 MB / 299 MB, free: 10.51 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002261/0.04971, allocations: 87.53 kB / 299.1 MB, free: 10.42 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.963e-05/0.04979, allocations: 32 kB / 299.2 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004147/0.0502, allocations: 143.8 kB / 299.3 MB, free: 10.25 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005757/0.05078, allocations: 360.2 kB / 299.7 MB, free: 9.898 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-05/0.05083, allocations: 31.95 kB / 299.7 MB, free: 9.867 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001012/0.05093, allocations: 136.7 kB / 299.8 MB, free: 9.73 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.05093, allocations: 4 kB / 299.8 MB, free: 9.727 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005478/0.05148, allocations: 243.9 kB / 300.1 MB, free: 9.488 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.0002343/0.05171, allocations: 156.8 kB / 300.2 MB, free: 9.332 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008399/0.05255, allocations: 0.6833 MB / 300.9 MB, free: 8.637 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.072e-06/0.05256, allocations: 4 kB / 300.9 MB, free: 8.633 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004345/0.05299, allocations: 487.5 kB / 301.4 MB, free: 8.137 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000445/0.05344, allocations: 166.4 kB / 301.5 MB, free: 7.98 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002114/0.05555, allocations: 1.518 MB / 303.1 MB, free: 6.406 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001263/0.05568, allocations: 176.9 kB / 303.2 MB, free: 6.215 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002022/0.05588, allocations: 73.34 kB / 303.3 MB, free: 6.141 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002855/0.05616, allocations: 189.2 kB / 303.5 MB, free: 5.953 MB / 282.7 MB Notification: Performance of SimCode: time 1.302e-06/0.05616, allocations: 4 kB / 303.5 MB, free: 5.949 MB / 282.7 MB Notification: Performance of Templates: time 0.0189/0.07506, allocations: 17.07 MB / 320.6 MB, free: 5.035 MB / 298.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.0276575121097267]