Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.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.001467/0.001467, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001349/0.001349, allocations: 195 kB / 23.71 MB, free: 4.406 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.453/1.453, allocations: 225.7 MB / 252.5 MB, free: 12.82 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.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001654/0.001654, allocations: 47.92 kB / 370.9 MB, free: 9.199 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2707/0.2724, allocations: 52.17 MB / 423.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.00437/0.2767, allocations: 2.792 MB / 425.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002144/0.2789, allocations: 1.126 MB / 427 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001481/0.279, allocations: 7.938 kB / 427 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004058/0.2794, allocations: 79.28 kB / 427.1 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002285/0.2797, allocations: 126.9 kB / 427.2 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008963/0.2806, allocations: 415 kB / 427.6 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007918/0.2814, allocations: 0.8035 MB / 428.4 MB, free: 9.113 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000184/0.2815, allocations: 61.55 kB / 428.4 MB, free: 9.051 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004811/0.282, allocations: 371 kB / 428.8 MB, free: 8.688 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00155/0.2836, allocations: 1.307 MB / 430.1 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001391/0.2837, allocations: 68 kB / 430.2 MB, free: 7.309 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002534/0.284, allocations: 120 kB / 430.3 MB, free: 7.191 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000231/0.2842, allocations: 227.8 kB / 430.5 MB, free: 6.969 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003022/0.2845, allocations: 294.5 kB / 430.8 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009753/0.2855, allocations: 0.8857 MB / 431.7 MB, free: 5.797 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.2855, allocations: 0 / 431.7 MB, free: 5.797 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2855, allocations: 3.938 kB / 431.7 MB, free: 5.793 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.157e-06/0.2855, allocations: 0 / 431.7 MB, free: 5.793 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003871/0.2894, allocations: 1.416 MB / 433.1 MB, free: 4.332 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.2894, allocations: 8.031 kB / 433.1 MB, free: 4.324 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001704/0.2896, allocations: 84.42 kB / 433.2 MB, free: 4.242 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006899/0.2903, allocations: 370.2 kB / 433.6 MB, free: 3.852 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.594e-05/0.2903, allocations: 29.38 kB / 433.6 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.909e-05/0.2904, allocations: 36.38 kB / 433.6 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001922/0.2923, allocations: 1.161 MB / 434.8 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.373e-05/0.2924, allocations: 4 kB / 434.8 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.688e-05/0.2924, allocations: 15.98 kB / 434.8 MB, free: 2.594 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.483e-05/0.2924, allocations: 12 kB / 434.8 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002788/0.2952, allocations: 1.732 MB / 436.6 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004315/0.2995, allocations: 2.253 MB / 438.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001743/0.3013, allocations: 0.8874 MB / 439.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00118/0.3025, allocations: 0.7088 MB / 440.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.835e-05/0.3025, allocations: 4 kB / 440.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00154/0.3041, allocations: 0.9006 MB / 441.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 2.345e-06/0.3041, allocations: 0 / 441.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.01171/0.3158, allocations: 5.41 MB / 446.7 MB, free: 6.516 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.31e-05/0.3158, allocations: 85.11 kB / 446.8 MB, free: 6.414 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001323/0.3172, allocations: 0.918 MB / 447.7 MB, free: 5.488 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001038/0.3173, allocations: 45.7 kB / 447.8 MB, free: 5.438 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002852/0.3176, allocations: 292.7 kB / 448.1 MB, free: 5.145 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002148/0.3178, allocations: 174.7 kB / 448.2 MB, free: 4.973 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002562/0.318, allocations: 114.3 kB / 448.3 MB, free: 4.855 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002124/0.3182, allocations: 382.8 kB / 448.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001427/0.3197, allocations: 0.8447 MB / 449.6 MB, free: 3.625 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001424/0.3211, allocations: 0.9401 MB / 450.5 MB, free: 2.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002451/0.3235, allocations: 1.472 MB / 452 MB, free: 1.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.592e-06/0.3236, allocations: 4 kB / 452 MB, free: 1.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004092/0.3276, allocations: 2.479 MB / 454.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.3277, allocations: 11.94 kB / 454.5 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.56e-05/0.3277, allocations: 4 kB / 454.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002257/0.3299, allocations: 1.892 MB / 456.4 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005368/0.3305, allocations: 111.9 kB / 456.5 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008513/0.339, allocations: 6.44 MB / 462.9 MB, free: 5.969 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001517/0.3405, allocations: 235.8 kB / 463.1 MB, free: 5.738 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.666e-05/0.3406, allocations: 20 kB / 463.2 MB, free: 5.719 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * 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,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004534/0.341, allocations: 260.2 kB / 463.4 MB, free: 5.457 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001696/0.3412, allocations: 75.5 kB / 463.5 MB, free: 5.383 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00023/0.3414, allocations: 102.2 kB / 463.6 MB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.3415, allocations: 4 kB / 463.6 MB, free: 5.273 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3415, allocations: 0 / 463.6 MB, free: 5.273 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.3415, allocations: 4 kB / 463.6 MB, free: 5.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004555/0.346, allocations: 2.907 MB / 466.5 MB, free: 2.312 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.94e-06/0.346, allocations: 0 / 466.5 MB, free: 2.312 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005149/0.3465, allocations: 87.88 kB / 466.6 MB, free: 2.227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002148/0.3487, allocations: 1.865 MB / 468.4 MB, free: 360 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.797e-05/0.3488, allocations: 19.97 kB / 468.5 MB, free: 340 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007498/0.3563, allocations: 6.059 MB / 474.5 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.3563, allocations: 0 / 474.5 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005365/0.3616, allocations: 3.229 MB / 477.8 MB, free: 6.777 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004127/0.362, allocations: 135.4 kB / 477.9 MB, free: 6.645 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001328/0.3622, allocations: 23.98 kB / 477.9 MB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001808/0.364, allocations: 267.6 kB / 478.2 MB, free: 6.359 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001434/0.3654, allocations: 0.5771 MB / 478.7 MB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.824e-05/0.3655, allocations: 27.97 kB / 478.8 MB, free: 5.754 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007679/0.3663, allocations: 0.6709 MB / 479.4 MB, free: 5.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3663, allocations: 0 / 479.4 MB, free: 5.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008461/0.3671, allocations: 195.9 kB / 479.6 MB, free: 4.898 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * 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,5), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002977/0.3674, allocations: 147.6 kB / 479.8 MB, free: 4.746 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003252/0.3707, allocations: 1.876 MB / 481.7 MB, free: 2.852 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.3707, allocations: 0 / 481.7 MB, free: 2.852 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001907/0.3726, allocations: 1.075 MB / 482.7 MB, free: 1.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006134/0.3732, allocations: 78.91 kB / 482.8 MB, free: 1.672 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004477/0.3777, allocations: 2.001 MB / 484.8 MB, free: 15.63 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003749/0.378, allocations: 322.7 kB / 485.1 MB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002251/0.3783, allocations: 39.27 kB / 485.2 MB, free: 15.26 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/0.3784, allocations: 43.42 kB / 485.2 MB, free: 15.21 MB / 398.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3784, allocations: 0 / 485.2 MB, free: 15.21 MB / 398.1 MB Notification: Performance of Templates: time 0.03501/0.4134, allocations: 20.18 MB / 0.4935 GB, free: 11.02 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.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.597962925210595]