Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001037/0.001037, allocations: 75.75 kB / 21.97 MB, free: 2.594 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.001024/0.001024, allocations: 162 kB / 25.32 MB, free: 9.074 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.004/1.004, allocations: 158.6 MB / 187.2 MB, free: 2.922 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 251 MB, free: 3.637 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.591e-05/2.763e-05, allocations: 6.312 kB / 251 MB, free: 3.629 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003186/0.003213, allocations: 2.975 MB / 254 MB, free: 0.6289 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001943/0.005156, allocations: 1.193 MB / 255.2 MB, free: 15.43 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002483/0.005404, allocations: 7.938 kB / 255.2 MB, free: 15.43 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004208/0.005825, allocations: 79.28 kB / 255.3 MB, free: 15.35 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002302/0.006055, allocations: 130.8 kB / 255.4 MB, free: 15.22 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001032/0.007087, allocations: 411.1 kB / 255.8 MB, free: 14.82 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006824/0.00777, allocations: 0.8305 MB / 256.6 MB, free: 13.98 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001632/0.007933, allocations: 57.75 kB / 256.7 MB, free: 13.92 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006994/0.008632, allocations: 495.1 kB / 257.2 MB, free: 13.44 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00107/0.009702, allocations: 1.291 MB / 258.5 MB, free: 12.14 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001083/0.00981, allocations: 68 kB / 258.5 MB, free: 12.08 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000201/0.01001, allocations: 115.9 kB / 258.6 MB, free: 11.96 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001676/0.01018, allocations: 235.8 kB / 258.9 MB, free: 11.73 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002002/0.01038, allocations: 239.3 kB / 259.1 MB, free: 11.5 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007577/0.01114, allocations: 0.7009 MB / 259.8 MB, free: 10.8 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.01114, allocations: 0 / 259.8 MB, free: 10.8 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.01114, allocations: 0 / 259.8 MB, free: 10.8 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.389e-05/0.01116, allocations: 0 / 259.8 MB, free: 10.8 MB / 250.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.001772/0.01293, allocations: 1.386 MB / 261.2 MB, free: 9.352 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.01297, allocations: 15.98 kB / 261.2 MB, free: 9.336 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001639/0.01313, allocations: 112.4 kB / 261.3 MB, free: 9.227 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004128/0.01355, allocations: 384.3 kB / 261.7 MB, free: 8.824 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.047e-05/0.0136, allocations: 29.38 kB / 261.7 MB, free: 8.797 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.046e-05/0.01368, allocations: 40.33 kB / 261.8 MB, free: 8.758 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001312/0.01499, allocations: 0.9922 MB / 262.8 MB, free: 7.75 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.01501, allocations: 4.172 kB / 262.8 MB, free: 7.746 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.634e-05/0.01505, allocations: 20.12 kB / 262.8 MB, free: 7.727 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.01506, allocations: 8 kB / 262.8 MB, free: 7.719 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001092/0.01616, allocations: 1.315 MB / 264.1 MB, free: 6.402 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002589/0.01874, allocations: 2.151 MB / 266.3 MB, free: 4.188 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007874/0.01953, allocations: 0.6853 MB / 266.9 MB, free: 3.477 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004365/0.01997, allocations: 0.5187 MB / 267.5 MB, free: 2.949 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.655e-05/0.02002, allocations: 8 kB / 267.5 MB, free: 2.941 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006955/0.02072, allocations: 0.7293 MB / 268.2 MB, free: 2.191 MB / 250.7 MB Notification: Performance of pre-optimization done (n=47): time 4.829e-06/0.02073, allocations: 0 / 268.2 MB, free: 2.191 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.005412/0.02614, allocations: 4.365 MB / 272.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.02618, allocations: 85.11 kB / 272.6 MB, free: 13.65 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006331/0.02682, allocations: 0.8743 MB / 273.5 MB, free: 12.76 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.697e-05/0.02687, allocations: 41.7 kB / 273.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001965/0.02707, allocations: 363.4 kB / 273.9 MB, free: 12.35 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/0.02718, allocations: 166.7 kB / 274.1 MB, free: 12.19 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.02735, allocations: 119.9 kB / 274.2 MB, free: 12.06 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.02753, allocations: 0.5742 MB / 274.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006013/0.02813, allocations: 0.6533 MB / 275.4 MB, free: 10.82 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000609/0.02874, allocations: 0.753 MB / 276.2 MB, free: 10.03 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001153/0.02989, allocations: 1.168 MB / 277.3 MB, free: 8.816 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.0299, allocations: 0 / 277.3 MB, free: 8.816 MB / 266.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.0017/0.03159, allocations: 2.034 MB / 279.4 MB, free: 6.762 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.03162, allocations: 4 kB / 279.4 MB, free: 6.758 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/0.03163, allocations: 15.88 kB / 279.4 MB, free: 6.742 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001239/0.03287, allocations: 1.639 MB / 281 MB, free: 5.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002516/0.03312, allocations: 103.9 kB / 281.1 MB, free: 4.988 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004612/0.03773, allocations: 7.121 MB / 288.3 MB, free: 13.59 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004705/0.0382, allocations: 143.8 kB / 288.4 MB, free: 13.45 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.413e-05/0.03825, allocations: 27.98 kB / 288.4 MB, free: 13.42 MB / 282.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,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002742/0.03852, allocations: 195.1 kB / 288.6 MB, free: 13.22 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.03866, allocations: 91.56 kB / 288.7 MB, free: 13.13 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.121e-05/0.03875, allocations: 94.11 kB / 288.8 MB, free: 13.04 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.03875, allocations: 4 kB / 288.8 MB, free: 13.03 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.03876, allocations: 4 kB / 288.8 MB, free: 13.03 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.03876, allocations: 0 / 288.8 MB, free: 13.03 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002412/0.04117, allocations: 2.621 MB / 291.4 MB, free: 10.35 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.817e-06/0.04118, allocations: 7.875 kB / 291.4 MB, free: 10.34 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002095/0.04139, allocations: 71.95 kB / 291.5 MB, free: 10.27 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001127/0.04252, allocations: 1.631 MB / 293.1 MB, free: 8.625 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.651e-05/0.04257, allocations: 27.97 kB / 293.2 MB, free: 8.598 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00418/0.04675, allocations: 6.66 MB / 299.8 MB, free: 1.66 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.04675, allocations: 0 / 299.8 MB, free: 1.66 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1257/0.1724, allocations: 2.634 MB / 302.5 MB, free: 56.51 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003728/0.1728, allocations: 138.9 kB / 302.6 MB, free: 56.51 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.1729, allocations: 26.45 kB / 302.6 MB, free: 56.51 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005778/0.1735, allocations: 172.8 kB / 302.8 MB, free: 56.51 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000924/0.1744, allocations: 0.5148 MB / 303.3 MB, free: 56.51 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.202e-05/0.1745, allocations: 27.75 kB / 303.3 MB, free: 56.51 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005102/0.175, allocations: 0.5751 MB / 303.9 MB, free: 56.37 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.175, allocations: 0 / 303.9 MB, free: 56.37 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006483/0.1757, allocations: 189.8 kB / 304.1 MB, free: 56.37 MB / 282.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.0002888/0.176, allocations: 149.7 kB / 304.2 MB, free: 56.28 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002027/0.178, allocations: 1.637 MB / 305.9 MB, free: 55.93 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.178, allocations: 0.9375 kB / 305.9 MB, free: 55.93 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009215/0.1789, allocations: 0.9656 MB / 306.8 MB, free: 55.57 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005435/0.1794, allocations: 109.6 kB / 306.9 MB, free: 55.57 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002875/0.1823, allocations: 1.635 MB / 308.6 MB, free: 54.98 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000177/0.1825, allocations: 167.3 kB / 308.7 MB, free: 54.9 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001498/0.1827, allocations: 38.3 kB / 308.8 MB, free: 54.89 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001321/0.1828, allocations: 46.05 kB / 308.8 MB, free: 54.88 MB / 282.7 MB Notification: Performance of SimCode: time 2.394e-06/0.1828, allocations: 0 / 308.8 MB, free: 54.88 MB / 282.7 MB Notification: Performance of Templates: time 0.01951/0.2023, allocations: 19.61 MB / 328.4 MB, free: 39.26 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.7433931757695973]