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.2_cpp_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadModel(ModelicaTest): time 2.23/2.23, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.668e-05/2.686e-05, allocations: 0 / 304.9 MB, free: 5.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3217/0.3218, allocations: 54.85 MB / 359.7 MB, free: 2.656 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1325/0.4543, allocations: 86.42 MB / 446.2 MB, free: 10.56 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002131/0.4546, allocations: 59.97 kB / 446.2 MB, free: 10.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05096/0.5056, allocations: 11.69 MB / 457.9 MB, free: 14.8 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.5056, allocations: 0 / 457.9 MB, free: 14.8 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.338e-05/0.5057, allocations: 15.98 kB / 457.9 MB, free: 14.79 MB / 394.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.002348/0.508, allocations: 0.9311 MB / 458.9 MB, free: 13.81 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.5081, allocations: 8.031 kB / 458.9 MB, free: 13.8 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000222/0.5083, allocations: 87.05 kB / 459 MB, free: 13.71 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007699/0.5091, allocations: 396.8 kB / 459.3 MB, free: 13.29 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.127e-05/0.5092, allocations: 51.94 kB / 459.4 MB, free: 13.24 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001807/0.5094, allocations: 71.84 kB / 459.5 MB, free: 13.17 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00175/0.5112, allocations: 0.7262 MB / 460.2 MB, free: 12.41 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.826e-05/0.5112, allocations: 15.91 kB / 460.2 MB, free: 12.39 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/0.5113, allocations: 27.94 kB / 460.2 MB, free: 12.37 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.351e-05/0.5114, allocations: 16 kB / 460.3 MB, free: 12.35 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001619/0.513, allocations: 0.6019 MB / 460.9 MB, free: 11.75 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006109/0.5191, allocations: 2.574 MB / 463.4 MB, free: 9.055 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001542/0.5207, allocations: 0.5694 MB / 464 MB, free: 8.449 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007768/0.5215, allocations: 327.3 kB / 464.3 MB, free: 8.121 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001033/0.5216, allocations: 24.12 kB / 464.3 MB, free: 8.098 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.726e-05/0.5217, allocations: 58.34 kB / 464.4 MB, free: 8.031 MB / 394.7 MB Notification: Performance of pre-optimization done (n=78): time 6.436e-06/0.5217, allocations: 3.984 kB / 464.4 MB, free: 8.027 MB / 394.7 MB Notification: Performance of matching and sorting (n=82): time 0.00593/0.5277, allocations: 2.387 MB / 466.8 MB, free: 5.445 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.725e-05/0.5278, allocations: 136.5 kB / 466.9 MB, free: 5.281 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005401/0.5283, allocations: 323.1 kB / 467.2 MB, free: 4.957 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001345/0.5285, allocations: 49.7 kB / 467.3 MB, free: 4.902 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00026/0.5288, allocations: 315 kB / 467.6 MB, free: 4.59 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003485/0.5291, allocations: 280.1 kB / 467.9 MB, free: 4.312 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.384e-05/0.5292, allocations: 20 kB / 467.9 MB, free: 4.293 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001992/0.5294, allocations: 346.8 kB / 468.2 MB, free: 3.945 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008434/0.5303, allocations: 314 kB / 468.5 MB, free: 3.637 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009854/0.5313, allocations: 469.6 kB / 469 MB, free: 3.125 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007189/0.532, allocations: 262.5 kB / 469.2 MB, free: 2.875 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.5321, allocations: 0 / 469.2 MB, free: 2.875 MB / 394.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003337/0.5354, allocations: 1.088 MB / 470.3 MB, free: 1.773 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.459e-05/0.5355, allocations: 11.95 kB / 470.3 MB, free: 1.762 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.921e-05/0.5355, allocations: 4 kB / 470.3 MB, free: 1.758 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001689/0.5372, allocations: 0.5851 MB / 470.9 MB, free: 1.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007579/0.538, allocations: 155.7 kB / 471.1 MB, free: 1.008 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003213/0.5412, allocations: 2.561 MB / 473.6 MB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001273/0.5425, allocations: 196.5 kB / 473.8 MB, free: 14.15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001606/0.5427, allocations: 52.28 kB / 473.9 MB, free: 14.1 MB / 410.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.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003199/0.543, allocations: 159.9 kB / 474 MB, free: 13.94 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002657/0.5433, allocations: 67.19 kB / 474.1 MB, free: 13.88 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00319/0.5465, allocations: 1.032 MB / 475.1 MB, free: 12.81 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-05/0.5466, allocations: 8 kB / 475.2 MB, free: 12.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/0.5466, allocations: 4 kB / 475.2 MB, free: 12.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.377e-05/0.5466, allocations: 5.016 kB / 475.2 MB, free: 12.79 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005082/0.5517, allocations: 2.012 MB / 477.2 MB, free: 10.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.344e-05/0.5518, allocations: 7.984 kB / 477.2 MB, free: 10.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008232/0.5526, allocations: 123.9 kB / 477.3 MB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001553/0.5542, allocations: 0.5615 MB / 477.9 MB, free: 10 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001185/0.5543, allocations: 39.91 kB / 477.9 MB, free: 9.961 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003012/0.5573, allocations: 2.506 MB / 480.4 MB, free: 7.352 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.005e-06/0.5574, allocations: 7.969 kB / 480.4 MB, free: 7.344 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0039/0.5613, allocations: 1.626 MB / 482 MB, free: 5.648 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005055/0.5618, allocations: 217.5 kB / 482.3 MB, free: 5.418 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001874/0.562, allocations: 28 kB / 482.3 MB, free: 5.391 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/0.5632, allocations: 175.8 kB / 482.5 MB, free: 5.219 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004674/0.5637, allocations: 175.6 kB / 482.6 MB, free: 5.047 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001229/0.5638, allocations: 39.95 kB / 482.7 MB, free: 5.008 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004383/0.5643, allocations: 265.2 kB / 482.9 MB, free: 4.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.56e-07/0.5643, allocations: 0 / 482.9 MB, free: 4.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00109/0.5654, allocations: 196 kB / 483.1 MB, free: 4.559 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (55): * Single equations (assignments): 51 * 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.0003564/0.5658, allocations: 167.1 kB / 483.3 MB, free: 4.387 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00245/0.5682, allocations: 0.9125 MB / 484.2 MB, free: 3.453 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.5683, allocations: 4.125 kB / 484.2 MB, free: 3.449 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001451/0.5697, allocations: 456.5 kB / 484.6 MB, free: 3.004 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009425/0.5707, allocations: 95.22 kB / 484.7 MB, free: 2.914 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006064/0.5768, allocations: 2.038 MB / 486.8 MB, free: 0.8242 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007652/0.5776, allocations: 0.9261 MB / 487.7 MB, free: 15.87 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000266/0.5779, allocations: 47.41 kB / 487.7 MB, free: 15.82 MB / 426.7 MB Notification: Performance of SimCode: time 1.831e-06/0.5779, allocations: 0 / 487.7 MB, free: 15.82 MB / 426.7 MB Notification: Performance of Templates: time 0.02633/0.6042, allocations: 16.36 MB / 0.4923 GB, free: 15.46 MB / 442.7 MB