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.001864/0.001864, allocations: 89.8 kB / 21.45 MB, free: 272 kB / 14.72 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.002456/0.002456, allocations: 162.6 kB / 24.7 MB, free: 3.527 MB / 14.72 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.473/1.473, allocations: 158.6 MB / 186.5 MB, free: 6.391 MB / 174.1 MB " [Timeout remaining time 178] 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.703e-06/1.703e-06, allocations: 0 / 298.9 MB, free: 8.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.011e-05/3.181e-05, allocations: 2.281 kB / 298.9 MB, free: 8.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004904/0.004936, allocations: 2.766 MB / 301.7 MB, free: 5.934 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002858/0.007794, allocations: 1.166 MB / 302.9 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004241/0.008218, allocations: 7.938 kB / 302.9 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006228/0.008841, allocations: 83.22 kB / 303 MB, free: 4.676 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005159/0.009357, allocations: 126.9 kB / 303.1 MB, free: 4.551 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001391/0.01075, allocations: 423 kB / 303.5 MB, free: 4.137 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001615/0.01236, allocations: 0.8227 MB / 304.3 MB, free: 3.312 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002956/0.01266, allocations: 69.69 kB / 304.4 MB, free: 3.242 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001314/0.01397, allocations: 487.2 kB / 304.9 MB, free: 2.766 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001979/0.01595, allocations: 1.287 MB / 306.1 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002602/0.01621, allocations: 71.94 kB / 306.2 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003827/0.01659, allocations: 115.9 kB / 306.3 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003584/0.01695, allocations: 235.8 kB / 306.6 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004506/0.0174, allocations: 235.4 kB / 306.8 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001346/0.01875, allocations: 0.9505 MB / 307.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.01875, allocations: 0 / 307.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.01876, allocations: 3.938 kB / 307.7 MB, free: 15.87 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.251e-05/0.01879, allocations: 0 / 307.7 MB, free: 15.87 MB / 302.1 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.004599/0.02339, allocations: 1.412 MB / 309.2 MB, free: 14.42 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.681e-05/0.02344, allocations: 11.98 kB / 309.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002135/0.02366, allocations: 80.47 kB / 309.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008038/0.02446, allocations: 377.5 kB / 309.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.732e-05/0.02451, allocations: 29.38 kB / 309.6 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001264/0.02464, allocations: 44.27 kB / 309.7 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002189/0.02682, allocations: 1.146 MB / 310.8 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.02e-05/0.02685, allocations: 8.188 kB / 310.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.972e-05/0.02693, allocations: 16.12 kB / 310.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.241e-05/0.02695, allocations: 12 kB / 310.9 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00307/0.03002, allocations: 1.736 MB / 312.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004774/0.03479, allocations: 2.258 MB / 314.9 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001878/0.03667, allocations: 0.8913 MB / 315.8 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001275/0.03794, allocations: 0.7006 MB / 316.5 MB, free: 6.996 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.199e-05/0.03801, allocations: 7.984 kB / 316.5 MB, free: 6.988 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001618/0.03962, allocations: 0.9013 MB / 317.4 MB, free: 6.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.464e-06/0.03963, allocations: 0 / 317.4 MB, free: 6.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.01279/0.05242, allocations: 5.42 MB / 322.8 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.455e-05/0.0525, allocations: 89.09 kB / 322.9 MB, free: 492 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1673/0.2198, allocations: 0.9133 MB / 323.8 MB, free: 35.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000192/0.22, allocations: 48.88 kB / 323.8 MB, free: 35.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001879/0.2201, allocations: 287 kB / 324.1 MB, free: 35.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001601/0.2203, allocations: 173.6 kB / 324.3 MB, free: 35.26 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002306/0.2205, allocations: 118.6 kB / 324.4 MB, free: 35.22 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.289e-05/0.2206, allocations: 379.4 kB / 324.8 MB, free: 34.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/0.2219, allocations: 0.8468 MB / 325.6 MB, free: 34.71 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001319/0.2232, allocations: 0.9402 MB / 326.6 MB, free: 34.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002247/0.2254, allocations: 1.453 MB / 328 MB, free: 34.13 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.2254, allocations: 2.578 kB / 328 MB, free: 34.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004018/0.2294, allocations: 2.474 MB / 330.5 MB, free: 33.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.2295, allocations: 12.06 kB / 330.5 MB, free: 33.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.2295, allocations: 3.141 kB / 330.5 MB, free: 33.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002242/0.2317, allocations: 1.906 MB / 332.4 MB, free: 33.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005329/0.2323, allocations: 113.3 kB / 332.5 MB, free: 33.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006896/0.2392, allocations: 6.432 MB / 338.9 MB, free: 29.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001484/0.2406, allocations: 230.1 kB / 339.2 MB, free: 29.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.697e-05/0.2407, allocations: 22.02 kB / 339.2 MB, free: 29.03 MB / 302.1 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.0003431/0.2411, allocations: 256.4 kB / 339.4 MB, free: 28.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.2412, allocations: 72.17 kB / 339.5 MB, free: 28.72 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001764/0.2414, allocations: 103.6 kB / 339.6 MB, free: 28.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.2414, allocations: 8 kB / 339.6 MB, free: 28.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.2414, allocations: 3.5 kB / 339.6 MB, free: 28.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.2414, allocations: 2.578 kB / 339.6 MB, free: 28.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003717/0.2451, allocations: 2.9 MB / 342.5 MB, free: 26.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.2451, allocations: 4 kB / 342.5 MB, free: 26.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005029/0.2456, allocations: 85.56 kB / 342.6 MB, free: 25.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001474/0.2471, allocations: 1.864 MB / 344.5 MB, free: 24.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.057e-05/0.2471, allocations: 28.61 kB / 344.5 MB, free: 24.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005305/0.2524, allocations: 6.056 MB / 350.6 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.2524, allocations: 0 / 350.6 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003988/0.2564, allocations: 3.225 MB / 353.8 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002875/0.2567, allocations: 135.5 kB / 353.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001177/0.2568, allocations: 20 kB / 353.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0017/0.2585, allocations: 267.6 kB / 354.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001313/0.2599, allocations: 0.5771 MB / 354.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.636e-05/0.2599, allocations: 31.95 kB / 354.8 MB, free: 13.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000531/0.2605, allocations: 0.6786 MB / 355.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2605, allocations: 0.6562 kB / 355.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008282/0.2613, allocations: 183.9 kB / 355.7 MB, free: 13.06 MB / 302.1 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.0003096/0.2616, allocations: 158.5 kB / 355.8 MB, free: 12.9 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002673/0.2643, allocations: 1.876 MB / 357.7 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.2643, allocations: 4 kB / 357.7 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00182/0.2661, allocations: 1.075 MB / 358.8 MB, free: 9.906 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009299/0.267, allocations: 73.2 kB / 358.9 MB, free: 9.844 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004213/0.2712, allocations: 1.833 MB / 360.7 MB, free: 7.984 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003342/0.2716, allocations: 322.7 kB / 361 MB, free: 7.648 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002584/0.2718, allocations: 43.27 kB / 361 MB, free: 7.602 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000156/0.272, allocations: 40.48 kB / 361.1 MB, free: 7.562 MB / 302.1 MB Notification: Performance of SimCode: time 3.096e-06/0.272, allocations: 0 / 361.1 MB, free: 7.562 MB / 302.1 MB Notification: Performance of Templates: time 0.03273/0.3047, allocations: 19.58 MB / 380.7 MB, free: 3.938 MB / 318.1 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.632727485150099]