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.0017/0.0017, allocations: 78.88 kB / 20.68 MB, free: 1.039 MB / 14.72 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.001964/0.001964, allocations: 145.6 kB / 23.94 MB, free: 4.184 MB / 14.72 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.457/1.457, allocations: 173.3 MB / 200.4 MB, free: 12.89 MB / 190.1 MB " [Timeout remaining time 178] 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 1.422e-06/1.422e-06, allocations: 0 / 318.9 MB, free: 3.566 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.132e-05/2.274e-05, allocations: 3.094 kB / 318.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.0034/0.003423, allocations: 2.787 MB / 321.7 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002339/0.005761, allocations: 1.123 MB / 322.8 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001633/0.005925, allocations: 7.688 kB / 322.8 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003981/0.006323, allocations: 86.58 kB / 322.9 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002089/0.006532, allocations: 121.7 kB / 323 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000914/0.007446, allocations: 421.2 kB / 323.4 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006732/0.008119, allocations: 0.8237 MB / 324.3 MB, free: 184 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001622/0.008281, allocations: 65.28 kB / 324.3 MB, free: 144 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005839/0.008865, allocations: 490.6 kB / 324.8 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001566/0.01043, allocations: 1.289 MB / 326.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001357/0.01057, allocations: 68.69 kB / 326.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002447/0.01081, allocations: 119 kB / 326.3 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002401/0.01105, allocations: 228.2 kB / 326.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003023/0.01135, allocations: 246.7 kB / 326.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001092/0.01245, allocations: 0.9511 MB / 327.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.01245, allocations: 3.938 kB / 327.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.01245, allocations: 1.375 kB / 327.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.01246, allocations: 0 / 327.7 MB, free: 15.11 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.004042/0.0165, allocations: 1.404 MB / 329.1 MB, free: 14.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.01653, allocations: 10.86 kB / 329.1 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001755/0.01671, allocations: 90.45 kB / 329.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006494/0.01736, allocations: 377 kB / 329.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.791e-05/0.0174, allocations: 28.59 kB / 329.6 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.0175, allocations: 35.69 kB / 329.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001923/0.01942, allocations: 1.157 MB / 330.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.008e-05/0.01944, allocations: 1.344 kB / 330.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.075e-05/0.01952, allocations: 20.03 kB / 330.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.01953, allocations: 7.625 kB / 330.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002719/0.02225, allocations: 1.74 MB / 332.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004299/0.02655, allocations: 2.242 MB / 334.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001746/0.0283, allocations: 0.8934 MB / 335.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001203/0.0295, allocations: 0.7006 MB / 336.4 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.621e-05/0.02956, allocations: 4 kB / 336.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001534/0.03109, allocations: 0.9052 MB / 337.3 MB, free: 9.133 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.545e-06/0.0311, allocations: 0 / 337.3 MB, free: 9.133 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.01266/0.04375, allocations: 5.426 MB / 342.7 MB, free: 3.645 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.016e-05/0.04381, allocations: 81.11 kB / 342.8 MB, free: 3.547 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001371/0.04518, allocations: 0.9179 MB / 343.7 MB, free: 2.617 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001217/0.04531, allocations: 49.69 kB / 343.8 MB, free: 2.562 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002749/0.04558, allocations: 288.7 kB / 344.1 MB, free: 2.273 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001991/0.04578, allocations: 174.7 kB / 344.2 MB, free: 2.102 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002663/0.04605, allocations: 122.3 kB / 344.3 MB, free: 1.977 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002156/0.04626, allocations: 378.8 kB / 344.7 MB, free: 1.598 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001401/0.04766, allocations: 0.8447 MB / 345.6 MB, free: 0.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001497/0.04916, allocations: 0.9401 MB / 346.5 MB, free: 15.78 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002354/0.05151, allocations: 1.479 MB / 348 MB, free: 14.27 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.05152, allocations: 0 / 348 MB, free: 14.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004224/0.05574, allocations: 2.471 MB / 350.4 MB, free: 11.79 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.05576, allocations: 4 kB / 350.5 MB, free: 11.78 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.53e-05/0.05578, allocations: 7.938 kB / 350.5 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002259/0.05804, allocations: 1.896 MB / 352.4 MB, free: 9.867 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005559/0.05859, allocations: 115.9 kB / 352.5 MB, free: 9.754 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008631/0.06722, allocations: 6.428 MB / 358.9 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001612/0.06884, allocations: 231.7 kB / 359.1 MB, free: 2.867 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.008e-05/0.06891, allocations: 20 kB / 359.1 MB, free: 2.848 MB / 318.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.0004956/0.0694, allocations: 252.3 kB / 359.4 MB, free: 2.594 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001409/0.06954, allocations: 67.58 kB / 359.5 MB, free: 2.527 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002053/0.06975, allocations: 118.1 kB / 359.6 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.06976, allocations: 4 kB / 359.6 MB, free: 2.406 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.06976, allocations: 0 / 359.6 MB, free: 2.406 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.06977, allocations: 4 kB / 359.6 MB, free: 2.402 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004472/0.07424, allocations: 2.903 MB / 362.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.849e-06/0.07425, allocations: 7.938 kB / 362.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005496/0.0748, allocations: 84.06 kB / 362.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002115/0.07692, allocations: 1.869 MB / 364.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.836e-05/0.07698, allocations: 23.97 kB / 364.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007553/0.08454, allocations: 6.047 MB / 370.5 MB, free: 7.176 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.08454, allocations: 4.031 kB / 370.5 MB, free: 7.172 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005151/0.08969, allocations: 3.223 MB / 373.7 MB, free: 3.91 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003419/0.09004, allocations: 127.5 kB / 373.9 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001193/0.09015, allocations: 20 kB / 373.9 MB, free: 3.766 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001775/0.09193, allocations: 279.6 kB / 374.2 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001555/0.09348, allocations: 0.5732 MB / 374.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.208e-05/0.09357, allocations: 35.95 kB / 374.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007643/0.09433, allocations: 0.667 MB / 375.4 MB, free: 2.219 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.09433, allocations: 0 / 375.4 MB, free: 2.219 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008051/0.09514, allocations: 191.9 kB / 375.6 MB, free: 2.031 MB / 334.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.0003077/0.09544, allocations: 159.6 kB / 375.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003174/0.09862, allocations: 1.87 MB / 377.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.09862, allocations: 0 / 377.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001849/0.1005, allocations: 1.082 MB / 378.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006116/0.1011, allocations: 75.73 kB / 378.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004196/0.1053, allocations: 1.837 MB / 380.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003388/0.1056, allocations: 314.7 kB / 380.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001949/0.1058, allocations: 47.27 kB / 381 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001362/0.1059, allocations: 48.48 kB / 381 MB, free: 12.5 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1059, allocations: 0 / 381 MB, free: 12.5 MB / 350.1 MB Notification: Performance of Templates: time 0.03094/0.1369, allocations: 19.58 MB / 400.6 MB, free: 8.91 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.34596274420619]