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_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadModel(Modelica): time 1.665/1.665, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.801e-05/2.821e-05, allocations: 4 kB / 225 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2124/0.2125, allocations: 38.77 MB / 263.8 MB, free: 9.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1296/0.3422, allocations: 86.55 MB / 350.3 MB, free: 3.168 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002755/0.3425, allocations: 87.94 kB / 350.4 MB, free: 3.082 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6024/0.9449, allocations: 106.1 MB / 456.5 MB, free: 17.13 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.461e-06/0.945, allocations: 3.938 kB / 456.5 MB, free: 17.12 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003078/0.9453, allocations: 112 kB / 456.6 MB, free: 17.02 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1842 * Number of variables: 1842 Notification: Performance of Generate backend data structure: time 0.01557/0.9609, allocations: 5.248 MB / 461.9 MB, free: 11.7 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.961, allocations: 16.02 kB / 461.9 MB, free: 11.68 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03435/0.9953, allocations: 6.893 MB / 468.8 MB, free: 4.773 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01957/1.015, allocations: 6.789 MB / 475.6 MB, free: 13.92 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005908/1.016, allocations: 410.7 kB / 476 MB, free: 13.52 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002318/1.018, allocations: 0.5308 MB / 476.5 MB, free: 12.99 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0329/1.051, allocations: 12.23 MB / 488.7 MB, free: 15.61 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002903/1.051, allocations: 71.34 kB / 488.8 MB, free: 15.54 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001491/1.053, allocations: 255.9 kB / 489 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00226/1.055, allocations: 1.129 MB / 490.2 MB, free: 14.16 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02643/1.081, allocations: 9.581 MB / 499.8 MB, free: 4.566 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2763/1.358, allocations: 56.49 MB / 0.5432 GB, free: 22.29 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01246/1.37, allocations: 4.081 MB / 0.5472 GB, free: 21.61 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003752/1.374, allocations: 2.259 MB / 0.5494 GB, free: 21.58 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01753/1.392, allocations: 9.489 MB / 0.5587 GB, free: 18.52 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.231e-05/1.392, allocations: 54.62 kB / 0.5587 GB, free: 18.47 MB / 346.7 MB Notification: Performance of pre-optimization done (n=191): time 6.067e-06/1.392, allocations: 0 / 0.5587 GB, free: 18.47 MB / 346.7 MB Notification: Performance of matching and sorting (n=218): time 0.05763/1.449, allocations: 16.49 MB / 0.5748 GB, free: 12.39 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.069e-05/1.449, allocations: 201.9 kB / 0.575 GB, free: 12.17 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008314/1.458, allocations: 4.194 MB / 0.5791 GB, free: 10.71 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003673/1.458, allocations: 56.7 kB / 0.5792 GB, free: 10.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002511/1.461, allocations: 3.628 MB / 0.5827 GB, free: 7.934 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001029/1.462, allocations: 0.8324 MB / 0.5835 GB, free: 7.328 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006181/1.462, allocations: 131.5 kB / 0.5836 GB, free: 7.227 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004084/1.463, allocations: 0.5842 MB / 0.5842 GB, free: 6.801 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004539/1.467, allocations: 2.181 MB / 0.5863 GB, free: 6.059 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006694/1.474, allocations: 6.077 MB / 0.5923 GB, free: 48 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01249/1.487, allocations: 3.899 MB / 0.5961 GB, free: 13.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001377/1.487, allocations: 40 kB / 0.5961 GB, free: 13.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.02187/1.509, allocations: 8.237 MB / 0.6042 GB, free: 7.055 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001249/1.509, allocations: 64.19 kB / 0.6042 GB, free: 6.992 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001954/1.509, allocations: 140 kB / 0.6044 GB, free: 6.855 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003615/1.513, allocations: 0.9379 MB / 0.6053 GB, free: 6.113 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006915/1.52, allocations: 1.503 MB / 0.6067 GB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01456/1.534, allocations: 7.464 MB / 0.614 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006894/1.541, allocations: 357.8 kB / 0.6144 GB, free: 13.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001479/1.543, allocations: 397.2 kB / 0.6148 GB, free: 13.36 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 635 * Number of states: 0 () * Number of discrete variables: 42 (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 (795): * Single equations (assignments): 790 * 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.001601/1.544, allocations: 0.6183 MB / 0.6154 GB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001139/1.546, allocations: 426.5 kB / 0.6158 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009441/1.555, allocations: 3.524 MB / 0.6192 GB, free: 9.402 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-05/1.555, allocations: 24 kB / 0.6192 GB, free: 9.379 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.998e-05/1.555, allocations: 7.938 kB / 0.6192 GB, free: 9.371 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.646e-05/1.555, allocations: 15.17 kB / 0.6193 GB, free: 9.363 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02489/1.58, allocations: 9.177 MB / 0.6282 GB, free: 1.875 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.369e-05/1.58, allocations: 0 / 0.6282 GB, free: 1.875 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00238/1.583, allocations: 345.4 kB / 0.6285 GB, free: 1.602 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003132/1.586, allocations: 0.6871 MB / 0.6292 GB, free: 1.105 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003706/1.586, allocations: 36 kB / 0.6292 GB, free: 1.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2312/1.817, allocations: 6.563 MB / 0.6357 GB, free: 83.63 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/1.817, allocations: 0 / 0.6357 GB, free: 83.63 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01165/1.829, allocations: 6.208 MB / 0.6417 GB, free: 83.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002152/1.831, allocations: 0.7396 MB / 0.6424 GB, free: 82.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009661/1.832, allocations: 37.2 kB / 0.6425 GB, free: 82.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00259/1.835, allocations: 106.9 kB / 0.6426 GB, free: 82.93 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004743/1.835, allocations: 135.4 kB / 0.6427 GB, free: 82.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002079/1.836, allocations: 57.66 kB / 0.6428 GB, free: 82.92 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.006422/1.842, allocations: 2.954 MB / 0.6456 GB, free: 82.72 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.246e-06/1.842, allocations: 5.625 kB / 0.6457 GB, free: 82.72 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007576/1.85, allocations: 1.185 MB / 0.6468 GB, free: 82.72 MB / 378.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 (169): * Single equations (assignments): 164 * 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.0006362/1.85, allocations: 183.1 kB / 0.647 GB, free: 82.63 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01063/1.861, allocations: 5.392 MB / 0.6523 GB, free: 82.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.418e-06/1.861, allocations: 0 / 0.6523 GB, free: 82.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003724/1.865, allocations: 1.907 MB / 0.6541 GB, free: 82.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003371/1.868, allocations: 0.5291 MB / 0.6546 GB, free: 82.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0233/1.892, allocations: 9.864 MB / 0.6643 GB, free: 80.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00813/1.9, allocations: 4.114 MB / 0.6683 GB, free: 79.46 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00158/1.901, allocations: 330.7 kB / 0.6686 GB, free: 79.46 MB / 378.7 MB Notification: Performance of SimCode: time 2.026e-06/1.901, allocations: 3.812 kB / 0.6686 GB, free: 79.46 MB / 378.7 MB Notification: Performance of Templates: time 0.3705/2.272, allocations: 110.6 MB / 0.7767 GB, free: 87.85 MB / 378.7 MB