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.365/2.365, allocations: 234.9 MB / 250.1 MB, free: 9.941 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.195e-05/3.187e-05, allocations: 4 kB / 308 MB, free: 15.92 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4175/0.4175, allocations: 54.85 MB / 362.9 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2): time 0.2269/0.6445, allocations: 122.2 MB / 485.1 MB, free: 3.34 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.5136/1.158, allocations: 24.85 MB / 0.498 GB, free: 416 kB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03793/1.196, allocations: 0.6432 MB / 0.4986 GB, free: 416 kB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.03028/1.226, allocations: 6.693 MB / 0.5051 GB, free: 404 kB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0704/1.297, allocations: 17.45 MB / 0.5222 GB, free: 11.74 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01052/1.308, allocations: 1.357 MB / 0.5235 GB, free: 11.35 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.1007/1.408, allocations: 34.47 MB / 0.5571 GB, free: 12.13 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02757/1.436, allocations: 12.88 MB / 0.5697 GB, free: 2.914 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007911/1.444, allocations: 2.849 MB / 0.5725 GB, free: 1 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0104/1.454, allocations: 4.392 MB / 0.5768 GB, free: 13.77 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006393/1.461, allocations: 1.116 MB / 0.5779 GB, free: 12.82 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003885/1.465, allocations: 359.9 kB / 0.5782 GB, free: 12.47 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.009448/1.474, allocations: 5.331 MB / 0.5834 GB, free: 8.609 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005385/1.48, allocations: 0.875 MB / 0.5843 GB, free: 7.734 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03093/1.511, allocations: 19.45 MB / 0.6033 GB, free: 6.816 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.832e-06/1.511, allocations: 0 / 0.6033 GB, free: 6.816 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.297e-06/1.511, allocations: 2.812 kB / 0.6033 GB, free: 6.816 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0009377/1.512, allocations: 0 / 0.6033 GB, free: 6.816 MB / 490.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.04554/1.557, allocations: 13.17 MB / 0.6161 GB, free: 10.71 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.365e-05/1.557, allocations: 12.02 kB / 0.6162 GB, free: 10.7 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2711/1.828, allocations: 28.59 MB / 0.6441 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03314/1.862, allocations: 9.908 MB / 0.6538 GB, free: 8.82 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001191/1.863, allocations: 0.7931 MB / 0.6545 GB, free: 8.383 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007097/1.87, allocations: 1.092 MB / 0.6556 GB, free: 7.668 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1124/1.982, allocations: 37.14 MB / 0.6919 GB, free: 12.03 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007706/1.983, allocations: 116.8 kB / 0.692 GB, free: 11.96 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005706/1.989, allocations: 0.4909 MB / 0.6925 GB, free: 11.83 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.023/2.012, allocations: 7.56 MB / 0.6998 GB, free: 5.645 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7729/2.785, allocations: 33.26 MB / 0.7323 GB, free: 219.7 MB / 0.5574 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2493/3.034, allocations: 131.1 MB / 0.8603 GB, free: 92.35 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05688/3.091, allocations: 15.92 MB / 0.8759 GB, free: 76.09 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09542/3.187, allocations: 35.95 MB / 0.911 GB, free: 40.22 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.108e-05/3.187, allocations: 95.25 kB / 0.9111 GB, free: 40.11 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=747): time 1.456e-05/3.187, allocations: 0 / 0.9111 GB, free: 40.11 MB / 0.5574 GB Notification: Performance of matching and sorting (n=829): time 1.056/4.243, allocations: 85.57 MB / 0.9946 GB, free: 197.7 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001594/4.243, allocations: 311.8 kB / 0.9949 GB, free: 197.4 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02425/4.268, allocations: 9.938 MB / 1.005 GB, free: 194 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 0.002075/4.27, allocations: 137.4 kB / 1.005 GB, free: 193.8 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 0.00761/4.277, allocations: 9.455 MB / 1.014 GB, free: 186.5 MB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 0.005001/4.283, allocations: 2.998 MB / 1.017 GB, free: 184.2 MB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003323/4.286, allocations: 354.1 kB / 1.017 GB, free: 184 MB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 0.002164/4.288, allocations: 1.107 MB / 1.018 GB, free: 183.1 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02171/4.31, allocations: 8.44 MB / 1.027 GB, free: 175.9 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02932/4.339, allocations: 17.93 MB / 1.044 GB, free: 155 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02867/4.368, allocations: 12.27 MB / 1.056 GB, free: 142.9 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003596/4.368, allocations: 92 kB / 1.056 GB, free: 142.8 MB / 0.5575 GB Notification: Performance of matching and sorting (n=2395) (initialization): time 0.07795/4.446, allocations: 27.94 MB / 1.083 GB, free: 114.8 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002283/4.447, allocations: 152 kB / 1.084 GB, free: 114.6 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004333/4.447, allocations: 328 kB / 1.084 GB, free: 114.3 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01267/4.46, allocations: 2.718 MB / 1.087 GB, free: 111.6 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03078/4.491, allocations: 4.312 MB / 1.091 GB, free: 107.3 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05428/4.545, allocations: 16.2 MB / 1.107 GB, free: 90.8 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02859/4.574, allocations: 1.127 MB / 1.108 GB, free: 89.67 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004154/4.578, allocations: 0.9889 MB / 1.109 GB, free: 88.68 MB / 0.5575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1500 * 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 (2199): * Single equations (assignments): 2182 * 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.01892/4.597, allocations: 7.085 MB / 1.116 GB, free: 81.58 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0037/4.601, allocations: 1.01 MB / 1.117 GB, free: 80.56 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06906/4.67, allocations: 16.5 MB / 1.133 GB, free: 63.99 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003929/4.67, allocations: 163.9 kB / 1.133 GB, free: 63.84 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-05/4.67, allocations: 12 kB / 1.133 GB, free: 63.82 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002085/4.67, allocations: 35.86 kB / 1.133 GB, free: 63.79 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.486/5.156, allocations: 35.73 MB / 1.168 GB, free: 188.5 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000108/5.157, allocations: 7.781 kB / 1.168 GB, free: 188.5 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01393/5.17, allocations: 1.435 MB / 1.169 GB, free: 188.4 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01184/5.182, allocations: 2.068 MB / 1.171 GB, free: 188 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002161/5.185, allocations: 132.3 kB / 1.171 GB, free: 187.9 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03191/5.217, allocations: 14.79 MB / 1.186 GB, free: 180.5 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.696e-06/5.217, allocations: 7.875 kB / 1.186 GB, free: 180.5 MB / 0.5575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06893/5.286, allocations: 27.47 MB / 1.213 GB, free: 169.2 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008919/5.294, allocations: 2.312 MB / 1.215 GB, free: 168.1 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004931/5.299, allocations: 122.9 kB / 1.215 GB, free: 167.9 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01136/5.311, allocations: 0.5527 MB / 1.216 GB, free: 167.6 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002774/5.314, allocations: 438.3 kB / 1.216 GB, free: 167.3 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001829/5.316, allocations: 194.7 kB / 1.216 GB, free: 167.1 MB / 0.5575 GB Notification: Performance of sorting global known variables: time 0.01722/5.333, allocations: 6.947 MB / 1.223 GB, free: 161.4 MB / 0.5575 GB Notification: Performance of sort global known variables: time 1.583e-06/5.333, allocations: 0 / 1.223 GB, free: 161.4 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.02081/5.354, allocations: 3.485 MB / 1.226 GB, free: 158 MB / 0.5575 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.002531/5.356, allocations: 325 kB / 1.227 GB, free: 157.7 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 0.1034/5.46, allocations: 20.08 MB / 1.246 GB, free: 140.1 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 1.728e-05/5.46, allocations: 0 / 1.246 GB, free: 140.1 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 0.03172/5.492, allocations: 7.91 MB / 1.254 GB, free: 132.6 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01589/5.508, allocations: 1.265 MB / 1.255 GB, free: 131.4 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.124/5.632, allocations: 42.81 MB / 1.297 GB, free: 88.52 MB / 0.5575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02492/5.657, allocations: 10.58 MB / 1.307 GB, free: 77.89 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008614/5.665, allocations: 0.8801 MB / 1.308 GB, free: 77.02 MB / 0.5575 GB Notification: Performance of SimCode: time 2.114e-06/5.665, allocations: 0 / 1.308 GB, free: 77.02 MB / 0.5575 GB Notification: Performance of Templates: time 1.373/7.039, allocations: 322.8 MB / 1.623 GB, free: 142.2 MB / 0.5575 GB