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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadModel(Modelica): time 1.808/1.808, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.963e-05/2.991e-05, allocations: 3.281 kB / 255.3 MB, free: 3.195 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0795/0.07956, allocations: 44.5 MB / 299.8 MB, free: 6.641 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.366/0.4456, allocations: 92.75 MB / 392.6 MB, free: 19.62 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/0.4459, allocations: 85.03 kB / 392.7 MB, free: 19.62 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3876/0.8335, allocations: 106.4 MB / 499 MB, free: 5.391 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.8336, allocations: 0 / 499 MB, free: 5.391 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003533/0.8339, allocations: 104 kB / 499.1 MB, free: 5.289 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1843 * Number of variables: 1843 Notification: Performance of Generate backend data structure: time 0.01833/0.8523, allocations: 5.259 MB / 0.4926 GB, free: 15.96 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.8523, allocations: 12.03 kB / 0.4926 GB, free: 15.95 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03787/0.8902, allocations: 6.935 MB / 0.4994 GB, free: 8.996 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02158/0.9118, allocations: 6.808 MB / 0.506 GB, free: 2.129 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006055/0.9125, allocations: 410.7 kB / 0.5064 GB, free: 1.727 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002562/0.9151, allocations: 0.5271 MB / 0.5069 GB, free: 1.199 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2657/1.181, allocations: 12.66 MB / 0.5193 GB, free: 60.85 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003543/1.181, allocations: 79.02 kB / 0.5193 GB, free: 60.85 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001747/1.183, allocations: 261.7 kB / 0.5196 GB, free: 60.85 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002062/1.185, allocations: 1.123 MB / 0.5207 GB, free: 60.84 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02572/1.211, allocations: 10.29 MB / 0.5307 GB, free: 60.8 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07051/1.281, allocations: 57.09 MB / 0.5865 GB, free: 39.73 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0138/1.295, allocations: 4.365 MB / 0.5908 GB, free: 38.02 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003853/1.299, allocations: 2.379 MB / 0.5931 GB, free: 36.96 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0196/1.319, allocations: 9.966 MB / 0.6028 GB, free: 32.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.57e-05/1.319, allocations: 63.36 kB / 0.6029 GB, free: 32.06 MB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 5.787e-06/1.319, allocations: 0 / 0.6029 GB, free: 32.06 MB / 410.7 MB Notification: Performance of matching and sorting (n=218): time 0.05568/1.375, allocations: 16.17 MB / 0.6187 GB, free: 26 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.322e-05/1.375, allocations: 202.7 kB / 0.6189 GB, free: 25.79 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008189/1.383, allocations: 4.185 MB / 0.623 GB, free: 23.72 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003758/1.383, allocations: 57.7 kB / 0.623 GB, free: 23.66 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00242/1.386, allocations: 3.625 MB / 0.6265 GB, free: 20.38 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009177/1.387, allocations: 0.8299 MB / 0.6274 GB, free: 19.64 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004962/1.387, allocations: 132 kB / 0.6275 GB, free: 19.52 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004881/1.388, allocations: 0.5862 MB / 0.6281 GB, free: 19 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004108/1.392, allocations: 2.187 MB / 0.6302 GB, free: 17.02 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008007/1.4, allocations: 6.131 MB / 0.6362 GB, free: 9.367 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007814/1.408, allocations: 3.638 MB / 0.6397 GB, free: 6.309 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001296/1.408, allocations: 40 kB / 0.6398 GB, free: 6.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.02258/1.43, allocations: 8.639 MB / 0.6482 GB, free: 14.73 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001325/1.431, allocations: 68 kB / 0.6483 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002039/1.431, allocations: 136 kB / 0.6484 GB, free: 14.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003889/1.435, allocations: 0.9389 MB / 0.6493 GB, free: 13.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006843/1.442, allocations: 1.505 MB / 0.6508 GB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01316/1.455, allocations: 7.418 MB / 0.658 GB, free: 5.566 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007827/1.463, allocations: 358.6 kB / 0.6584 GB, free: 5.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001344/1.464, allocations: 394.6 kB / 0.6587 GB, free: 4.871 MB / 426.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.001715/1.466, allocations: 0.6119 MB / 0.6593 GB, free: 4.262 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00109/1.467, allocations: 426.5 kB / 0.6598 GB, free: 3.84 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009127/1.476, allocations: 3.546 MB / 0.6632 GB, free: 0.9023 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.472e-05/1.476, allocations: 24 kB / 0.6632 GB, free: 0.8789 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.072e-05/1.476, allocations: 8 kB / 0.6632 GB, free: 0.8711 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.124e-05/1.476, allocations: 9.188 kB / 0.6633 GB, free: 0.8711 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2651/1.741, allocations: 9.227 MB / 0.6723 GB, free: 84.99 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.608e-05/1.741, allocations: 6.719 kB / 0.6723 GB, free: 84.99 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002422/1.744, allocations: 344.4 kB / 0.6726 GB, free: 84.99 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003171/1.747, allocations: 0.6864 MB / 0.6733 GB, free: 84.98 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004032/1.748, allocations: 40.8 kB / 0.6733 GB, free: 84.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01009/1.758, allocations: 6.546 MB / 0.6797 GB, free: 82.39 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/1.758, allocations: 0 / 0.6797 GB, free: 82.39 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01181/1.77, allocations: 6.255 MB / 0.6858 GB, free: 81.77 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002349/1.772, allocations: 0.7369 MB / 0.6865 GB, free: 81.67 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001024/1.773, allocations: 41.94 kB / 0.6866 GB, free: 81.67 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00268/1.776, allocations: 103.7 kB / 0.6867 GB, free: 81.67 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005552/1.776, allocations: 131.7 kB / 0.6868 GB, free: 81.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002042/1.777, allocations: 63.64 kB / 0.6869 GB, free: 81.67 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006745/1.783, allocations: 2.95 MB / 0.6897 GB, free: 81.46 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.012e-06/1.783, allocations: 0 / 0.6897 GB, free: 81.46 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007681/1.791, allocations: 1.194 MB / 0.6909 GB, free: 81.46 MB / 426.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.0006638/1.792, allocations: 174.6 kB / 0.6911 GB, free: 81.38 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0112/1.803, allocations: 5.646 MB / 0.6966 GB, free: 81.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.026e-06/1.803, allocations: 0 / 0.6966 GB, free: 81.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003835/1.807, allocations: 1.949 MB / 0.6985 GB, free: 80.85 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003382/1.81, allocations: 0.522 MB / 0.699 GB, free: 80.83 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02346/1.834, allocations: 9.882 MB / 0.7086 GB, free: 78.97 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008701/1.843, allocations: 4.106 MB / 0.7127 GB, free: 78.15 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001471/1.844, allocations: 338.9 kB / 0.713 GB, free: 78.14 MB / 426.7 MB Notification: Performance of SimCode: time 1.713e-06/1.844, allocations: 0 / 0.713 GB, free: 78.14 MB / 426.7 MB Notification: Performance of Templates: time 0.3982/2.242, allocations: 111.8 MB / 0.8222 GB, free: 87.35 MB / 426.7 MB