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_trunk_cpp_ModelicaTest.Rotational.TestBearingConversion") Notification: Performance of loadModel(ModelicaTest): time 2.454/2.454, allocations: 269 MB / 284.1 MB, free: 3.574 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.542e-05/3.538e-05, allocations: 0 / 349 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1516/0.1517, allocations: 61.9 MB / 410.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBearingConversion): time 0.01476/0.1665, allocations: 9.156 MB / 420.1 MB, free: 3.668 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.009682/0.1762, allocations: 3.622 MB / 423.7 MB, free: 36 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.3289/0.5052, allocations: 69.39 kB / 423.8 MB, free: 3.074 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00153/0.5068, allocations: 321.2 kB / 424.1 MB, free: 3.074 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004737/0.5116, allocations: 1.004 MB / 425.1 MB, free: 3.055 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004244/0.5158, allocations: 0.954 MB / 426 MB, free: 3.039 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.006801/0.5227, allocations: 2.112 MB / 428.2 MB, free: 3.031 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001352/0.5241, allocations: 0.5098 MB / 428.7 MB, free: 2.973 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003792/0.5279, allocations: 1.333 MB / 430 MB, free: 2.969 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004607/0.5325, allocations: 1.616 MB / 431.6 MB, free: 2.965 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002681/0.5353, allocations: 257.6 kB / 431.9 MB, free: 2.965 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009225/0.5362, allocations: 154.1 kB / 432 MB, free: 2.965 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001012/0.5373, allocations: 0.6682 MB / 432.7 MB, free: 2.965 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00189/0.5392, allocations: 289.3 kB / 433 MB, free: 2.961 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006833/0.546, allocations: 3.157 MB / 436.1 MB, free: 2.715 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.546, allocations: 0 / 436.1 MB, free: 2.715 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.417e-06/0.5461, allocations: 0 / 436.1 MB, free: 2.715 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001914/0.5463, allocations: 1.656 kB / 436.1 MB, free: 2.715 MB / 346.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.013/0.5593, allocations: 2.984 MB / 439.1 MB, free: 1.141 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.5593, allocations: 8.438 kB / 439.1 MB, free: 1.141 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003163/0.5625, allocations: 418.4 kB / 439.5 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004715/0.5673, allocations: 1.446 MB / 441 MB, free: 268 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002289/0.5696, allocations: 0.6859 MB / 441.7 MB, free: 15.87 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001387/0.571, allocations: 318.8 kB / 442 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01279/0.5838, allocations: 3.417 MB / 445.4 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000221/0.5841, allocations: 44.36 kB / 445.4 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004984/0.5846, allocations: 112.9 kB / 445.5 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.773e-05/0.5847, allocations: 69.38 kB / 445.6 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01426/0.599, allocations: 3.595 MB / 449.2 MB, free: 12.49 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03207/0.6311, allocations: 10.17 MB / 459.4 MB, free: 5.172 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01111/0.6423, allocations: 3.371 MB / 462.7 MB, free: 2.539 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007498/0.6431, allocations: 221.4 kB / 463 MB, free: 2.297 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.217e-05/0.6432, allocations: 90.06 kB / 463 MB, free: 2.203 MB / 362.7 MB Notification: Performance of pre-optimization done (n=358): time 7.625e-06/0.6432, allocations: 0 / 463 MB, free: 2.203 MB / 362.7 MB Notification: Performance of matching and sorting (n=421): time 0.06827/0.7115, allocations: 21.34 MB / 484.4 MB, free: 11.65 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003575/0.7119, allocations: 0.62 MB / 485 MB, free: 10.9 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003891/0.7158, allocations: 1.448 MB / 486.5 MB, free: 9.453 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001099/0.7169, allocations: 121.7 kB / 486.6 MB, free: 9.328 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009333/0.7178, allocations: 0.8744 MB / 487.4 MB, free: 8.449 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002283/0.7201, allocations: 1.416 MB / 488.9 MB, free: 7.051 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000476/0.7206, allocations: 87.98 kB / 488.9 MB, free: 6.965 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003333/0.721, allocations: 467.9 kB / 489.4 MB, free: 6.496 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005989/0.727, allocations: 1.504 MB / 490.9 MB, free: 4.984 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007242/0.7343, allocations: 2.242 MB / 493.2 MB, free: 2.453 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00651/0.7408, allocations: 1.529 MB / 494.7 MB, free: 0.9414 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.012e-05/0.7409, allocations: 8 kB / 494.7 MB, free: 0.9336 MB / 394.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01957/0.7605, allocations: 4.896 MB / 499.6 MB, free: 12 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.524e-05/0.7606, allocations: 15.98 kB / 499.6 MB, free: 11.99 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.835e-05/0.7607, allocations: 20 kB / 499.6 MB, free: 11.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007915/0.7686, allocations: 2.003 MB / 0.4899 GB, free: 9.941 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00656/0.7752, allocations: 0.8191 MB / 0.4907 GB, free: 9.121 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03199/0.8072, allocations: 16.71 MB / 0.507 GB, free: 7.547 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005869/0.8131, allocations: 375.7 kB / 0.5073 GB, free: 7.18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001032/0.8142, allocations: 176.5 kB / 0.5075 GB, free: 7.008 MB / 426.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.002639/0.8169, allocations: 0.6066 MB / 0.5081 GB, free: 6.391 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001425/0.8183, allocations: 280.6 kB / 0.5084 GB, free: 6.113 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001819/0.8201, allocations: 0.5291 MB / 0.5089 GB, free: 5.57 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.286e-05/0.8203, allocations: 47.98 kB / 0.5089 GB, free: 5.523 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.205e-05/0.8203, allocations: 4 kB / 0.5089 GB, free: 5.52 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.952e-05/0.8204, allocations: 23.92 kB / 0.509 GB, free: 5.496 MB / 426.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.03889/0.8593, allocations: 10.69 MB / 0.5194 GB, free: 10.67 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.421e-05/0.8594, allocations: 11.94 kB / 0.5194 GB, free: 10.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006383/0.8658, allocations: 0.6794 MB / 0.5201 GB, free: 9.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00772/0.8736, allocations: 1.869 MB / 0.5219 GB, free: 8.086 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001152/0.8748, allocations: 131.9 kB / 0.522 GB, free: 7.957 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03082/0.9056, allocations: 16.17 MB / 0.5378 GB, free: 6.91 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.496e-05/0.9057, allocations: 16.17 kB / 0.5378 GB, free: 6.895 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02663/0.9323, allocations: 8.651 MB / 0.5463 GB, free: 13.84 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002571/0.935, allocations: 0.6964 MB / 0.547 GB, free: 13.12 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009183/0.9359, allocations: 116.3 kB / 0.5471 GB, free: 13.01 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005743/0.9417, allocations: 351.7 kB / 0.5474 GB, free: 12.67 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002702/0.9444, allocations: 0.6056 MB / 0.548 GB, free: 12.06 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008653/0.9453, allocations: 151.9 kB / 0.5481 GB, free: 11.91 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003096/0.9484, allocations: 1.102 MB / 0.5492 GB, free: 10.82 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.82e-07/0.9485, allocations: 0 / 0.5492 GB, free: 10.82 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007375/0.9559, allocations: 0.9883 MB / 0.5502 GB, free: 9.832 MB / 474.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.001504/0.9574, allocations: 315.8 kB / 0.5505 GB, free: 9.516 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01751/0.975, allocations: 5.071 MB / 0.5554 GB, free: 4.367 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.4e-05/0.975, allocations: 0 / 0.5554 GB, free: 4.367 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01326/0.9883, allocations: 3.762 MB / 0.5591 GB, free: 0.5312 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004956/0.9933, allocations: 367.4 kB / 0.5595 GB, free: 176 kB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02583/1.019, allocations: 9.226 MB / 0.5685 GB, free: 6.789 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00264/1.022, allocations: 1.885 MB / 0.5703 GB, free: 4.863 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00203/1.024, allocations: 255.3 kB / 0.5705 GB, free: 4.617 MB / 490.7 MB Notification: Performance of SimCode: time 1.272e-06/1.024, allocations: 0 / 0.5705 GB, free: 4.617 MB / 490.7 MB Notification: Performance of Templates: time 0.5315/1.555, allocations: 128.7 MB / 0.6962 GB, free: 94.92 MB / 0.5105 GB