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.001817/0.001817, allocations: 112 kB / 20.43 MB, free: 1.457 MB / 14.72 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.002103/0.002103, allocations: 180.8 kB / 23.71 MB, free: 4.695 MB / 14.72 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 1.43/1.43, allocations: 225.6 MB / 252.5 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] 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 0.00227/0.00227, allocations: 43.92 kB / 370.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2562/0.2584, allocations: 52.19 MB / 423.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005999/0.2644, allocations: 4.345 MB / 427.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002886/0.2673, allocations: 1.399 MB / 428.9 MB, free: 8.898 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003478/0.2677, allocations: 15.88 kB / 428.9 MB, free: 8.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004086/0.2681, allocations: 118.8 kB / 429 MB, free: 8.766 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004493/0.2685, allocations: 230 kB / 429.2 MB, free: 8.539 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00162/0.2701, allocations: 431.1 kB / 429.6 MB, free: 8.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001858/0.272, allocations: 1.135 MB / 430.8 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005135/0.2725, allocations: 190.2 kB / 431 MB, free: 6.773 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009183/0.2734, allocations: 494.6 kB / 431.4 MB, free: 6.289 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006773/0.2741, allocations: 0.5215 MB / 432 MB, free: 5.766 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000158/0.2743, allocations: 92 kB / 432.1 MB, free: 5.676 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000354/0.2746, allocations: 147.9 kB / 432.2 MB, free: 5.531 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002798/0.2749, allocations: 223.3 kB / 432.4 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004928/0.2754, allocations: 453.9 kB / 432.9 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00133/0.2767, allocations: 1.068 MB / 433.9 MB, free: 3.805 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2767, allocations: 4 kB / 433.9 MB, free: 3.801 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.2767, allocations: 0 / 433.9 MB, free: 3.801 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.488e-05/0.2768, allocations: 0 / 433.9 MB, free: 3.801 MB / 334.1 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.003683/0.2804, allocations: 1.349 MB / 435.3 MB, free: 2.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.2805, allocations: 12.03 kB / 435.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002937/0.2808, allocations: 104.3 kB / 435.4 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007759/0.2815, allocations: 384.1 kB / 435.8 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.386e-05/0.2816, allocations: 50.38 kB / 435.8 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001532/0.2818, allocations: 72.33 kB / 435.9 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001851/0.2836, allocations: 0.8077 MB / 436.7 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.339e-05/0.2836, allocations: 7.953 kB / 436.7 MB, free: 0.957 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.202e-05/0.2837, allocations: 28 kB / 436.7 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/0.2838, allocations: 16 kB / 436.7 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002241/0.286, allocations: 0.8743 MB / 437.6 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004942/0.2909, allocations: 2.319 MB / 439.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001643/0.2926, allocations: 0.6683 MB / 440.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001049/0.2936, allocations: 436.3 kB / 441 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.658e-05/0.2937, allocations: 16.92 kB / 441 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001315/0.295, allocations: 0.5556 MB / 441.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=86): time 2.645e-06/0.295, allocations: 0 / 441.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.01199/0.307, allocations: 3.852 MB / 445.5 MB, free: 8.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.905e-05/0.3071, allocations: 64.41 kB / 445.5 MB, free: 7.945 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004831/0.3076, allocations: 389.9 kB / 445.9 MB, free: 7.559 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001209/0.3077, allocations: 57.7 kB / 446 MB, free: 7.496 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002315/0.3079, allocations: 285.4 kB / 446.2 MB, free: 7.211 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003367/0.3083, allocations: 372.9 kB / 446.6 MB, free: 6.844 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003603/0.3086, allocations: 186.9 kB / 446.8 MB, free: 6.656 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000215/0.3088, allocations: 378.7 kB / 447.2 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001113/0.3099, allocations: 438.4 kB / 447.6 MB, free: 5.848 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001159/0.3111, allocations: 0.5305 MB / 448.1 MB, free: 5.297 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001927/0.313, allocations: 0.7792 MB / 448.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.313, allocations: 0 / 448.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003454/0.3165, allocations: 1.35 MB / 450.2 MB, free: 3.133 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.3165, allocations: 4 kB / 450.2 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.3165, allocations: 4 kB / 450.2 MB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001306/0.3178, allocations: 0.6466 MB / 450.9 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008557/0.3187, allocations: 195.7 kB / 451.1 MB, free: 2.277 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004719/0.3234, allocations: 3.335 MB / 454.4 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001258/0.3247, allocations: 179.8 kB / 454.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.225e-05/0.3247, allocations: 32 kB / 454.6 MB, free: 14.57 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,7), (1,5), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004215/0.3252, allocations: 233.6 kB / 454.9 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001525/0.3253, allocations: 67.58 kB / 454.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002601/0.3256, allocations: 103 kB / 455 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.3256, allocations: 15.98 kB / 455 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/0.3256, allocations: 4 kB / 455 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.3256, allocations: 3.984 kB / 455 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005104/0.3307, allocations: 2.454 MB / 457.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.3307, allocations: 3.984 kB / 457.5 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008372/0.3315, allocations: 176 kB / 457.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001158/0.3327, allocations: 0.6153 MB / 458.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.697e-05/0.3328, allocations: 35.97 kB / 458.3 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003999/0.3368, allocations: 3.124 MB / 461.5 MB, free: 7.461 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.3368, allocations: 4.219 kB / 461.5 MB, free: 7.457 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004236/0.341, allocations: 1.837 MB / 463.3 MB, free: 5.574 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004235/0.3415, allocations: 155.4 kB / 463.4 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001414/0.3416, allocations: 36 kB / 463.5 MB, free: 5.387 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001424/0.343, allocations: 203.7 kB / 463.7 MB, free: 5.188 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009224/0.3439, allocations: 388.2 kB / 464.1 MB, free: 4.809 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.235e-05/0.344, allocations: 51.89 kB / 464.1 MB, free: 4.758 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003311/0.3444, allocations: 267.2 kB / 464.4 MB, free: 4.496 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3444, allocations: 0 / 464.4 MB, free: 4.496 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008705/0.3452, allocations: 251.9 kB / 464.6 MB, free: 4.25 MB / 366.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 (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.000329/0.3456, allocations: 172 kB / 464.8 MB, free: 4.078 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002679/0.3482, allocations: 1.122 MB / 465.9 MB, free: 2.945 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.3483, allocations: 4 kB / 465.9 MB, free: 2.941 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001694/0.3499, allocations: 0.7391 MB / 466.6 MB, free: 2.188 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000913/0.3509, allocations: 125.9 kB / 466.8 MB, free: 2.066 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004294/0.3552, allocations: 1.991 MB / 468.8 MB, free: 24 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006575/0.3558, allocations: 0.9361 MB / 469.7 MB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003635/0.3562, allocations: 73.45 kB / 469.8 MB, free: 14.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000199/0.3564, allocations: 71.41 kB / 469.8 MB, free: 14.91 MB / 382.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3564, allocations: 0 / 469.8 MB, free: 14.91 MB / 382.1 MB Notification: Performance of Templates: time 0.03255/0.3889, allocations: 18.6 MB / 488.4 MB, free: 12.38 MB / 398.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.299241561442614]