Running command: translateModel(ModelicaTest.Rotational.AllComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|accelerate.phi|accelerate.w|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|gear2_1.phi_rel|gear2_1.w_rel|inertia13.phi|inertia13.w|inertia14.phi|inertia14.w|inertia15.phi|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia8.phi|inertia8.w|position.phi|position.w|speed.phi|speed.w|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|gear2_1.lossyGear.mode|lossyGear.mode",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadModel(ModelicaTest): time 1.991/1.991, allocations: 209.3 MB / 224.4 MB, free: 0.5078 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.738e-05/4.748e-05, allocations: 6.5 kB / 276.1 MB, free: 15.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3707/0.3708, allocations: 48.7 MB / 324.8 MB, free: 2.883 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.AllComponents): time 0.01103/0.3819, allocations: 6.821 MB / 331.7 MB, free: 14.7 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.008633/0.3906, allocations: 2.746 MB / 334.4 MB, free: 12.8 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002186/0.3928, allocations: 62.5 kB / 334.5 MB, free: 12.79 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001375/0.3942, allocations: 222.9 kB / 334.7 MB, free: 12.69 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003973/0.3983, allocations: 0.7 MB / 335.4 MB, free: 12.17 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003431/0.4017, allocations: 0.6521 MB / 336 MB, free: 11.83 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.005105/0.4069, allocations: 1.506 MB / 337.5 MB, free: 10.94 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001304/0.4082, allocations: 426.9 kB / 338 MB, free: 10.77 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002948/0.4112, allocations: 0.9419 MB / 338.9 MB, free: 10.41 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003368/0.4146, allocations: 1.117 MB / 340 MB, free: 10.02 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002112/0.4168, allocations: 284.2 kB / 340.3 MB, free: 9.969 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001104/0.4179, allocations: 113.8 kB / 340.4 MB, free: 9.969 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001192/0.4192, allocations: 464.8 kB / 340.9 MB, free: 9.734 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001448/0.4206, allocations: 205.4 kB / 341.1 MB, free: 9.734 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005011/0.4257, allocations: 2.231 MB / 343.3 MB, free: 8.074 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.4257, allocations: 7.938 kB / 343.3 MB, free: 8.066 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.4258, allocations: 3.938 kB / 343.3 MB, free: 8.062 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001321/0.4259, allocations: 0 / 343.3 MB, free: 8.062 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: 515 * Number of variables: 515 Notification: Performance of Generate backend data structure: time 0.009817/0.4357, allocations: 2.279 MB / 345.6 MB, free: 6.594 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.4358, allocations: 9 kB / 345.6 MB, free: 6.594 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00195/0.4378, allocations: 280 kB / 345.9 MB, free: 6.461 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003519/0.4413, allocations: 1.02 MB / 346.9 MB, free: 5.652 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001689/0.4431, allocations: 457.1 kB / 347.3 MB, free: 5.336 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000961/0.4441, allocations: 221.2 kB / 347.6 MB, free: 5.254 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009689/0.4538, allocations: 2.401 MB / 350 MB, free: 3.812 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002037/0.454, allocations: 32.98 kB / 350 MB, free: 3.789 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004933/0.4545, allocations: 81.22 kB / 350.1 MB, free: 3.727 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.42e-05/0.4546, allocations: 48.44 kB / 350.1 MB, free: 3.727 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01065/0.4653, allocations: 2.5 MB / 352.6 MB, free: 2.613 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02261/0.4879, allocations: 6.363 MB / 359 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007917/0.4959, allocations: 2.337 MB / 361.3 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004203/0.4964, allocations: 42.08 kB / 361.4 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.35e-05/0.4965, allocations: 60.7 kB / 361.4 MB, free: 10.53 MB / 298.7 MB Notification: Performance of pre-optimization done (n=259): time 5.661e-06/0.4965, allocations: 0 / 361.4 MB, free: 10.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=314): time 0.05074/0.5472, allocations: 13.01 MB / 374.4 MB, free: 13.05 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001705/0.5475, allocations: 243.5 kB / 374.7 MB, free: 12.76 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002408/0.5499, allocations: 0.9709 MB / 375.6 MB, free: 11.78 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006589/0.5506, allocations: 93.69 kB / 375.7 MB, free: 11.68 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007589/0.5514, allocations: 0.6456 MB / 376.4 MB, free: 11.03 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001798/0.5532, allocations: 1.051 MB / 377.4 MB, free: 9.961 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005195/0.5538, allocations: 63.98 kB / 377.5 MB, free: 9.898 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003567/0.5541, allocations: 421 kB / 377.9 MB, free: 9.477 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004685/0.5588, allocations: 1.072 MB / 379 MB, free: 8.398 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005133/0.564, allocations: 1.454 MB / 380.4 MB, free: 6.824 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004587/0.5687, allocations: 1.088 MB / 381.5 MB, free: 5.734 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-05/0.5687, allocations: 0 / 381.5 MB, free: 5.734 MB / 314.7 MB Notification: Performance of matching and sorting (n=382) (initialization): time 0.01436/0.5831, allocations: 3.545 MB / 385.1 MB, free: 2.168 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.771e-05/0.5832, allocations: 11.94 kB / 385.1 MB, free: 2.156 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.898e-05/0.5832, allocations: 8.312 kB / 385.1 MB, free: 2.148 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004014/0.5872, allocations: 1.028 MB / 386.1 MB, free: 1.105 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005357/0.5926, allocations: 0.6631 MB / 386.8 MB, free: 452 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01643/0.6091, allocations: 7.605 MB / 394.4 MB, free: 8.492 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004071/0.6132, allocations: 279.8 kB / 394.6 MB, free: 8.219 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006955/0.614, allocations: 112 kB / 394.8 MB, free: 8.109 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 38 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,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,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (313): * Single equations (assignments): 308 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.001758/0.6158, allocations: 461.2 kB / 395.2 MB, free: 7.648 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007873/0.6166, allocations: 205.5 kB / 395.4 MB, free: 7.445 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002478/0.6191, allocations: 0.6888 MB / 396.1 MB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.718e-05/0.6192, allocations: 32 kB / 396.1 MB, free: 6.711 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.387e-05/0.6192, allocations: 4 kB / 396.1 MB, free: 6.707 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.128e-05/0.6193, allocations: 15.95 kB / 396.1 MB, free: 6.691 MB / 330.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03235/0.6516, allocations: 7.63 MB / 403.8 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.936e-05/0.6517, allocations: 8 kB / 403.8 MB, free: 14.87 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00542/0.6572, allocations: 0.6014 MB / 404.4 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004044/0.6613, allocations: 1.017 MB / 405.4 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006434/0.662, allocations: 95.92 kB / 405.5 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01801/0.68, allocations: 10.24 MB / 415.7 MB, free: 2.281 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.241e-05/0.68, allocations: 8 kB / 415.7 MB, free: 2.273 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02048/0.7005, allocations: 6.021 MB / 421.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002026/0.7026, allocations: 0.5061 MB / 422.3 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000859/0.7035, allocations: 83.98 kB / 422.4 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003968/0.7075, allocations: 259.8 kB / 422.6 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001655/0.7092, allocations: 437 kB / 423 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004483/0.7097, allocations: 111.9 kB / 423.1 MB, free: 10.55 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001861/0.7116, allocations: 0.7489 MB / 423.9 MB, free: 9.797 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.72e-07/0.7116, allocations: 96 / 423.9 MB, free: 9.797 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005705/0.7173, allocations: 0.6992 MB / 424.6 MB, free: 9.098 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 27 (inertia14.phi,inertia14.w,constantSpeed.phi,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (248): * Single equations (assignments): 241 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001353/0.7187, allocations: 271.6 kB / 424.9 MB, free: 8.816 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01614/0.7349, allocations: 3.282 MB / 428.1 MB, free: 5.508 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.417e-05/0.735, allocations: 0 / 428.1 MB, free: 5.508 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01253/0.7475, allocations: 2.574 MB / 430.7 MB, free: 2.875 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004263/0.7518, allocations: 277.6 kB / 431 MB, free: 2.605 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02668/0.7786, allocations: 6.931 MB / 437.9 MB, free: 11.53 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00243/0.7811, allocations: 1.547 MB / 439.5 MB, free: 9.949 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001909/0.783, allocations: 195.3 kB / 439.7 MB, free: 9.762 MB / 378.7 MB Notification: Performance of SimCode: time 1.232e-06/0.783, allocations: 0 / 439.7 MB, free: 9.762 MB / 378.7 MB Notification: Performance of Templates: time 0.38/1.163, allocations: 66.61 MB / 0.4944 GB, free: 119.6 MB / 410.7 MB