Running command: translateModel(ModelicaTest.Rotational.TestBearingConversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bearingFriction.phi|bearingFriction.w|gear2_1.phi_rel|gear2_1.w_rel|gear2_2.phi_rel|gear2_2.w_rel|inertia1.phi|inertia1.w|inertia11.phi|inertia11.w|inertia2.phi|inertia2.w|inertia20.phi|inertia20.w|inertia21.phi|inertia21.w|inertia3.phi|inertia3.w|inertia5.phi|inertia5.w|inertia7.phi|inertia7.w|inertia9.phi|inertia9.w|position.phi|position.w|position1.phi|position1.w|position2.phi|position2.w|position3.phi|position3.w|position4.phi|position4.w|position5.phi|position5.w|slidingMass.s|slidingMass.v|slidingMass1.s|slidingMass1.v|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward|gear2_1.lossyGear.mode|gear2_2.lossyGear.mode|lossyGear.mode|lossyGear1.mode",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestBearingConversion") Notification: Performance of loadModel(ModelicaTest): time 2.341/2.341, allocations: 234.9 MB / 250.1 MB, free: 9.93 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.513e-05/3.524e-05, allocations: 8 kB / 308 MB, free: 15.91 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4242/0.4243, allocations: 54.86 MB / 362.9 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBearingConversion): time 0.01907/0.4434, allocations: 8.987 MB / 371.8 MB, free: 4.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01471/0.4582, allocations: 3.588 MB / 375.4 MB, free: 1.238 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002724/0.461, allocations: 75.75 kB / 375.5 MB, free: 1.164 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001585/0.4626, allocations: 325.5 kB / 375.8 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005241/0.4679, allocations: 0.996 MB / 376.8 MB, free: 15.85 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003877/0.4718, allocations: 0.9593 MB / 377.8 MB, free: 14.89 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005839/0.4777, allocations: 2.113 MB / 379.9 MB, free: 12.77 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001435/0.4791, allocations: 0.5058 MB / 380.4 MB, free: 12.25 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003218/0.4824, allocations: 1.329 MB / 381.7 MB, free: 10.92 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003651/0.4861, allocations: 1.613 MB / 383.3 MB, free: 9.305 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001793/0.4879, allocations: 267.8 kB / 383.6 MB, free: 9.043 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001114/0.4891, allocations: 152 kB / 383.7 MB, free: 8.895 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001136/0.4903, allocations: 0.6657 MB / 384.4 MB, free: 8.227 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001269/0.4916, allocations: 291.9 kB / 384.7 MB, free: 7.941 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006416/0.498, allocations: 3.161 MB / 387.9 MB, free: 4.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.4981, allocations: 0 / 387.9 MB, free: 4.77 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.497e-06/0.4981, allocations: 7.938 kB / 387.9 MB, free: 4.762 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001713/0.4983, allocations: 0 / 387.9 MB, free: 4.762 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: 719 * Number of variables: 719 Notification: Performance of Generate backend data structure: time 0.01643/0.5147, allocations: 2.978 MB / 390.8 MB, free: 1.727 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.226e-05/0.5148, allocations: 8.031 kB / 390.8 MB, free: 1.719 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004012/0.5188, allocations: 407.9 kB / 391.2 MB, free: 1.316 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0061/0.525, allocations: 1.452 MB / 392.7 MB, free: 15.8 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00328/0.5283, allocations: 0.6821 MB / 393.4 MB, free: 15.06 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001634/0.53, allocations: 311.6 kB / 393.7 MB, free: 14.75 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01703/0.5471, allocations: 3.43 MB / 397.1 MB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002971/0.5474, allocations: 39.7 kB / 397.2 MB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007648/0.5482, allocations: 112 kB / 397.3 MB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001136/0.5483, allocations: 68 kB / 397.3 MB, free: 11 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0191/0.5674, allocations: 3.614 MB / 400.9 MB, free: 7.387 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03277/0.6003, allocations: 10.16 MB / 411.1 MB, free: 12.99 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01467/0.615, allocations: 3.362 MB / 414.5 MB, free: 9.418 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009422/0.616, allocations: 228 kB / 414.7 MB, free: 9.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001391/0.6162, allocations: 88.56 kB / 414.8 MB, free: 9.066 MB / 346.7 MB Notification: Performance of pre-optimization done (n=358): time 1.171e-05/0.6162, allocations: 0 / 414.8 MB, free: 9.066 MB / 346.7 MB Notification: Performance of matching and sorting (n=421): time 0.08438/0.7006, allocations: 21.36 MB / 436.1 MB, free: 2.484 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003704/0.701, allocations: 0.6165 MB / 436.8 MB, free: 1.734 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003542/0.7046, allocations: 1.451 MB / 438.2 MB, free: 292 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000928/0.7055, allocations: 121.7 kB / 438.3 MB, free: 164 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001002/0.7066, allocations: 0.8723 MB / 439.2 MB, free: 15.28 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002383/0.709, allocations: 1.417 MB / 440.6 MB, free: 13.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000636/0.7096, allocations: 84 kB / 440.7 MB, free: 13.76 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003516/0.71, allocations: 471.9 kB / 441.2 MB, free: 13.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006119/0.7161, allocations: 1.504 MB / 442.7 MB, free: 11.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00703/0.7232, allocations: 2.237 MB / 444.9 MB, free: 9.242 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00608/0.7294, allocations: 1.523 MB / 446.4 MB, free: 7.723 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.674e-05/0.7295, allocations: 7.938 kB / 446.4 MB, free: 7.715 MB / 378.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01882/0.7483, allocations: 4.902 MB / 451.3 MB, free: 2.773 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.966e-05/0.7484, allocations: 13.09 kB / 451.3 MB, free: 2.762 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-05/0.7484, allocations: 23.98 kB / 451.4 MB, free: 2.738 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007526/0.756, allocations: 1.984 MB / 453.4 MB, free: 0.7227 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006479/0.7625, allocations: 0.8191 MB / 454.2 MB, free: 15.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03227/0.7948, allocations: 16.7 MB / 470.9 MB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005464/0.8004, allocations: 383.6 kB / 471.2 MB, free: 13.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009691/0.8014, allocations: 168 kB / 471.4 MB, free: 13.77 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 60 (gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,$PRE.gear2_2.lossyGear.mode,gear2_2.lossyGear.mode,gear2_2.lossyGear.ideal,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,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,$PRE.lossyGear1.mode,lossyGear1.mode,lossyGear1.ideal,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 393 * 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: 10 * 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%) 4} * Non-linear torn systems: 8 {2 22,2 22,2 25,1 6,1 6,1 12,2 24,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.002703/0.8041, allocations: 0.614 MB / 472 MB, free: 13.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001381/0.8055, allocations: 280.6 kB / 472.3 MB, free: 12.86 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001745/0.8073, allocations: 0.5213 MB / 472.8 MB, free: 12.33 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.361e-05/0.8074, allocations: 48.08 kB / 472.9 MB, free: 12.28 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.601e-05/0.8074, allocations: 7.938 kB / 472.9 MB, free: 12.27 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.687e-05/0.8075, allocations: 23.92 kB / 472.9 MB, free: 12.25 MB / 410.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.03648/0.844, allocations: 10.69 MB / 483.6 MB, free: 1.328 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.326e-05/0.8441, allocations: 8 kB / 483.6 MB, free: 1.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006142/0.8502, allocations: 0.6873 MB / 484.3 MB, free: 0.6328 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007213/0.8575, allocations: 1.855 MB / 486.1 MB, free: 14.75 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008466/0.8584, allocations: 127.9 kB / 486.3 MB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3393/1.198, allocations: 16.17 MB / 0.4907 GB, free: 112.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.106e-05/1.198, allocations: 14.41 kB / 0.4907 GB, free: 112.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02593/1.224, allocations: 8.647 MB / 0.4991 GB, free: 110.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002374/1.226, allocations: 0.6978 MB / 0.4998 GB, free: 110.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001172/1.227, allocations: 119.2 kB / 0.4999 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005556/1.233, allocations: 353.7 kB / 0.5002 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002267/1.235, allocations: 0.5997 MB / 0.5008 GB, free: 109.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006922/1.236, allocations: 149.9 kB / 0.501 GB, free: 109.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002417/1.238, allocations: 1.107 MB / 0.5021 GB, free: 109.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.052e-06/1.239, allocations: 3.969 kB / 0.5021 GB, free: 109.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00599/1.245, allocations: 0.9848 MB / 0.503 GB, free: 109.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * Number of states: 40 (slidingMass1.s,slidingMass1.v,slidingMass.s,slidingMass.v,inertia21.phi,inertia21.w,position4.phi,position4.w,position5.phi,position5.w,position2.phi,position2.w,position3.phi,position3.w,gear2_2.phi_rel,gear2_2.w_rel,inertia11.phi,inertia11.w,position.phi,position.w,position1.phi,position1.w,gear2_1.phi_rel,gear2_1.w_rel,inertia9.phi,inertia9.w,inertia7.phi,inertia7.w,inertia2.phi,inertia2.w,brake1.phi,inertia3.w,inertia.phi,inertia.w,linearSpeedDependentTorque.phi,inertia20.w,inertia5.phi,inertia5.w,inertia1.w,bearingFriction1.phi) * Number of discrete variables: 38 (gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,gear2_2.lossyGear.mode,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,lossyGear1.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 16 (bearingFriction1.mode,bearingFriction1.startForward,bearingFriction1.startBackward,lossyGear.mode,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward,lossyGear1.mode,gear2_1.lossyGear.mode,gear2_2.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (299): * Single equations (assignments): 289 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 8 {2 21,2 21,2 23,1 5,1 5,1 9,2 23,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001333/1.246, allocations: 303.9 kB / 0.5033 GB, free: 109.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01511/1.261, allocations: 5.07 MB / 0.5083 GB, free: 107.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.405e-05/1.261, allocations: 3.938 kB / 0.5083 GB, free: 107.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01164/1.273, allocations: 3.761 MB / 0.5119 GB, free: 103.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004575/1.277, allocations: 360.2 kB / 0.5123 GB, free: 103.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02135/1.299, allocations: 9.236 MB / 0.5213 GB, free: 95.09 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001767/1.301, allocations: 1.894 MB / 0.5232 GB, free: 93.33 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001779/1.302, allocations: 257 kB / 0.5234 GB, free: 93.08 MB / 426.7 MB Notification: Performance of SimCode: time 9.92e-07/1.302, allocations: 0 / 0.5234 GB, free: 93.08 MB / 426.7 MB Notification: Performance of Templates: time 0.1813/1.484, allocations: 128.7 MB / 0.6491 GB, free: 12.24 MB / 474.7 MB