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.9555/0.9555, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.86e-05/2.874e-05, allocations: 4 kB / 151.4 MB, free: 15.64 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1848/0.1848, allocations: 25.17 MB / 176.5 MB, free: 12 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05667/0.2415, allocations: 37.4 MB / 213.9 MB, free: 12.07 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002088/0.2418, allocations: 63.97 kB / 214 MB, free: 12.01 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05327/0.2951, allocations: 12.83 MB / 226.8 MB, free: 15.14 MB / 202.7 MB Notification: Performance of FrontEnd: time 1.826e-06/0.2951, allocations: 0 / 226.8 MB, free: 15.14 MB / 202.7 MB Notification: Performance of Transformations before backend: time 3.182e-05/0.2952, allocations: 12 kB / 226.8 MB, free: 15.13 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.003151/0.2983, allocations: 1.114 MB / 228 MB, free: 13.96 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.2984, allocations: 12.03 kB / 228 MB, free: 13.95 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002776/0.2987, allocations: 83.06 kB / 228.1 MB, free: 13.87 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001217/0.2999, allocations: 0.5691 MB / 228.6 MB, free: 13.26 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.32e-05/0.3, allocations: 32.77 kB / 228.7 MB, free: 13.22 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002077/0.3002, allocations: 43.91 kB / 228.7 MB, free: 13.18 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002941/0.3031, allocations: 1.43 MB / 230.1 MB, free: 11.73 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.35e-05/0.3032, allocations: 4 kB / 230.1 MB, free: 11.73 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001679/0.3034, allocations: 24 kB / 230.2 MB, free: 11.71 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.3034, allocations: 8 kB / 230.2 MB, free: 11.7 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004089/0.3075, allocations: 2.149 MB / 232.3 MB, free: 9.551 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008341/0.3159, allocations: 3.094 MB / 235.4 MB, free: 6.375 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00218/0.3181, allocations: 1.013 MB / 236.4 MB, free: 5.344 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001659/0.3198, allocations: 0.8533 MB / 237.3 MB, free: 4.484 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.515e-05/0.3199, allocations: 8.219 kB / 237.3 MB, free: 4.477 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002181/0.3221, allocations: 1.201 MB / 238.5 MB, free: 3.234 MB / 202.7 MB Notification: Performance of pre-optimization done (n=44): time 3.95e-06/0.3221, allocations: 3.938 kB / 238.5 MB, free: 3.23 MB / 202.7 MB Notification: Performance of matching and sorting (n=46): time 0.01254/0.3346, allocations: 5.82 MB / 244.3 MB, free: 13.27 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.3348, allocations: 140.5 kB / 244.4 MB, free: 13.11 MB / 218.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001734/0.3365, allocations: 0.7884 MB / 245.2 MB, free: 12.31 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00027/0.3368, allocations: 53.7 kB / 245.3 MB, free: 12.25 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002885/0.3371, allocations: 310.8 kB / 245.6 MB, free: 11.95 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002916/0.3374, allocations: 166 kB / 245.7 MB, free: 11.78 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001415/0.3376, allocations: 23.98 kB / 245.8 MB, free: 11.76 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.3378, allocations: 326.8 kB / 246.1 MB, free: 11.43 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002011/0.3398, allocations: 1.04 MB / 247.1 MB, free: 10.39 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002106/0.3419, allocations: 1.135 MB / 248.3 MB, free: 9.223 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001951/0.3439, allocations: 1.006 MB / 249.3 MB, free: 8.207 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.314e-06/0.3439, allocations: 3.938 kB / 249.3 MB, free: 8.203 MB / 218.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.007229/0.3512, allocations: 3.278 MB / 252.6 MB, free: 4.895 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.417e-05/0.3513, allocations: 59.41 kB / 252.6 MB, free: 4.824 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.3513, allocations: 0 / 252.6 MB, free: 4.824 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.137/0.4883, allocations: 11.43 MB / 264 MB, free: 67.23 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007851/0.4891, allocations: 121 kB / 264.2 MB, free: 67.2 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/0.4999, allocations: 7.101 MB / 271.3 MB, free: 63.23 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002072/0.502, allocations: 305.6 kB / 271.6 MB, free: 63.13 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002332/0.5023, allocations: 111.5 kB / 271.7 MB, free: 63.11 MB / 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 () * 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.0003466/0.5027, allocations: 212.8 kB / 271.9 MB, free: 62.91 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002345/0.5029, allocations: 77.84 kB / 272 MB, free: 62.91 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002436/0.5032, allocations: 99.42 kB / 272 MB, free: 62.84 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.5032, allocations: 10.06 kB / 272.1 MB, free: 62.84 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.958e-06/0.5032, allocations: 3.984 kB / 272.1 MB, free: 62.84 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.959e-06/0.5032, allocations: 4.031 kB / 272.1 MB, free: 62.83 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008457/0.5117, allocations: 4.485 MB / 276.6 MB, free: 58.79 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.349e-05/0.5117, allocations: 12.05 kB / 276.6 MB, free: 58.78 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007369/0.5125, allocations: 81.81 kB / 276.6 MB, free: 58.7 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0137/0.5262, allocations: 11.32 MB / 288 MB, free: 47.35 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001841/0.5264, allocations: 39.97 kB / 288 MB, free: 47.31 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009037/0.5355, allocations: 6.815 MB / 294.8 MB, free: 40.25 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.151e-06/0.5355, allocations: 3.562 kB / 294.8 MB, free: 40.25 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007322/0.5429, allocations: 4.279 MB / 299.1 MB, free: 35.93 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008971/0.5438, allocations: 402.1 kB / 299.5 MB, free: 35.52 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002465/0.5441, allocations: 32 kB / 299.5 MB, free: 35.48 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00168/0.5458, allocations: 315.6 kB / 299.8 MB, free: 35.18 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001849/0.5476, allocations: 0.6588 MB / 300.5 MB, free: 34.52 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001677/0.5478, allocations: 99.95 kB / 300.6 MB, free: 34.42 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0008109/0.5487, allocations: 0.6202 MB / 301.2 MB, free: 33.8 MB / 218.7 MB Notification: Performance of sort global known variables: time 7.89e-07/0.5487, allocations: 0 / 301.2 MB, free: 33.8 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.0009627/0.5496, allocations: 214.3 kB / 301.4 MB, free: 33.59 MB / 218.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.000269/0.5499, allocations: 157.5 kB / 301.6 MB, free: 33.44 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.002147/0.5521, allocations: 1.723 MB / 303.3 MB, free: 31.68 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 3.76e-06/0.5521, allocations: 0 / 303.3 MB, free: 31.68 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001232/0.5534, allocations: 1.001 MB / 304.3 MB, free: 30.63 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005285/0.5539, allocations: 62.25 kB / 304.4 MB, free: 30.57 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004785/0.5587, allocations: 2.023 MB / 306.4 MB, free: 28.54 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004229/0.5592, allocations: 0.9302 MB / 307.3 MB, free: 27.58 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002239/0.5594, allocations: 43.42 kB / 307.4 MB, free: 27.54 MB / 218.7 MB Notification: Performance of SimCode: time 1.473e-06/0.5594, allocations: 0 / 307.4 MB, free: 27.54 MB / 218.7 MB Notification: Performance of Templates: time 0.01807/0.5775, allocations: 12.92 MB / 320.3 MB, free: 14.62 MB / 218.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