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.001749/0.001749, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.002125/0.002125, allocations: 161.7 kB / 24.27 MB, free: 172 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.541/1.541, allocations: 177.1 MB / 204.6 MB, free: 5.59 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 2.645e-06/2.645e-06, allocations: 0 / 272.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.875e-05/4.14e-05, allocations: 2.312 kB / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.008016/0.008058, allocations: 2.906 MB / 275.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004174/0.01223, allocations: 1.301 MB / 276.5 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004505/0.01268, allocations: 7.938 kB / 276.5 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007794/0.01346, allocations: 95.16 kB / 276.6 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005267/0.01399, allocations: 138.7 kB / 276.7 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001305/0.01529, allocations: 423 kB / 277.2 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001536/0.01683, allocations: 0.8346 MB / 278 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003837/0.01721, allocations: 69.72 kB / 278.1 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00198/0.01919, allocations: 0.4952 MB / 278.6 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002643/0.02184, allocations: 1.416 MB / 280 MB, free: 10.13 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003059/0.02214, allocations: 68 kB / 280 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004347/0.02258, allocations: 135.9 kB / 280.2 MB, free: 9.934 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003086/0.02289, allocations: 235.8 kB / 280.4 MB, free: 9.699 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004124/0.0233, allocations: 247.3 kB / 280.6 MB, free: 9.457 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00213/0.02543, allocations: 0.9892 MB / 281.6 MB, free: 8.465 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.02543, allocations: 0 / 281.6 MB, free: 8.465 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.02544, allocations: 0 / 281.6 MB, free: 8.465 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.186e-05/0.02547, allocations: 0 / 281.6 MB, free: 8.465 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.004757/0.03023, allocations: 1.435 MB / 283.1 MB, free: 6.984 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.03027, allocations: 8.031 kB / 283.1 MB, free: 6.977 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007782/0.03105, allocations: 136.4 kB / 283.2 MB, free: 6.844 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009116/0.03196, allocations: 385.5 kB / 283.6 MB, free: 6.438 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.208e-05/0.03202, allocations: 29.38 kB / 283.6 MB, free: 6.41 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/0.03215, allocations: 40.38 kB / 283.7 MB, free: 6.371 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001718/0.03387, allocations: 0.6345 MB / 284.3 MB, free: 5.723 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.22e-05/0.03389, allocations: 4.141 kB / 284.3 MB, free: 5.719 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.302e-05/0.03397, allocations: 20.12 kB / 284.3 MB, free: 5.699 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.03399, allocations: 8 kB / 284.3 MB, free: 5.691 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002132/0.03612, allocations: 0.6857 MB / 285 MB, free: 5.008 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004091/0.04021, allocations: 1.438 MB / 286.4 MB, free: 3.512 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001581/0.04179, allocations: 488.8 kB / 286.9 MB, free: 3.016 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009255/0.04272, allocations: 281.6 kB / 287.2 MB, free: 2.734 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.396e-05/0.04278, allocations: 11.94 kB / 287.2 MB, free: 2.723 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001323/0.0441, allocations: 487.2 kB / 287.7 MB, free: 2.227 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 3.146e-06/0.04411, allocations: 0 / 287.7 MB, free: 2.227 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.131/0.1751, allocations: 2.45 MB / 290.1 MB, free: 28.57 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.485e-05/0.1751, allocations: 88.81 kB / 290.2 MB, free: 28.47 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009318/0.1761, allocations: 0.9129 MB / 291.1 MB, free: 28.34 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00012/0.1762, allocations: 47.78 kB / 291.2 MB, free: 28.31 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001729/0.1764, allocations: 297.7 kB / 291.5 MB, free: 28.19 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001408/0.1765, allocations: 179.8 kB / 291.6 MB, free: 28.15 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002386/0.1767, allocations: 119.5 kB / 291.8 MB, free: 28.09 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.884e-05/0.1768, allocations: 382.2 kB / 292.1 MB, free: 27.75 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008424/0.1777, allocations: 318.3 kB / 292.4 MB, free: 27.64 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001311/0.179, allocations: 418.8 kB / 292.9 MB, free: 27.43 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001895/0.1809, allocations: 0.5027 MB / 293.4 MB, free: 27.21 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.1809, allocations: 1.094 kB / 293.4 MB, free: 27.21 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.004148/0.185, allocations: 1.021 MB / 294.4 MB, free: 26.82 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.565e-05/0.1851, allocations: 8.875 kB / 294.4 MB, free: 26.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.1851, allocations: 2.188 kB / 294.4 MB, free: 26.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001702/0.1868, allocations: 0.5452 MB / 294.9 MB, free: 26.64 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008045/0.1876, allocations: 115.8 kB / 295 MB, free: 26.63 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007934/0.1955, allocations: 4.469 MB / 299.5 MB, free: 22.91 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002273/0.1978, allocations: 228.9 kB / 299.7 MB, free: 22.88 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001214/0.1979, allocations: 27.55 kB / 299.8 MB, free: 22.88 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.0004659/0.1984, allocations: 260.1 kB / 300 MB, free: 22.71 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002045/0.1986, allocations: 92.72 kB / 300.1 MB, free: 22.66 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000185/0.1988, allocations: 108 kB / 300.2 MB, free: 22.59 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.224e-06/0.1988, allocations: 5.156 kB / 300.2 MB, free: 22.59 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/0.1988, allocations: 1.875 kB / 300.2 MB, free: 22.59 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.1988, allocations: 2.156 kB / 300.2 MB, free: 22.59 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004307/0.2031, allocations: 1.212 MB / 301.4 MB, free: 22.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.725e-06/0.2031, allocations: 0 / 301.4 MB, free: 22.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008746/0.204, allocations: 90.11 kB / 301.5 MB, free: 22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00153/0.2055, allocations: 0.5102 MB / 302 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001052/0.2056, allocations: 22.09 kB / 302.1 MB, free: 21.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005019/0.2106, allocations: 4.096 MB / 306.2 MB, free: 18.38 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.2106, allocations: 5.312 kB / 306.2 MB, free: 18.37 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003268/0.2139, allocations: 1.276 MB / 307.4 MB, free: 17.78 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000315/0.2142, allocations: 134.4 kB / 307.6 MB, free: 17.71 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.2143, allocations: 21.25 kB / 307.6 MB, free: 17.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001582/0.2159, allocations: 271 kB / 307.9 MB, free: 17.67 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001275/0.2172, allocations: 0.5764 MB / 308.4 MB, free: 17.35 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.187e-05/0.2173, allocations: 35.36 kB / 308.5 MB, free: 17.33 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005154/0.2178, allocations: 0.6621 MB / 309.1 MB, free: 17.01 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2178, allocations: 4 kB / 309.1 MB, free: 17 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007699/0.2185, allocations: 185.5 kB / 309.3 MB, free: 16.98 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.001671/0.2202, allocations: 421.4 kB / 309.7 MB, free: 16.82 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002362/0.2226, allocations: 0.9227 MB / 310.6 MB, free: 16.05 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.2226, allocations: 0 / 310.6 MB, free: 16.05 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00118/0.2238, allocations: 0.6502 MB / 311.3 MB, free: 15.38 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006284/0.2244, allocations: 122.4 kB / 311.4 MB, free: 15.26 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003383/0.2278, allocations: 1.776 MB / 313.2 MB, free: 13.46 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/0.228, allocations: 322.9 kB / 313.5 MB, free: 13.12 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002093/0.2282, allocations: 51.27 kB / 313.6 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000153/0.2284, allocations: 48.48 kB / 313.6 MB, free: 13.02 MB / 266.7 MB Notification: Performance of SimCode: time 1.332e-06/0.2284, allocations: 0 / 313.6 MB, free: 13.02 MB / 266.7 MB Notification: Performance of Templates: time 0.0177/0.2461, allocations: 14.24 MB / 327.8 MB, free: 14.86 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=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/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.334893207065761]