Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadModel(Modelica): time 2.071/2.071, allocations: 224.7 MB / 241.1 MB, free: 1.699 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.057e-05/3.078e-05, allocations: 4 kB / 294.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1073, allocations: 50.41 MB / 345 MB, free: 8.965 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.396/0.5034, allocations: 57.31 MB / 402.3 MB, free: 3.125 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03749/0.5409, allocations: 12.61 MB / 414.9 MB, free: 2.781 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01685/0.5578, allocations: 308.8 kB / 415.2 MB, free: 2.781 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01143/0.5693, allocations: 2.988 MB / 418.2 MB, free: 2.777 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03381/0.6032, allocations: 8.192 MB / 426.4 MB, free: 300 kB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005379/0.6086, allocations: 0.7787 MB / 427.2 MB, free: 48 kB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.1177/0.7263, allocations: 47.14 MB / 474.3 MB, free: 1.402 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01311/0.7395, allocations: 5.948 MB / 480.2 MB, free: 11.62 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003056/0.7426, allocations: 1.073 MB / 481.3 MB, free: 10.58 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003999/0.7467, allocations: 1.615 MB / 482.9 MB, free: 8.984 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003607/0.7503, allocations: 0.9155 MB / 483.8 MB, free: 8.07 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001395/0.7518, allocations: 156 kB / 484 MB, free: 7.918 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0034/0.7552, allocations: 1.933 MB / 485.9 MB, free: 5.992 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001914/0.7572, allocations: 344 kB / 486.3 MB, free: 5.656 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01187/0.7691, allocations: 7.24 MB / 493.5 MB, free: 14.61 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.7691, allocations: 0 / 493.5 MB, free: 14.61 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.855e-06/0.7692, allocations: 0 / 493.5 MB, free: 14.61 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003127/0.7695, allocations: 4 kB / 493.5 MB, free: 14.61 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.01642/0.7859, allocations: 4.968 MB / 498.5 MB, free: 9.602 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.439e-05/0.786, allocations: 12.03 kB / 498.5 MB, free: 9.59 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1234/0.9094, allocations: 11.68 MB / 0.4982 GB, free: 13.89 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01361/0.9231, allocations: 3.879 MB / 0.502 GB, free: 9.992 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004318/0.9236, allocations: 303.3 kB / 0.5023 GB, free: 9.734 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002233/0.9258, allocations: 429.6 kB / 0.5027 GB, free: 9.352 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03626/0.9621, allocations: 11.73 MB / 0.5142 GB, free: 12.98 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002612/0.9624, allocations: 55.48 kB / 0.5142 GB, free: 12.93 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001373/0.9638, allocations: 193.3 kB / 0.5144 GB, free: 12.78 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006734/0.9706, allocations: 2.078 MB / 0.5164 GB, free: 10.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03363/1.004, allocations: 9.988 MB / 0.5262 GB, free: 0.707 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0893/1.094, allocations: 45.56 MB / 0.5707 GB, free: 1.992 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3171/1.411, allocations: 4.254 MB / 0.5748 GB, free: 180.7 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02548/1.436, allocations: 9.523 MB / 0.5841 GB, free: 176.5 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.184e-05/1.436, allocations: 55.22 kB / 0.5842 GB, free: 176.5 MB / 474.7 MB Notification: Performance of pre-optimization done (n=171): time 5.54e-06/1.436, allocations: 3.719 kB / 0.5842 GB, free: 176.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=197): time 0.08425/1.521, allocations: 18.53 MB / 0.6023 GB, free: 169.1 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.9e-05/1.521, allocations: 205.2 kB / 0.6025 GB, free: 168.8 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009228/1.53, allocations: 4.437 MB / 0.6068 GB, free: 164.4 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004611/1.531, allocations: 49.7 kB / 0.6069 GB, free: 164.3 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002776/1.533, allocations: 3.499 MB / 0.6103 GB, free: 160.8 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001157/1.535, allocations: 0.76 MB / 0.611 GB, free: 160.1 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006501/1.535, allocations: 124.9 kB / 0.6111 GB, free: 160 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004321/1.536, allocations: 0.5752 MB / 0.6117 GB, free: 159.4 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005369/1.541, allocations: 2.166 MB / 0.6138 GB, free: 157.2 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007562/1.549, allocations: 5.988 MB / 0.6197 GB, free: 149.4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007733/1.557, allocations: 3.534 MB / 0.6231 GB, free: 146 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001124/1.557, allocations: 40 kB / 0.6232 GB, free: 145.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.02313/1.58, allocations: 8.581 MB / 0.6315 GB, free: 137.3 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001031/1.58, allocations: 60 kB / 0.6316 GB, free: 137.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001812/1.58, allocations: 136 kB / 0.6317 GB, free: 137.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005159/1.585, allocations: 1.102 MB / 0.6328 GB, free: 136 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008459/1.594, allocations: 1.435 MB / 0.6342 GB, free: 134.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01533/1.609, allocations: 8.39 MB / 0.6424 GB, free: 126 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006852/1.616, allocations: 355.4 kB / 0.6427 GB, free: 125.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001195/1.617, allocations: 383.2 kB / 0.6431 GB, free: 125.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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.groundColor[3],world.groundColor[2],world.groundColor[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 (756): * Single equations (assignments): 751 * Array equations: 3 * 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%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005763/1.623, allocations: 2.442 MB / 0.6455 GB, free: 122.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001072/1.624, allocations: 411.1 kB / 0.6459 GB, free: 122.4 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01025/1.635, allocations: 3.503 MB / 0.6493 GB, free: 118.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-05/1.635, allocations: 20 kB / 0.6493 GB, free: 118.9 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.939e-05/1.635, allocations: 11.95 kB / 0.6493 GB, free: 118.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.406e-05/1.635, allocations: 7.969 kB / 0.6493 GB, free: 118.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02512/1.66, allocations: 9.07 MB / 0.6582 GB, free: 109.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.094e-05/1.66, allocations: 4 kB / 0.6582 GB, free: 109.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002848/1.663, allocations: 303.6 kB / 0.6585 GB, free: 109.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004663/1.668, allocations: 0.8484 MB / 0.6593 GB, free: 108.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004222/1.668, allocations: 32 kB / 0.6593 GB, free: 108.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01398/1.682, allocations: 7.538 MB / 0.6667 GB, free: 100.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.682, allocations: 4 kB / 0.6667 GB, free: 100.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01497/1.697, allocations: 6.169 MB / 0.6727 GB, free: 94.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001481/1.699, allocations: 471.6 kB / 0.6732 GB, free: 94.02 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001585/1.7, allocations: 35.94 kB / 0.6732 GB, free: 93.98 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003416/1.704, allocations: 104.7 kB / 0.6733 GB, free: 93.88 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006402/1.704, allocations: 121.1 kB / 0.6734 GB, free: 93.76 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002019/1.705, allocations: 56.69 kB / 0.6735 GB, free: 93.71 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007045/1.712, allocations: 3.149 MB / 0.6766 GB, free: 90.56 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.81e-07/1.712, allocations: 0 / 0.6766 GB, free: 90.56 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007225/1.719, allocations: 1.17 MB / 0.6777 GB, free: 89.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (147): * Single equations (assignments): 142 * Array equations: 3 * 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%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008659/1.72, allocations: 193.9 kB / 0.6779 GB, free: 89.21 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01285/1.733, allocations: 5.513 MB / 0.6833 GB, free: 83.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/1.733, allocations: 4 kB / 0.6833 GB, free: 83.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004743/1.738, allocations: 1.883 MB / 0.6851 GB, free: 81.79 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00441/1.742, allocations: 0.5251 MB / 0.6856 GB, free: 81.27 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02897/1.771, allocations: 13.41 MB / 0.6987 GB, free: 67.82 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0077/1.779, allocations: 3.973 MB / 0.7026 GB, free: 63.82 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001705/1.781, allocations: 319.4 kB / 0.7029 GB, free: 63.5 MB / 474.7 MB Notification: Performance of SimCode: time 1.733e-06/1.781, allocations: 0 / 0.7029 GB, free: 63.5 MB / 474.7 MB Notification: Performance of Templates: time 0.5022/2.283, allocations: 108 MB / 0.8084 GB, free: 130.3 MB / 474.7 MB