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.895/1.895, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.783e-05/3.776e-05, allocations: 0 / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3172, allocations: 44.51 MB / 294.1 MB, free: 14.31 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.16/0.4772, allocations: 75.35 MB / 369.5 MB, free: 6.637 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/0.4775, allocations: 75.89 kB / 369.5 MB, free: 6.562 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03236/0.5099, allocations: 7.377 MB / 376.9 MB, free: 15.16 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.208e-06/0.5099, allocations: 0 / 376.9 MB, free: 15.16 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.807e-05/0.5099, allocations: 8 kB / 376.9 MB, free: 15.16 MB / 330.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.001572/0.5115, allocations: 0.6934 MB / 377.6 MB, free: 14.42 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.5116, allocations: 8.031 kB / 377.6 MB, free: 14.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001441/0.5118, allocations: 55.44 kB / 377.7 MB, free: 14.36 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005544/0.5123, allocations: 310.1 kB / 378 MB, free: 14.01 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.617e-05/0.5124, allocations: 12 kB / 378 MB, free: 14 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.5125, allocations: 27.98 kB / 378 MB, free: 13.97 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001001/0.5135, allocations: 385.4 kB / 378.4 MB, free: 13.59 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000932/0.5145, allocations: 370 kB / 378.8 MB, free: 13.23 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.459e-05/0.5145, allocations: 3.906 kB / 378.8 MB, free: 13.22 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.009e-05/0.5146, allocations: 0 / 378.8 MB, free: 13.22 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.874e-05/0.5146, allocations: 12 kB / 378.8 MB, free: 13.21 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003112/0.5178, allocations: 1.072 MB / 379.8 MB, free: 12.09 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009375/0.5187, allocations: 356 kB / 380.2 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005378/0.5193, allocations: 226.1 kB / 380.4 MB, free: 11.51 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.399e-05/0.5194, allocations: 8.438 kB / 380.4 MB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.221e-05/0.5194, allocations: 38.95 kB / 380.5 MB, free: 11.45 MB / 330.7 MB Notification: Performance of pre-optimization done (n=52): time 3.691e-06/0.5194, allocations: 0 / 380.5 MB, free: 11.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=58): time 0.004869/0.5243, allocations: 1.571 MB / 382 MB, free: 9.789 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.017e-05/0.5244, allocations: 63.97 kB / 382.1 MB, free: 9.715 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003105/0.5247, allocations: 198.4 kB / 382.3 MB, free: 9.52 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.162e-05/0.5249, allocations: 37.69 kB / 382.3 MB, free: 9.477 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001766/0.525, allocations: 231.8 kB / 382.5 MB, free: 9.25 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000238/0.5253, allocations: 197.2 kB / 382.7 MB, free: 9.055 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.415e-05/0.5253, allocations: 0 / 382.7 MB, free: 9.055 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.5255, allocations: 334.8 kB / 383.1 MB, free: 8.719 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004707/0.526, allocations: 185.5 kB / 383.2 MB, free: 8.539 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005415/0.5266, allocations: 232.7 kB / 383.5 MB, free: 8.305 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000616/0.5272, allocations: 168.5 kB / 383.6 MB, free: 8.141 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.182e-06/0.5272, allocations: 0 / 383.6 MB, free: 8.141 MB / 330.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002991/0.5302, allocations: 0.6381 MB / 384.3 MB, free: 7.492 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.687e-05/0.5303, allocations: 4 kB / 384.3 MB, free: 7.488 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.563e-05/0.5303, allocations: 7.984 kB / 384.3 MB, free: 7.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/0.5314, allocations: 381.4 kB / 384.7 MB, free: 7.102 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004907/0.5319, allocations: 91.89 kB / 384.8 MB, free: 7.012 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00198/0.5339, allocations: 1.37 MB / 386.1 MB, free: 5.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006992/0.5346, allocations: 92.06 kB / 386.2 MB, free: 5.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.246e-05/0.5348, allocations: 23.98 kB / 386.2 MB, free: 5.477 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.00027/0.535, allocations: 120.7 kB / 386.4 MB, free: 5.352 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/0.5352, allocations: 39.56 kB / 386.4 MB, free: 5.312 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001995/0.5372, allocations: 0.6508 MB / 387 MB, free: 4.645 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.063e-05/0.5372, allocations: 4 kB / 387 MB, free: 4.641 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.5372, allocations: 0 / 387 MB, free: 4.641 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.542e-05/0.5373, allocations: 7.984 kB / 387.1 MB, free: 4.633 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003666/0.5409, allocations: 1.263 MB / 388.3 MB, free: 3.305 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-05/0.541, allocations: 7.938 kB / 388.3 MB, free: 3.297 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005211/0.5415, allocations: 88.05 kB / 388.4 MB, free: 3.211 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009648/0.5425, allocations: 361.4 kB / 388.8 MB, free: 2.852 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.547e-05/0.5426, allocations: 15.97 kB / 388.8 MB, free: 2.836 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001832/0.5445, allocations: 1.331 MB / 390.1 MB, free: 1.453 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.649e-06/0.5445, allocations: 8.156 kB / 390.1 MB, free: 1.445 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002435/0.547, allocations: 0.9637 MB / 391.1 MB, free: 424 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003486/0.5473, allocations: 164.6 kB / 391.2 MB, free: 240 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001113/0.5475, allocations: 11.94 kB / 391.3 MB, free: 228 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00057/0.5481, allocations: 75.92 kB / 391.3 MB, free: 152 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000291/0.5484, allocations: 112.1 kB / 391.4 MB, free: 40 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.496e-05/0.5485, allocations: 23.98 kB / 391.5 MB, free: 16 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002543/0.5487, allocations: 170 kB / 391.6 MB, free: 15.85 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.26e-07/0.5487, allocations: 0 / 391.6 MB, free: 15.85 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006907/0.5494, allocations: 116 kB / 391.7 MB, free: 15.74 MB / 346.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.0003078/0.5498, allocations: 143.1 kB / 391.9 MB, free: 15.59 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001418/0.5512, allocations: 0.5321 MB / 392.4 MB, free: 15.04 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.852e-06/0.5512, allocations: 0 / 392.4 MB, free: 15.04 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007967/0.552, allocations: 281.4 kB / 392.7 MB, free: 14.77 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006452/0.5527, allocations: 72.39 kB / 392.8 MB, free: 14.7 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005197/0.5579, allocations: 1.311 MB / 394.1 MB, free: 13.34 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006075/0.5586, allocations: 0.8363 MB / 394.9 MB, free: 12.47 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001804/0.5588, allocations: 35.42 kB / 394.9 MB, free: 12.44 MB / 346.7 MB Notification: Performance of SimCode: time 1.635e-06/0.5588, allocations: 0 / 394.9 MB, free: 12.44 MB / 346.7 MB Notification: Performance of Templates: time 0.01541/0.5742, allocations: 8.137 MB / 403.1 MB, free: 4.305 MB / 346.7 MB