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_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadModel(Modelica): time 1.761/1.761, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.729e-05/2.752e-05, allocations: 4 kB / 255.4 MB, free: 2.707 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1025, allocations: 44.5 MB / 299.9 MB, free: 6.152 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.396/0.4986, allocations: 92.76 MB / 392.6 MB, free: 19.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002447/0.4989, allocations: 83.83 kB / 392.7 MB, free: 19.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4527/0.9516, allocations: 106.4 MB / 499.1 MB, free: 4.871 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.653e-06/0.9516, allocations: 0 / 499.1 MB, free: 4.871 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003452/0.952, allocations: 108 kB / 499.2 MB, free: 4.766 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.01749/0.9695, allocations: 5.248 MB / 0.4926 GB, free: 15.45 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.9695, allocations: 8.031 kB / 0.4926 GB, free: 15.44 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04166/1.011, allocations: 6.939 MB / 0.4994 GB, free: 8.484 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02145/1.033, allocations: 6.816 MB / 0.5061 GB, free: 1.609 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005809/1.033, allocations: 418.7 kB / 0.5065 GB, free: 1.199 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002307/1.036, allocations: 0.531 MB / 0.507 GB, free: 0.668 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2922/1.328, allocations: 12.59 MB / 0.5193 GB, free: 60.72 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003297/1.328, allocations: 77.98 kB / 0.5194 GB, free: 60.72 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001668/1.33, allocations: 256.7 kB / 0.5196 GB, free: 60.72 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002023/1.332, allocations: 1.127 MB / 0.5207 GB, free: 60.71 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02513/1.357, allocations: 10.08 MB / 0.5305 GB, free: 60.69 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06672/1.424, allocations: 57.08 MB / 0.5863 GB, free: 39.51 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01328/1.437, allocations: 4.342 MB / 0.5905 GB, free: 37.81 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003844/1.441, allocations: 2.377 MB / 0.5929 GB, free: 36.76 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01921/1.46, allocations: 9.97 MB / 0.6026 GB, free: 31.92 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.93e-05/1.46, allocations: 61.25 kB / 0.6026 GB, free: 31.86 MB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 5.583e-06/1.46, allocations: 3.609 kB / 0.6027 GB, free: 31.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=218): time 0.07545/1.536, allocations: 16.16 MB / 0.6184 GB, free: 25.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/1.536, allocations: 202.3 kB / 0.6186 GB, free: 25.59 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01671/1.553, allocations: 4.178 MB / 0.6227 GB, free: 23.45 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006892/1.554, allocations: 59.19 kB / 0.6228 GB, free: 23.39 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005442/1.559, allocations: 3.762 MB / 0.6264 GB, free: 20.03 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001858/1.561, allocations: 0.8366 MB / 0.6273 GB, free: 19.29 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001044/1.562, allocations: 132 kB / 0.6274 GB, free: 19.16 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0009967/1.563, allocations: 0.5813 MB / 0.6279 GB, free: 18.65 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009218/1.572, allocations: 2.194 MB / 0.6301 GB, free: 16.67 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01351/1.586, allocations: 6.082 MB / 0.636 GB, free: 9.07 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007666/1.594, allocations: 3.645 MB / 0.6396 GB, free: 6.016 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001169/1.594, allocations: 40 kB / 0.6396 GB, free: 5.977 MB / 410.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.02214/1.616, allocations: 8.422 MB / 0.6478 GB, free: 14.64 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001247/1.616, allocations: 68 kB / 0.6479 GB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002175/1.616, allocations: 139.4 kB / 0.648 GB, free: 14.44 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003561/1.62, allocations: 0.9394 MB / 0.649 GB, free: 13.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007103/1.627, allocations: 1.502 MB / 0.6504 GB, free: 12.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01371/1.641, allocations: 7.414 MB / 0.6577 GB, free: 5.477 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007043/1.648, allocations: 349.9 kB / 0.658 GB, free: 5.168 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001363/1.649, allocations: 403.1 kB / 0.6584 GB, free: 4.781 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.00145/1.651, allocations: 0.6108 MB / 0.659 GB, free: 4.172 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001068/1.652, allocations: 426.5 kB / 0.6594 GB, free: 3.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008656/1.661, allocations: 3.545 MB / 0.6629 GB, free: 0.8125 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.588e-05/1.661, allocations: 24 kB / 0.6629 GB, free: 0.7891 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.63e-05/1.661, allocations: 4 kB / 0.6629 GB, free: 0.7852 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.25e-05/1.661, allocations: 14.55 kB / 0.6629 GB, free: 0.7812 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3019/1.963, allocations: 9.308 MB / 0.672 GB, free: 85.01 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.153e-05/1.963, allocations: 2.062 kB / 0.672 GB, free: 85.01 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002638/1.965, allocations: 343.5 kB / 0.6723 GB, free: 85.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003406/1.969, allocations: 0.6887 MB / 0.673 GB, free: 85 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003137/1.969, allocations: 41.16 kB / 0.673 GB, free: 85 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01064/1.98, allocations: 6.547 MB / 0.6794 GB, free: 82.41 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.888e-06/1.98, allocations: 1.375 kB / 0.6794 GB, free: 82.41 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01147/1.991, allocations: 6.253 MB / 0.6855 GB, free: 81.79 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002211/1.994, allocations: 0.7434 MB / 0.6863 GB, free: 81.69 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008263/1.994, allocations: 37.16 kB / 0.6863 GB, free: 81.69 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002448/1.997, allocations: 113.7 kB / 0.6864 GB, free: 81.69 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004698/1.997, allocations: 131.9 kB / 0.6865 GB, free: 81.69 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002184/1.998, allocations: 52.44 kB / 0.6866 GB, free: 81.69 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005596/2.003, allocations: 2.951 MB / 0.6895 GB, free: 81.48 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.83e-07/2.003, allocations: 6.219 kB / 0.6895 GB, free: 81.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00703/2.01, allocations: 1.184 MB / 0.6906 GB, free: 81.48 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.0005321/2.011, allocations: 176 kB / 0.6908 GB, free: 81.4 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01049/2.021, allocations: 5.423 MB / 0.6961 GB, free: 81.14 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.676e-06/2.021, allocations: 0 / 0.6961 GB, free: 81.14 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003758/2.025, allocations: 1.926 MB / 0.698 GB, free: 80.91 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002912/2.028, allocations: 0.5302 MB / 0.6985 GB, free: 80.89 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02042/2.049, allocations: 9.26 MB / 0.7075 GB, free: 79.06 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009029/2.058, allocations: 4.107 MB / 0.7115 GB, free: 78.24 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.01224/2.07, allocations: 2.093 MB / 0.7136 GB, free: 78.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002016/2.072, allocations: 285.4 kB / 0.7138 GB, free: 78.19 MB / 426.7 MB Notification: Performance of SimCode: time 2.932e-06/2.072, allocations: 6.438 kB / 0.7139 GB, free: 78.19 MB / 426.7 MB Notification: Performance of Templates: time 0.1352/2.207, allocations: 40.31 MB / 0.7532 GB, free: 69.83 MB / 426.7 MB