Running command: translateModel(ModelicaTest.MultiBody.Joints.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.2_cpp_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadModel(ModelicaTest): time 2.119/2.119, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.077e-05/3.099e-05, allocations: 4 kB / 304.9 MB, free: 5.652 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.32/0.3201, allocations: 54.85 MB / 359.8 MB, free: 2.656 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1591/0.4792, allocations: 104 MB / 463.8 MB, free: 8.957 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000255/0.4795, allocations: 79.95 kB / 463.8 MB, free: 8.879 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8356/1.315, allocations: 163.5 MB / 0.6126 GB, free: 75.96 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.772e-06/1.315, allocations: 4 kB / 0.6126 GB, free: 75.96 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000397/1.316, allocations: 159.9 kB / 0.6128 GB, free: 75.8 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.02235/1.338, allocations: 7.5 MB / 0.6201 GB, free: 68.21 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/1.338, allocations: 8.031 kB / 0.6201 GB, free: 68.21 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04954/1.388, allocations: 10.06 MB / 0.63 GB, free: 58.12 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02259/1.41, allocations: 8.416 MB / 0.6382 GB, free: 49.62 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006166/1.411, allocations: 0.6217 MB / 0.6388 GB, free: 48.99 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003316/1.414, allocations: 0.8238 MB / 0.6396 GB, free: 48.17 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04551/1.46, allocations: 20.25 MB / 0.6594 GB, free: 26.45 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003346/1.46, allocations: 87.2 kB / 0.6594 GB, free: 26.37 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002201/1.462, allocations: 395.8 kB / 0.6598 GB, free: 25.98 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002891/1.465, allocations: 2.097 MB / 0.6619 GB, free: 23.88 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03853/1.504, allocations: 17.48 MB / 0.6789 GB, free: 6.383 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4063/1.91, allocations: 85.07 MB / 0.762 GB, free: 33.02 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02099/1.931, allocations: 7.943 MB / 0.7698 GB, free: 31.77 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008716/1.94, allocations: 5.077 MB / 0.7747 GB, free: 31.71 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002997/1.94, allocations: 65.94 kB / 0.7748 GB, free: 31.71 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.837e-05/1.94, allocations: 77.53 kB / 0.7749 GB, free: 31.67 MB / 474.7 MB Notification: Performance of pre-optimization done (n=450): time 1.061e-05/1.94, allocations: 0 / 0.7749 GB, free: 31.67 MB / 474.7 MB Notification: Performance of matching and sorting (n=501): time 0.1225/2.063, allocations: 37.62 MB / 0.8116 GB, free: 20.43 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.268e-05/2.063, allocations: 232.2 kB / 0.8118 GB, free: 20.21 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01188/2.075, allocations: 5.671 MB / 0.8174 GB, free: 18.25 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008976/2.076, allocations: 90.64 kB / 0.8174 GB, free: 18.16 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003762/2.08, allocations: 5.527 MB / 0.8228 GB, free: 13.95 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002139/2.082, allocations: 1.817 MB / 0.8246 GB, free: 12.6 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001061/2.083, allocations: 219.6 kB / 0.8248 GB, free: 12.43 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000734/2.084, allocations: 0.8026 MB / 0.8256 GB, free: 11.91 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009772/2.093, allocations: 4.808 MB / 0.8303 GB, free: 10.28 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01371/2.107, allocations: 10.87 MB / 0.8409 GB, free: 0.5469 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02001/2.127, allocations: 7.543 MB / 0.8483 GB, free: 11.33 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001966/2.127, allocations: 64 kB / 0.8484 GB, free: 11.27 MB / 490.7 MB Notification: Performance of matching and sorting (n=1487) (initialization): time 0.04682/2.174, allocations: 16.19 MB / 0.8642 GB, free: 13.53 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003022/2.175, allocations: 98.34 kB / 0.8643 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005875/2.175, allocations: 212.8 kB / 0.8645 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006438/2.182, allocations: 1.717 MB / 0.8661 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01256/2.194, allocations: 2.6 MB / 0.8687 GB, free: 9.66 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02514/2.219, allocations: 14.12 MB / 0.8825 GB, free: 12.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01022/2.23, allocations: 0.661 MB / 0.8831 GB, free: 12.24 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00186/2.232, allocations: 0.63 MB / 0.8837 GB, free: 11.62 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 976 * Number of states: 0 () * Number of discrete variables: 48 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],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 (1363): * Single equations (assignments): 1350 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002315/2.234, allocations: 0.9255 MB / 0.8846 GB, free: 10.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001627/2.236, allocations: 0.6131 MB / 0.8852 GB, free: 10.08 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0233/2.259, allocations: 9.607 MB / 0.8946 GB, free: 2.031 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001756/2.259, allocations: 87.84 kB / 0.8947 GB, free: 1.949 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.029e-05/2.259, allocations: 12 kB / 0.8947 GB, free: 1.938 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.093e-05/2.259, allocations: 27.06 kB / 0.8947 GB, free: 1.934 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.348/2.607, allocations: 21.61 MB / 0.9158 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.704e-05/2.607, allocations: 12.16 kB / 0.9158 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005254/2.613, allocations: 0.796 MB / 0.9166 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005919/2.619, allocations: 1.351 MB / 0.9179 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001736/2.62, allocations: 95.14 kB / 0.918 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03877/2.659, allocations: 12.88 MB / 0.9306 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.604e-05/2.659, allocations: 11.16 kB / 0.9306 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05186/2.711, allocations: 17.13 MB / 0.9473 GB, free: 113.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004191/2.715, allocations: 1.388 MB / 0.9487 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001721/2.717, allocations: 84.78 kB / 0.9488 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004531/2.722, allocations: 315.2 kB / 0.9491 GB, free: 112.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00126/2.723, allocations: 306.7 kB / 0.9494 GB, free: 112.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000544/2.724, allocations: 133.3 kB / 0.9495 GB, free: 112.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008837/2.732, allocations: 3.931 MB / 0.9533 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.002e-06/2.732, allocations: 0 / 0.9533 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01215/2.745, allocations: 2.032 MB / 0.9553 GB, free: 111.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 (385): * Single equations (assignments): 372 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001063/2.746, allocations: 255.2 kB / 0.9556 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02152/2.767, allocations: 11.62 MB / 0.9669 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.133e-05/2.767, allocations: 3.562 kB / 0.9669 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009166/2.776, allocations: 4.795 MB / 0.9716 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005113/2.782, allocations: 0.7313 MB / 0.9723 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0402/2.822, allocations: 18.28 MB / 0.9902 GB, free: 93.14 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01237/2.834, allocations: 6.281 MB / 0.9963 GB, free: 88.51 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003189/2.837, allocations: 0.5312 MB / 0.9968 GB, free: 88.01 MB / 0.5105 GB Notification: Performance of SimCode: time 2.201e-06/2.838, allocations: 0 / 0.9968 GB, free: 88.01 MB / 0.5105 GB Notification: Performance of Templates: time 0.6543/3.492, allocations: 256 MB / 1.247 GB, free: 6.152 MB / 0.5105 GB