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.1_cpp_ModelicaTest.Rotational.TestBearingConversion") Notification: Performance of loadModel(ModelicaTest): time 1.965/1.965, allocations: 209.3 MB / 221.9 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.882e-05/2.899e-05, allocations: 0 / 273.1 MB, free: 3.664 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08767/0.08772, allocations: 48.7 MB / 321.8 MB, free: 2.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3581/0.4459, allocations: 89.99 MB / 411.7 MB, free: 3.816 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001876/0.4461, allocations: 60.05 kB / 411.8 MB, free: 3.812 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2735/0.7196, allocations: 63.81 MB / 475.6 MB, free: 13.31 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.171e-06/0.7196, allocations: 0 / 475.6 MB, free: 13.31 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.00021/0.7198, allocations: 63.98 kB / 475.7 MB, free: 13.25 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 717 * Number of variables: 717 Notification: Performance of Generate backend data structure: time 0.01044/0.7303, allocations: 2.906 MB / 478.6 MB, free: 10.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/0.7304, allocations: 8.031 kB / 478.6 MB, free: 10.28 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002754/0.7331, allocations: 411.8 kB / 479 MB, free: 9.871 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004237/0.7374, allocations: 1.295 MB / 480.3 MB, free: 8.523 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001279/0.7387, allocations: 0.5883 MB / 480.9 MB, free: 7.871 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001286/0.74, allocations: 303.7 kB / 481.2 MB, free: 7.574 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01007/0.7501, allocations: 3.153 MB / 484.3 MB, free: 4.312 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002471/0.7504, allocations: 39.61 kB / 484.4 MB, free: 4.273 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005765/0.751, allocations: 116 kB / 484.5 MB, free: 4.16 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.778e-05/0.7511, allocations: 68 kB / 484.5 MB, free: 4.094 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008727/0.7599, allocations: 3.129 MB / 487.7 MB, free: 0.9648 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02606/0.786, allocations: 9.639 MB / 497.3 MB, free: 7.098 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007412/0.7934, allocations: 2.869 MB / 0.4885 GB, free: 4.059 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004444/0.7979, allocations: 1.555 MB / 0.49 GB, free: 2.465 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000385/0.7983, allocations: 57.45 kB / 0.49 GB, free: 2.41 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001016/0.7984, allocations: 87.56 kB / 0.4901 GB, free: 2.312 MB / 394.7 MB Notification: Performance of pre-optimization done (n=359): time 9.298e-06/0.7985, allocations: 0 / 0.4901 GB, free: 2.312 MB / 394.7 MB Notification: Performance of matching and sorting (n=421): time 0.03964/0.8381, allocations: 17.04 MB / 0.5068 GB, free: 192 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003908/0.8385, allocations: 0.5698 MB / 0.5073 GB, free: 15.49 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003033/0.8416, allocations: 1.348 MB / 0.5086 GB, free: 14.15 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008629/0.8425, allocations: 117.7 kB / 0.5087 GB, free: 14.03 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009991/0.8435, allocations: 0.8725 MB / 0.5096 GB, free: 13.14 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002212/0.8457, allocations: 1.41 MB / 0.511 GB, free: 11.71 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004522/0.8462, allocations: 84 kB / 0.5111 GB, free: 11.63 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003963/0.8466, allocations: 475.9 kB / 0.5115 GB, free: 11.16 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004242/0.8509, allocations: 1.399 MB / 0.5129 GB, free: 9.75 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005342/0.8562, allocations: 2.098 MB / 0.5149 GB, free: 7.375 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004198/0.8605, allocations: 1.413 MB / 0.5163 GB, free: 5.969 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.295e-05/0.8606, allocations: 8 kB / 0.5163 GB, free: 5.961 MB / 426.7 MB Notification: Performance of matching and sorting (n=536) (initialization): time 0.01465/0.8752, allocations: 4.803 MB / 0.521 GB, free: 1.125 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.53e-05/0.8753, allocations: 16 kB / 0.521 GB, free: 1.109 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.71e-05/0.8754, allocations: 16 kB / 0.521 GB, free: 1.094 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2423/1.118, allocations: 1.956 MB / 0.5229 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005135/1.123, allocations: 0.8165 MB / 0.5237 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02298/1.146, allocations: 16.37 MB / 0.5397 GB, free: 99.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004715/1.151, allocations: 385.8 kB / 0.5401 GB, free: 99.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00103/1.152, allocations: 187.6 kB / 0.5403 GB, free: 99.02 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * 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,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.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,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 (401): * Single equations (assignments): 391 * 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,2 24,1 6,1 6,1 12,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.001025/1.153, allocations: 360.6 kB / 0.5406 GB, free: 98.91 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001221/1.154, allocations: 288.5 kB / 0.5409 GB, free: 98.91 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001474/1.155, allocations: 0.602 MB / 0.5415 GB, free: 98.85 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.615e-05/1.156, allocations: 42.62 kB / 0.5415 GB, free: 98.85 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.312e-05/1.156, allocations: 13.64 kB / 0.5415 GB, free: 98.85 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.991e-05/1.156, allocations: 25.31 kB / 0.5416 GB, free: 98.85 MB / 426.7 MB Warning: The model contains alias variables with conflicting start and/or 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.02806/1.184, allocations: 10.16 MB / 0.5515 GB, free: 97.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.489e-05/1.184, allocations: 14.97 kB / 0.5515 GB, free: 97.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005094/1.189, allocations: 0.7278 MB / 0.5522 GB, free: 97.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005752/1.195, allocations: 1.837 MB / 0.554 GB, free: 96.96 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008232/1.196, allocations: 130.6 kB / 0.5541 GB, free: 96.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02138/1.217, allocations: 15.84 MB / 0.5696 GB, free: 84.71 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.037e-05/1.217, allocations: 10.81 kB / 0.5696 GB, free: 84.71 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01738/1.234, allocations: 7.856 MB / 0.5773 GB, free: 80.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002505/1.237, allocations: 0.7177 MB / 0.578 GB, free: 79.79 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009176/1.238, allocations: 104.6 kB / 0.5781 GB, free: 79.72 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004561/1.243, allocations: 353.1 kB / 0.5784 GB, free: 79.67 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001886/1.244, allocations: 0.6038 MB / 0.579 GB, free: 79.56 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005196/1.245, allocations: 166.6 kB / 0.5792 GB, free: 79.53 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001955/1.247, allocations: 1.011 MB / 0.5802 GB, free: 79.15 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.4e-07/1.247, allocations: 0 / 0.5802 GB, free: 79.15 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005985/1.253, allocations: 1.014 MB / 0.5811 GB, free: 79.01 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 40 (slidingMass1.s,slidingMass1.v,slidingMass.s,slidingMass.v,inertia21.phi,inertia21.w,linearSpeedDependentTorque.phi,inertia20.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,inertia5.phi,inertia5.w,inertia2.phi,inertia2.w,brake1.phi,inertia3.w,inertia.phi,inertia.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,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.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,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 16 (bearingFriction1.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward,lossyGear.mode,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,2 23,1 5,1 5,1 9,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001112/1.254, allocations: 342.2 kB / 0.5815 GB, free: 78.81 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01014/1.264, allocations: 4.499 MB / 0.5859 GB, free: 76.76 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/1.264, allocations: 7.312 kB / 0.5859 GB, free: 76.76 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008631/1.273, allocations: 3.351 MB / 0.5891 GB, free: 75.03 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00395/1.277, allocations: 381 kB / 0.5895 GB, free: 74.89 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01619/1.293, allocations: 7.025 MB / 0.5964 GB, free: 71.15 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00195/1.295, allocations: 1.905 MB / 0.5982 GB, free: 70.12 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00166/1.297, allocations: 262.9 kB / 0.5985 GB, free: 69.91 MB / 426.7 MB Notification: Performance of SimCode: time 1.944e-06/1.297, allocations: 0 / 0.5985 GB, free: 69.91 MB / 426.7 MB Notification: Performance of Templates: time 0.3878/1.685, allocations: 128.2 MB / 0.7237 GB, free: 113.5 MB / 442.7 MB