Running command: translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.592/1.592, allocations: 171.2 MB / 183.8 MB, free: 12.01 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.541e-05/3.559e-05, allocations: 4 kB / 225 MB, free: 2.785 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2146/0.2146, allocations: 38.77 MB / 263.8 MB, free: 9.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1067/0.3214, allocations: 70.7 MB / 334.5 MB, free: 3.074 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002353/0.3217, allocations: 71.91 kB / 334.5 MB, free: 3.004 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0319/0.3536, allocations: 7.397 MB / 341.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.363e-06/0.3536, allocations: 0 / 341.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.78e-05/0.3537, allocations: 12 kB / 341.9 MB, free: 11.57 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001627/0.3553, allocations: 0.6973 MB / 342.6 MB, free: 10.83 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.3554, allocations: 8.031 kB / 342.6 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.3555, allocations: 51.44 kB / 342.7 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006067/0.3562, allocations: 302.3 kB / 343 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.247e-05/0.3562, allocations: 32.78 kB / 343 MB, free: 10.4 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.3564, allocations: 51.8 kB / 343.1 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001104/0.3575, allocations: 438 kB / 343.5 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.187e-05/0.3575, allocations: 4 kB / 343.5 MB, free: 9.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.955e-05/0.3576, allocations: 16 kB / 343.5 MB, free: 9.895 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.544e-05/0.3577, allocations: 12 kB / 343.5 MB, free: 9.883 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001095/0.3588, allocations: 437.3 kB / 344 MB, free: 9.457 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003085/0.3619, allocations: 1.156 MB / 345.1 MB, free: 8.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009835/0.3629, allocations: 367.9 kB / 345.5 MB, free: 7.879 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006122/0.3635, allocations: 250.1 kB / 345.7 MB, free: 7.633 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.478e-05/0.3636, allocations: 8.422 kB / 345.7 MB, free: 7.621 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.332e-05/0.3637, allocations: 43 kB / 345.8 MB, free: 7.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 4.042e-06/0.3637, allocations: 0 / 345.8 MB, free: 7.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.004677/0.3684, allocations: 1.748 MB / 347.5 MB, free: 5.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.078e-05/0.3684, allocations: 55.97 kB / 347.6 MB, free: 5.664 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004148/0.3689, allocations: 243.5 kB / 347.8 MB, free: 5.418 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.269e-05/0.369, allocations: 53.69 kB / 347.9 MB, free: 5.359 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001811/0.3692, allocations: 231.8 kB / 348.1 MB, free: 5.129 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002375/0.3694, allocations: 193.3 kB / 348.3 MB, free: 4.938 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.504e-05/0.3695, allocations: 16 kB / 348.3 MB, free: 4.922 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001859/0.3697, allocations: 334.8 kB / 348.6 MB, free: 4.586 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005609/0.3703, allocations: 221.8 kB / 348.8 MB, free: 4.371 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006036/0.3709, allocations: 260.7 kB / 349.1 MB, free: 4.109 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004854/0.3714, allocations: 193.9 kB / 349.3 MB, free: 3.922 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.3714, allocations: 0 / 349.3 MB, free: 3.922 MB / 298.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00247/0.3739, allocations: 0.8305 MB / 350.1 MB, free: 3.074 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.72e-05/0.3739, allocations: 4 kB / 350.1 MB, free: 3.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.587e-05/0.374, allocations: 11.94 kB / 350.1 MB, free: 3.059 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001293/0.3753, allocations: 0.513 MB / 350.6 MB, free: 2.539 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005507/0.3759, allocations: 91.89 kB / 350.7 MB, free: 2.449 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001854/0.3777, allocations: 1.374 MB / 352.1 MB, free: 1.023 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007257/0.3785, allocations: 104 kB / 352.2 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.629e-05/0.3786, allocations: 31.98 kB / 352.2 MB, free: 0.8906 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002229/0.3788, allocations: 136.9 kB / 352.4 MB, free: 0.75 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000137/0.379, allocations: 43.53 kB / 352.4 MB, free: 0.707 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001569/0.3792, allocations: 59.52 kB / 352.5 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.099e-06/0.3792, allocations: 4 kB / 352.5 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.3792, allocations: 3.984 kB / 352.5 MB, free: 0.6445 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.279e-06/0.3792, allocations: 0 / 352.5 MB, free: 0.6445 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004136/0.3834, allocations: 1.524 MB / 354 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.717e-06/0.3834, allocations: 0 / 354 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005697/0.384, allocations: 92.05 kB / 354.1 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001209/0.3852, allocations: 0.4934 MB / 354.6 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.764e-05/0.3853, allocations: 27.97 kB / 354.6 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001739/0.3871, allocations: 1.351 MB / 356 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-05/0.3871, allocations: 11.92 kB / 356 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00274/0.3899, allocations: 1.127 MB / 357.1 MB, free: 11.81 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003683/0.3903, allocations: 168.6 kB / 357.3 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001251/0.3904, allocations: 16 kB / 357.3 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006033/0.391, allocations: 84.05 kB / 357.4 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003029/0.3914, allocations: 116.2 kB / 357.5 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.238e-05/0.3915, allocations: 23.92 kB / 357.5 MB, free: 11.39 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002996/0.3918, allocations: 199.1 kB / 357.7 MB, free: 11.2 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.52e-07/0.3918, allocations: 0 / 357.7 MB, free: 11.2 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006978/0.3925, allocations: 136 kB / 357.8 MB, free: 11.06 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003017/0.3928, allocations: 139.2 kB / 358 MB, free: 10.91 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001449/0.3943, allocations: 0.521 MB / 358.5 MB, free: 10.4 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.112e-06/0.3943, allocations: 4.062 kB / 358.5 MB, free: 10.39 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008322/0.3952, allocations: 301.5 kB / 358.8 MB, free: 10.1 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006406/0.3958, allocations: 63.09 kB / 358.8 MB, free: 10.04 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004566/0.4004, allocations: 1.364 MB / 360.2 MB, free: 8.625 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005835/0.401, allocations: 0.8249 MB / 361 MB, free: 7.777 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002067/0.4012, allocations: 39.42 kB / 361.1 MB, free: 7.738 MB / 314.7 MB Notification: Performance of SimCode: time 4.545e-06/0.4013, allocations: 0 / 361.1 MB, free: 7.738 MB / 314.7 MB Notification: Performance of Templates: time 0.1931/0.5944, allocations: 7.845 MB / 368.9 MB, free: 93.56 MB / 314.7 MB