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 2.131/2.131, allocations: 209.3 MB / 224.4 MB, free: 0.6562 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.239e-05/3.236e-05, allocations: 7.984 kB / 276.1 MB, free: 15.88 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4052/0.4053, allocations: 48.69 MB / 324.8 MB, free: 2.875 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBearingConversion): time 0.01953/0.4249, allocations: 8.984 MB / 333.8 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01495/0.4399, allocations: 3.665 MB / 337.5 MB, free: 10.63 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004374/0.4444, allocations: 72.69 kB / 337.6 MB, free: 10.62 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002672/0.4471, allocations: 328.7 kB / 337.9 MB, free: 10.48 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007943/0.4551, allocations: 1.002 MB / 338.9 MB, free: 9.738 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007036/0.4622, allocations: 0.9617 MB / 339.8 MB, free: 9.262 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01038/0.4726, allocations: 2.112 MB / 342 MB, free: 8.008 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001804/0.4745, allocations: 0.5076 MB / 342.5 MB, free: 7.793 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00397/0.4785, allocations: 1.328 MB / 343.8 MB, free: 7.172 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004472/0.4831, allocations: 1.588 MB / 345.4 MB, free: 6.219 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002711/0.4858, allocations: 356.3 kB / 345.7 MB, free: 6.113 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001324/0.4872, allocations: 157.7 kB / 345.9 MB, free: 6.113 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002078/0.4893, allocations: 0.6591 MB / 346.5 MB, free: 5.609 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002134/0.4915, allocations: 285.1 kB / 346.8 MB, free: 5.609 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007034/0.4986, allocations: 3.18 MB / 350 MB, free: 3.238 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.4986, allocations: 0 / 350 MB, free: 3.238 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.386e-06/0.4987, allocations: 0 / 350 MB, free: 3.238 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.000201/0.4989, allocations: 0 / 350 MB, free: 3.238 MB / 282.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.01371/0.5126, allocations: 2.998 MB / 353 MB, free: 1.344 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/0.5127, allocations: 9 kB / 353 MB, free: 1.344 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003191/0.5159, allocations: 414.7 kB / 353.4 MB, free: 1.148 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005115/0.521, allocations: 1.442 MB / 354.9 MB, free: 72 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00248/0.5236, allocations: 0.6837 MB / 355.5 MB, free: 15.58 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001296/0.5249, allocations: 313.1 kB / 355.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01239/0.5373, allocations: 3.394 MB / 359.2 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002084/0.5376, allocations: 39.7 kB / 359.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005259/0.5381, allocations: 112 kB / 359.4 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-05/0.5382, allocations: 71.94 kB / 359.5 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01377/0.552, allocations: 3.559 MB / 363 MB, free: 9.055 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03112/0.5832, allocations: 9.949 MB / 373 MB, free: 14.88 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01098/0.5942, allocations: 3.313 MB / 376.3 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005503/0.5948, allocations: 53.08 kB / 376.3 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001076/0.5949, allocations: 99.67 kB / 376.4 MB, free: 11.23 MB / 314.7 MB Notification: Performance of pre-optimization done (n=357): time 7.113e-06/0.5949, allocations: 0 / 376.4 MB, free: 11.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=419): time 0.06941/0.6644, allocations: 20.82 MB / 397.2 MB, free: 5.176 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004345/0.6649, allocations: 0.5619 MB / 397.8 MB, free: 4.488 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004146/0.669, allocations: 1.472 MB / 399.3 MB, free: 3.02 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001012/0.6701, allocations: 121.7 kB / 399.4 MB, free: 2.895 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001228/0.6714, allocations: 0.8802 MB / 400.3 MB, free: 2.004 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002859/0.6743, allocations: 1.413 MB / 401.7 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001023/0.6754, allocations: 80 kB / 401.8 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0005095/0.6759, allocations: 471.9 kB / 402.2 MB, free: 20 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006741/0.6827, allocations: 1.496 MB / 403.7 MB, free: 14.52 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007673/0.6904, allocations: 2.229 MB / 406 MB, free: 12 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006408/0.6969, allocations: 1.527 MB / 407.5 MB, free: 10.48 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.806e-05/0.6969, allocations: 8 kB / 407.5 MB, free: 10.47 MB / 346.7 MB Notification: Performance of matching and sorting (n=536) (initialization): time 0.02088/0.7178, allocations: 5.201 MB / 412.7 MB, free: 5.234 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.841e-05/0.7179, allocations: 19.94 kB / 412.7 MB, free: 5.215 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.478e-05/0.718, allocations: 20 kB / 412.7 MB, free: 5.195 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00759/0.7256, allocations: 1.753 MB / 414.5 MB, free: 3.414 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006515/0.7322, allocations: 0.8113 MB / 415.3 MB, free: 2.602 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0403/0.7725, allocations: 16.66 MB / 432 MB, free: 1.039 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007972/0.7806, allocations: 383.8 kB / 432.3 MB, free: 0.6641 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001255/0.7819, allocations: 172.8 kB / 432.5 MB, free: 0.4961 MB / 362.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 (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,1 6,1 6,1 12,2 24,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.003687/0.7856, allocations: 0.6063 MB / 433.1 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001871/0.7875, allocations: 296.5 kB / 433.4 MB, free: 15.58 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003122/0.7907, allocations: 0.6461 MB / 434 MB, free: 14.92 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.913e-05/0.7908, allocations: 44 kB / 434.1 MB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-05/0.7909, allocations: 8 kB / 434.1 MB, free: 14.87 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001085/0.791, allocations: 23.92 kB / 434.1 MB, free: 14.85 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.05057/0.8416, allocations: 10.73 MB / 444.8 MB, free: 3.898 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.331e-05/0.8417, allocations: 8.094 kB / 444.9 MB, free: 3.891 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006328/0.8481, allocations: 0.6671 MB / 445.5 MB, free: 3.223 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006868/0.855, allocations: 1.636 MB / 447.2 MB, free: 1.559 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009835/0.856, allocations: 135.8 kB / 447.3 MB, free: 1.426 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03204/0.8881, allocations: 16.13 MB / 463.4 MB, free: 408 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.489e-05/0.8881, allocations: 11.94 kB / 463.4 MB, free: 396 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02901/0.9172, allocations: 8.555 MB / 472 MB, free: 7.477 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003016/0.9202, allocations: 0.6925 MB / 472.7 MB, free: 6.762 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001845/0.9221, allocations: 112 kB / 472.8 MB, free: 6.652 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006012/0.9282, allocations: 351.7 kB / 473.1 MB, free: 6.309 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002509/0.9308, allocations: 0.6057 MB / 473.7 MB, free: 5.703 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009285/0.9317, allocations: 151.9 kB / 473.9 MB, free: 5.555 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003018/0.9348, allocations: 1.114 MB / 475 MB, free: 4.449 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.92e-07/0.9348, allocations: 0 / 475 MB, free: 4.449 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007062/0.9419, allocations: 1 MB / 476 MB, free: 3.449 MB / 410.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,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 (297): * Single equations (assignments): 287 * 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.001537/0.9435, allocations: 332.7 kB / 476.3 MB, free: 3.109 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.3065/1.25, allocations: 5.049 MB / 481.4 MB, free: 126.3 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.055e-05/1.25, allocations: 1.188 kB / 481.4 MB, free: 126.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01757/1.268, allocations: 3.686 MB / 485.1 MB, free: 125.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006568/1.274, allocations: 362.5 kB / 485.4 MB, free: 125.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0265/1.301, allocations: 9.24 MB / 494.7 MB, free: 120.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003641/1.305, allocations: 1.894 MB / 496.5 MB, free: 119.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002227/1.307, allocations: 255.2 kB / 496.8 MB, free: 119.6 MB / 410.7 MB Notification: Performance of SimCode: time 1.924e-06/1.307, allocations: 0 / 496.8 MB, free: 119.6 MB / 410.7 MB Notification: Performance of Templates: time 0.1768/1.484, allocations: 128.3 MB / 0.6105 GB, free: 1.328 MB / 410.7 MB