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_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadModel(Modelica): time 1.983/1.983, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.832e-05/2.84e-05, allocations: 4 kB / 292.7 MB, free: 8.336 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0897/0.08975, allocations: 50.4 MB / 343.1 MB, free: 5.906 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3961/0.4859, allocations: 99.63 MB / 442.7 MB, free: 10.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000267/0.4862, allocations: 85.2 kB / 442.8 MB, free: 10.81 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6367/1.123, allocations: 104.3 MB / 0.5343 GB, free: 93.23 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.222e-06/1.123, allocations: 0 / 0.5343 GB, free: 93.23 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003498/1.123, allocations: 114 kB / 0.5344 GB, free: 93.23 MB / 442.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.01621/1.14, allocations: 5.107 MB / 0.5394 GB, free: 91.2 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/1.14, allocations: 9.469 kB / 0.5394 GB, free: 91.2 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04134/1.181, allocations: 6.895 MB / 0.5461 GB, free: 90.85 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01891/1.2, allocations: 6.422 MB / 0.5524 GB, free: 90.12 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003798/1.2, allocations: 394.5 kB / 0.5528 GB, free: 90.11 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001897/1.202, allocations: 0.518 MB / 0.5533 GB, free: 90.1 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02698/1.229, allocations: 12.15 MB / 0.5651 GB, free: 87.07 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002496/1.23, allocations: 72.12 kB / 0.5652 GB, free: 87.06 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00109/1.231, allocations: 247.5 kB / 0.5654 GB, free: 87.06 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001586/1.232, allocations: 1.069 MB / 0.5665 GB, free: 87.05 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02359/1.256, allocations: 9.681 MB / 0.5759 GB, free: 86.51 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0644/1.32, allocations: 55.56 MB / 0.6302 GB, free: 44.5 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01307/1.333, allocations: 4.127 MB / 0.6342 GB, free: 42.8 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003511/1.337, allocations: 2.213 MB / 0.6364 GB, free: 40.77 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01703/1.354, allocations: 9.368 MB / 0.6455 GB, free: 32.67 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.561e-05/1.354, allocations: 51.38 kB / 0.6456 GB, free: 32.62 MB / 442.7 MB Notification: Performance of pre-optimization done (n=171): time 6.272e-06/1.354, allocations: 4 kB / 0.6456 GB, free: 32.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=197): time 0.0486/1.403, allocations: 15.06 MB / 0.6603 GB, free: 19.72 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.655e-05/1.403, allocations: 205.2 kB / 0.6605 GB, free: 19.48 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007419/1.41, allocations: 4.104 MB / 0.6645 GB, free: 15.83 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003308/1.411, allocations: 49.7 kB / 0.6645 GB, free: 15.78 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002429/1.413, allocations: 3.657 MB / 0.6681 GB, free: 12.5 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008135/1.414, allocations: 0.7572 MB / 0.6688 GB, free: 11.83 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003837/1.414, allocations: 124 kB / 0.669 GB, free: 11.71 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003554/1.415, allocations: 0.5677 MB / 0.6695 GB, free: 11.21 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003555/1.418, allocations: 2.033 MB / 0.6715 GB, free: 9.379 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005647/1.424, allocations: 5.835 MB / 0.6772 GB, free: 1.93 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006705/1.431, allocations: 3.464 MB / 0.6806 GB, free: 15.01 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001177/1.431, allocations: 43.95 kB / 0.6806 GB, free: 14.96 MB / 458.7 MB Notification: Performance of matching and sorting (n=822) (initialization): time 0.02814/1.459, allocations: 8.011 MB / 0.6884 GB, free: 7.25 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002039/1.459, allocations: 64 kB / 0.6885 GB, free: 7.188 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003167/1.46, allocations: 140 kB / 0.6886 GB, free: 7.051 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006704/1.466, allocations: 0.9342 MB / 0.6896 GB, free: 6.113 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01179/1.478, allocations: 1.427 MB / 0.691 GB, free: 4.684 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2834/1.762, allocations: 7.41 MB / 0.6982 GB, free: 94.01 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005984/1.768, allocations: 336.5 kB / 0.6985 GB, free: 94.01 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001124/1.769, allocations: 389.6 kB / 0.6989 GB, free: 94.01 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 47 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (760): * Single equations (assignments): 755 * 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.001198/1.77, allocations: 0.602 MB / 0.6995 GB, free: 93.89 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000918/1.771, allocations: 413.3 kB / 0.6999 GB, free: 93.89 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007869/1.779, allocations: 3.163 MB / 0.7029 GB, free: 93.76 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.371e-05/1.779, allocations: 21.28 kB / 0.703 GB, free: 93.76 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.416e-05/1.779, allocations: 7.719 kB / 0.703 GB, free: 93.76 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.943e-05/1.779, allocations: 14.3 kB / 0.703 GB, free: 93.75 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02135/1.801, allocations: 8.522 MB / 0.7113 GB, free: 93.24 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.851e-05/1.801, allocations: 1.375 kB / 0.7113 GB, free: 93.24 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001933/1.803, allocations: 304.7 kB / 0.7116 GB, free: 93.24 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00281/1.805, allocations: 0.6913 MB / 0.7123 GB, free: 93.22 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002156/1.806, allocations: 30.33 kB / 0.7123 GB, free: 93.22 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009562/1.815, allocations: 6.543 MB / 0.7187 GB, free: 90.64 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.201e-06/1.815, allocations: 3.906 kB / 0.7187 GB, free: 90.64 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01048/1.826, allocations: 5.681 MB / 0.7243 GB, free: 90.02 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001373/1.827, allocations: 457.3 kB / 0.7247 GB, free: 89.86 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008073/1.828, allocations: 34.97 kB / 0.7247 GB, free: 89.86 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00248/1.83, allocations: 94.41 kB / 0.7248 GB, free: 89.86 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005232/1.831, allocations: 123.1 kB / 0.7249 GB, free: 89.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001927/1.831, allocations: 48.77 kB / 0.725 GB, free: 89.86 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006496/1.838, allocations: 2.89 MB / 0.7278 GB, free: 89.66 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.373e-06/1.838, allocations: 2.562 kB / 0.7278 GB, free: 89.66 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007622/1.845, allocations: 1.133 MB / 0.7289 GB, free: 89.66 MB / 458.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.0006458/1.846, allocations: 181.3 kB / 0.7291 GB, free: 89.57 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009821/1.856, allocations: 5.042 MB / 0.734 GB, free: 88.64 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.682e-06/1.856, allocations: 2.188 kB / 0.734 GB, free: 88.64 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00361/1.86, allocations: 1.74 MB / 0.7357 GB, free: 87.91 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003317/1.863, allocations: 0.5173 MB / 0.7362 GB, free: 87.69 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03116/1.894, allocations: 8.807 MB / 0.7448 GB, free: 84.56 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01051/1.905, allocations: 3.965 MB / 0.7487 GB, free: 83.14 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01166/1.916, allocations: 2.007 MB / 0.7506 GB, free: 83.09 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001638/1.918, allocations: 272.7 kB / 0.7509 GB, free: 83.08 MB / 458.7 MB Notification: Performance of SimCode: time 2.799e-06/1.918, allocations: 0 / 0.7509 GB, free: 83.08 MB / 458.7 MB Notification: Performance of Templates: time 0.12/2.038, allocations: 38.69 MB / 0.7887 GB, free: 70.08 MB / 458.7 MB