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_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.79/1.79, allocations: 194.9 MB / 208 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.254e-05/4.262e-05, allocations: 4 kB / 255.4 MB, free: 2.695 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1099, allocations: 44.5 MB / 299.9 MB, free: 6.145 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3325/0.4425, allocations: 76.02 MB / 375.9 MB, free: 22.56 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002254/0.4427, allocations: 67.38 kB / 376 MB, free: 22.56 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03015/0.4729, allocations: 7.451 MB / 383.4 MB, free: 21.72 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.013e-06/0.473, allocations: 1.375 kB / 383.4 MB, free: 21.72 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.027e-05/0.473, allocations: 8.25 kB / 383.4 MB, free: 21.72 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.001432/0.4744, allocations: 0.689 MB / 384.1 MB, free: 21.25 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.4745, allocations: 9.5 kB / 384.1 MB, free: 21.25 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001474/0.4747, allocations: 55.44 kB / 384.2 MB, free: 21.22 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004649/0.4751, allocations: 304.1 kB / 384.5 MB, free: 20.98 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.172e-05/0.4752, allocations: 36.44 kB / 384.5 MB, free: 20.97 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.4753, allocations: 41.09 kB / 384.5 MB, free: 20.97 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009542/0.4763, allocations: 419.9 kB / 385 MB, free: 20.94 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.092e-05/0.4763, allocations: 6.656 kB / 385 MB, free: 20.93 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.696e-05/0.4764, allocations: 21.08 kB / 385 MB, free: 20.93 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.459e-05/0.4764, allocations: 8.031 kB / 385 MB, free: 20.93 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009528/0.4774, allocations: 388 kB / 385.4 MB, free: 20.93 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002869/0.4803, allocations: 1.151 MB / 386.5 MB, free: 20.56 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009566/0.4813, allocations: 381.9 kB / 386.9 MB, free: 20.52 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005833/0.4819, allocations: 235 kB / 387.1 MB, free: 20.5 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.161e-05/0.482, allocations: 13.27 kB / 387.1 MB, free: 20.5 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.482, allocations: 35.06 kB / 387.2 MB, free: 20.46 MB / 314.7 MB Notification: Performance of pre-optimization done (n=52): time 4.51e-06/0.4821, allocations: 3.938 kB / 387.2 MB, free: 20.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=58): time 0.004077/0.4862, allocations: 1.64 MB / 388.8 MB, free: 19.86 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.918e-05/0.4862, allocations: 63.72 kB / 388.9 MB, free: 19.8 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003031/0.4865, allocations: 231.2 kB / 389.1 MB, free: 19.7 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.638e-05/0.4866, allocations: 46.72 kB / 389.2 MB, free: 19.67 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.4868, allocations: 171.6 kB / 389.3 MB, free: 19.55 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001702/0.4869, allocations: 204 kB / 389.5 MB, free: 19.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.198e-05/0.487, allocations: 18.62 kB / 389.5 MB, free: 19.42 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.294e-05/0.4871, allocations: 342.6 kB / 389.9 MB, free: 19.11 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004813/0.4876, allocations: 201.8 kB / 390.1 MB, free: 19.11 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000512/0.4881, allocations: 236.5 kB / 390.3 MB, free: 19.08 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004077/0.4886, allocations: 163.9 kB / 390.5 MB, free: 19.07 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.766e-06/0.4886, allocations: 3.906 kB / 390.5 MB, free: 19.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002037/0.4906, allocations: 0.6855 MB / 391.1 MB, free: 18.96 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.4907, allocations: 3.906 kB / 391.2 MB, free: 18.96 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.322e-05/0.4907, allocations: 3.906 kB / 391.2 MB, free: 18.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009377/0.4917, allocations: 383.2 kB / 391.5 MB, free: 18.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004828/0.4922, allocations: 94.45 kB / 391.6 MB, free: 18.92 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00134/0.4935, allocations: 1.323 MB / 392.9 MB, free: 17.87 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007693/0.4943, allocations: 103.7 kB / 393 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.384e-05/0.4944, allocations: 26.19 kB / 393.1 MB, free: 17.86 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.0001951/0.4947, allocations: 138.8 kB / 393.2 MB, free: 17.75 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001261/0.4948, allocations: 39.09 kB / 393.2 MB, free: 17.73 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001842/0.4966, allocations: 0.6944 MB / 393.9 MB, free: 17.62 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.555e-06/0.4967, allocations: 3.906 kB / 393.9 MB, free: 17.62 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.4967, allocations: 4 kB / 393.9 MB, free: 17.62 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.635e-06/0.4967, allocations: 7.078 kB / 394 MB, free: 17.62 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003512/0.5003, allocations: 1.356 MB / 395.3 MB, free: 17.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.288e-06/0.5003, allocations: 0 / 395.3 MB, free: 17.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005752/0.5009, allocations: 91.56 kB / 395.4 MB, free: 17.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008963/0.5018, allocations: 360 kB / 395.8 MB, free: 17.16 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.613e-05/0.5019, allocations: 28.83 kB / 395.8 MB, free: 17.15 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001209/0.5031, allocations: 1.291 MB / 397.1 MB, free: 16.11 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.691e-06/0.5032, allocations: 3.938 kB / 397.1 MB, free: 16.1 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002164/0.5053, allocations: 1.009 MB / 398.1 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000305/0.5057, allocations: 156.6 kB / 398.2 MB, free: 15.67 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001342/0.5058, allocations: 19.38 kB / 398.3 MB, free: 15.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006283/0.5065, allocations: 82.7 kB / 398.3 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002646/0.5068, allocations: 120 kB / 398.5 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.535e-05/0.5069, allocations: 25.83 kB / 398.5 MB, free: 15.66 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002248/0.5071, allocations: 194.1 kB / 398.7 MB, free: 15.57 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.33e-07/0.5071, allocations: 0 / 398.7 MB, free: 15.57 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006499/0.5078, allocations: 131.3 kB / 398.8 MB, free: 15.57 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.0002497/0.508, allocations: 153 kB / 398.9 MB, free: 15.46 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001284/0.5093, allocations: 0.5617 MB / 399.5 MB, free: 15.37 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.92e-06/0.5094, allocations: 0 / 399.5 MB, free: 15.37 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000812/0.5102, allocations: 299.6 kB / 399.8 MB, free: 15.36 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006379/0.5108, allocations: 70.77 kB / 399.9 MB, free: 15.34 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004104/0.515, allocations: 1.311 MB / 401.2 MB, free: 14.8 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007208/0.5157, allocations: 0.8305 MB / 402 MB, free: 30.11 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002397/0.516, allocations: 32.94 kB / 402 MB, free: 30.1 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.5161, allocations: 30.06 kB / 402.1 MB, free: 30.09 MB / 330.7 MB Notification: Performance of SimCode: time 2.272e-06/0.5161, allocations: 4 kB / 402.1 MB, free: 30.09 MB / 330.7 MB Notification: Performance of Templates: time 0.02669/0.5428, allocations: 8.413 MB / 410.5 MB, free: 28.77 MB / 330.7 MB