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.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") Notification: Performance of loadModel(ModelicaTest): time 2.262/2.262, allocations: 235 MB / 247.6 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.824e-05/2.838e-05, allocations: 4 kB / 304.9 MB, free: 5.652 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.3266, allocations: 54.86 MB / 359.8 MB, free: 2.652 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1589/0.4856, allocations: 103.2 MB / 463 MB, free: 9.719 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/0.4859, allocations: 83.95 kB / 463.1 MB, free: 9.637 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.601/2.087, allocations: 284.9 MB / 0.7304 GB, free: 40.7 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.119e-06/2.087, allocations: 0 / 0.7304 GB, free: 40.7 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0007091/2.088, allocations: 285.9 kB / 0.7307 GB, free: 40.7 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5457 * Number of variables: 5457 Notification: Performance of Generate backend data structure: time 0.04211/2.13, allocations: 13.18 MB / 0.7436 GB, free: 35.54 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/2.13, allocations: 12.69 kB / 0.7436 GB, free: 35.54 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09628/2.227, allocations: 18.54 MB / 0.7617 GB, free: 34.54 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04138/2.268, allocations: 14.88 MB / 0.7762 GB, free: 33.02 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001192/2.269, allocations: 1.104 MB / 0.7773 GB, free: 32.98 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006648/2.276, allocations: 1.457 MB / 0.7787 GB, free: 32.97 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09115/2.367, allocations: 36.05 MB / 0.8139 GB, free: 26.89 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008185/2.368, allocations: 131 kB / 0.8141 GB, free: 26.87 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006416/2.374, allocations: 0.6719 MB / 0.8147 GB, free: 26.48 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006211/2.381, allocations: 3.717 MB / 0.8183 GB, free: 25.1 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08225/2.463, allocations: 32.56 MB / 0.8501 GB, free: 13.85 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5626/3.026, allocations: 140.4 MB / 0.9873 GB, free: 30.11 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04577/3.071, allocations: 15.54 MB / 1.002 GB, free: 28.24 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01655/3.088, allocations: 9.568 MB / 1.012 GB, free: 28.17 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08036/3.168, allocations: 35.73 MB / 1.047 GB, free: 15.07 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.476e-05/3.169, allocations: 101.6 kB / 1.047 GB, free: 14.98 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=747): time 1.376e-05/3.169, allocations: 0 / 1.047 GB, free: 14.98 MB / 0.5417 GB Notification: Performance of matching and sorting (n=829): time 0.6008/3.769, allocations: 71.65 MB / 1.117 GB, free: 102.9 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/3.77, allocations: 314.2 kB / 1.117 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02217/3.792, allocations: 9.266 MB / 1.126 GB, free: 101.8 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001521/3.793, allocations: 139.9 kB / 1.126 GB, free: 101.7 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.007035/3.8, allocations: 9.489 MB / 1.136 GB, free: 96.52 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.004026/3.804, allocations: 2.993 MB / 1.138 GB, free: 94.74 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002307/3.807, allocations: 357 kB / 1.139 GB, free: 94.74 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.001482/3.808, allocations: 1.103 MB / 1.14 GB, free: 94.39 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01703/3.825, allocations: 8.117 MB / 1.148 GB, free: 94.35 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02268/3.848, allocations: 17.56 MB / 1.165 GB, free: 82.33 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02365/3.872, allocations: 12.08 MB / 1.177 GB, free: 82.19 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003183/3.872, allocations: 95.12 kB / 1.177 GB, free: 82.19 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2401) (initialization): time 0.06291/3.935, allocations: 26.23 MB / 1.202 GB, free: 74.07 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002664/3.935, allocations: 144.8 kB / 1.203 GB, free: 74.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004225/3.936, allocations: 332.6 kB / 1.203 GB, free: 74.07 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009036/3.945, allocations: 2.405 MB / 1.205 GB, free: 73.63 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02074/3.966, allocations: 4.291 MB / 1.209 GB, free: 73.14 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02497/3.991, allocations: 14.37 MB / 1.223 GB, free: 65.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01817/4.009, allocations: 1.092 MB / 1.225 GB, free: 65.49 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004021/4.013, allocations: 0.9911 MB / 1.225 GB, free: 65.07 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1510 * 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 (2205): * Single equations (assignments): 2188 * 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.00577/4.019, allocations: 1.414 MB / 1.227 GB, free: 63.66 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002995/4.022, allocations: 1.019 MB / 1.228 GB, free: 62.63 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03501/4.057, allocations: 15.8 MB / 1.243 GB, free: 49.3 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002309/4.057, allocations: 163.2 kB / 1.243 GB, free: 49.15 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.961e-05/4.057, allocations: 17.75 kB / 1.243 GB, free: 49.14 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001461/4.057, allocations: 33.47 kB / 1.243 GB, free: 49.14 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0826/4.14, allocations: 34.7 MB / 1.277 GB, free: 20.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.228e-05/4.14, allocations: 8 kB / 1.277 GB, free: 20.25 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008957/4.149, allocations: 1.394 MB / 1.279 GB, free: 19.16 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007231/4.156, allocations: 1.774 MB / 1.28 GB, free: 17.9 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001523/4.158, allocations: 128.8 kB / 1.281 GB, free: 17.78 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3665/4.524, allocations: 12.96 MB / 1.293 GB, free: 91.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.124e-05/4.524, allocations: 9.875 kB / 1.293 GB, free: 91.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05303/4.577, allocations: 26.46 MB / 1.319 GB, free: 88.59 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007572/4.585, allocations: 2.256 MB / 1.321 GB, free: 88.49 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003448/4.588, allocations: 126.1 kB / 1.321 GB, free: 88.49 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008727/4.597, allocations: 0.5353 MB / 1.322 GB, free: 88.49 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002234/4.6, allocations: 436.3 kB / 1.322 GB, free: 88.48 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001299/4.601, allocations: 196.2 kB / 1.323 GB, free: 88.48 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01586/4.617, allocations: 6.407 MB / 1.329 GB, free: 88.15 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.215e-06/4.617, allocations: 0 / 1.329 GB, free: 88.15 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02101/4.638, allocations: 3.438 MB / 1.332 GB, free: 88.15 MB / 0.5417 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 (655): * Single equations (assignments): 638 * 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.001898/4.64, allocations: 313.1 kB / 1.332 GB, free: 88.06 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.03813/4.678, allocations: 19 MB / 1.351 GB, free: 87.69 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/4.678, allocations: 0 / 1.351 GB, free: 87.69 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01587/4.694, allocations: 7.57 MB / 1.358 GB, free: 86.07 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008834/4.703, allocations: 1.263 MB / 1.36 GB, free: 85.53 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07594/4.779, allocations: 30.99 MB / 1.39 GB, free: 74.39 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02508/4.804, allocations: 10.59 MB / 1.4 GB, free: 68.16 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006539/4.81, allocations: 0.8636 MB / 1.401 GB, free: 67.34 MB / 0.5417 GB Notification: Performance of SimCode: time 2.028e-06/4.81, allocations: 0 / 1.401 GB, free: 67.34 MB / 0.5417 GB Notification: Performance of Templates: time 1.165/5.975, allocations: 318.4 MB / 1.712 GB, free: 147.5 MB / 0.6042 GB