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_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadModel(Modelica): time 1.63/1.63, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.044e-05/4.06e-05, allocations: 0 / 225 MB, free: 2.34 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2153/0.2154, allocations: 38.77 MB / 263.8 MB, free: 9.844 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1341/0.3495, allocations: 86.57 MB / 350.4 MB, free: 3.141 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/0.3498, allocations: 87.94 kB / 350.4 MB, free: 3.055 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5783/0.9282, allocations: 106.1 MB / 456.5 MB, free: 17.11 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.015e-06/0.9282, allocations: 0 / 456.5 MB, free: 17.11 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003105/0.9286, allocations: 104 kB / 456.6 MB, free: 17.01 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.01516/0.9437, allocations: 5.255 MB / 461.9 MB, free: 11.68 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.9438, allocations: 8.031 kB / 461.9 MB, free: 11.68 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0339/0.9777, allocations: 6.889 MB / 468.8 MB, free: 4.77 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01948/0.9972, allocations: 6.808 MB / 475.6 MB, free: 13.9 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005728/0.9978, allocations: 402.7 kB / 476 MB, free: 13.5 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00226/1, allocations: 0.5387 MB / 476.5 MB, free: 12.96 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.032/1.032, allocations: 12.22 MB / 488.8 MB, free: 15.6 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003232/1.033, allocations: 75.28 kB / 488.8 MB, free: 15.53 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001796/1.034, allocations: 263.9 kB / 489.1 MB, free: 15.27 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002183/1.037, allocations: 1.125 MB / 490.2 MB, free: 14.14 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02604/1.063, allocations: 9.577 MB / 499.8 MB, free: 4.551 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2977/1.36, allocations: 56.49 MB / 0.5432 GB, free: 23.32 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02242/1.383, allocations: 4.068 MB / 0.5472 GB, free: 22.64 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006299/1.389, allocations: 2.265 MB / 0.5494 GB, free: 22.61 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0298/1.419, allocations: 9.486 MB / 0.5587 GB, free: 19.59 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.936e-05/1.419, allocations: 61.67 kB / 0.5587 GB, free: 19.54 MB / 346.7 MB Notification: Performance of pre-optimization done (n=191): time 9.824e-06/1.419, allocations: 0 / 0.5587 GB, free: 19.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=218): time 0.07262/1.492, allocations: 16.49 MB / 0.5748 GB, free: 13.45 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.688e-05/1.492, allocations: 207.4 kB / 0.575 GB, free: 13.23 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01431/1.506, allocations: 4.194 MB / 0.5791 GB, free: 11.77 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005488/1.507, allocations: 56.67 kB / 0.5792 GB, free: 11.72 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004364/1.511, allocations: 3.764 MB / 0.5829 GB, free: 8.969 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001486/1.513, allocations: 0.8266 MB / 0.5837 GB, free: 8.371 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000862/1.514, allocations: 130.3 kB / 0.5838 GB, free: 8.27 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000645/1.514, allocations: 0.5792 MB / 0.5844 GB, free: 7.848 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007647/1.522, allocations: 2.181 MB / 0.5865 GB, free: 7.109 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01044/1.533, allocations: 6.08 MB / 0.5924 GB, free: 1.094 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01855/1.551, allocations: 3.833 MB / 0.5962 GB, free: 14.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002098/1.551, allocations: 44 kB / 0.5962 GB, free: 14.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.02619/1.578, allocations: 8.406 MB / 0.6044 GB, free: 7.699 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001275/1.578, allocations: 67.14 kB / 0.6045 GB, free: 7.637 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001995/1.578, allocations: 140 kB / 0.6046 GB, free: 7.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003499/1.582, allocations: 0.9373 MB / 0.6055 GB, free: 6.762 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006571/1.588, allocations: 1.505 MB / 0.607 GB, free: 5.449 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01501/1.603, allocations: 7.454 MB / 0.6143 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006683/1.61, allocations: 360 kB / 0.6146 GB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001338/1.611, allocations: 397.1 kB / 0.615 GB, free: 13.98 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.001468/1.613, allocations: 0.6147 MB / 0.6156 GB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001082/1.614, allocations: 433 kB / 0.616 GB, free: 12.94 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00867/1.623, allocations: 3.518 MB / 0.6195 GB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.397e-05/1.623, allocations: 24 kB / 0.6195 GB, free: 10 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.802e-05/1.623, allocations: 8 kB / 0.6195 GB, free: 9.996 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-05/1.623, allocations: 11.41 kB / 0.6195 GB, free: 9.992 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02295/1.646, allocations: 9.179 MB / 0.6285 GB, free: 2.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.282e-05/1.646, allocations: 4 kB / 0.6285 GB, free: 2.496 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002265/1.648, allocations: 347.9 kB / 0.6288 GB, free: 2.219 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00307/1.651, allocations: 0.6828 MB / 0.6295 GB, free: 1.727 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003484/1.652, allocations: 39 kB / 0.6295 GB, free: 1.691 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2698/1.921, allocations: 6.557 MB / 0.6359 GB, free: 85.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.844e-06/1.921, allocations: 0 / 0.6359 GB, free: 85.21 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01183/1.933, allocations: 6.221 MB / 0.642 GB, free: 84.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002256/1.936, allocations: 0.734 MB / 0.6427 GB, free: 84.51 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001029/1.937, allocations: 35.31 kB / 0.6427 GB, free: 84.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002646/1.939, allocations: 109.4 kB / 0.6428 GB, free: 84.51 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004297/1.94, allocations: 130.1 kB / 0.643 GB, free: 84.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002053/1.94, allocations: 52.23 kB / 0.643 GB, free: 84.51 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00608/1.946, allocations: 2.959 MB / 0.6459 GB, free: 84.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.144e-06/1.946, allocations: 3.906 kB / 0.6459 GB, free: 84.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007507/1.954, allocations: 1.184 MB / 0.6471 GB, free: 84.3 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.0006218/1.954, allocations: 179.6 kB / 0.6472 GB, free: 84.22 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0107/1.965, allocations: 5.389 MB / 0.6525 GB, free: 83.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/1.965, allocations: 0 / 0.6525 GB, free: 83.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003933/1.969, allocations: 1.905 MB / 0.6544 GB, free: 83.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003505/1.973, allocations: 0.5394 MB / 0.6549 GB, free: 83.72 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02237/1.995, allocations: 9.262 MB / 0.6639 GB, free: 81.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008902/2.004, allocations: 4.109 MB / 0.6679 GB, free: 81.07 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.007815/2.012, allocations: 2.09 MB / 0.67 GB, free: 81.03 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001387/2.013, allocations: 284.7 kB / 0.6703 GB, free: 81.02 MB / 378.7 MB Notification: Performance of SimCode: time 1.863e-06/2.013, allocations: 0 / 0.6703 GB, free: 81.02 MB / 378.7 MB Notification: Performance of Templates: time 0.1155/2.129, allocations: 40.31 MB / 0.7096 GB, free: 61.02 MB / 378.7 MB