Running command: translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadModel(ModelicaTest): time 2.174/2.174, allocations: 209.3 MB / 224.4 MB, free: 0.5195 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.644e-05/3.66e-05, allocations: 0 / 276.1 MB, free: 15.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4771/0.4772, allocations: 48.69 MB / 324.8 MB, free: 2.891 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.007247/0.4845, allocations: 3.056 MB / 327.9 MB, free: 1.352 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004175/0.4887, allocations: 1.113 MB / 329 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009739/0.4898, allocations: 16.25 kB / 329 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006043/0.4904, allocations: 74.67 kB / 329.1 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001653/0.4921, allocations: 232.6 kB / 329.3 MB, free: 392 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001587/0.4938, allocations: 242.2 kB / 329.6 MB, free: 260 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0022/0.496, allocations: 484.7 kB / 330 MB, free: 15.97 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004746/0.4966, allocations: 94.92 kB / 330.1 MB, free: 15.93 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001335/0.4979, allocations: 345.6 kB / 330.5 MB, free: 15.8 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00144/0.4994, allocations: 379.4 kB / 330.8 MB, free: 15.67 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000867/0.5003, allocations: 129.2 kB / 331 MB, free: 15.64 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003281/0.5007, allocations: 44.44 kB / 331 MB, free: 15.64 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000362/0.5011, allocations: 144.7 kB / 331.1 MB, free: 15.56 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004057/0.5015, allocations: 62.22 kB / 331.2 MB, free: 15.56 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001509/0.503, allocations: 0.6405 MB / 331.8 MB, free: 15.41 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.5031, allocations: 0 / 331.8 MB, free: 15.41 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.996e-06/0.5031, allocations: 1.031 kB / 331.8 MB, free: 15.41 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.672e-05/0.5032, allocations: 0 / 331.8 MB, free: 15.41 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.003801/0.507, allocations: 0.9461 MB / 332.8 MB, free: 14.82 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.507, allocations: 8.859 kB / 332.8 MB, free: 14.82 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004294/0.5075, allocations: 82.94 kB / 332.9 MB, free: 14.77 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001006/0.5085, allocations: 412.6 kB / 333.3 MB, free: 14.45 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.208e-05/0.5086, allocations: 46.06 kB / 333.3 MB, free: 14.43 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001975/0.5088, allocations: 66.66 kB / 333.4 MB, free: 14.41 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002949/0.5118, allocations: 0.8047 MB / 334.2 MB, free: 14.06 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.743e-05/0.5119, allocations: 7.859 kB / 334.2 MB, free: 14.05 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001128/0.512, allocations: 25.28 kB / 334.2 MB, free: 14.04 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.548e-05/0.5121, allocations: 19.16 kB / 334.3 MB, free: 14.03 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003191/0.5153, allocations: 0.7596 MB / 335 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008245/0.5236, allocations: 2.6 MB / 337.6 MB, free: 12.16 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002542/0.5262, allocations: 0.6329 MB / 338.2 MB, free: 11.88 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000166/0.5264, allocations: 11.92 kB / 338.3 MB, free: 11.88 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.306e-05/0.5264, allocations: 46.22 kB / 338.3 MB, free: 11.83 MB / 282.7 MB Notification: Performance of pre-optimization done (n=72): time 7.484e-06/0.5265, allocations: 4 kB / 338.3 MB, free: 11.83 MB / 282.7 MB Notification: Performance of matching and sorting (n=76): time 0.01463/0.5411, allocations: 3.842 MB / 342.1 MB, free: 9.258 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001285/0.5413, allocations: 144.2 kB / 342.3 MB, free: 9.094 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007718/0.5421, allocations: 377.4 kB / 342.7 MB, free: 8.867 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002787/0.5424, allocations: 54.38 kB / 342.7 MB, free: 8.816 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002713/0.5426, allocations: 327.5 kB / 343 MB, free: 8.512 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003801/0.543, allocations: 257.3 kB / 343.3 MB, free: 8.289 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.709e-05/0.5431, allocations: 28.08 kB / 343.3 MB, free: 8.266 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.5433, allocations: 346.3 kB / 343.6 MB, free: 7.926 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001476/0.5448, allocations: 385.7 kB / 344 MB, free: 7.754 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001705/0.5465, allocations: 0.5457 MB / 344.6 MB, free: 7.383 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001374/0.548, allocations: 349.9 kB / 344.9 MB, free: 7.227 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.548, allocations: 1.188 kB / 344.9 MB, free: 7.227 MB / 282.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.005152/0.5532, allocations: 1.37 MB / 346.3 MB, free: 6.582 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.061e-05/0.5533, allocations: 13.27 kB / 346.3 MB, free: 6.578 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.637e-05/0.5533, allocations: 4.656 kB / 346.3 MB, free: 6.578 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001945/0.5553, allocations: 0.578 MB / 346.9 MB, free: 6.301 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.5565, allocations: 153.1 kB / 347 MB, free: 6.266 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003487/0.56, allocations: 2.652 MB / 349.7 MB, free: 3.883 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002071/0.5621, allocations: 199.9 kB / 349.9 MB, free: 3.805 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001812/0.5623, allocations: 35.77 kB / 349.9 MB, free: 3.797 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,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,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0006266/0.563, allocations: 214.1 kB / 350.1 MB, free: 3.613 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002985/0.5633, allocations: 69.89 kB / 350.2 MB, free: 3.574 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002564/0.5636, allocations: 82.39 kB / 350.3 MB, free: 3.508 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.5636, allocations: 8.375 kB / 350.3 MB, free: 3.508 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.502e-05/0.5636, allocations: 5.312 kB / 350.3 MB, free: 3.504 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.009e-05/0.5636, allocations: 9.094 kB / 350.3 MB, free: 3.496 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007504/0.5712, allocations: 2.376 MB / 352.7 MB, free: 1.934 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-05/0.5712, allocations: 5.609 kB / 352.7 MB, free: 1.93 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001215/0.5725, allocations: 119.1 kB / 352.8 MB, free: 1.902 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001808/0.5743, allocations: 0.5406 MB / 353.3 MB, free: 1.641 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001964/0.5745, allocations: 27.31 kB / 353.4 MB, free: 1.621 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003389/0.5779, allocations: 2.601 MB / 356 MB, free: 15.26 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.578, allocations: 1.375 kB / 356 MB, free: 15.26 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006303/0.5843, allocations: 1.953 MB / 357.9 MB, free: 13.49 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006014/0.585, allocations: 208.2 kB / 358.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002467/0.5852, allocations: 32 kB / 358.1 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001826/0.5871, allocations: 175.8 kB / 358.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006207/0.5877, allocations: 167.5 kB / 358.5 MB, free: 12.9 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/0.5879, allocations: 35.91 kB / 358.5 MB, free: 12.87 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005816/0.5885, allocations: 291.1 kB / 358.8 MB, free: 12.58 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5885, allocations: 0 / 358.8 MB, free: 12.58 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001319/0.5898, allocations: 192 kB / 359 MB, free: 12.39 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004047/0.5902, allocations: 166.8 kB / 359.1 MB, free: 12.22 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003707/0.594, allocations: 0.946 MB / 360.1 MB, free: 11.27 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.154e-06/0.594, allocations: 4 kB / 360.1 MB, free: 11.27 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002075/0.5961, allocations: 0.4968 MB / 360.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001323/0.5975, allocations: 93.98 kB / 360.7 MB, free: 10.68 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009091/0.6066, allocations: 2.582 MB / 363.3 MB, free: 8.059 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000666/0.6073, allocations: 0.9183 MB / 364.2 MB, free: 7.113 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000353/0.6077, allocations: 55.41 kB / 364.2 MB, free: 7.059 MB / 298.7 MB Notification: Performance of SimCode: time 1.152e-06/0.6077, allocations: 0 / 364.2 MB, free: 7.059 MB / 298.7 MB Notification: Performance of Templates: time 0.03062/0.6383, allocations: 15.74 MB / 380 MB, free: 7.312 MB / 314.7 MB