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.001304/0.001304, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001539/0.001539, allocations: 209.8 kB / 23.73 MB, free: 4.387 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.531/1.531, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.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 0.002576/0.002576, allocations: 51.92 kB / 378.2 MB, free: 2.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.2912, allocations: 53.36 MB / 431.6 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005882/0.2971, allocations: 4.066 MB / 435.6 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003214/0.3003, allocations: 1.516 MB / 437.2 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003501/0.3006, allocations: 19.88 kB / 437.2 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004093/0.301, allocations: 138.6 kB / 437.3 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006238/0.3017, allocations: 281.7 kB / 437.6 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009898/0.3026, allocations: 438.2 kB / 438 MB, free: 240 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001213/0.3039, allocations: 1.174 MB / 439.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003484/0.3042, allocations: 176.8 kB / 439.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007346/0.3049, allocations: 0.5064 MB / 439.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000659/0.3056, allocations: 494 kB / 440.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001607/0.3058, allocations: 92 kB / 440.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003409/0.3061, allocations: 164 kB / 440.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002704/0.3064, allocations: 251.2 kB / 440.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003955/0.3068, allocations: 398.3 kB / 441.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001335/0.3081, allocations: 1.136 MB / 442.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3081, allocations: 0 / 442.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3081, allocations: 0 / 442.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.56e-05/0.3081, allocations: 3.938 kB / 442.4 MB, free: 11.85 MB / 350.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.003581/0.3117, allocations: 1.391 MB / 443.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.3118, allocations: 12.03 kB / 443.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005401/0.3123, allocations: 120.3 kB / 443.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008579/0.3132, allocations: 412 kB / 444.3 MB, free: 9.859 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.065e-05/0.3132, allocations: 54.38 kB / 444.4 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001502/0.3134, allocations: 84.06 kB / 444.4 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001784/0.3151, allocations: 0.7998 MB / 445.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.849e-05/0.3152, allocations: 0 / 445.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.769e-05/0.3153, allocations: 31.98 kB / 445.3 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.897e-05/0.3153, allocations: 16 kB / 445.3 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002055/0.3173, allocations: 0.8393 MB / 446.1 MB, free: 8.031 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004293/0.3216, allocations: 1.869 MB / 448 MB, free: 6.102 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001534/0.3232, allocations: 0.686 MB / 448.7 MB, free: 5.406 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009375/0.3241, allocations: 420.3 kB / 449.1 MB, free: 4.988 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.763e-05/0.3242, allocations: 12.94 kB / 449.1 MB, free: 4.977 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00117/0.3253, allocations: 0.5399 MB / 449.6 MB, free: 4.422 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.946e-06/0.3253, allocations: 0 / 449.6 MB, free: 4.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.01134/0.3367, allocations: 3.798 MB / 453.4 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/0.3367, allocations: 64.41 kB / 453.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005153/0.3373, allocations: 405.9 kB / 453.9 MB, free: 120 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.792e-05/0.3374, allocations: 53.69 kB / 453.9 MB, free: 60 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002458/0.3376, allocations: 281.6 kB / 454.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000348/0.3379, allocations: 400.7 kB / 454.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003306/0.3383, allocations: 190.8 kB / 454.8 MB, free: 15.19 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001904/0.3385, allocations: 378.8 kB / 455.2 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009859/0.3395, allocations: 414.4 kB / 455.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001091/0.3405, allocations: 0.5072 MB / 456.1 MB, free: 13.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001708/0.3423, allocations: 0.744 MB / 456.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3423, allocations: 0 / 456.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003193/0.3455, allocations: 1.28 MB / 458.1 MB, free: 11.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.3455, allocations: 11.94 kB / 458.1 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.934e-06/0.3455, allocations: 0 / 458.1 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001159/0.3466, allocations: 0.5373 MB / 458.7 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000813/0.3475, allocations: 199.6 kB / 458.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004602/0.3521, allocations: 3.254 MB / 462.1 MB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001205/0.3533, allocations: 171.9 kB / 462.3 MB, free: 7.488 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.303e-05/0.3533, allocations: 40.11 kB / 462.3 MB, free: 7.449 MB / 366.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.0004182/0.3538, allocations: 240.7 kB / 462.5 MB, free: 7.207 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001539/0.3539, allocations: 75.53 kB / 462.6 MB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000246/0.3542, allocations: 107.1 kB / 462.7 MB, free: 7.027 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.979e-06/0.3542, allocations: 11.94 kB / 462.7 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.3542, allocations: 4.188 kB / 462.7 MB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.3542, allocations: 3.984 kB / 462.7 MB, free: 7.008 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004689/0.3589, allocations: 2.133 MB / 464.9 MB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/0.3589, allocations: 4 kB / 464.9 MB, free: 4.797 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008022/0.3597, allocations: 167.8 kB / 465 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001012/0.3607, allocations: 0.4982 MB / 465.5 MB, free: 4.125 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.93e-05/0.3608, allocations: 43.95 kB / 465.6 MB, free: 4.082 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00389/0.3647, allocations: 3.045 MB / 468.6 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/0.3647, allocations: 0 / 468.6 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003916/0.3686, allocations: 1.772 MB / 470.4 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004523/0.369, allocations: 167.3 kB / 470.6 MB, free: 14.9 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001415/0.3692, allocations: 32 kB / 470.6 MB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001347/0.3705, allocations: 199.7 kB / 470.8 MB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000923/0.3715, allocations: 388.2 kB / 471.2 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001102/0.3716, allocations: 51.95 kB / 471.2 MB, free: 14.24 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003477/0.3719, allocations: 271.2 kB / 471.5 MB, free: 13.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3719, allocations: 0 / 471.5 MB, free: 13.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008131/0.3727, allocations: 251.9 kB / 471.7 MB, free: 13.73 MB / 382.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.001511/0.3742, allocations: 426.7 kB / 472.2 MB, free: 13.46 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00262/0.3769, allocations: 1.083 MB / 473.2 MB, free: 12.37 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.3769, allocations: 3.938 kB / 473.2 MB, free: 12.37 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00164/0.3785, allocations: 0.7269 MB / 474 MB, free: 11.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009049/0.3794, allocations: 157.5 kB / 474.1 MB, free: 11.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004805/0.3842, allocations: 2.019 MB / 476.1 MB, free: 9.402 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006058/0.3848, allocations: 353.5 kB / 476.5 MB, free: 9.027 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004473/0.3853, allocations: 85.59 kB / 476.6 MB, free: 8.941 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002739/0.3855, allocations: 67.41 kB / 476.6 MB, free: 8.875 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3855, allocations: 0 / 476.6 MB, free: 8.875 MB / 382.1 MB Notification: Performance of Templates: time 0.0307/0.4162, allocations: 16.72 MB / 493.4 MB, free: 8.285 MB / 398.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: 5.23929819278419]