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_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.63/1.63, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.322e-05/3.344e-05, allocations: 4 kB / 225 MB, free: 2.344 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.2579, allocations: 38.77 MB / 263.8 MB, free: 9.824 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1069/0.3649, allocations: 70.69 MB / 334.5 MB, free: 3.027 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002276/0.3652, allocations: 71.97 kB / 334.5 MB, free: 2.957 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03139/0.3966, allocations: 7.402 MB / 341.9 MB, free: 11.53 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.298e-06/0.3966, allocations: 0 / 341.9 MB, free: 11.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.012e-05/0.3967, allocations: 12 kB / 342 MB, free: 11.52 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.00159/0.3983, allocations: 0.6934 MB / 342.6 MB, free: 10.78 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.3983, allocations: 8.031 kB / 342.7 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001404/0.3985, allocations: 47.44 kB / 342.7 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005521/0.399, allocations: 310.2 kB / 343 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.55e-05/0.3991, allocations: 28.78 kB / 343 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/0.3992, allocations: 47.86 kB / 343.1 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001095/0.4003, allocations: 445.9 kB / 343.5 MB, free: 9.859 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.143e-05/0.4004, allocations: 4 kB / 343.5 MB, free: 9.855 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.221e-05/0.4005, allocations: 15.98 kB / 343.5 MB, free: 9.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.54e-05/0.4005, allocations: 15.94 kB / 343.6 MB, free: 9.824 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001088/0.4016, allocations: 433.4 kB / 344 MB, free: 9.402 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003033/0.4047, allocations: 1.152 MB / 345.1 MB, free: 8.199 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000964/0.4056, allocations: 367.9 kB / 345.5 MB, free: 7.828 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006091/0.4063, allocations: 254.1 kB / 345.7 MB, free: 7.578 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.021e-05/0.4063, allocations: 4.438 kB / 345.7 MB, free: 7.574 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.802e-05/0.4064, allocations: 39 kB / 345.8 MB, free: 7.523 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 4.022e-06/0.4064, allocations: 0 / 345.8 MB, free: 7.523 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.004577/0.411, allocations: 1.755 MB / 347.5 MB, free: 5.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.179e-05/0.4111, allocations: 59.97 kB / 347.6 MB, free: 5.609 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004045/0.4115, allocations: 243.5 kB / 347.8 MB, free: 5.363 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.642e-05/0.4116, allocations: 49.69 kB / 347.9 MB, free: 5.309 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001855/0.4118, allocations: 181.6 kB / 348.1 MB, free: 5.125 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002263/0.412, allocations: 193.3 kB / 348.2 MB, free: 4.934 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.674e-05/0.4121, allocations: 12 kB / 348.3 MB, free: 4.922 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002038/0.4123, allocations: 350.8 kB / 348.6 MB, free: 4.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005578/0.4129, allocations: 221.5 kB / 348.8 MB, free: 4.355 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006068/0.4135, allocations: 276.6 kB / 349.1 MB, free: 4.078 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004691/0.414, allocations: 178.1 kB / 349.3 MB, free: 3.906 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.44e-06/0.414, allocations: 0 / 349.3 MB, free: 3.906 MB / 298.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002468/0.4165, allocations: 0.8448 MB / 350.1 MB, free: 3.043 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.4165, allocations: 8 kB / 350.1 MB, free: 3.035 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.4166, allocations: 3.953 kB / 350.1 MB, free: 3.031 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001282/0.4179, allocations: 0.5052 MB / 350.6 MB, free: 2.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005187/0.4184, allocations: 99.88 kB / 350.7 MB, free: 2.422 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001834/0.4203, allocations: 1.378 MB / 352.1 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007166/0.421, allocations: 108 kB / 352.2 MB, free: 0.8867 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.041e-05/0.4211, allocations: 23.98 kB / 352.2 MB, free: 0.8633 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.0002191/0.4213, allocations: 141.6 kB / 352.4 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000133/0.4215, allocations: 39.53 kB / 352.4 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001565/0.4216, allocations: 59.52 kB / 352.5 MB, free: 0.625 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.029e-06/0.4217, allocations: 7.938 kB / 352.5 MB, free: 0.6172 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.141e-06/0.4217, allocations: 0 / 352.5 MB, free: 0.6172 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.4217, allocations: 3.984 kB / 352.5 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0041/0.4258, allocations: 1.52 MB / 354 MB, free: 15.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.672e-06/0.4259, allocations: 160 / 354 MB, free: 15.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005514/0.4264, allocations: 87.89 kB / 354.1 MB, free: 14.92 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0012/0.4276, allocations: 0.4973 MB / 354.6 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.238e-05/0.4278, allocations: 19.98 kB / 354.6 MB, free: 14.4 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001724/0.4295, allocations: 1.363 MB / 356 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.688e-06/0.4295, allocations: 3.953 kB / 356 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002776/0.4323, allocations: 1.131 MB / 357.1 MB, free: 11.78 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003624/0.4327, allocations: 164.6 kB / 357.3 MB, free: 11.6 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001268/0.4328, allocations: 20 kB / 357.3 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005886/0.4335, allocations: 75.94 kB / 357.3 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003015/0.4338, allocations: 124.1 kB / 357.5 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-05/0.4339, allocations: 27.97 kB / 357.5 MB, free: 11.36 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003089/0.4342, allocations: 195.1 kB / 357.7 MB, free: 11.17 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.14e-07/0.4342, allocations: 0 / 357.7 MB, free: 11.17 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006805/0.4349, allocations: 136 kB / 357.8 MB, free: 11.04 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.0003167/0.4352, allocations: 144.4 kB / 358 MB, free: 10.88 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001505/0.4368, allocations: 0.5249 MB / 358.5 MB, free: 10.36 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.972e-06/0.4368, allocations: 3.938 kB / 358.5 MB, free: 10.36 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000862/0.4377, allocations: 301.5 kB / 358.8 MB, free: 10.06 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006242/0.4383, allocations: 71.73 kB / 358.9 MB, free: 9.992 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004438/0.4428, allocations: 1.323 MB / 360.2 MB, free: 8.629 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000581/0.4434, allocations: 0.8288 MB / 361 MB, free: 7.777 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002622/0.4436, allocations: 43.27 kB / 361 MB, free: 7.738 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001667/0.4438, allocations: 43.36 kB / 361.1 MB, free: 7.695 MB / 314.7 MB Notification: Performance of SimCode: time 2.048e-06/0.4438, allocations: 0 / 361.1 MB, free: 7.695 MB / 314.7 MB Notification: Performance of Templates: time 0.2358/0.6797, allocations: 8.113 MB / 369.2 MB, free: 93.78 MB / 314.7 MB