Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gc1.actuatedRevolute_b.phi|gc1.actuatedRevolute_b.w|gc2.actuatedRevolute_b.phi|gc2.actuatedRevolute_b.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") Notification: Performance of loadModel(ModelicaTest): time 1.9/1.9, allocations: 209.3 MB / 221.9 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.767e-05/2.776e-05, allocations: 4 kB / 273.1 MB, free: 3.645 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08335/0.0834, allocations: 48.7 MB / 321.8 MB, free: 2.852 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.354/0.4374, allocations: 95.96 MB / 417.7 MB, free: 15.77 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002541/0.4377, allocations: 80.39 kB / 417.8 MB, free: 15.72 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.205/1.643, allocations: 284.2 MB / 0.6855 GB, free: 8.496 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.524e-06/1.643, allocations: 0 / 0.6855 GB, free: 8.496 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007982/1.644, allocations: 291.9 kB / 0.6858 GB, free: 8.211 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: 5455 * Number of variables: 5455 Notification: Performance of Generate backend data structure: time 0.6048/2.249, allocations: 13.17 MB / 0.6987 GB, free: 32.32 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/2.249, allocations: 9.703 kB / 0.6987 GB, free: 32.32 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09688/2.346, allocations: 18.45 MB / 0.7167 GB, free: 31.32 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04244/2.388, allocations: 14.86 MB / 0.7312 GB, free: 30.73 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001353/2.389, allocations: 1.1 MB / 0.7323 GB, free: 30.7 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007148/2.397, allocations: 1.454 MB / 0.7337 GB, free: 30.7 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09157/2.488, allocations: 35.31 MB / 0.7682 GB, free: 25.1 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008377/2.489, allocations: 133 kB / 0.7683 GB, free: 25.09 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006487/2.496, allocations: 0.666 MB / 0.7689 GB, free: 25.09 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006488/2.502, allocations: 3.712 MB / 0.7726 GB, free: 25.06 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07626/2.579, allocations: 31.08 MB / 0.8029 GB, free: 12.81 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5713/3.15, allocations: 140.8 MB / 0.9404 GB, free: 25.87 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04446/3.194, allocations: 15.01 MB / 0.955 GB, free: 24.02 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01625/3.211, allocations: 9.331 MB / 0.9642 GB, free: 23.95 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07651/3.287, allocations: 34.74 MB / 0.9981 GB, free: 20.54 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.131e-05/3.287, allocations: 104.6 kB / 0.9982 GB, free: 20.45 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=745): time 1.391e-05/3.287, allocations: 0 / 0.9982 GB, free: 20.45 MB / 0.4949 GB Notification: Performance of matching and sorting (n=827): time 0.2437/3.531, allocations: 67 MB / 1.064 GB, free: 2.328 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002376/3.531, allocations: 311.1 kB / 1.064 GB, free: 1.969 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4357/3.967, allocations: 10.67 MB / 1.074 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001303/3.968, allocations: 140.3 kB / 1.074 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.006866/3.975, allocations: 9.486 MB / 1.084 GB, free: 102.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.004005/3.979, allocations: 2.985 MB / 1.087 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001912/3.981, allocations: 358.6 kB / 1.087 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001446/3.983, allocations: 1.106 MB / 1.088 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01675/3.999, allocations: 8.011 MB / 1.096 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02207/4.022, allocations: 17.46 MB / 1.113 GB, free: 88.21 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02194/4.044, allocations: 11.96 MB / 1.125 GB, free: 88.07 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002796/4.044, allocations: 95.31 kB / 1.125 GB, free: 88.07 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2399) (initialization): time 0.1049/4.149, allocations: 26 MB / 1.15 GB, free: 86.66 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002518/4.149, allocations: 147.9 kB / 1.15 GB, free: 86.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000386/4.15, allocations: 331.4 kB / 1.151 GB, free: 86.65 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008638/4.158, allocations: 2.394 MB / 1.153 GB, free: 86.61 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02049/4.179, allocations: 4.271 MB / 1.157 GB, free: 86.26 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02455/4.203, allocations: 14.38 MB / 1.171 GB, free: 78.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01766/4.221, allocations: 1.088 MB / 1.172 GB, free: 78.62 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003442/4.224, allocations: 0.9987 MB / 1.173 GB, free: 78.48 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1513 * Number of states: 0 () * Number of discrete variables: 90 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],gc2.fixedTranslation2.color[3],gc2.fixedTranslation2.color[2],gc2.fixedTranslation2.color[1],gc2.fixedTranslation1.color[3],gc2.fixedTranslation1.color[2],gc2.fixedTranslation1.color[1],gc2.actuatedRevolute_b.cylinderColor[3],gc2.actuatedRevolute_b.cylinderColor[2],gc2.actuatedRevolute_b.cylinderColor[1],gc2.actuatedRevolute_a.cylinderColor[3],gc2.actuatedRevolute_a.cylinderColor[2],gc2.actuatedRevolute_a.cylinderColor[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],gc1.fixedTranslation2.color[3],gc1.fixedTranslation2.color[2],gc1.fixedTranslation2.color[1],gc1.fixedTranslation1.color[3],gc1.fixedTranslation1.color[2],gc1.fixedTranslation1.color[1],gc1.actuatedRevolute_b.cylinderColor[3],gc1.actuatedRevolute_b.cylinderColor[2],gc1.actuatedRevolute_b.cylinderColor[1],gc1.actuatedRevolute_a.cylinderColor[3],gc1.actuatedRevolute_a.cylinderColor[2],gc1.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2203): * Single equations (assignments): 2186 * Array equations: 15 * 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 {(3,77.8%) 36,(3,77.8%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003575/4.228, allocations: 1.417 MB / 1.175 GB, free: 77.33 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002307/4.23, allocations: 1.01 MB / 1.176 GB, free: 76.77 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03493/4.265, allocations: 15.54 MB / 1.191 GB, free: 71.12 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002384/4.266, allocations: 166.5 kB / 1.191 GB, free: 71.11 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.362e-05/4.266, allocations: 11.34 kB / 1.191 GB, free: 71.11 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001179/4.266, allocations: 37.42 kB / 1.191 GB, free: 71.11 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07526/4.341, allocations: 34.51 MB / 1.225 GB, free: 46.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.092e-05/4.341, allocations: 7.938 kB / 1.225 GB, free: 46.19 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008762/4.35, allocations: 1.399 MB / 1.226 GB, free: 45.09 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00737/4.357, allocations: 1.771 MB / 1.228 GB, free: 43.84 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001133/4.358, allocations: 130 kB / 1.228 GB, free: 43.72 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02066/4.379, allocations: 12.91 MB / 1.24 GB, free: 32.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.136e-05/4.379, allocations: 11.94 kB / 1.24 GB, free: 32.19 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3675/4.747, allocations: 26.99 MB / 1.267 GB, free: 88.62 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00696/4.754, allocations: 2.247 MB / 1.269 GB, free: 88.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002562/4.756, allocations: 125.6 kB / 1.269 GB, free: 88.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007529/4.764, allocations: 0.5349 MB / 1.27 GB, free: 88.53 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002054/4.766, allocations: 435.5 kB / 1.27 GB, free: 88.52 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008782/4.767, allocations: 188.5 kB / 1.27 GB, free: 88.52 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01494/4.782, allocations: 6.411 MB / 1.277 GB, free: 88.19 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.138e-06/4.782, allocations: 2.812 kB / 1.277 GB, free: 88.19 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01894/4.801, allocations: 3.427 MB / 1.28 GB, free: 88.19 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 4 (gc1.actuatedRevolute_b.phi,gc1.actuatedRevolute_b.w,gc2.actuatedRevolute_b.phi,gc2.actuatedRevolute_b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (653): * Single equations (assignments): 636 * Array equations: 15 * 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%) 32,(1,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00173/4.803, allocations: 315.7 kB / 1.28 GB, free: 88.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03661/4.839, allocations: 18.82 MB / 1.299 GB, free: 87.73 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/4.839, allocations: 4.812 kB / 1.299 GB, free: 87.73 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01554/4.855, allocations: 7.533 MB / 1.306 GB, free: 87.45 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008449/4.863, allocations: 1.254 MB / 1.307 GB, free: 87.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07537/4.939, allocations: 30.92 MB / 1.337 GB, free: 79.69 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02907/4.968, allocations: 10.59 MB / 1.348 GB, free: 76.75 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009754/4.978, allocations: 0.87 MB / 1.349 GB, free: 76.72 MB / 0.5105 GB Notification: Performance of SimCode: time 2.556e-06/4.978, allocations: 0.9844 kB / 1.349 GB, free: 76.72 MB / 0.5105 GB Notification: Performance of Templates: time 1.14/6.118, allocations: 317.7 MB / 1.659 GB, free: 113.3 MB / 0.5418 GB