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_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadModel(ModelicaTest): time 2.44/2.44, allocations: 234.9 MB / 249.4 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.626e-05/3.622e-05, allocations: 4 kB / 308 MB, free: 15.34 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3817/0.3817, allocations: 54.85 MB / 362.9 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.1028/0.4846, allocations: 64.98 MB / 427.8 MB, free: 12.66 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04171/0.5264, allocations: 13.96 MB / 441.8 MB, free: 14.65 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01565/0.5421, allocations: 347.2 kB / 442.1 MB, free: 14.31 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01335/0.5555, allocations: 3.515 MB / 445.7 MB, free: 10.78 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0359/0.5914, allocations: 9.377 MB / 455 MB, free: 1.379 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005702/0.5972, allocations: 0.7645 MB / 455.8 MB, free: 0.6133 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0533/0.6505, allocations: 17.6 MB / 473.4 MB, free: 15 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01483/0.6654, allocations: 6.948 MB / 480.4 MB, free: 8.004 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003933/0.6694, allocations: 1.559 MB / 481.9 MB, free: 6.441 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005593/0.675, allocations: 2.466 MB / 484.4 MB, free: 3.969 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003953/0.679, allocations: 0.9988 MB / 485.4 MB, free: 2.969 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001853/0.6809, allocations: 220 kB / 485.6 MB, free: 2.754 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005127/0.6861, allocations: 2.965 MB / 488.6 MB, free: 15.78 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00264/0.6888, allocations: 500 kB / 489 MB, free: 15.29 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01816/0.7069, allocations: 11.01 MB / 0.4883 GB, free: 4.254 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.707, allocations: 4 kB / 0.4883 GB, free: 4.25 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.297e-06/0.707, allocations: 0 / 0.4883 GB, free: 4.25 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005178/0.7075, allocations: 0 / 0.4883 GB, free: 4.25 MB / 426.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.7021/1.41, allocations: 7.461 MB / 0.4956 GB, free: 33.2 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.876e-05/1.41, allocations: 9.188 kB / 0.4956 GB, free: 33.2 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1376/1.547, allocations: 15.2 MB / 0.5105 GB, free: 31.61 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01685/1.564, allocations: 5.369 MB / 0.5157 GB, free: 30.03 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006763/1.565, allocations: 453.1 kB / 0.5162 GB, free: 30.02 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003392/1.568, allocations: 0.5887 MB / 0.5167 GB, free: 30.01 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05326/1.622, allocations: 20.55 MB / 0.5368 GB, free: 19 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004762/1.622, allocations: 64.06 kB / 0.5369 GB, free: 18.97 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00376/1.626, allocations: 285.9 kB / 0.5371 GB, free: 18.89 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01057/1.637, allocations: 4.294 MB / 0.5413 GB, free: 15.37 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05037/1.687, allocations: 18.12 MB / 0.559 GB, free: 2.82 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1543/1.841, allocations: 75.13 MB / 0.6324 GB, free: 1.137 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03083/1.872, allocations: 8.127 MB / 0.6403 GB, free: 8.773 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005922/1.873, allocations: 71.11 kB / 0.6404 GB, free: 8.723 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.403e-05/1.873, allocations: 77.25 kB / 0.6405 GB, free: 8.637 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=450): time 1.166e-05/1.873, allocations: 1.031 kB / 0.6405 GB, free: 8.637 MB / 0.4949 GB Notification: Performance of matching and sorting (n=497): time 0.1877/2.061, allocations: 42.71 MB / 0.6822 GB, free: 13.75 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001616/2.061, allocations: 227 kB / 0.6824 GB, free: 13.49 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01493/2.076, allocations: 6.029 MB / 0.6883 GB, free: 7.465 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.001509/2.077, allocations: 97.53 kB / 0.6884 GB, free: 7.367 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.006708/2.084, allocations: 5.681 MB / 0.6939 GB, free: 1.684 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.3772/2.461, allocations: 1.796 MB / 0.6957 GB, free: 226.1 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002053/2.464, allocations: 219.5 kB / 0.6959 GB, free: 226.1 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.001169/2.465, allocations: 0.8044 MB / 0.6967 GB, free: 225.8 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0137/2.478, allocations: 4.935 MB / 0.7015 GB, free: 224.7 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01753/2.496, allocations: 11.04 MB / 0.7123 GB, free: 214.9 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01681/2.513, allocations: 7.354 MB / 0.7195 GB, free: 212.1 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002289/2.513, allocations: 61.81 kB / 0.7195 GB, free: 212.1 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1481) (initialization): time 0.0466/2.56, allocations: 17.25 MB / 0.7364 GB, free: 202.9 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.000145/2.56, allocations: 99.06 kB / 0.7364 GB, free: 202.8 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002985/2.56, allocations: 212 kB / 0.7367 GB, free: 202.6 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007932/2.568, allocations: 1.868 MB / 0.7385 GB, free: 201.1 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01651/2.585, allocations: 2.577 MB / 0.741 GB, free: 198.9 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02558/2.61, allocations: 15.05 MB / 0.7557 GB, free: 185 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01167/2.622, allocations: 0.662 MB / 0.7563 GB, free: 184.5 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002394/2.625, allocations: 0.6272 MB / 0.7569 GB, free: 183.9 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 972 * 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 (1357): * Single equations (assignments): 1344 * 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.01126/2.636, allocations: 4.123 MB / 0.761 GB, free: 180.1 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001832/2.638, allocations: 0.6131 MB / 0.7616 GB, free: 179.8 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02797/2.666, allocations: 9.838 MB / 0.7712 GB, free: 169.9 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001767/2.666, allocations: 89.47 kB / 0.7713 GB, free: 169.8 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.358e-05/2.666, allocations: 8 kB / 0.7713 GB, free: 169.8 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001054/2.666, allocations: 23.86 kB / 0.7713 GB, free: 169.8 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05918/2.725, allocations: 21.93 MB / 0.7927 GB, free: 147.8 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.491e-05/2.725, allocations: 12 kB / 0.7927 GB, free: 147.8 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00732/2.733, allocations: 0.7839 MB / 0.7935 GB, free: 147 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007244/2.74, allocations: 1.501 MB / 0.795 GB, free: 145.5 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001197/2.741, allocations: 89.16 kB / 0.795 GB, free: 145.4 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02352/2.765, allocations: 14.07 MB / 0.8088 GB, free: 130.9 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.507e-05/2.765, allocations: 19.88 kB / 0.8088 GB, free: 130.9 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04243/2.807, allocations: 17.51 MB / 0.8259 GB, free: 112.9 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005528/2.813, allocations: 1.403 MB / 0.8273 GB, free: 111.4 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00325/2.816, allocations: 80 kB / 0.8274 GB, free: 111.4 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00685/2.823, allocations: 323 kB / 0.8277 GB, free: 111 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001786/2.825, allocations: 294.1 kB / 0.8279 GB, free: 110.8 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001079/2.826, allocations: 132 kB / 0.8281 GB, free: 110.6 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.00992/2.836, allocations: 4.213 MB / 0.8322 GB, free: 106.4 MB / 0.5418 GB Notification: Performance of sort global known variables: time 9.42e-07/2.836, allocations: 0 / 0.8322 GB, free: 106.4 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01388/2.85, allocations: 2.064 MB / 0.8342 GB, free: 104.4 MB / 0.5418 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 (381): * Single equations (assignments): 368 * 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.001924/2.852, allocations: 260.5 kB / 0.8344 GB, free: 104.1 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.0282/2.88, allocations: 12.19 MB / 0.8463 GB, free: 91.9 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.547e-05/2.88, allocations: 4 kB / 0.8464 GB, free: 91.9 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.01173/2.892, allocations: 4.984 MB / 0.8512 GB, free: 86.87 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006503/2.898, allocations: 0.7249 MB / 0.8519 GB, free: 86.14 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07713/2.976, allocations: 23.95 MB / 0.8753 GB, free: 62.02 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02043/2.996, allocations: 6.246 MB / 0.8814 GB, free: 55.72 MB / 0.5418 GB Notification: Performance of simCode: alias equations: time 0.02594/3.022, allocations: 4.099 MB / 0.8854 GB, free: 51.62 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005105/3.027, allocations: 463.3 kB / 0.8859 GB, free: 51.17 MB / 0.5418 GB Notification: Performance of SimCode: time 2.375e-06/3.027, allocations: 3.938 kB / 0.8859 GB, free: 51.16 MB / 0.5418 GB Notification: Performance of Templates: time 0.5871/3.614, allocations: 70.97 MB / 0.9552 GB, free: 192.7 MB / 0.5418 GB