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_ModelicaTest.Rotational.TestBearingConversion") Notification: Performance of loadModel(ModelicaTest): time 2.592/2.592, allocations: 234.9 MB / 249.4 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.313e-05/3.304e-05, allocations: 4 kB / 308 MB, free: 15.35 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3983/0.3983, allocations: 54.86 MB / 362.9 MB, free: 12.24 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBearingConversion): time 0.01496/0.4134, allocations: 8.982 MB / 371.9 MB, free: 4.762 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01064/0.4241, allocations: 3.584 MB / 375.4 MB, free: 1.164 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002848/0.427, allocations: 79.75 kB / 375.5 MB, free: 1.086 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00172/0.4287, allocations: 325.5 kB / 375.8 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004892/0.4337, allocations: 1.003 MB / 376.8 MB, free: 15.76 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003979/0.4377, allocations: 0.9632 MB / 377.8 MB, free: 14.8 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00635/0.4441, allocations: 2.113 MB / 379.9 MB, free: 12.68 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001505/0.4456, allocations: 0.5058 MB / 380.4 MB, free: 12.16 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003361/0.449, allocations: 1.329 MB / 381.8 MB, free: 10.83 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003809/0.4529, allocations: 1.616 MB / 383.4 MB, free: 9.211 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001995/0.4549, allocations: 267.8 kB / 383.6 MB, free: 8.949 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001264/0.4562, allocations: 152 kB / 383.8 MB, free: 8.801 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001268/0.4575, allocations: 0.6696 MB / 384.4 MB, free: 8.129 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00129/0.4589, allocations: 288 kB / 384.7 MB, free: 7.848 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006173/0.4651, allocations: 3.158 MB / 387.9 MB, free: 4.68 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.4651, allocations: 0 / 387.9 MB, free: 4.68 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.522e-06/0.4651, allocations: 0 / 387.9 MB, free: 4.68 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001838/0.4653, allocations: 3.938 kB / 387.9 MB, free: 4.676 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.01285/0.4782, allocations: 2.982 MB / 390.9 MB, free: 1.637 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.932e-05/0.4783, allocations: 8.031 kB / 390.9 MB, free: 1.629 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003237/0.4815, allocations: 407.9 kB / 391.3 MB, free: 1.227 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004945/0.4865, allocations: 1.459 MB / 392.7 MB, free: 15.71 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002426/0.489, allocations: 0.6782 MB / 393.4 MB, free: 14.97 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001196/0.4902, allocations: 315.6 kB / 393.7 MB, free: 14.66 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01265/0.5029, allocations: 3.423 MB / 397.1 MB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002517/0.5032, allocations: 43.64 kB / 397.2 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005304/0.5038, allocations: 112 kB / 397.3 MB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.273e-05/0.5039, allocations: 68 kB / 397.4 MB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01406/0.5179, allocations: 3.602 MB / 401 MB, free: 7.309 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03094/0.5489, allocations: 10.16 MB / 411.1 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01163/0.5606, allocations: 3.382 MB / 414.5 MB, free: 9.324 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000912/0.5616, allocations: 223.6 kB / 414.7 MB, free: 9.07 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001188/0.5617, allocations: 88.56 kB / 414.8 MB, free: 8.977 MB / 346.7 MB Notification: Performance of pre-optimization done (n=358): time 8.115e-06/0.5617, allocations: 0 / 414.8 MB, free: 8.977 MB / 346.7 MB Notification: Performance of matching and sorting (n=421): time 0.09436/0.6561, allocations: 21.36 MB / 436.2 MB, free: 2.395 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003802/0.6565, allocations: 0.6123 MB / 436.8 MB, free: 1.648 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004749/0.6613, allocations: 1.455 MB / 438.2 MB, free: 200 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001036/0.6624, allocations: 121.7 kB / 438.4 MB, free: 72 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001241/0.6637, allocations: 0.9186 MB / 439.3 MB, free: 15.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00248/0.6662, allocations: 1.413 MB / 440.7 MB, free: 13.71 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006915/0.6669, allocations: 83.98 kB / 440.8 MB, free: 13.62 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0004134/0.6673, allocations: 467 kB / 441.2 MB, free: 13.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006435/0.6738, allocations: 1.504 MB / 442.7 MB, free: 11.65 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007381/0.6812, allocations: 2.237 MB / 445 MB, free: 9.117 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006651/0.6879, allocations: 1.517 MB / 446.5 MB, free: 7.602 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.862e-05/0.6881, allocations: 4 kB / 446.5 MB, free: 7.598 MB / 378.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01957/0.7076, allocations: 5.013 MB / 451.5 MB, free: 2.547 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.771e-05/0.7077, allocations: 12 kB / 451.5 MB, free: 2.535 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.936e-05/0.7078, allocations: 20 kB / 451.5 MB, free: 2.516 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007512/0.7153, allocations: 1.996 MB / 453.5 MB, free: 500 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006286/0.7216, allocations: 0.8152 MB / 454.3 MB, free: 15.67 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03257/0.7542, allocations: 16.7 MB / 471 MB, free: 14.08 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005616/0.7599, allocations: 387.7 kB / 471.4 MB, free: 13.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001009/0.761, allocations: 172 kB / 471.6 MB, free: 13.53 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.002252/0.7633, allocations: 0.6101 MB / 472.2 MB, free: 12.91 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001456/0.7647, allocations: 280.6 kB / 472.5 MB, free: 12.63 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001944/0.7667, allocations: 0.5329 MB / 473 MB, free: 12.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.057e-05/0.7668, allocations: 44 kB / 473 MB, free: 12.05 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.722e-05/0.7669, allocations: 8 kB / 473.1 MB, free: 12.04 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.262e-05/0.767, allocations: 23.92 kB / 473.1 MB, free: 12.02 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.03755/0.8045, allocations: 10.68 MB / 483.8 MB, free: 1.098 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-05/0.8047, allocations: 8 kB / 483.8 MB, free: 1.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006232/0.8109, allocations: 0.6754 MB / 484.4 MB, free: 424 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007403/0.8184, allocations: 1.867 MB / 486.3 MB, free: 14.52 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009119/0.8193, allocations: 123.9 kB / 486.4 MB, free: 14.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3419/1.161, allocations: 16.17 MB / 0.4908 GB, free: 112.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.112e-05/1.161, allocations: 12.34 kB / 0.4908 GB, free: 112.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02797/1.189, allocations: 8.654 MB / 0.4993 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002717/1.192, allocations: 0.6958 MB / 0.5 GB, free: 109.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00159/1.194, allocations: 112 kB / 0.5001 GB, free: 109.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005752/1.2, allocations: 350.9 kB / 0.5004 GB, free: 109.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002296/1.202, allocations: 0.6082 MB / 0.501 GB, free: 109.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007775/1.203, allocations: 151 kB / 0.5011 GB, free: 109.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002525/1.205, allocations: 1.104 MB / 0.5022 GB, free: 109.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.284e-06/1.205, allocations: 0 / 0.5022 GB, free: 109.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006369/1.212, allocations: 0.9923 MB / 0.5032 GB, free: 109.1 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.001376/1.213, allocations: 310.7 kB / 0.5035 GB, free: 109 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01596/1.229, allocations: 5.059 MB / 0.5084 GB, free: 106.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-05/1.229, allocations: 0 / 0.5084 GB, free: 106.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01525/1.244, allocations: 3.968 MB / 0.5123 GB, free: 103.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00646/1.251, allocations: 373.3 kB / 0.5127 GB, free: 103.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02893/1.28, allocations: 9.157 MB / 0.5216 GB, free: 94.73 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002725/1.283, allocations: 1.893 MB / 0.5234 GB, free: 93.04 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004136/1.287, allocations: 450.7 kB / 0.5239 GB, free: 92.59 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001762/1.289, allocations: 227.3 kB / 0.5241 GB, free: 92.37 MB / 426.7 MB Notification: Performance of SimCode: time 1.192e-06/1.289, allocations: 192 / 0.5241 GB, free: 92.37 MB / 426.7 MB Notification: Performance of Templates: time 0.1353/1.424, allocations: 52.86 MB / 0.5757 GB, free: 39.57 MB / 426.7 MB