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.0009438/0.0009438, allocations: 85.17 kB / 21.5 MB, free: 2.992 MB / 18.57 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.001038/0.001038, allocations: 149.3 kB / 24.9 MB, free: 8.734 MB / 18.57 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.053/1.053, allocations: 173.3 MB / 201.5 MB, free: 9.176 MB / 186.7 MB " [Timeout remaining time 179] 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 2.164e-06/2.164e-06, allocations: 3.938 kB / 268.5 MB, free: 6.16 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.428e-05/2.644e-05, allocations: 6.25 kB / 268.5 MB, free: 6.152 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004453/0.004479, allocations: 2.998 MB / 271.5 MB, free: 3.129 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00211/0.006589, allocations: 1.18 MB / 272.7 MB, free: 1.945 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001739/0.006763, allocations: 7.938 kB / 272.7 MB, free: 1.938 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004366/0.0072, allocations: 75.28 kB / 272.7 MB, free: 1.863 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000225/0.007425, allocations: 130.8 kB / 272.9 MB, free: 1.734 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00077/0.008195, allocations: 407.2 kB / 273.3 MB, free: 1.336 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007657/0.00896, allocations: 0.8227 MB / 274.1 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001989/0.009159, allocations: 69.72 kB / 274.2 MB, free: 440 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005945/0.009754, allocations: 495.2 kB / 274.6 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001309/0.01106, allocations: 1.283 MB / 275.9 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001108/0.01117, allocations: 68 kB / 276 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002368/0.01141, allocations: 127.9 kB / 276.1 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002001/0.01161, allocations: 235.9 kB / 276.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002298/0.01184, allocations: 243.3 kB / 276.6 MB, free: 14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000765/0.01261, allocations: 0.7009 MB / 277.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.01261, allocations: 0 / 277.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.01261, allocations: 4 kB / 277.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.01262, allocations: 0 / 277.3 MB, free: 13.29 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001925/0.01454, allocations: 1.087 MB / 278.4 MB, free: 12.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.01458, allocations: 12.92 kB / 278.4 MB, free: 12.17 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001482/0.01473, allocations: 76.88 kB / 278.5 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004618/0.01519, allocations: 317.5 kB / 278.8 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.228e-05/0.01523, allocations: 29.38 kB / 278.8 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.299e-05/0.01533, allocations: 44.33 kB / 278.8 MB, free: 11.69 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/0.01636, allocations: 0.7132 MB / 279.6 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.975e-05/0.01638, allocations: 192 / 279.6 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.858e-05/0.01644, allocations: 20.12 kB / 279.6 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.2e-05/0.01645, allocations: 8 kB / 279.6 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009823/0.01743, allocations: 0.7287 MB / 280.3 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002563/0.01999, allocations: 1.657 MB / 282 MB, free: 8.496 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006888/0.02068, allocations: 436.9 kB / 282.4 MB, free: 8.051 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003509/0.02103, allocations: 293.6 kB / 282.7 MB, free: 7.758 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.416e-05/0.02109, allocations: 11.94 kB / 282.7 MB, free: 7.746 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006142/0.0217, allocations: 495.1 kB / 283.2 MB, free: 7.242 MB / 266.7 MB Notification: Performance of pre-optimization done (n=47): time 2.014e-06/0.0217, allocations: 0 / 283.2 MB, free: 7.242 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.004683/0.02639, allocations: 2.642 MB / 285.8 MB, free: 4.539 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.399e-05/0.02643, allocations: 81.11 kB / 285.9 MB, free: 4.441 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005822/0.02701, allocations: 0.6444 MB / 286.5 MB, free: 3.785 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.831e-05/0.02708, allocations: 49.69 kB / 286.6 MB, free: 3.73 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.02722, allocations: 213.9 kB / 286.8 MB, free: 3.52 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000143/0.02737, allocations: 170.7 kB / 287 MB, free: 3.352 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002054/0.02757, allocations: 122.2 kB / 287.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.02772, allocations: 386.6 kB / 287.5 MB, free: 2.836 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005082/0.02823, allocations: 365.2 kB / 287.8 MB, free: 2.48 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004763/0.0287, allocations: 454.7 kB / 288.3 MB, free: 2.004 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007499/0.02945, allocations: 0.6891 MB / 289 MB, free: 1.285 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.02946, allocations: 4 kB / 289 MB, free: 1.281 MB / 266.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00158/0.03104, allocations: 1.166 MB / 290.1 MB, free: 104 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.03105, allocations: 4 kB / 290.1 MB, free: 100 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.03107, allocations: 8 kB / 290.1 MB, free: 92 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1275/0.1586, allocations: 1.408 MB / 291.5 MB, free: 30.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003757/0.159, allocations: 110 kB / 291.7 MB, free: 30.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003291/0.1623, allocations: 4.826 MB / 296.5 MB, free: 27.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000444/0.1627, allocations: 151.4 kB / 296.6 MB, free: 27.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.867e-05/0.1628, allocations: 16.36 kB / 296.6 MB, free: 27.43 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,6), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001889/0.1629, allocations: 162.5 kB / 296.8 MB, free: 27.31 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.471e-05/0.163, allocations: 57.72 kB / 296.9 MB, free: 27.31 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.408e-05/0.1631, allocations: 93.86 kB / 297 MB, free: 27.29 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.1631, allocations: 5.719 kB / 297 MB, free: 27.29 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.1631, allocations: 0 / 297 MB, free: 27.29 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.1631, allocations: 3.562 kB / 297 MB, free: 27.29 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002007/0.1651, allocations: 1.644 MB / 298.6 MB, free: 27.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.1651, allocations: 1.406 kB / 298.6 MB, free: 27.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002249/0.1654, allocations: 86.83 kB / 298.7 MB, free: 27.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00131/0.1667, allocations: 1.415 MB / 300.1 MB, free: 26.94 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.344e-05/0.1667, allocations: 20.77 kB / 300.1 MB, free: 26.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00273/0.1695, allocations: 4.531 MB / 304.7 MB, free: 23.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1695, allocations: 3.281 kB / 304.7 MB, free: 23.73 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001314/0.1708, allocations: 1.632 MB / 306.3 MB, free: 23.11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001347/0.1709, allocations: 79.56 kB / 306.4 MB, free: 23.08 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.011e-05/0.171, allocations: 24 kB / 306.4 MB, free: 23.05 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004014/0.1714, allocations: 174.9 kB / 306.6 MB, free: 22.94 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006333/0.172, allocations: 0.5146 MB / 307.1 MB, free: 22.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.149e-05/0.172, allocations: 27.86 kB / 307.1 MB, free: 22.66 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001682/0.1722, allocations: 317.3 kB / 307.4 MB, free: 22.43 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1722, allocations: 0 / 307.4 MB, free: 22.43 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004586/0.1727, allocations: 191.2 kB / 307.6 MB, free: 22.25 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001954/0.1729, allocations: 146.5 kB / 307.7 MB, free: 22.11 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007526/0.1736, allocations: 0.9967 MB / 308.7 MB, free: 21.21 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/0.1736, allocations: 8 kB / 308.8 MB, free: 21.2 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003959/0.174, allocations: 0.6249 MB / 309.4 MB, free: 20.62 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003329/0.1744, allocations: 109.4 kB / 309.5 MB, free: 20.54 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001705/0.1761, allocations: 1.434 MB / 310.9 MB, free: 19.24 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.888e-05/0.1762, allocations: 169.7 kB / 311.1 MB, free: 19.05 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001141/0.1763, allocations: 39.28 kB / 311.1 MB, free: 19.02 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000165/0.1764, allocations: 125.1 kB / 311.2 MB, free: 18.89 MB / 266.7 MB Notification: Performance of SimCode: time 1.021e-06/0.1764, allocations: 0 / 311.2 MB, free: 18.89 MB / 266.7 MB Notification: Performance of Templates: time 0.01841/0.1948, allocations: 20.28 MB / 331.5 MB, free: 14.61 MB / 282.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] 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","",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.180334991775453]