Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") Notification: Performance of loadModel(ModelicaTest): time 2.046/2.046, allocations: 209.3 MB / 224.4 MB, free: 0.5117 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.213e-05/3.209e-05, allocations: 4 kB / 276.2 MB, free: 15.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3503/0.3503, allocations: 48.7 MB / 324.9 MB, free: 2.898 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.117/0.4674, allocations: 55.33 MB / 380.2 MB, free: 8.113 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.05129/0.5187, allocations: 12.2 MB / 392.4 MB, free: 11.88 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01825/0.537, allocations: 299.3 kB / 392.7 MB, free: 11.59 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01517/0.5523, allocations: 2.928 MB / 395.6 MB, free: 8.648 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04281/0.5951, allocations: 7.935 MB / 403.5 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006569/0.6018, allocations: 0.7723 MB / 404.3 MB, free: 15.92 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.06825/0.6701, allocations: 16.78 MB / 421.1 MB, free: 15.12 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01848/0.6886, allocations: 5.984 MB / 427.1 MB, free: 9.102 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004336/0.693, allocations: 1.122 MB / 428.2 MB, free: 7.977 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005581/0.6987, allocations: 1.675 MB / 429.9 MB, free: 6.297 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004737/0.7034, allocations: 0.9598 MB / 430.8 MB, free: 5.336 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002302/0.7058, allocations: 167.9 kB / 431 MB, free: 5.172 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005105/0.711, allocations: 1.999 MB / 433 MB, free: 3.168 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002931/0.7139, allocations: 356 kB / 433.3 MB, free: 2.82 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01632/0.7303, allocations: 7.567 MB / 440.9 MB, free: 11.23 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.7304, allocations: 0 / 440.9 MB, free: 11.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.7304, allocations: 0 / 440.9 MB, free: 11.23 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000358/0.7308, allocations: 0 / 440.9 MB, free: 11.23 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: 1842 * Number of variables: 1842 Notification: Performance of Generate backend data structure: time 0.01917/0.75, allocations: 5.22 MB / 446.1 MB, free: 5.941 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.471e-05/0.7501, allocations: 12.03 kB / 446.1 MB, free: 5.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1211/0.8712, allocations: 11.7 MB / 457.8 MB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01357/0.8848, allocations: 4.283 MB / 462.1 MB, free: 5.863 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004099/0.8853, allocations: 312.1 kB / 462.4 MB, free: 5.555 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001963/0.8873, allocations: 415.8 kB / 462.8 MB, free: 5.148 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03413/0.9214, allocations: 12.01 MB / 474.8 MB, free: 8.371 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002665/0.9217, allocations: 59.47 kB / 474.9 MB, free: 8.312 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001733/0.9235, allocations: 191.8 kB / 475.1 MB, free: 8.125 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005646/0.9292, allocations: 2.089 MB / 477.2 MB, free: 6.031 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3138/1.243, allocations: 9.977 MB / 487.2 MB, free: 124.8 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08372/1.327, allocations: 46.52 MB / 0.5212 GB, free: 90.82 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01735/1.344, allocations: 4.244 MB / 0.5253 GB, free: 88.42 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0245/1.369, allocations: 9.689 MB / 0.5348 GB, free: 79.57 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.529e-05/1.369, allocations: 55.81 kB / 0.5348 GB, free: 79.51 MB / 410.7 MB Notification: Performance of pre-optimization done (n=191): time 5.942e-06/1.369, allocations: 0 / 0.5348 GB, free: 79.51 MB / 410.7 MB Notification: Performance of matching and sorting (n=218): time 0.09163/1.461, allocations: 20.41 MB / 0.5548 GB, free: 59.01 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/1.461, allocations: 205.2 kB / 0.555 GB, free: 58.77 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009918/1.471, allocations: 4.524 MB / 0.5594 GB, free: 54.25 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000524/1.471, allocations: 65.69 kB / 0.5594 GB, free: 54.18 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002965/1.474, allocations: 3.606 MB / 0.563 GB, free: 50.58 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00128/1.475, allocations: 0.8229 MB / 0.5638 GB, free: 49.76 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006488/1.476, allocations: 133 kB / 0.5639 GB, free: 49.63 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004049/1.477, allocations: 0.5914 MB / 0.5645 GB, free: 49.03 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005734/1.482, allocations: 2.316 MB / 0.5667 GB, free: 46.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0086/1.491, allocations: 6.235 MB / 0.5728 GB, free: 38.52 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008519/1.5, allocations: 3.733 MB / 0.5765 GB, free: 34.79 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000101/1.5, allocations: 40 kB / 0.5765 GB, free: 34.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=853) (initialization): time 0.0251/1.525, allocations: 8.985 MB / 0.5853 GB, free: 25.76 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001131/1.525, allocations: 64 kB / 0.5853 GB, free: 25.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000175/1.525, allocations: 140 kB / 0.5855 GB, free: 25.56 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005145/1.53, allocations: 1.101 MB / 0.5865 GB, free: 24.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009611/1.54, allocations: 1.505 MB / 0.588 GB, free: 22.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01551/1.556, allocations: 8.389 MB / 0.5962 GB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007185/1.563, allocations: 367.3 kB / 0.5966 GB, free: 13.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001303/1.564, allocations: 396 kB / 0.5969 GB, free: 13.54 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 631 * Number of states: 0 () * Number of discrete variables: 42 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (791): * Single equations (assignments): 786 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006153/1.57, allocations: 2.532 MB / 0.5994 GB, free: 11 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001128/1.572, allocations: 430.8 kB / 0.5998 GB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01173/1.583, allocations: 3.857 MB / 0.6036 GB, free: 6.695 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.351e-05/1.583, allocations: 24 kB / 0.6036 GB, free: 6.672 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.911e-05/1.583, allocations: 8 kB / 0.6036 GB, free: 6.664 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.933e-05/1.583, allocations: 7.969 kB / 0.6036 GB, free: 6.656 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02929/1.613, allocations: 9.752 MB / 0.6131 GB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.215e-05/1.613, allocations: 4 kB / 0.6131 GB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00367/1.617, allocations: 347.5 kB / 0.6135 GB, free: 12.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005224/1.622, allocations: 0.8534 MB / 0.6143 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004941/1.622, allocations: 36.94 kB / 0.6143 GB, free: 11.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01678/1.639, allocations: 7.528 MB / 0.6217 GB, free: 3.859 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.675e-06/1.639, allocations: 7.891 kB / 0.6217 GB, free: 3.852 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01964/1.659, allocations: 6.713 MB / 0.6283 GB, free: 13.08 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002938/1.662, allocations: 0.7727 MB / 0.629 GB, free: 12.28 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001165/1.663, allocations: 41.36 kB / 0.6291 GB, free: 12.24 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003378/1.666, allocations: 123.9 kB / 0.6292 GB, free: 12.12 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006076/1.667, allocations: 129.8 kB / 0.6293 GB, free: 12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002478/1.667, allocations: 57.31 kB / 0.6294 GB, free: 11.94 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.008666/1.676, allocations: 3.234 MB / 0.6325 GB, free: 8.715 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.71e-07/1.676, allocations: 0 / 0.6325 GB, free: 8.715 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008571/1.685, allocations: 1.216 MB / 0.6337 GB, free: 7.504 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (169): * Single equations (assignments): 164 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001039/1.686, allocations: 189 kB / 0.6339 GB, free: 7.312 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01697/1.703, allocations: 5.873 MB / 0.6396 GB, free: 1.438 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.747e-06/1.703, allocations: 4 kB / 0.6396 GB, free: 1.434 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.3705/2.073, allocations: 2.049 MB / 0.6416 GB, free: 146.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004473/2.078, allocations: 0.5316 MB / 0.6421 GB, free: 146.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03458/2.113, allocations: 14.05 MB / 0.6559 GB, free: 140.7 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01065/2.123, allocations: 4.116 MB / 0.6599 GB, free: 139.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002073/2.125, allocations: 334.8 kB / 0.6602 GB, free: 139.2 MB / 442.7 MB Notification: Performance of SimCode: time 1.513e-06/2.125, allocations: 3.844 kB / 0.6602 GB, free: 139.2 MB / 442.7 MB Notification: Performance of Templates: time 0.2021/2.327, allocations: 112.8 MB / 0.7703 GB, free: 38.25 MB / 442.7 MB