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.401/2.401, allocations: 234.9 MB / 250.1 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.121e-05/3.112e-05, allocations: 0 / 308 MB, free: 0 / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4488/0.4489, allocations: 54.86 MB / 362.8 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005844/0.4548, allocations: 3.059 MB / 365.9 MB, free: 9.621 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003019/0.4579, allocations: 1.107 MB / 367 MB, free: 8.719 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004196/0.4584, allocations: 11.75 kB / 367 MB, free: 8.719 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002498/0.4586, allocations: 78.95 kB / 367.1 MB, free: 8.656 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006802/0.4593, allocations: 222.3 kB / 367.3 MB, free: 8.457 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008062/0.4601, allocations: 250.8 kB / 367.6 MB, free: 8.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001263/0.4614, allocations: 489.9 kB / 368 MB, free: 7.891 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002758/0.4617, allocations: 91.09 kB / 368.1 MB, free: 7.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007734/0.4625, allocations: 350.4 kB / 368.5 MB, free: 7.652 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007742/0.4633, allocations: 400.9 kB / 368.9 MB, free: 7.414 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00033/0.4637, allocations: 71.19 kB / 368.9 MB, free: 7.398 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001664/0.4638, allocations: 38.22 kB / 369 MB, free: 7.398 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002285/0.4641, allocations: 155.5 kB / 369.1 MB, free: 7.277 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002107/0.4643, allocations: 69.25 kB / 369.2 MB, free: 7.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001151/0.4655, allocations: 0.6519 MB / 369.8 MB, free: 6.785 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.4655, allocations: 0 / 369.8 MB, free: 6.785 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.4655, allocations: 0 / 369.8 MB, free: 6.785 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.535e-05/0.4655, allocations: 0 / 369.8 MB, free: 6.785 MB / 298.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.003232/0.4688, allocations: 0.9373 MB / 370.8 MB, free: 5.859 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.4688, allocations: 8.031 kB / 370.8 MB, free: 5.852 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002628/0.4691, allocations: 79.06 kB / 370.9 MB, free: 5.773 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008983/0.47, allocations: 416.7 kB / 371.3 MB, free: 5.324 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.899e-05/0.4701, allocations: 49.31 kB / 371.3 MB, free: 5.277 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002014/0.4703, allocations: 67.91 kB / 371.4 MB, free: 5.211 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002421/0.4728, allocations: 0.8257 MB / 372.2 MB, free: 4.352 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.449e-05/0.4728, allocations: 7.906 kB / 372.2 MB, free: 4.344 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001146/0.473, allocations: 27.98 kB / 372.2 MB, free: 4.316 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.389e-05/0.473, allocations: 19.95 kB / 372.3 MB, free: 4.297 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002849/0.4759, allocations: 0.795 MB / 373.1 MB, free: 3.504 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00727/0.4832, allocations: 2.644 MB / 375.7 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002371/0.4856, allocations: 0.6416 MB / 376.3 MB, free: 64 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001171/0.4857, allocations: 4.375 kB / 376.4 MB, free: 60 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.4858, allocations: 47.62 kB / 376.4 MB, free: 4 kB / 298.7 MB Notification: Performance of pre-optimization done (n=72): time 4.047e-06/0.4858, allocations: 4 kB / 376.4 MB, free: 0 / 298.7 MB Notification: Performance of matching and sorting (n=76): time 0.0138/0.4996, allocations: 3.723 MB / 380.1 MB, free: 12.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.968e-05/0.4998, allocations: 140.5 kB / 380.3 MB, free: 11.85 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007286/0.5005, allocations: 373 kB / 380.6 MB, free: 11.47 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002162/0.5007, allocations: 57.69 kB / 380.7 MB, free: 11.41 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002676/0.501, allocations: 322.8 kB / 381 MB, free: 11.09 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003526/0.5014, allocations: 260.4 kB / 381.3 MB, free: 10.83 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.271e-05/0.5015, allocations: 23.98 kB / 381.3 MB, free: 10.8 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.5017, allocations: 342.8 kB / 381.6 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00145/0.5031, allocations: 401.8 kB / 382 MB, free: 10.07 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001599/0.5047, allocations: 0.5491 MB / 382.6 MB, free: 9.469 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001292/0.5061, allocations: 346.7 kB / 382.9 MB, free: 9.133 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.5061, allocations: 0 / 382.9 MB, free: 9.133 MB / 314.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004564/0.5107, allocations: 1.27 MB / 384.2 MB, free: 7.848 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.713e-05/0.5107, allocations: 10.97 kB / 384.2 MB, free: 7.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.5108, allocations: 7.938 kB / 384.2 MB, free: 7.832 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002282/0.5131, allocations: 0.7569 MB / 384.9 MB, free: 7.062 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/0.5142, allocations: 155.7 kB / 385.1 MB, free: 6.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003529/0.5178, allocations: 2.698 MB / 387.8 MB, free: 4.105 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001856/0.5197, allocations: 195.6 kB / 388 MB, free: 3.914 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001387/0.5199, allocations: 35.98 kB / 388 MB, free: 3.879 MB / 314.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.0005016/0.5204, allocations: 212.3 kB / 388.2 MB, free: 3.66 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002821/0.5207, allocations: 63.3 kB / 388.3 MB, free: 3.598 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002469/0.5209, allocations: 87.91 kB / 388.4 MB, free: 3.516 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/0.521, allocations: 8 kB / 388.4 MB, free: 3.508 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/0.521, allocations: 0 / 388.4 MB, free: 3.508 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.414e-05/0.521, allocations: 7.984 kB / 388.4 MB, free: 3.5 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00666/0.5277, allocations: 2.2 MB / 390.6 MB, free: 1.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-05/0.5277, allocations: 4 kB / 390.6 MB, free: 1.227 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001148/0.5289, allocations: 115.9 kB / 390.7 MB, free: 1.113 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002112/0.531, allocations: 0.7253 MB / 391.4 MB, free: 384 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001395/0.5312, allocations: 27.97 kB / 391.5 MB, free: 356 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003366/0.5346, allocations: 2.651 MB / 394.1 MB, free: 13.59 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.5346, allocations: 0 / 394.1 MB, free: 13.59 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005831/0.5405, allocations: 1.839 MB / 395.9 MB, free: 11.7 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005803/0.5411, allocations: 220.2 kB / 396.2 MB, free: 11.46 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002382/0.5413, allocations: 28.11 kB / 396.2 MB, free: 11.44 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001629/0.543, allocations: 183.8 kB / 396.4 MB, free: 11.26 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005311/0.5435, allocations: 167.6 kB / 396.5 MB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001107/0.5437, allocations: 35.95 kB / 396.6 MB, free: 11.06 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004969/0.5442, allocations: 287.1 kB / 396.8 MB, free: 10.77 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5442, allocations: 4 kB / 396.8 MB, free: 10.77 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00117/0.5454, allocations: 196 kB / 397 MB, free: 10.58 MB / 330.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.0003775/0.5458, allocations: 158.1 kB / 397.2 MB, free: 10.42 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003666/0.5494, allocations: 0.9781 MB / 398.2 MB, free: 9.441 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.5495, allocations: 4 kB / 398.2 MB, free: 9.438 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002068/0.5516, allocations: 0.5074 MB / 398.7 MB, free: 8.93 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001215/0.5528, allocations: 93.81 kB / 398.8 MB, free: 8.836 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008611/0.5614, allocations: 2.578 MB / 401.4 MB, free: 6.215 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006449/0.5621, allocations: 0.9144 MB / 402.3 MB, free: 5.273 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003452/0.5625, allocations: 51.41 kB / 402.3 MB, free: 5.227 MB / 330.7 MB Notification: Performance of SimCode: time 1.102e-06/0.5625, allocations: 0 / 402.3 MB, free: 5.227 MB / 330.7 MB Notification: Performance of Templates: time 0.03093/0.5935, allocations: 16.31 MB / 418.6 MB, free: 4.922 MB / 346.7 MB