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.0026/0.0026, allocations: 91.61 kB / 20.96 MB, free: 3.465 MB / 18.57 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.002984/0.002984, allocations: 165.6 kB / 24.27 MB, free: 160 kB / 18.57 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.574/1.574, allocations: 177.1 MB / 204.6 MB, free: 5.621 MB / 186.7 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 1.663e-06/1.663e-06, allocations: 0 / 272.3 MB, free: 1.867 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.367e-05/3.534e-05, allocations: 2.312 kB / 272.3 MB, free: 1.863 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.00725/0.007286, allocations: 3.068 MB / 275.4 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003557/0.01084, allocations: 1.316 MB / 276.7 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000209/0.01105, allocations: 8 kB / 276.7 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005987/0.01165, allocations: 103.1 kB / 276.8 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004122/0.01206, allocations: 138.7 kB / 276.9 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001373/0.01344, allocations: 419 kB / 277.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001377/0.01481, allocations: 0.8385 MB / 278.2 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002382/0.01505, allocations: 69.73 kB / 278.2 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00111/0.01616, allocations: 0.4952 MB / 278.7 MB, free: 11.4 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002971/0.01913, allocations: 1.408 MB / 280.1 MB, free: 9.988 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002314/0.01936, allocations: 76 kB / 280.2 MB, free: 9.914 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004587/0.01982, allocations: 135.9 kB / 280.4 MB, free: 9.781 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004118/0.02023, allocations: 239.8 kB / 280.6 MB, free: 9.543 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004563/0.02069, allocations: 243.3 kB / 280.8 MB, free: 9.305 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001798/0.02249, allocations: 0.9892 MB / 281.8 MB, free: 8.312 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.02249, allocations: 0 / 281.8 MB, free: 8.312 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.02249, allocations: 0 / 281.8 MB, free: 8.312 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.0225, allocations: 0 / 281.8 MB, free: 8.312 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.004586/0.02709, allocations: 1.514 MB / 283.3 MB, free: 6.742 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.02714, allocations: 8.031 kB / 283.3 MB, free: 6.734 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000857/0.02799, allocations: 136.4 kB / 283.5 MB, free: 6.602 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009928/0.02899, allocations: 380.3 kB / 283.8 MB, free: 6.199 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.114e-05/0.02906, allocations: 29.38 kB / 283.9 MB, free: 6.172 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000164/0.02922, allocations: 36.38 kB / 283.9 MB, free: 6.137 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002274/0.03149, allocations: 0.644 MB / 284.6 MB, free: 5.477 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.39e-05/0.03153, allocations: 8.141 kB / 284.6 MB, free: 5.469 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001109/0.03164, allocations: 20.12 kB / 284.6 MB, free: 5.449 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/0.03166, allocations: 8 kB / 284.6 MB, free: 5.441 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002872/0.03453, allocations: 0.6467 MB / 285.2 MB, free: 4.797 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005236/0.03976, allocations: 1.579 MB / 286.8 MB, free: 3.152 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001977/0.04174, allocations: 469.8 kB / 287.3 MB, free: 2.668 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001109/0.04285, allocations: 251.3 kB / 287.5 MB, free: 2.414 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001009/0.04295, allocations: 11.94 kB / 287.5 MB, free: 2.402 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001721/0.04467, allocations: 0.4946 MB / 288 MB, free: 1.883 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 2.936e-06/0.04468, allocations: 0 / 288 MB, free: 1.883 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.119/0.1637, allocations: 2.197 MB / 290.2 MB, free: 28.3 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.685e-05/0.1637, allocations: 86.17 kB / 290.3 MB, free: 28.2 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007937/0.1645, allocations: 0.7747 MB / 291.1 MB, free: 28.01 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001093/0.1646, allocations: 52.03 kB / 291.1 MB, free: 27.98 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002156/0.1648, allocations: 377.7 kB / 291.5 MB, free: 27.85 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00016/0.165, allocations: 186.5 kB / 291.7 MB, free: 27.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002491/0.1652, allocations: 140 kB / 291.8 MB, free: 27.79 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.1654, allocations: 0.597 MB / 292.4 MB, free: 27.29 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007707/0.1662, allocations: 306.7 kB / 292.7 MB, free: 27.21 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000782/0.167, allocations: 443.9 kB / 293.1 MB, free: 27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001132/0.1681, allocations: 0.5138 MB / 293.7 MB, free: 26.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1681, allocations: 1 kB / 293.7 MB, free: 26.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002496/0.1706, allocations: 1.009 MB / 294.7 MB, free: 26.39 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.1706, allocations: 10.98 kB / 294.7 MB, free: 26.39 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.1706, allocations: 1.406 kB / 294.7 MB, free: 26.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/0.1717, allocations: 0.5547 MB / 295.2 MB, free: 26.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004561/0.1721, allocations: 103 kB / 295.3 MB, free: 26.2 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004742/0.1769, allocations: 5.845 MB / 301.2 MB, free: 20.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009811/0.1779, allocations: 145.4 kB / 301.3 MB, free: 20.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.398e-05/0.1779, allocations: 26.22 kB / 301.4 MB, free: 20.95 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 (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.0002922/0.1782, allocations: 224.2 kB / 301.6 MB, free: 20.75 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001645/0.1784, allocations: 89.52 kB / 301.7 MB, free: 20.7 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001927/0.1786, allocations: 92.3 kB / 301.7 MB, free: 20.64 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.1786, allocations: 4.375 kB / 301.8 MB, free: 20.64 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.1786, allocations: 1.531 kB / 301.8 MB, free: 20.64 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.1786, allocations: 4.391 kB / 301.8 MB, free: 20.64 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002765/0.1814, allocations: 1.338 MB / 303.1 MB, free: 19.95 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.1814, allocations: 5.781 kB / 303.1 MB, free: 19.95 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004082/0.1818, allocations: 67.61 kB / 303.2 MB, free: 19.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009314/0.1827, allocations: 0.5261 MB / 303.7 MB, free: 19.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.441e-05/0.1828, allocations: 22.14 kB / 303.7 MB, free: 19.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004237/0.187, allocations: 5.326 MB / 309 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.187, allocations: 5.031 kB / 309 MB, free: 14.97 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002921/0.1899, allocations: 1.289 MB / 310.3 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003367/0.1903, allocations: 132.7 kB / 310.5 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/0.1904, allocations: 24.5 kB / 310.5 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.1914, allocations: 174 kB / 310.7 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001072/0.1925, allocations: 0.5811 MB / 311.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.387e-05/0.1926, allocations: 32.23 kB / 311.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000427/0.193, allocations: 0.4891 MB / 311.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.193, allocations: 4 kB / 311.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007041/0.1937, allocations: 173.2 kB / 311.9 MB, free: 13.88 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.002419/0.1961, allocations: 420.2 kB / 312.3 MB, free: 13.72 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001863/0.198, allocations: 1.053 MB / 313.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.198, allocations: 4.125 kB / 313.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009606/0.199, allocations: 0.7148 MB / 314.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000596/0.1995, allocations: 122.5 kB / 314.2 MB, free: 12.06 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002935/0.2025, allocations: 1.528 MB / 315.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002031/0.2027, allocations: 314.9 kB / 316.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001965/0.2029, allocations: 47.27 kB / 316.1 MB, free: 10.14 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.203, allocations: 56.42 kB / 316.2 MB, free: 10.08 MB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.203, allocations: 0 / 316.2 MB, free: 10.08 MB / 266.7 MB Notification: Performance of Templates: time 0.01983/0.2229, allocations: 14.41 MB / 330.6 MB, free: 11.73 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","/var/lib/jenkins/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: 5.280229680938646]