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_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadModel(ModelicaTest): time 1.959/1.959, allocations: 209.3 MB / 223.8 MB, free: 444 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.941e-05/3.937e-05, allocations: 3.984 kB / 276.2 MB, free: 15.21 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3622/0.3623, allocations: 48.7 MB / 324.9 MB, free: 3.348 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004903/0.3672, allocations: 3.054 MB / 327.9 MB, free: 1.73 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003324/0.3706, allocations: 1.114 MB / 329 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008008/0.3715, allocations: 16.09 kB / 329.1 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003084/0.3718, allocations: 78.36 kB / 329.1 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009085/0.3727, allocations: 228.4 kB / 329.4 MB, free: 0.7617 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009885/0.3737, allocations: 241.6 kB / 329.6 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001177/0.3749, allocations: 484.7 kB / 330.1 MB, free: 364 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002586/0.3752, allocations: 96.33 kB / 330.2 MB, free: 320 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007187/0.3759, allocations: 345.6 kB / 330.5 MB, free: 180 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007098/0.3767, allocations: 379.2 kB / 330.9 MB, free: 48 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004584/0.3771, allocations: 129.4 kB / 331 MB, free: 20 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001719/0.3773, allocations: 40.56 kB / 331 MB, free: 20 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002568/0.3776, allocations: 144.6 kB / 331.2 MB, free: 15.94 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000205/0.3778, allocations: 65.69 kB / 331.2 MB, free: 15.94 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001235/0.3791, allocations: 0.6419 MB / 331.9 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.3791, allocations: 0 / 331.9 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.3791, allocations: 1.375 kB / 331.9 MB, free: 15.79 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.675e-05/0.3791, allocations: 0 / 331.9 MB, free: 15.79 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.003362/0.3825, allocations: 0.9447 MB / 332.8 MB, free: 15.19 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.3826, allocations: 9.766 kB / 332.8 MB, free: 15.19 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003052/0.3829, allocations: 79.22 kB / 332.9 MB, free: 15.15 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008652/0.3838, allocations: 412.3 kB / 333.3 MB, free: 14.82 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.748e-05/0.3839, allocations: 50.81 kB / 333.4 MB, free: 14.8 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001922/0.3841, allocations: 64.62 kB / 333.4 MB, free: 14.78 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002501/0.3866, allocations: 0.8061 MB / 334.2 MB, free: 14.43 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.712e-05/0.3867, allocations: 8.672 kB / 334.2 MB, free: 14.43 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001093/0.3868, allocations: 24.5 kB / 334.3 MB, free: 14.41 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.262e-05/0.3868, allocations: 18.86 kB / 334.3 MB, free: 14.41 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002797/0.3896, allocations: 0.7596 MB / 335 MB, free: 14.19 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007202/0.3968, allocations: 2.603 MB / 337.6 MB, free: 12.43 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002249/0.3991, allocations: 0.6313 MB / 338.3 MB, free: 12.09 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001074/0.3993, allocations: 16.25 kB / 338.3 MB, free: 12.08 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.829e-05/0.3993, allocations: 44.03 kB / 338.3 MB, free: 12.03 MB / 282.7 MB Notification: Performance of pre-optimization done (n=72): time 3.807e-06/0.3993, allocations: 3.938 kB / 338.3 MB, free: 12.03 MB / 282.7 MB Notification: Performance of matching and sorting (n=76): time 0.01385/0.4132, allocations: 3.835 MB / 342.2 MB, free: 9.461 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.108e-05/0.4133, allocations: 148.4 kB / 342.3 MB, free: 9.293 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006939/0.414, allocations: 377.7 kB / 342.7 MB, free: 9.066 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001785/0.4142, allocations: 54.94 kB / 342.7 MB, free: 9.016 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002606/0.4145, allocations: 276.4 kB / 343 MB, free: 8.766 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003394/0.4149, allocations: 268.8 kB / 343.3 MB, free: 8.531 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.864e-05/0.415, allocations: 20.06 kB / 343.3 MB, free: 8.516 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.4152, allocations: 368 kB / 343.7 MB, free: 8.16 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001391/0.4166, allocations: 384.9 kB / 344 MB, free: 7.988 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001558/0.4181, allocations: 0.5389 MB / 344.6 MB, free: 7.625 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001239/0.4194, allocations: 349.6 kB / 344.9 MB, free: 7.469 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.4194, allocations: 2.469 kB / 344.9 MB, free: 7.469 MB / 282.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004818/0.4243, allocations: 1.398 MB / 346.3 MB, free: 6.805 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.875e-05/0.4243, allocations: 11.12 kB / 346.3 MB, free: 6.801 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.82e-05/0.4243, allocations: 5.25 kB / 346.3 MB, free: 6.801 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001806/0.4262, allocations: 0.5726 MB / 346.9 MB, free: 6.527 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001131/0.4273, allocations: 153.5 kB / 347.1 MB, free: 6.492 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003286/0.4306, allocations: 2.651 MB / 349.7 MB, free: 4.109 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001899/0.4326, allocations: 195.8 kB / 349.9 MB, free: 4.035 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/0.4327, allocations: 33.94 kB / 349.9 MB, free: 4.027 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.0005538/0.4333, allocations: 218.3 kB / 350.1 MB, free: 3.84 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002501/0.4335, allocations: 62.19 kB / 350.2 MB, free: 3.809 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002451/0.4338, allocations: 90.12 kB / 350.3 MB, free: 3.734 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.255e-05/0.4338, allocations: 8.656 kB / 350.3 MB, free: 3.734 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.399e-05/0.4338, allocations: 1.125 kB / 350.3 MB, free: 3.734 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.482e-05/0.4339, allocations: 9 kB / 350.3 MB, free: 3.727 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007249/0.4411, allocations: 2.382 MB / 352.7 MB, free: 2.164 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.238e-05/0.4412, allocations: 0.5625 kB / 352.7 MB, free: 2.164 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001196/0.4424, allocations: 128 kB / 352.8 MB, free: 2.129 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001784/0.4442, allocations: 0.53 MB / 353.3 MB, free: 1.879 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001698/0.4444, allocations: 32.22 kB / 353.4 MB, free: 1.855 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003288/0.4477, allocations: 2.605 MB / 356 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.593e-06/0.4477, allocations: 4.031 kB / 356 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005998/0.4537, allocations: 1.96 MB / 357.9 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000567/0.4544, allocations: 208.2 kB / 358.2 MB, free: 13.15 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002249/0.4546, allocations: 20 kB / 358.2 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001681/0.4563, allocations: 175.8 kB / 358.3 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005495/0.4569, allocations: 171.5 kB / 358.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000107/0.457, allocations: 35.95 kB / 358.5 MB, free: 12.76 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005203/0.4575, allocations: 291.1 kB / 358.8 MB, free: 12.47 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4575, allocations: 0 / 358.8 MB, free: 12.47 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001106/0.4586, allocations: 192 kB / 359 MB, free: 12.29 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.0003521/0.459, allocations: 166.8 kB / 359.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003566/0.4626, allocations: 0.942 MB / 360.1 MB, free: 11.17 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.4626, allocations: 0 / 360.1 MB, free: 11.17 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002107/0.4648, allocations: 0.5075 MB / 360.6 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001179/0.466, allocations: 86.53 kB / 360.7 MB, free: 10.58 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008743/0.4747, allocations: 2.553 MB / 363.3 MB, free: 7.988 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006386/0.4754, allocations: 0.9183 MB / 364.2 MB, free: 7.043 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005286/0.4759, allocations: 60.81 kB / 364.2 MB, free: 6.98 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002234/0.4762, allocations: 47.42 kB / 364.3 MB, free: 6.934 MB / 298.7 MB Notification: Performance of SimCode: time 9.31e-07/0.4762, allocations: 0 / 364.3 MB, free: 6.934 MB / 298.7 MB Notification: Performance of Templates: time 0.03382/0.51, allocations: 12.59 MB / 376.9 MB, free: 10.37 MB / 314.7 MB