Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009377/0.0009377, allocations: 80.8 kB / 22.28 MB, free: 2.211 MB / 18.57 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.0009361/0.0009361, allocations: 165.1 kB / 25.7 MB, free: 8.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8812/0.8812, allocations: 158.6 MB / 187.6 MB, free: 2.801 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 251.5 MB, free: 7.293 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.525e-05/1.648e-05, allocations: 6.25 kB / 251.5 MB, free: 7.285 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.003571/0.003588, allocations: 4.192 MB / 255.7 MB, free: 3.055 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002037/0.005625, allocations: 1.368 MB / 257.1 MB, free: 1.684 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002162/0.005841, allocations: 15.88 kB / 257.1 MB, free: 1.668 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002527/0.006093, allocations: 118.8 kB / 257.2 MB, free: 1.551 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002996/0.006393, allocations: 237.8 kB / 257.4 MB, free: 1.316 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007522/0.007145, allocations: 443 kB / 257.9 MB, free: 0.8828 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000755/0.0079, allocations: 1.166 MB / 259 MB, free: 15.71 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002426/0.008143, allocations: 184.1 kB / 259.2 MB, free: 15.52 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006629/0.008806, allocations: 0.6706 MB / 259.9 MB, free: 14.84 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003656/0.009171, allocations: 434.9 kB / 260.3 MB, free: 14.42 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.814e-05/0.00927, allocations: 96 kB / 260.4 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001903/0.00946, allocations: 140 kB / 260.5 MB, free: 14.19 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.009606, allocations: 231.2 kB / 260.8 MB, free: 13.96 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000217/0.009823, allocations: 323.3 kB / 261.1 MB, free: 13.64 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006315/0.01045, allocations: 0.8254 MB / 261.9 MB, free: 12.82 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.01046, allocations: 0 / 261.9 MB, free: 12.82 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.01046, allocations: 0 / 261.9 MB, free: 12.82 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.01047, allocations: 0 / 261.9 MB, free: 12.82 MB / 250.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.001334/0.0118, allocations: 1.108 MB / 263 MB, free: 11.68 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.058e-05/0.01183, allocations: 15.98 kB / 263 MB, free: 11.66 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001996/0.01203, allocations: 128.8 kB / 263.2 MB, free: 11.54 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003539/0.01238, allocations: 311.4 kB / 263.5 MB, free: 11.21 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.408e-05/0.01242, allocations: 54.38 kB / 263.5 MB, free: 11.16 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.613e-05/0.0125, allocations: 72.36 kB / 263.6 MB, free: 11.09 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006242/0.01313, allocations: 0.5783 MB / 264.2 MB, free: 10.5 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.01315, allocations: 4.141 kB / 264.2 MB, free: 10.5 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.92e-05/0.0132, allocations: 32.12 kB / 264.2 MB, free: 10.47 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.01321, allocations: 16 kB / 264.2 MB, free: 10.45 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004711/0.01368, allocations: 357.6 kB / 264.6 MB, free: 10.1 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/0.0155, allocations: 1.354 MB / 265.9 MB, free: 8.703 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004634/0.01597, allocations: 414 kB / 266.3 MB, free: 8.289 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000213/0.01618, allocations: 204.1 kB / 266.5 MB, free: 8.094 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.355e-05/0.01623, allocations: 17 kB / 266.5 MB, free: 8.078 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003264/0.01656, allocations: 352.9 kB / 266.9 MB, free: 7.723 MB / 250.7 MB Notification: Performance of pre-optimization done (n=86): time 2.424e-06/0.01656, allocations: 0 / 266.9 MB, free: 7.723 MB / 250.7 MB Notification: Performance of matching and sorting (n=106): time 0.003505/0.02007, allocations: 2.466 MB / 269.3 MB, free: 5.223 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.637e-05/0.02009, allocations: 68.34 kB / 269.4 MB, free: 5.141 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001881/0.02028, allocations: 351.2 kB / 269.8 MB, free: 4.789 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.295e-05/0.02034, allocations: 57.69 kB / 269.8 MB, free: 4.727 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.257e-05/0.02044, allocations: 242.1 kB / 270 MB, free: 4.48 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000183/0.02062, allocations: 380.8 kB / 270.4 MB, free: 4.105 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001793/0.0208, allocations: 182.8 kB / 270.6 MB, free: 3.918 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.814e-05/0.0209, allocations: 382.6 kB / 271 MB, free: 3.535 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002394/0.02114, allocations: 170.5 kB / 271.1 MB, free: 3.371 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002547/0.02139, allocations: 271.4 kB / 271.4 MB, free: 3.086 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004089/0.0218, allocations: 433.7 kB / 271.8 MB, free: 2.648 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.0218, allocations: 4 kB / 271.8 MB, free: 2.645 MB / 250.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.0009062/0.02271, allocations: 0.7101 MB / 272.5 MB, free: 1.918 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.02272, allocations: 4 kB / 272.5 MB, free: 1.914 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.02273, allocations: 0 / 272.5 MB, free: 1.914 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005636/0.02329, allocations: 0.5137 MB / 273.1 MB, free: 1.391 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003719/0.02366, allocations: 195.7 kB / 273.3 MB, free: 1.199 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001768/0.02543, allocations: 2.714 MB / 276 MB, free: 14.35 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004853/0.02592, allocations: 119.9 kB / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.663e-05/0.02597, allocations: 27.98 kB / 276.1 MB, free: 14.2 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.0002087/0.02618, allocations: 180.6 kB / 276.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.02631, allocations: 79.92 kB / 276.4 MB, free: 13.94 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000115/0.02643, allocations: 98.91 kB / 276.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.02643, allocations: 12 kB / 276.5 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.02644, allocations: 3.938 kB / 276.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.02645, allocations: 4.031 kB / 276.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002083/0.02853, allocations: 1.326 MB / 277.8 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.02854, allocations: 0 / 277.8 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004806/0.02902, allocations: 167.8 kB / 278 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006757/0.02969, allocations: 0.5023 MB / 278.5 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.106e-05/0.02975, allocations: 27.97 kB / 278.5 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001781/0.03153, allocations: 2.557 MB / 281.1 MB, free: 9.031 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.03154, allocations: 7.922 kB / 281.1 MB, free: 9.023 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001414/0.03295, allocations: 0.9921 MB / 282.1 MB, free: 7.988 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002325/0.03319, allocations: 95.52 kB / 282.2 MB, free: 7.895 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.917e-05/0.03328, allocations: 28 kB / 282.2 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005213/0.03381, allocations: 135.8 kB / 282.3 MB, free: 7.734 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005781/0.03438, allocations: 360.2 kB / 282.7 MB, free: 7.379 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.994e-05/0.03444, allocations: 39.95 kB / 282.7 MB, free: 7.34 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.00012/0.03456, allocations: 136.7 kB / 282.8 MB, free: 7.207 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03456, allocations: 0 / 282.8 MB, free: 7.207 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005836/0.03515, allocations: 247.9 kB / 283.1 MB, free: 6.965 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.0002175/0.03537, allocations: 150.1 kB / 283.2 MB, free: 6.809 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009292/0.03629, allocations: 0.6864 MB / 283.9 MB, free: 6.109 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.325e-06/0.0363, allocations: 7.938 kB / 283.9 MB, free: 6.102 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005371/0.03684, allocations: 474.8 kB / 284.4 MB, free: 5.621 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005323/0.03737, allocations: 166.6 kB / 284.5 MB, free: 5.461 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002334/0.03971, allocations: 1.514 MB / 286.1 MB, free: 3.887 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001247/0.03983, allocations: 169.1 kB / 286.2 MB, free: 3.699 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002428/0.04007, allocations: 69.36 kB / 286.3 MB, free: 3.629 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003295/0.0404, allocations: 193.2 kB / 286.5 MB, free: 3.441 MB / 266.7 MB Notification: Performance of SimCode: time 9.32e-07/0.0404, allocations: 0 / 286.5 MB, free: 3.441 MB / 266.7 MB Notification: Performance of Templates: time 0.02146/0.06187, allocations: 17.08 MB / 303.6 MB, free: 2.359 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.0475674318149686]