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.2_cpp_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.867/1.867, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.055e-05/3.082e-05, allocations: 4 kB / 255.4 MB, free: 3.203 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08048/0.08053, allocations: 44.49 MB / 299.9 MB, free: 6.648 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.339/0.4196, allocations: 76.01 MB / 375.9 MB, free: 22.6 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002133/0.4199, allocations: 74.53 kB / 375.9 MB, free: 22.6 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02993/0.4498, allocations: 7.445 MB / 383.4 MB, free: 21.8 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.067e-06/0.4499, allocations: 7.172 kB / 383.4 MB, free: 21.8 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.797e-05/0.4499, allocations: 12.25 kB / 383.4 MB, free: 21.8 MB / 314.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.001414/0.4513, allocations: 0.6885 MB / 384.1 MB, free: 21.34 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.4514, allocations: 12.06 kB / 384.1 MB, free: 21.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001523/0.4516, allocations: 49.34 kB / 384.1 MB, free: 21.31 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004817/0.4521, allocations: 309.1 kB / 384.4 MB, free: 21.07 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.122e-05/0.4521, allocations: 27.41 kB / 384.5 MB, free: 21.07 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.4522, allocations: 45.59 kB / 384.5 MB, free: 21.07 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.4533, allocations: 424.6 kB / 384.9 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.427e-05/0.4533, allocations: 9.562 kB / 384.9 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.532e-05/0.4534, allocations: 13.62 kB / 385 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.542e-05/0.4534, allocations: 9.625 kB / 385 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009509/0.4544, allocations: 391.9 kB / 385.3 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002783/0.4572, allocations: 1.146 MB / 386.5 MB, free: 20.66 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009619/0.4582, allocations: 377.1 kB / 386.9 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005575/0.4588, allocations: 247 kB / 387.1 MB, free: 20.6 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.94e-05/0.4589, allocations: 13.05 kB / 387.1 MB, free: 20.6 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.148e-05/0.4589, allocations: 37.78 kB / 387.2 MB, free: 20.55 MB / 314.7 MB Notification: Performance of pre-optimization done (n=52): time 4.012e-06/0.4589, allocations: 0 / 387.2 MB, free: 20.55 MB / 314.7 MB Notification: Performance of matching and sorting (n=58): time 0.004044/0.463, allocations: 1.639 MB / 388.8 MB, free: 19.96 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.903e-05/0.463, allocations: 59.78 kB / 388.8 MB, free: 19.9 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004092/0.4635, allocations: 225.7 kB / 389.1 MB, free: 19.81 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.928e-05/0.4636, allocations: 44.58 kB / 389.1 MB, free: 19.78 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.976e-05/0.4637, allocations: 232.3 kB / 389.3 MB, free: 19.59 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/0.4639, allocations: 210.3 kB / 389.5 MB, free: 19.47 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.679e-05/0.4639, allocations: 7.812 kB / 389.6 MB, free: 19.47 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.7e-05/0.464, allocations: 333 kB / 389.9 MB, free: 19.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004587/0.4645, allocations: 197.9 kB / 390.1 MB, free: 19.15 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005141/0.465, allocations: 243.1 kB / 390.3 MB, free: 19.13 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004034/0.4654, allocations: 156.9 kB / 390.5 MB, free: 19.12 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.03e-06/0.4655, allocations: 3.906 kB / 390.5 MB, free: 19.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001974/0.4674, allocations: 0.6776 MB / 391.1 MB, free: 19.02 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.4675, allocations: 3.906 kB / 391.1 MB, free: 19.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.198e-05/0.4675, allocations: 32 / 391.1 MB, free: 19.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009451/0.4685, allocations: 380.9 kB / 391.5 MB, free: 18.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004479/0.469, allocations: 97.66 kB / 391.6 MB, free: 18.97 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001239/0.4702, allocations: 1.328 MB / 392.9 MB, free: 17.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007291/0.471, allocations: 102 kB / 393 MB, free: 17.92 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.085e-05/0.4711, allocations: 27.02 kB / 393.1 MB, free: 17.92 MB / 314.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): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001851/0.4713, allocations: 131.7 kB / 393.2 MB, free: 17.81 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001253/0.4714, allocations: 38.97 kB / 393.2 MB, free: 17.79 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001682/0.4731, allocations: 0.6894 MB / 393.9 MB, free: 17.69 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.038e-06/0.4731, allocations: 3.875 kB / 393.9 MB, free: 17.69 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.719e-06/0.4732, allocations: 7.875 kB / 393.9 MB, free: 17.68 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.4732, allocations: 3.281 kB / 393.9 MB, free: 17.68 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003171/0.4764, allocations: 1.365 MB / 395.3 MB, free: 17.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.795e-06/0.4764, allocations: 3.906 kB / 395.3 MB, free: 17.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005472/0.477, allocations: 82.61 kB / 395.4 MB, free: 17.26 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008895/0.4779, allocations: 369.1 kB / 395.7 MB, free: 17.22 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.87e-05/0.478, allocations: 24.31 kB / 395.8 MB, free: 17.22 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001144/0.4791, allocations: 1.293 MB / 397.1 MB, free: 16.18 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.927e-06/0.4791, allocations: 7.844 kB / 397.1 MB, free: 16.18 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002094/0.4812, allocations: 0.9959 MB / 398.1 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000296/0.4816, allocations: 163.8 kB / 398.2 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/0.4817, allocations: 18.44 kB / 398.2 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006142/0.4823, allocations: 80.17 kB / 398.3 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002549/0.4826, allocations: 126.9 kB / 398.4 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.48e-05/0.4827, allocations: 26.12 kB / 398.5 MB, free: 15.73 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002293/0.4829, allocations: 193.3 kB / 398.7 MB, free: 15.64 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.37e-07/0.4829, allocations: 0 / 398.7 MB, free: 15.64 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007059/0.4837, allocations: 135.2 kB / 398.8 MB, free: 15.64 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.0002691/0.4839, allocations: 144.8 kB / 398.9 MB, free: 15.54 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001296/0.4853, allocations: 0.5568 MB / 399.5 MB, free: 15.45 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.765e-06/0.4853, allocations: 4.062 kB / 399.5 MB, free: 15.45 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000701/0.486, allocations: 301.2 kB / 399.8 MB, free: 15.43 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006082/0.4866, allocations: 59.75 kB / 399.8 MB, free: 15.42 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00388/0.4905, allocations: 1.347 MB / 401.2 MB, free: 14.85 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007154/0.4913, allocations: 0.8281 MB / 402 MB, free: 30.15 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001765/0.4915, allocations: 34.55 kB / 402.1 MB, free: 30.14 MB / 330.7 MB Notification: Performance of SimCode: time 1.635e-06/0.4915, allocations: 0 / 402.1 MB, free: 30.14 MB / 330.7 MB Notification: Performance of Templates: time 0.012/0.5035, allocations: 8.197 MB / 410.3 MB, free: 29.09 MB / 330.7 MB