Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.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.001835/0.001835, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.00209/0.00209, allocations: 210 kB / 24.48 MB, free: 3.938 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.455/1.455, allocations: 230.6 MB / 258.2 MB, free: 7.805 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.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.1.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.1.0_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001841/0.001841, allocations: 47.92 kB / 378.9 MB, free: 2.508 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.2597, allocations: 53.38 MB / 432.3 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005391/0.2651, allocations: 2.893 MB / 435.2 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002882/0.268, allocations: 1.278 MB / 436.5 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003525/0.2684, allocations: 8 kB / 436.5 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006032/0.269, allocations: 103.1 kB / 436.6 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004281/0.2694, allocations: 130.8 kB / 436.7 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001137/0.2705, allocations: 438 kB / 437.2 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001114/0.2717, allocations: 0.8115 MB / 438 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002171/0.2719, allocations: 69.38 kB / 438 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007299/0.2726, allocations: 383.1 kB / 438.4 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001846/0.2744, allocations: 1.436 MB / 439.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000236/0.2747, allocations: 72 kB / 439.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003844/0.2751, allocations: 124 kB / 440 MB, free: 15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003092/0.2754, allocations: 239.8 kB / 440.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004227/0.2758, allocations: 302.4 kB / 440.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00122/0.277, allocations: 0.9252 MB / 441.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.277, allocations: 0 / 441.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.277, allocations: 0 / 441.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.88e-05/0.2771, allocations: 0 / 441.5 MB, free: 13.54 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.004435/0.2815, allocations: 1.435 MB / 442.9 MB, free: 12.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.2815, allocations: 12.03 kB / 442.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005784/0.2821, allocations: 104.4 kB / 443 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008163/0.2829, allocations: 386.2 kB / 443.4 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.631e-05/0.283, allocations: 33.31 kB / 443.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.2831, allocations: 36.38 kB / 443.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/0.2847, allocations: 0.6419 MB / 444.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.651e-05/0.2847, allocations: 3.953 kB / 444.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.198e-05/0.2848, allocations: 19.98 kB / 444.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.532e-05/0.2848, allocations: 12 kB / 444.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002034/0.2869, allocations: 0.6818 MB / 444.9 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003835/0.2907, allocations: 1.433 MB / 446.3 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001469/0.2922, allocations: 484.8 kB / 446.8 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000869/0.293, allocations: 289.6 kB / 447 MB, free: 7.832 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.748e-05/0.2931, allocations: 4 kB / 447 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001225/0.2943, allocations: 490.8 kB / 447.5 MB, free: 7.332 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.665e-06/0.2943, allocations: 4 kB / 447.5 MB, free: 7.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.009398/0.3037, allocations: 2.435 MB / 450 MB, free: 4.828 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.435e-05/0.3038, allocations: 85.11 kB / 450 MB, free: 4.727 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001105/0.3049, allocations: 0.9218 MB / 451 MB, free: 3.793 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000102/0.305, allocations: 49.69 kB / 451 MB, free: 3.738 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002784/0.3053, allocations: 292.7 kB / 451.3 MB, free: 3.445 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000209/0.3055, allocations: 178.6 kB / 451.5 MB, free: 3.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002566/0.3057, allocations: 122.3 kB / 451.6 MB, free: 3.145 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002131/0.3059, allocations: 382.7 kB / 452 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000967/0.3069, allocations: 317.1 kB / 452.3 MB, free: 2.449 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/0.3079, allocations: 422.9 kB / 452.7 MB, free: 2.012 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001522/0.3094, allocations: 0.5055 MB / 453.2 MB, free: 1.477 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.3094, allocations: 4 kB / 453.2 MB, free: 1.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002928/0.3124, allocations: 0.9793 MB / 454.2 MB, free: 492 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.3124, allocations: 10.81 kB / 454.2 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.3124, allocations: 4 kB / 454.2 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001164/0.3136, allocations: 0.5528 MB / 454.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005312/0.3141, allocations: 111.9 kB / 454.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00714/0.3212, allocations: 4.463 MB / 459.3 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001585/0.3228, allocations: 231.7 kB / 459.5 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/0.3229, allocations: 20 kB / 459.6 MB, free: 10.86 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,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0005113/0.3234, allocations: 256.3 kB / 459.8 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001986/0.3236, allocations: 75.53 kB / 459.9 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002317/0.3239, allocations: 106.1 kB / 460 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.3239, allocations: 8 kB / 460 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.3239, allocations: 7.938 kB / 460 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.3239, allocations: 3.984 kB / 460 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003322/0.3272, allocations: 1.212 MB / 461.2 MB, free: 9.137 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.225e-06/0.3272, allocations: 4 kB / 461.2 MB, free: 9.133 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005203/0.3278, allocations: 87.92 kB / 461.3 MB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001055/0.3288, allocations: 0.51 MB / 461.8 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.117e-05/0.3289, allocations: 31.84 kB / 461.9 MB, free: 8.496 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006285/0.3352, allocations: 4.079 MB / 465.9 MB, free: 4.184 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.3352, allocations: 4 kB / 465.9 MB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003889/0.3391, allocations: 1.249 MB / 467.2 MB, free: 2.891 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004563/0.3395, allocations: 151.3 kB / 467.3 MB, free: 2.742 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001545/0.3397, allocations: 20 kB / 467.4 MB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001827/0.3415, allocations: 267.6 kB / 467.6 MB, free: 2.461 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001485/0.343, allocations: 0.5771 MB / 468.2 MB, free: 1.883 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.3431, allocations: 27.97 kB / 468.2 MB, free: 1.855 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008527/0.3439, allocations: 0.667 MB / 468.9 MB, free: 1.195 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3439, allocations: 0 / 468.9 MB, free: 1.195 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009112/0.3448, allocations: 180 kB / 469.1 MB, free: 1.02 MB / 366.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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001709/0.3466, allocations: 428.3 kB / 469.5 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002699/0.3493, allocations: 0.9178 MB / 470.4 MB, free: 15.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/0.3493, allocations: 0 / 470.4 MB, free: 15.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001498/0.3508, allocations: 0.6038 MB / 471 MB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000804/0.3516, allocations: 100.7 kB / 471.1 MB, free: 15.08 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004952/0.3565, allocations: 1.952 MB / 473.1 MB, free: 13.08 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004266/0.3569, allocations: 338.7 kB / 473.4 MB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002104/0.3572, allocations: 47.41 kB / 473.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3572, allocations: 0 / 473.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of Templates: time 0.02327/0.3804, allocations: 14.41 MB / 487.8 MB, free: 14.27 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 9.10653378162533]