Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.Translational.Examples.Friction.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="der.mass.s.|der.mass.v.|der.stop1.s.|der.stop1.v.|der.stop2.s.|der.stop2.v.|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|time",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 0.9799/0.9799, allocations: 111.2 MB / 124.2 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.991e-05/2.004e-05, allocations: 0 / 154.3 MB, free: 13.17 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1397, allocations: 25.15 MB / 179.4 MB, free: 0.7969 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05645/0.1962, allocations: 37.4 MB / 216.8 MB, free: 11.71 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002173/0.1965, allocations: 59.97 kB / 216.9 MB, free: 11.65 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05496/0.2514, allocations: 12.83 MB / 229.7 MB, free: 14.79 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.139e-06/0.2515, allocations: 0 / 229.7 MB, free: 14.79 MB / 202.7 MB Notification: Performance of Transformations before backend: time 3.402e-05/0.2515, allocations: 12 kB / 229.7 MB, free: 14.77 MB / 202.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.003355/0.2549, allocations: 1.122 MB / 230.8 MB, free: 13.59 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.255, allocations: 8.031 kB / 230.8 MB, free: 13.59 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003496/0.2553, allocations: 83.06 kB / 230.9 MB, free: 13.5 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001292/0.2566, allocations: 0.5769 MB / 231.5 MB, free: 12.89 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.832e-05/0.2567, allocations: 28.78 kB / 231.5 MB, free: 12.86 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002163/0.257, allocations: 43.91 kB / 231.6 MB, free: 12.81 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003073/0.26, allocations: 1.439 MB / 233 MB, free: 11.36 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.798e-05/0.2601, allocations: 0 / 233 MB, free: 11.36 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001803/0.2603, allocations: 24 kB / 233 MB, free: 11.34 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.713e-05/0.2603, allocations: 8 kB / 233 MB, free: 11.33 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004385/0.2647, allocations: 2.154 MB / 235.2 MB, free: 9.172 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0087/0.2735, allocations: 3.094 MB / 238.3 MB, free: 6 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002274/0.2758, allocations: 1.014 MB / 239.3 MB, free: 4.969 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001732/0.2776, allocations: 0.8571 MB / 240.2 MB, free: 4.105 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.29e-05/0.2777, allocations: 8.922 kB / 240.2 MB, free: 4.098 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002261/0.2799, allocations: 1.203 MB / 241.4 MB, free: 2.852 MB / 202.7 MB Notification: Performance of pre-optimization done (n=44): time 3.642e-06/0.28, allocations: 0 / 241.4 MB, free: 2.852 MB / 202.7 MB Notification: Performance of matching and sorting (n=46): time 0.1313/0.4113, allocations: 5.813 MB / 247.2 MB, free: 53.28 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.757e-05/0.4114, allocations: 134.4 kB / 247.3 MB, free: 53.12 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001449/0.4128, allocations: 0.7904 MB / 248.1 MB, free: 52.99 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001999/0.4131, allocations: 55.45 kB / 248.2 MB, free: 52.96 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001752/0.4132, allocations: 313.3 kB / 248.5 MB, free: 52.78 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000209/0.4135, allocations: 162.2 kB / 248.6 MB, free: 52.71 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001298/0.4136, allocations: 19.02 kB / 248.6 MB, free: 52.71 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 6.781e-05/0.4137, allocations: 345.1 kB / 249 MB, free: 52.39 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001848/0.4156, allocations: 1.034 MB / 250 MB, free: 52.39 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001858/0.4174, allocations: 1.13 MB / 251.1 MB, free: 52.18 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001613/0.4191, allocations: 1.015 MB / 252.2 MB, free: 51.94 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.688e-06/0.4191, allocations: 0 / 252.2 MB, free: 51.94 MB / 202.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.006111/0.4252, allocations: 3.283 MB / 255.4 MB, free: 49.93 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.594e-05/0.4253, allocations: 61.59 kB / 255.5 MB, free: 49.86 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.4253, allocations: 0 / 255.5 MB, free: 49.86 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0136/0.4389, allocations: 11.43 MB / 266.9 MB, free: 39.71 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007225/0.4397, allocations: 123.9 kB / 267.1 MB, free: 39.6 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01001/0.4497, allocations: 7.107 MB / 274.2 MB, free: 32.21 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001797/0.4516, allocations: 307.8 kB / 274.5 MB, free: 31.91 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000193/0.4518, allocations: 106.8 kB / 274.6 MB, free: 31.81 MB / 202.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,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003177/0.4521, allocations: 218.8 kB / 274.8 MB, free: 31.59 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002161/0.4523, allocations: 75.16 kB / 274.9 MB, free: 31.51 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002128/0.4526, allocations: 102.3 kB / 275 MB, free: 31.41 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.519e-06/0.4526, allocations: 7.953 kB / 275 MB, free: 31.4 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.4526, allocations: 4 kB / 275 MB, free: 31.39 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.276e-06/0.4526, allocations: 3.984 kB / 275 MB, free: 31.39 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008324/0.461, allocations: 4.488 MB / 279.5 MB, free: 26.84 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.111e-06/0.461, allocations: 3.953 kB / 279.5 MB, free: 26.84 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006109/0.4616, allocations: 91.94 kB / 279.6 MB, free: 26.75 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01368/0.4753, allocations: 11.33 MB / 290.9 MB, free: 15.39 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001808/0.4755, allocations: 39.97 kB / 290.9 MB, free: 15.36 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009143/0.4847, allocations: 6.8 MB / 297.7 MB, free: 8.273 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.563e-06/0.4848, allocations: 7.406 kB / 297.7 MB, free: 8.27 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007201/0.492, allocations: 4.276 MB / 302 MB, free: 3.934 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008978/0.4929, allocations: 406.8 kB / 302.4 MB, free: 3.52 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002491/0.4932, allocations: 32 kB / 302.4 MB, free: 3.488 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001759/0.4949, allocations: 315.7 kB / 302.7 MB, free: 3.18 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001866/0.4968, allocations: 0.6587 MB / 303.4 MB, free: 2.523 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001775/0.497, allocations: 104 kB / 303.5 MB, free: 2.422 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0008438/0.4979, allocations: 0.6163 MB / 304.1 MB, free: 1.812 MB / 202.7 MB Notification: Performance of sort global known variables: time 8.1e-07/0.4979, allocations: 0 / 304.1 MB, free: 1.812 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001011/0.4989, allocations: 222.5 kB / 304.3 MB, free: 1.602 MB / 202.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: 11 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,$whenCondition2,stop2.mode,stop2.startBackward,stop2.startForward,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002888/0.4992, allocations: 160.8 kB / 304.5 MB, free: 1.441 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.002446/0.5017, allocations: 1.742 MB / 306.2 MB, free: 15.65 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 4.898e-06/0.5017, allocations: 4.125 kB / 306.2 MB, free: 15.65 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001667/0.5034, allocations: 1.02 MB / 307.3 MB, free: 14.58 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006325/0.504, allocations: 60.33 kB / 307.3 MB, free: 14.52 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005782/0.5098, allocations: 2.017 MB / 309.3 MB, free: 12.48 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007469/0.5106, allocations: 0.9263 MB / 310.3 MB, free: 11.53 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002535/0.5109, allocations: 43.42 kB / 310.3 MB, free: 11.48 MB / 218.7 MB Notification: Performance of SimCode: time 1.779e-06/0.5109, allocations: 0 / 310.3 MB, free: 11.48 MB / 218.7 MB Notification: Performance of Templates: time 0.02369/0.5346, allocations: 12.95 MB / 323.3 MB, free: 14.54 MB / 234.7 MB "" Variables in the reference:der(mass.s),der(mass.v),der(stop1.s),der(stop1.v),der(stop2.s),der(stop2.v),mass.s,mass.v,stop1.s,stop1.v,stop2.s,stop2.v,time Variables in the result:fixed2.flange.f,fixed2.flange.s,fixed2.s0,force.f,force.flange.f,force.flange.s,force.s,force2.f,force2.flange.f,force2.flange.s,force2.s,mass.L,mass.a,der(mass.s),der(mass.v),mass.flange_a.f,mass.flange_a.s,mass.flange_b.f,mass.flange_b.s,mass.m,mass.s,mass.stateSelect,mass.v,sineForce.amplitude,sineForce.freqHz,sineForce.offset,sineForce.phase,sineForce.startTime,sineForce.y,spring.c,spring.f,spring.flange_a.f,spring.flange_a.s,spring.flange_b.f,spring.flange_b.s,spring.s_rel,spring.s_rel0,stop1.F_Coulomb,stop1.F_Stribeck,stop1.F_prop,stop1.L,stop1.a,stop1.a_relfric,der(stop1.s),der(stop1.v),stop1.f,stop1.f0,stop1.f0_max,stop1.fexp,stop1.flange_a.f,stop1.flange_a.s,stop1.flange_b.f,stop1.flange_b.s,stop1.free,stop1.locked,stop1.m,stop1.mode,stop1.s,stop1.sa,stop1.smax,stop1.smin,stop1.startBackward,stop1.startForward,stop1.stopped,stop1.v,stop1.v_relfric,stop1.v_small,stop2.F_Coulomb,stop2.F_Stribeck,stop2.F_prop,stop2.L,stop2.a,stop2.a_relfric,der(stop2.s),der(stop2.v),stop2.f,stop2.f0,stop2.f0_max,stop2.fexp,stop2.flange_a.f,stop2.flange_a.s,stop2.flange_b.f,stop2.flange_b.s,stop2.free,stop2.locked,stop2.m,stop2.mode,stop2.s,stop2.sa,stop2.smax,stop2.smin,stop2.startBackward,stop2.startForward,stop2.stopped,stop2.v,stop2.v_relfric,stop2.v_small,supportFriction.a,supportFriction.a_relfric,der(supportFriction.s),der(supportFriction.v),supportFriction.f,supportFriction.f0,supportFriction.f0_max,supportFriction.f_pos[1,1],supportFriction.f_pos[1,2],supportFriction.f_pos[10,1],supportFriction.f_pos[10,2],supportFriction.f_pos[11,1],supportFriction.f_pos[11,2],supportFriction.f_pos[12,1],supportFriction.f_pos[12,2],supportFriction.f_pos[13,1],supportFriction.f_pos[13,2],supportFriction.f_pos[14,1],supportFriction.f_pos[14,2],supportFriction.f_pos[15,1],supportFriction.f_pos[15,2],supportFriction.f_pos[16,1],supportFriction.f_pos[16,2],supportFriction.f_pos[17,1],supportFriction.f_pos[17,2],supportFriction.f_pos[18,1],supportFriction.f_pos[18,2],supportFriction.f_pos[19,1],supportFriction.f_pos[19,2],supportFriction.f_pos[2,1],supportFriction.f_pos[2,2],supportFriction.f_pos[20,1],supportFriction.f_pos[20,2],supportFriction.f_pos[21,1],supportFriction.f_pos[21,2],supportFriction.f_pos[22,1],supportFriction.f_pos[22,2],supportFriction.f_pos[23,1],supportFriction.f_pos[23,2],supportFriction.f_pos[24,1],supportFriction.f_pos[24,2],supportFriction.f_pos[25,1],supportFriction.f_pos[25,2],supportFriction.f_pos[26,1],supportFriction.f_pos[26,2],supportFriction.f_pos[27,1],supportFriction.f_pos[27,2],supportFriction.f_pos[28,1],supportFriction.f_pos[28,2],supportFriction.f_pos[29,1],supportFriction.f_pos[29,2],supportFriction.f_pos[3,1],supportFriction.f_pos[3,2],supportFriction.f_pos[30,1],supportFriction.f_pos[30,2],supportFriction.f_pos[31,1],supportFriction.f_pos[31,2],supportFriction.f_pos[32,1],supportFriction.f_pos[32,2],supportFriction.f_pos[33,1],supportFriction.f_pos[33,2],supportFriction.f_pos[34,1],supportFriction.f_pos[34,2],supportFriction.f_pos[35,1],supportFriction.f_pos[35,2],supportFriction.f_pos[36,1],supportFriction.f_pos[36,2],supportFriction.f_pos[37,1],supportFriction.f_pos[37,2],supportFriction.f_pos[38,1],supportFriction.f_pos[38,2],supportFriction.f_pos[39,1],supportFriction.f_pos[39,2],supportFriction.f_pos[4,1],supportFriction.f_pos[4,2],supportFriction.f_pos[40,1],supportFriction.f_pos[40,2],supportFriction.f_pos[41,1],supportFriction.f_pos[41,2],supportFriction.f_pos[42,1],supportFriction.f_pos[42,2],supportFriction.f_pos[43,1],supportFriction.f_pos[43,2],supportFriction.f_pos[44,1],supportFriction.f_pos[44,2],supportFriction.f_pos[45,1],supportFriction.f_pos[45,2],supportFriction.f_pos[46,1],supportFriction.f_pos[46,2],supportFriction.f_pos[47,1],supportFriction.f_pos[47,2],supportFriction.f_pos[48,1],supportFriction.f_pos[48,2],supportFriction.f_pos[49,1],supportFriction.f_pos[49,2],supportFriction.f_pos[5,1],supportFriction.f_pos[5,2],supportFriction.f_pos[50,1],supportFriction.f_pos[50,2],supportFriction.f_pos[6,1],supportFriction.f_pos[6,2],supportFriction.f_pos[7,1],supportFriction.f_pos[7,2],supportFriction.f_pos[8,1],supportFriction.f_pos[8,2],supportFriction.f_pos[9,1],supportFriction.f_pos[9,2],supportFriction.flange_a.f,supportFriction.flange_a.s,supportFriction.flange_b.f,supportFriction.flange_b.s,supportFriction.free,supportFriction.locked,supportFriction.mode,supportFriction.peak,supportFriction.s,supportFriction.s_a,supportFriction.s_b,supportFriction.sa,supportFriction.startBackward,supportFriction.startForward,supportFriction.v,supportFriction.v_relfric,supportFriction.v_small,time