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.2_cpp_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadModel(ModelicaTest): time 2.447/2.447, allocations: 234.9 MB / 250.1 MB, free: 9.711 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.438e-05/3.436e-05, allocations: 7.984 kB / 308 MB, free: 15.7 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3556/0.3557, allocations: 54.86 MB / 362.8 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.AllComponents): time 0.01194/0.3676, allocations: 7.274 MB / 370.1 MB, free: 4.469 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008025/0.3757, allocations: 2.822 MB / 372.9 MB, free: 1.637 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001935/0.3777, allocations: 59.88 kB / 373 MB, free: 1.578 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001282/0.379, allocations: 238.1 kB / 373.2 MB, free: 1.344 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003566/0.3827, allocations: 0.7549 MB / 374 MB, free: 0.5898 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003006/0.3857, allocations: 0.6825 MB / 374.7 MB, free: 15.91 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005014/0.3907, allocations: 1.623 MB / 376.3 MB, free: 14.28 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001391/0.3922, allocations: 459.4 kB / 376.7 MB, free: 13.83 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002742/0.395, allocations: 1.013 MB / 377.8 MB, free: 12.82 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002848/0.3979, allocations: 1.219 MB / 379 MB, free: 11.59 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00145/0.3994, allocations: 203.9 kB / 379.2 MB, free: 11.39 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001025/0.4005, allocations: 116 kB / 379.3 MB, free: 11.28 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001057/0.4015, allocations: 0.4904 MB / 379.8 MB, free: 10.79 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001038/0.4026, allocations: 220 kB / 380 MB, free: 10.57 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004627/0.4073, allocations: 2.347 MB / 382.3 MB, free: 8.223 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.4073, allocations: 4 kB / 382.3 MB, free: 8.219 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.856e-06/0.4073, allocations: 0 / 382.3 MB, free: 8.219 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001385/0.4075, allocations: 0 / 382.3 MB, free: 8.219 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.01055/0.418, allocations: 2.443 MB / 384.8 MB, free: 5.715 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.292e-05/0.4181, allocations: 12.02 kB / 384.8 MB, free: 5.703 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001888/0.42, allocations: 292.9 kB / 385.1 MB, free: 5.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003227/0.4233, allocations: 1.072 MB / 386.2 MB, free: 4.277 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001869/0.4252, allocations: 0.5079 MB / 386.7 MB, free: 3.723 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009375/0.4262, allocations: 235.7 kB / 386.9 MB, free: 3.492 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01004/0.4362, allocations: 2.624 MB / 389.5 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001869/0.4365, allocations: 27.66 kB / 389.5 MB, free: 0.75 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003514/0.4369, allocations: 91.95 kB / 389.6 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.677e-05/0.4369, allocations: 55.98 kB / 389.7 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01188/0.4488, allocations: 2.75 MB / 392.4 MB, free: 13.85 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02283/0.4717, allocations: 7.016 MB / 399.5 MB, free: 6.723 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009122/0.4809, allocations: 2.56 MB / 402 MB, free: 4.027 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005565/0.4815, allocations: 126.9 kB / 402.1 MB, free: 3.887 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.094e-05/0.4816, allocations: 72.42 kB / 402.2 MB, free: 3.809 MB / 330.7 MB Notification: Performance of pre-optimization done (n=275): time 6.262e-06/0.4816, allocations: 0 / 402.2 MB, free: 3.809 MB / 330.7 MB Notification: Performance of matching and sorting (n=333): time 0.05575/0.5373, allocations: 14.58 MB / 416.8 MB, free: 4.652 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002307/0.5376, allocations: 328.6 kB / 417.1 MB, free: 4.262 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002702/0.5403, allocations: 0.9927 MB / 418.1 MB, free: 3.262 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007694/0.5412, allocations: 101.7 kB / 418.2 MB, free: 3.156 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009047/0.5421, allocations: 0.6808 MB / 418.9 MB, free: 2.469 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002028/0.5441, allocations: 1.128 MB / 420 MB, free: 1.324 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006549/0.5448, allocations: 64 kB / 420.1 MB, free: 1.262 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003891/0.5452, allocations: 429.5 kB / 420.5 MB, free: 0.832 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005211/0.5505, allocations: 1.139 MB / 421.6 MB, free: 15.69 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005631/0.5561, allocations: 1.56 MB / 423.2 MB, free: 14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005119/0.5613, allocations: 1.167 MB / 424.4 MB, free: 12.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-05/0.5614, allocations: 4 kB / 424.4 MB, free: 12.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.0147/0.5761, allocations: 3.504 MB / 427.9 MB, free: 9.305 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.19e-05/0.5762, allocations: 11.98 kB / 427.9 MB, free: 9.293 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.222e-05/0.5762, allocations: 8 kB / 427.9 MB, free: 9.285 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004393/0.5806, allocations: 1.217 MB / 429.1 MB, free: 8.055 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006068/0.5868, allocations: 0.7568 MB / 429.9 MB, free: 7.297 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01632/0.6031, allocations: 7.641 MB / 437.5 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00454/0.6077, allocations: 295.7 kB / 437.8 MB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008769/0.6086, allocations: 120 kB / 437.9 MB, free: 14.91 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (338): * Single equations (assignments): 333 * 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.002478/0.6112, allocations: 481.1 kB / 438.4 MB, free: 14.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001069/0.6123, allocations: 213.5 kB / 438.6 MB, free: 14.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002344/0.6146, allocations: 0.6109 MB / 439.2 MB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.795e-05/0.6147, allocations: 35.94 kB / 439.2 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.058e-05/0.6148, allocations: 4 kB / 439.2 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.564e-05/0.6149, allocations: 15.94 kB / 439.3 MB, free: 13.55 MB / 378.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.02983/0.6447, allocations: 7.956 MB / 447.2 MB, free: 5.406 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.966e-05/0.6448, allocations: 8 kB / 447.2 MB, free: 5.398 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006339/0.6512, allocations: 0.71 MB / 447.9 MB, free: 4.688 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004533/0.6558, allocations: 1.204 MB / 449.1 MB, free: 3.461 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006838/0.6565, allocations: 99.92 kB / 449.2 MB, free: 3.363 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01769/0.6742, allocations: 10.29 MB / 459.5 MB, free: 8.461 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.812e-05/0.6743, allocations: 15.92 kB / 459.5 MB, free: 8.445 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02181/0.6961, allocations: 6.618 MB / 466.1 MB, free: 1.516 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001921/0.6981, allocations: 0.5217 MB / 466.7 MB, free: 0.9727 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007512/0.6989, allocations: 91.98 kB / 466.8 MB, free: 0.8828 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004075/0.703, allocations: 291.8 kB / 467 MB, free: 0.5977 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001503/0.7045, allocations: 453 kB / 467.5 MB, free: 156 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000354/0.7049, allocations: 123.9 kB / 467.6 MB, free: 32 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001817/0.7067, allocations: 0.7656 MB / 468.4 MB, free: 15.26 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.7067, allocations: 0 / 468.4 MB, free: 15.26 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004024/0.7108, allocations: 0.7305 MB / 469.1 MB, free: 14.53 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * Number of states: 31 (inertia17.phi,inertia17.w,elastoBacklash2.phi_rel,elastoBacklash2.w_rel,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 (267): * Single equations (assignments): 260 * 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.0007701/0.7116, allocations: 271.1 kB / 469.4 MB, free: 14.26 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01263/0.7242, allocations: 3.516 MB / 472.9 MB, free: 10.71 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.39e-05/0.7243, allocations: 4 kB / 472.9 MB, free: 10.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01023/0.7345, allocations: 2.816 MB / 475.7 MB, free: 7.828 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003279/0.7379, allocations: 301.7 kB / 476 MB, free: 7.535 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3343/1.072, allocations: 7.527 MB / 483.5 MB, free: 104.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002695/1.075, allocations: 1.592 MB / 485.1 MB, free: 103.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001669/1.077, allocations: 203.8 kB / 485.3 MB, free: 103.5 MB / 410.7 MB Notification: Performance of SimCode: time 1.232e-06/1.077, allocations: 0 / 485.3 MB, free: 103.5 MB / 410.7 MB Notification: Performance of Templates: time 0.09951/1.176, allocations: 71.07 MB / 0.5433 GB, free: 43.39 MB / 410.7 MB