Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009362/0.0009362, allocations: 88.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009995/0.0009995, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9929/0.9929, allocations: 177 MB / 205.2 MB, free: 5.059 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 273.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.869e-05/1.992e-05, allocations: 2.312 kB / 273.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003259/0.003279, allocations: 3.113 MB / 276.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001731/0.005011, allocations: 1.339 MB / 277.9 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001535/0.005164, allocations: 7.938 kB / 277.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003651/0.005529, allocations: 103.1 kB / 278 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001848/0.005714, allocations: 134.8 kB / 278.1 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006062/0.00632, allocations: 427 kB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005642/0.006884, allocations: 0.8346 MB / 279.4 MB, free: 11.05 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.007013, allocations: 77.59 kB / 279.4 MB, free: 10.97 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004808/0.007493, allocations: 0.4952 MB / 279.9 MB, free: 10.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009688/0.008462, allocations: 1.416 MB / 281.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.834e-05/0.008551, allocations: 72 kB / 281.4 MB, free: 8.988 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001803/0.008731, allocations: 135.8 kB / 281.6 MB, free: 8.855 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001546/0.008885, allocations: 239.8 kB / 281.8 MB, free: 8.621 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.009047, allocations: 243.4 kB / 282 MB, free: 8.383 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005948/0.009642, allocations: 0.732 MB / 282.8 MB, free: 7.648 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.774e-06/0.009644, allocations: 0 / 282.8 MB, free: 7.648 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.009645, allocations: 0 / 282.8 MB, free: 7.648 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.009651, allocations: 0 / 282.8 MB, free: 7.648 MB / 266.7 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.001292/0.01094, allocations: 1.118 MB / 283.9 MB, free: 6.504 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.01098, allocations: 15.97 kB / 283.9 MB, free: 6.488 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002748/0.01125, allocations: 104.8 kB / 284 MB, free: 6.387 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003246/0.01158, allocations: 321.5 kB / 284.3 MB, free: 6.047 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.88e-05/0.01161, allocations: 33.38 kB / 284.3 MB, free: 6.016 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.281e-05/0.01167, allocations: 48.31 kB / 284.4 MB, free: 5.969 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005502/0.01222, allocations: 486.5 kB / 284.9 MB, free: 5.473 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.01223, allocations: 8.188 kB / 284.9 MB, free: 5.465 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.841e-05/0.01227, allocations: 20.12 kB / 284.9 MB, free: 5.445 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.01228, allocations: 12 kB / 284.9 MB, free: 5.434 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004033/0.01268, allocations: 270.3 kB / 285.2 MB, free: 5.168 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001306/0.01399, allocations: 0.9691 MB / 286.1 MB, free: 4.152 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003598/0.01435, allocations: 264.8 kB / 286.4 MB, free: 3.875 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000143/0.01449, allocations: 105.7 kB / 286.5 MB, free: 3.766 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.287e-05/0.01454, allocations: 8 kB / 286.5 MB, free: 3.758 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002963/0.01483, allocations: 307.1 kB / 286.8 MB, free: 3.441 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 1.283e-06/0.01483, allocations: 0 / 286.8 MB, free: 3.441 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.002837/0.01767, allocations: 1.315 MB / 288.1 MB, free: 2.062 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.691e-05/0.01771, allocations: 85.11 kB / 288.2 MB, free: 1.961 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004223/0.01813, allocations: 0.611 MB / 288.8 MB, free: 1.336 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.953e-05/0.01819, allocations: 49.69 kB / 288.9 MB, free: 1.281 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.998e-05/0.01829, allocations: 225.9 kB / 289.1 MB, free: 1.055 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.0184, allocations: 174.6 kB / 289.3 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001438/0.01854, allocations: 122.2 kB / 289.4 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.01865, allocations: 386.6 kB / 289.7 MB, free: 380 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002308/0.01888, allocations: 125.2 kB / 289.9 MB, free: 256 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001883/0.01907, allocations: 199 kB / 290.1 MB, free: 24 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1032/0.1223, allocations: 267.5 kB / 290.3 MB, free: 25 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1223, allocations: 0 / 290.3 MB, free: 25 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0008751/0.1231, allocations: 493.2 kB / 290.8 MB, free: 24.93 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.1231, allocations: 6.281 kB / 290.8 MB, free: 24.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.677e-06/0.1232, allocations: 3.5 kB / 290.8 MB, free: 24.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000614/0.1238, allocations: 413.8 kB / 291.2 MB, free: 24.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002539/0.124, allocations: 112.9 kB / 291.3 MB, free: 24.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00222/0.1262, allocations: 3.624 MB / 295 MB, free: 21.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004125/0.1267, allocations: 142.6 kB / 295.1 MB, free: 21.86 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.628e-05/0.1267, allocations: 19.91 kB / 295.1 MB, free: 21.86 MB / 266.7 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 (stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1,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,supportFriction.free) * 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,5), (1,7), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001763/0.1269, allocations: 155.2 kB / 295.3 MB, free: 21.74 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.043e-05/0.127, allocations: 64.33 kB / 295.3 MB, free: 21.74 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.204e-05/0.127, allocations: 91.25 kB / 295.4 MB, free: 21.72 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.127, allocations: 8.562 kB / 295.4 MB, free: 21.72 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.127, allocations: 1.188 kB / 295.4 MB, free: 21.72 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.127, allocations: 4.844 kB / 295.4 MB, free: 21.72 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001085/0.1281, allocations: 0.7193 MB / 296.2 MB, free: 21.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.1281, allocations: 1.125 kB / 296.2 MB, free: 21.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002088/0.1283, allocations: 83.44 kB / 296.2 MB, free: 21.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004823/0.1288, allocations: 408.7 kB / 296.6 MB, free: 21.48 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.679e-05/0.1289, allocations: 20.36 kB / 296.7 MB, free: 21.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001818/0.1307, allocations: 3.353 MB / 300 MB, free: 18.69 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.1307, allocations: 5.641 kB / 300 MB, free: 18.69 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009024/0.1316, allocations: 0.65 MB / 300.7 MB, free: 18.47 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001598/0.1318, allocations: 94.92 kB / 300.8 MB, free: 18.47 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.803e-05/0.1318, allocations: 20.7 kB / 300.8 MB, free: 18.47 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004594/0.1323, allocations: 175.3 kB / 300.9 MB, free: 18.46 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000768/0.1331, allocations: 0.5124 MB / 301.5 MB, free: 18.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.037e-05/0.1331, allocations: 25.52 kB / 301.5 MB, free: 18.45 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002468/0.1334, allocations: 283.2 kB / 301.8 MB, free: 18.43 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1334, allocations: 0 / 301.8 MB, free: 18.43 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004845/0.1338, allocations: 179.4 kB / 301.9 MB, free: 18.43 MB / 266.7 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.0009433/0.1348, allocations: 473.8 kB / 302.4 MB, free: 18.29 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006769/0.1355, allocations: 0.5956 MB / 303 MB, free: 18.04 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.253e-05/0.1355, allocations: 10.75 kB / 303 MB, free: 18.04 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000369/0.1358, allocations: 440.4 kB / 303.4 MB, free: 17.8 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003456/0.1362, allocations: 120.5 kB / 303.6 MB, free: 17.79 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001866/0.1381, allocations: 1.358 MB / 304.9 MB, free: 17.2 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001138/0.1382, allocations: 176.6 kB / 305.1 MB, free: 17.12 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001434/0.1383, allocations: 49.11 kB / 305.1 MB, free: 17.11 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/0.1385, allocations: 126.3 kB / 305.3 MB, free: 17.06 MB / 266.7 MB Notification: Performance of SimCode: time 9.11e-07/0.1385, allocations: 0 / 305.3 MB, free: 17.06 MB / 266.7 MB Notification: Performance of Templates: time 0.01504/0.1535, allocations: 15.32 MB / 320.6 MB, free: 4.742 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.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.121234253048897]