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 2.064/2.064, allocations: 194.9 MB / 211.2 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.02e-05/3.012e-05, allocations: 7.906 kB / 258.8 MB, free: 8.711 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3108, allocations: 44.5 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004247/0.3151, allocations: 2.386 MB / 305.7 MB, free: 10.85 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002374/0.3176, allocations: 0.835 MB / 306.5 MB, free: 10.18 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002984/0.3179, allocations: 12.19 kB / 306.5 MB, free: 10.17 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002097/0.3181, allocations: 40.47 kB / 306.6 MB, free: 10.14 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000485/0.3186, allocations: 141.1 kB / 306.7 MB, free: 10.01 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006093/0.3192, allocations: 150.2 kB / 306.8 MB, free: 9.887 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006771/0.3199, allocations: 308.3 kB / 307.1 MB, free: 9.656 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002144/0.3202, allocations: 65.17 kB / 307.2 MB, free: 9.617 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004745/0.3207, allocations: 215.7 kB / 307.4 MB, free: 9.5 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004586/0.3211, allocations: 251.2 kB / 307.7 MB, free: 9.301 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000268/0.3214, allocations: 63.91 kB / 307.7 MB, free: 9.238 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.407e-05/0.3215, allocations: 24 kB / 307.8 MB, free: 9.215 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001452/0.3217, allocations: 91.7 kB / 307.8 MB, free: 9.125 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001388/0.3218, allocations: 36 kB / 307.9 MB, free: 9.09 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006649/0.3225, allocations: 420.6 kB / 308.3 MB, free: 8.68 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.3225, allocations: 0 / 308.3 MB, free: 8.68 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3225, allocations: 0 / 308.3 MB, free: 8.68 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.333e-05/0.3226, allocations: 4 kB / 308.3 MB, free: 8.676 MB / 250.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.001996/0.3246, allocations: 0.6896 MB / 309 MB, free: 7.941 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.3246, allocations: 12.03 kB / 309 MB, free: 7.93 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001624/0.3248, allocations: 51.34 kB / 309 MB, free: 7.879 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005969/0.3254, allocations: 318.2 kB / 309.4 MB, free: 7.527 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.058e-05/0.3255, allocations: 32.94 kB / 309.4 MB, free: 7.492 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001271/0.3256, allocations: 39.91 kB / 309.4 MB, free: 7.453 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.3271, allocations: 478.3 kB / 309.9 MB, free: 6.98 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.817e-05/0.3271, allocations: 0 / 309.9 MB, free: 6.98 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.041e-05/0.3272, allocations: 16 kB / 309.9 MB, free: 6.965 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/0.3272, allocations: 8 kB / 309.9 MB, free: 6.957 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001628/0.3288, allocations: 495.7 kB / 310.4 MB, free: 6.477 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003378/0.3322, allocations: 1.153 MB / 311.6 MB, free: 5.27 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00136/0.3337, allocations: 396.9 kB / 311.9 MB, free: 4.875 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.155e-05/0.3338, allocations: 16.38 kB / 312 MB, free: 4.859 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.956e-05/0.3338, allocations: 42.98 kB / 312 MB, free: 4.809 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 2.995e-06/0.3338, allocations: 0 / 312 MB, free: 4.809 MB / 250.7 MB Notification: Performance of matching and sorting (n=56): time 0.008862/0.3427, allocations: 2.414 MB / 314.4 MB, free: 2.266 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/0.3428, allocations: 55.97 kB / 314.5 MB, free: 2.199 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004225/0.3432, allocations: 258.4 kB / 314.7 MB, free: 1.941 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001022/0.3433, allocations: 41.69 kB / 314.8 MB, free: 1.895 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001708/0.3435, allocations: 243.8 kB / 315 MB, free: 1.652 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002359/0.3438, allocations: 189.4 kB / 315.2 MB, free: 1.465 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.3e-05/0.3438, allocations: 8 kB / 315.2 MB, free: 1.457 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.344, allocations: 338.8 kB / 315.5 MB, free: 1.117 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008528/0.3449, allocations: 241.2 kB / 315.8 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009074/0.3458, allocations: 304.7 kB / 316.1 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007297/0.3465, allocations: 203.2 kB / 316.3 MB, free: 388 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3466, allocations: 0 / 316.3 MB, free: 388 kB / 250.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002495/0.3491, allocations: 0.7369 MB / 317 MB, free: 15.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.738e-05/0.3491, allocations: 11.97 kB / 317 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.3492, allocations: 3.938 kB / 317 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001493/0.3507, allocations: 497.4 kB / 317.5 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007188/0.3514, allocations: 95.83 kB / 317.6 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002249/0.3537, allocations: 1.405 MB / 319 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001039/0.3548, allocations: 100 kB / 319.1 MB, free: 13.47 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.392e-05/0.3549, allocations: 16 kB / 319.1 MB, free: 13.46 MB / 266.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.0003452/0.3552, allocations: 169.8 kB / 319.3 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000134/0.3554, allocations: 43.48 kB / 319.3 MB, free: 13.24 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001714/0.3555, allocations: 59.73 kB / 319.4 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/0.3556, allocations: 8 kB / 319.4 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.3556, allocations: 0 / 319.4 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.3556, allocations: 0 / 319.4 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004718/0.3603, allocations: 1.474 MB / 320.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.637e-06/0.3604, allocations: 0 / 320.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007616/0.3612, allocations: 87.89 kB / 320.9 MB, free: 11.53 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001404/0.3626, allocations: 489.6 kB / 321.4 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-05/0.3627, allocations: 31.95 kB / 321.4 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001826/0.3645, allocations: 1.37 MB / 322.8 MB, free: 9.594 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.3646, allocations: 0 / 322.8 MB, free: 9.594 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003515/0.3681, allocations: 1.151 MB / 324 MB, free: 8.375 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003751/0.3685, allocations: 164.6 kB / 324.1 MB, free: 8.195 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001541/0.3687, allocations: 20 kB / 324.1 MB, free: 8.176 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008471/0.3696, allocations: 87.88 kB / 324.2 MB, free: 8.09 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003538/0.3699, allocations: 112.2 kB / 324.3 MB, free: 7.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.235e-05/0.37, allocations: 23.97 kB / 324.4 MB, free: 7.957 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003086/0.3703, allocations: 201.9 kB / 324.6 MB, free: 7.758 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.3703, allocations: 4 kB / 324.6 MB, free: 7.754 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007086/0.3711, allocations: 128 kB / 324.7 MB, free: 7.629 MB / 266.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.0003299/0.3714, allocations: 147 kB / 324.8 MB, free: 7.477 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002147/0.3736, allocations: 0.6005 MB / 325.4 MB, free: 6.883 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.3736, allocations: 0 / 325.4 MB, free: 6.883 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00121/0.3748, allocations: 342.4 kB / 325.8 MB, free: 6.547 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007294/0.3756, allocations: 64.55 kB / 325.8 MB, free: 6.484 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006654/0.3822, allocations: 1.775 MB / 327.6 MB, free: 4.656 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004964/0.3828, allocations: 0.8326 MB / 328.4 MB, free: 3.797 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002187/0.383, allocations: 39.42 kB / 328.5 MB, free: 3.758 MB / 266.7 MB Notification: Performance of SimCode: time 9.42e-07/0.383, allocations: 4 kB / 328.5 MB, free: 3.754 MB / 266.7 MB Notification: Performance of Templates: time 0.01818/0.4012, allocations: 8.184 MB / 336.7 MB, free: 11.57 MB / 282.7 MB