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.9314/0.9314, allocations: 111.2 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002593/0.0002594, allocations: 4 kB / 158.3 MB, free: 15.17 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04479/0.04507, allocations: 25.16 MB / 183.5 MB, free: 5.973 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1751/0.2202, allocations: 37.48 MB / 221 MB, free: 5.703 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001882/0.2205, allocations: 65.47 kB / 221 MB, free: 5.695 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04924/0.2697, allocations: 12.83 MB / 233.9 MB, free: 13.56 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.222e-06/0.2698, allocations: 3.938 kB / 233.9 MB, free: 13.55 MB / 186.7 MB Notification: Performance of Transformations before backend: time 3.026e-05/0.2698, allocations: 12 kB / 233.9 MB, free: 13.54 MB / 186.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.003344/0.2732, allocations: 1.209 MB / 235.1 MB, free: 12.31 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.2732, allocations: 12.03 kB / 235.1 MB, free: 12.3 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000289/0.2735, allocations: 83.09 kB / 235.2 MB, free: 12.22 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001196/0.2748, allocations: 0.5718 MB / 235.8 MB, free: 11.67 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.793e-05/0.2748, allocations: 33.92 kB / 235.8 MB, free: 11.65 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002194/0.2751, allocations: 40.44 kB / 235.8 MB, free: 11.62 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003506/0.2786, allocations: 1.525 MB / 237.4 MB, free: 10.36 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.764e-05/0.2786, allocations: 3.75 kB / 237.4 MB, free: 10.36 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001715/0.2788, allocations: 19.31 kB / 237.4 MB, free: 10.35 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.2789, allocations: 8 kB / 237.4 MB, free: 10.34 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0053/0.2842, allocations: 2.318 MB / 239.7 MB, free: 8.441 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008405/0.2926, allocations: 3.11 MB / 242.8 MB, free: 5.77 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002918/0.2956, allocations: 1.127 MB / 243.9 MB, free: 4.844 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.532e-05/0.2957, allocations: 8.109 kB / 243.9 MB, free: 4.84 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002766/0.2985, allocations: 1.276 MB / 245.2 MB, free: 3.73 MB / 186.7 MB Notification: Performance of pre-optimization done (n=44): time 4.871e-06/0.2985, allocations: 0 / 245.2 MB, free: 3.73 MB / 186.7 MB Notification: Performance of matching and sorting (n=46): time 0.02127/0.3198, allocations: 7.964 MB / 253.2 MB, free: 12.54 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.32, allocations: 136.5 kB / 253.3 MB, free: 12.38 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001734/0.3217, allocations: 0.7922 MB / 254.1 MB, free: 11.57 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002914/0.322, allocations: 53.7 kB / 254.2 MB, free: 11.52 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002863/0.3223, allocations: 318.3 kB / 254.5 MB, free: 11.21 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003013/0.3226, allocations: 165.9 kB / 254.6 MB, free: 11.04 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001427/0.3228, allocations: 27.92 kB / 254.7 MB, free: 11.02 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001974/0.323, allocations: 334.8 kB / 255 MB, free: 10.68 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0026/0.3256, allocations: 1.122 MB / 256.1 MB, free: 9.559 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002818/0.3285, allocations: 1.209 MB / 257.3 MB, free: 8.316 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002528/0.331, allocations: 1.088 MB / 258.4 MB, free: 7.215 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.754e-06/0.331, allocations: 0 / 258.4 MB, free: 7.215 MB / 202.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.008446/0.3395, allocations: 3.444 MB / 261.9 MB, free: 3.742 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.633e-05/0.3396, allocations: 63.39 kB / 261.9 MB, free: 3.668 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.3396, allocations: 0 / 261.9 MB, free: 3.668 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01975/0.3594, allocations: 11.48 MB / 273.4 MB, free: 8.16 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007681/0.3602, allocations: 127.9 kB / 273.5 MB, free: 8.035 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01403/0.3743, allocations: 7.13 MB / 280.7 MB, free: 0.6055 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001945/0.3763, allocations: 311.6 kB / 281 MB, free: 308 kB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002492/0.3765, allocations: 112 kB / 281.1 MB, free: 196 kB / 218.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 () * Number of clocked 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.0006965/0.3773, allocations: 315.4 kB / 281.4 MB, free: 15.86 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002594/0.3775, allocations: 79.16 kB / 281.5 MB, free: 15.79 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000232/0.3778, allocations: 98.17 kB / 281.5 MB, free: 15.68 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.099e-05/0.3778, allocations: 8 kB / 281.6 MB, free: 15.68 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.3778, allocations: 0 / 281.6 MB, free: 15.68 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/0.3778, allocations: 7.984 kB / 281.6 MB, free: 15.67 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01077/0.3886, allocations: 4.574 MB / 286.1 MB, free: 11.02 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.428e-05/0.3887, allocations: 3.984 kB / 286.1 MB, free: 11.01 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006654/0.3894, allocations: 91.94 kB / 286.2 MB, free: 10.92 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1643/0.5537, allocations: 11.37 MB / 297.6 MB, free: 78.68 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003351/0.5541, allocations: 43.7 kB / 297.6 MB, free: 78.68 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01642/0.5705, allocations: 6.851 MB / 304.5 MB, free: 75.69 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.935e-06/0.5706, allocations: 1.375 kB / 304.5 MB, free: 75.69 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009795/0.5804, allocations: 4.517 MB / 309 MB, free: 74.97 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001052/0.5815, allocations: 402.8 kB / 309.4 MB, free: 74.82 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000278/0.5818, allocations: 30.25 kB / 309.4 MB, free: 74.8 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002155/0.5839, allocations: 313 kB / 309.7 MB, free: 74.8 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002148/0.5861, allocations: 0.669 MB / 310.4 MB, free: 74.71 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001811/0.5863, allocations: 95.48 kB / 310.5 MB, free: 74.69 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0009822/0.5873, allocations: 0.6269 MB / 311.1 MB, free: 74.43 MB / 234.7 MB Notification: Performance of sort global known variables: time 8.65e-07/0.5873, allocations: 0 / 311.1 MB, free: 74.43 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001042/0.5884, allocations: 213.5 kB / 311.3 MB, free: 74.41 MB / 234.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) * Number of clocked states: 0 () * 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.0002879/0.5887, allocations: 154.2 kB / 311.5 MB, free: 74.32 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.005938/0.5946, allocations: 1.917 MB / 313.4 MB, free: 73.64 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 7.299e-06/0.5947, allocations: 0 / 313.4 MB, free: 73.64 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003883/0.5986, allocations: 1.102 MB / 314.5 MB, free: 73.12 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001125/0.5997, allocations: 58.34 kB / 314.6 MB, free: 73.11 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009153/0.6089, allocations: 2.278 MB / 316.8 MB, free: 72.14 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008321/0.6098, allocations: 0.9281 MB / 317.8 MB, free: 71.42 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004655/0.6103, allocations: 47.75 kB / 317.8 MB, free: 71.41 MB / 234.7 MB Notification: Performance of SimCode: time 3.325e-06/0.6103, allocations: 0 / 317.8 MB, free: 71.41 MB / 234.7 MB Notification: Performance of Templates: time 0.03522/0.6456, allocations: 12.95 MB / 330.8 MB, free: 59.73 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