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.178/2.178, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.488e-05/3.511e-05, allocations: 4.938 kB / 304.9 MB, free: 5.664 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3698/0.3699, allocations: 54.85 MB / 359.8 MB, free: 2.648 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1461/0.516, allocations: 96.29 MB / 456 MB, free: 0.6797 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/0.5162, allocations: 69.12 kB / 456.1 MB, free: 0.6133 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2711/0.7873, allocations: 63.76 MB / 0.5077 GB, free: 0.7188 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.676e-06/0.7874, allocations: 0 / 0.5077 GB, free: 0.7188 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001778/0.7876, allocations: 71.98 kB / 0.5078 GB, free: 0.6484 MB / 442.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.00866/0.7962, allocations: 2.86 MB / 0.5105 GB, free: 13.73 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.7963, allocations: 8.031 kB / 0.5106 GB, free: 13.72 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001963/0.7983, allocations: 411.8 kB / 0.5109 GB, free: 13.32 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003282/0.8016, allocations: 1.294 MB / 0.5122 GB, free: 11.97 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001071/0.8027, allocations: 0.5845 MB / 0.5128 GB, free: 11.32 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007534/0.8034, allocations: 315.6 kB / 0.5131 GB, free: 11.01 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008043/0.8115, allocations: 3.133 MB / 0.5161 GB, free: 7.773 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001756/0.8117, allocations: 35.7 kB / 0.5162 GB, free: 7.738 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004394/0.8122, allocations: 123.9 kB / 0.5163 GB, free: 7.617 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.408e-05/0.8123, allocations: 68 kB / 0.5164 GB, free: 7.551 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008044/0.8203, allocations: 3.047 MB / 0.5193 GB, free: 4.504 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2755/1.096, allocations: 9.775 MB / 0.5289 GB, free: 110.7 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006752/1.103, allocations: 2.865 MB / 0.5317 GB, free: 110.1 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004072/1.107, allocations: 1.561 MB / 0.5332 GB, free: 110 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005015/1.107, allocations: 228.2 kB / 0.5334 GB, free: 109.8 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.38e-05/1.107, allocations: 88.3 kB / 0.5335 GB, free: 109.7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=366): time 1.041e-05/1.107, allocations: 0 / 0.5335 GB, free: 109.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=429): time 0.03739/1.145, allocations: 17.4 MB / 0.5505 GB, free: 100.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001606/1.145, allocations: 0.6045 MB / 0.5511 GB, free: 100.1 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002646/1.148, allocations: 1.3 MB / 0.5524 GB, free: 99.93 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007986/1.148, allocations: 124.8 kB / 0.5525 GB, free: 99.89 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006595/1.149, allocations: 0.8549 MB / 0.5533 GB, free: 99.54 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001741/1.151, allocations: 1.432 MB / 0.5547 GB, free: 98.67 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005533/1.151, allocations: 88.33 kB / 0.5548 GB, free: 98.61 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002879/1.152, allocations: 471.5 kB / 0.5552 GB, free: 98.22 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003822/1.156, allocations: 1.345 MB / 0.5566 GB, free: 97.68 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004288/1.16, allocations: 2.055 MB / 0.5586 GB, free: 96.36 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003684/1.164, allocations: 1.372 MB / 0.5599 GB, free: 95.87 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.492e-05/1.164, allocations: 7.719 kB / 0.5599 GB, free: 95.87 MB / 458.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01264/1.176, allocations: 4.464 MB / 0.5643 GB, free: 94.27 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.422e-05/1.176, allocations: 15.66 kB / 0.5643 GB, free: 94.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.9e-05/1.177, allocations: 23.36 kB / 0.5643 GB, free: 94.27 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005565/1.182, allocations: 1.737 MB / 0.566 GB, free: 93.77 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004588/1.187, allocations: 0.8091 MB / 0.5668 GB, free: 93.74 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0226/1.209, allocations: 16.24 MB / 0.5827 GB, free: 80.68 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004446/1.214, allocations: 381.5 kB / 0.583 GB, free: 80.61 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006989/1.215, allocations: 181.8 kB / 0.5832 GB, free: 80.57 MB / 458.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 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,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,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,bearingFriction.free,bearingFriction1.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 389 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {1 6,1 12,1 6,1 6,2 22,2 22,2 25,2 24} Notification: Performance of prepare postOptimizeDAE: time 0.0009805/1.216, allocations: 365.5 kB / 0.5835 GB, free: 80.28 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001215/1.217, allocations: 284.3 kB / 0.5838 GB, free: 80.14 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004286/1.221, allocations: 1.535 MB / 0.5853 GB, free: 79.41 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.423e-05/1.221, allocations: 53.08 kB / 0.5854 GB, free: 79.41 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-05/1.221, allocations: 5.875 kB / 0.5854 GB, free: 79.41 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-05/1.221, allocations: 29.36 kB / 0.5854 GB, free: 79.41 MB / 458.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.02578/1.247, allocations: 10.05 MB / 0.5952 GB, free: 74.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.383e-05/1.247, allocations: 11 kB / 0.5952 GB, free: 74.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004772/1.252, allocations: 0.7346 MB / 0.5959 GB, free: 74.55 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00533/1.257, allocations: 1.598 MB / 0.5975 GB, free: 74.09 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007296/1.258, allocations: 135.4 kB / 0.5976 GB, free: 74.04 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02127/1.279, allocations: 15.72 MB / 0.613 GB, free: 60.57 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.148e-05/1.279, allocations: 11.94 kB / 0.613 GB, free: 60.56 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01423/1.294, allocations: 7.869 MB / 0.6207 GB, free: 52.71 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002172/1.296, allocations: 0.6906 MB / 0.6213 GB, free: 52.13 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008395/1.297, allocations: 112 kB / 0.6215 GB, free: 52.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004062/1.301, allocations: 355 kB / 0.6218 GB, free: 51.75 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00156/1.302, allocations: 0.6048 MB / 0.6224 GB, free: 51.43 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004371/1.303, allocations: 172.5 kB / 0.6225 GB, free: 51.29 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001725/1.305, allocations: 0.9823 MB / 0.6235 GB, free: 50.41 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.78e-07/1.305, allocations: 0 / 0.6235 GB, free: 50.41 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005134/1.31, allocations: 0.9915 MB / 0.6245 GB, free: 49.43 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * 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 (303): * Single equations (assignments): 293 * 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.000695/1.311, allocations: 324.1 kB / 0.6248 GB, free: 49.12 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009058/1.32, allocations: 4.531 MB / 0.6292 GB, free: 44.73 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/1.32, allocations: 0 / 0.6292 GB, free: 44.73 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008278/1.328, allocations: 3.429 MB / 0.6326 GB, free: 41.44 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003773/1.332, allocations: 381.6 kB / 0.6329 GB, free: 41.13 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01474/1.347, allocations: 7.03 MB / 0.6398 GB, free: 34.77 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001822/1.348, allocations: 1.889 MB / 0.6416 GB, free: 33.26 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001522/1.35, allocations: 270.3 kB / 0.6419 GB, free: 33.05 MB / 458.7 MB Notification: Performance of SimCode: time 1.874e-06/1.35, allocations: 0 / 0.6419 GB, free: 33.05 MB / 458.7 MB Notification: Performance of Templates: time 0.4354/1.785, allocations: 128.7 MB / 0.7676 GB, free: 115 MB / 490.7 MB