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.588/1.588, allocations: 171.2 MB / 185.7 MB, free: 1.402 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.708e-05/2.713e-05, allocations: 6.188 kB / 228.2 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07742/0.07747, allocations: 38.77 MB / 266.9 MB, free: 484 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2955/0.3731, allocations: 55.29 MB / 322.2 MB, free: 2.867 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.03499/0.4081, allocations: 12.2 MB / 334.4 MB, free: 10.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01461/0.4228, allocations: 297 kB / 334.7 MB, free: 10.58 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01082/0.4336, allocations: 2.931 MB / 337.6 MB, free: 8.41 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03051/0.4642, allocations: 7.925 MB / 345.6 MB, free: 1.539 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005024/0.4693, allocations: 0.78 MB / 346.3 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.04967/0.519, allocations: 16.78 MB / 363.1 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01288/0.5319, allocations: 5.976 MB / 369.1 MB, free: 9.938 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002952/0.5349, allocations: 1.114 MB / 370.2 MB, free: 8.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003853/0.5388, allocations: 1.683 MB / 371.9 MB, free: 7.133 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003254/0.5421, allocations: 0.9442 MB / 372.8 MB, free: 6.188 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001494/0.5437, allocations: 164 kB / 373 MB, free: 6.027 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003455/0.5472, allocations: 2.01 MB / 375 MB, free: 4.012 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001896/0.5491, allocations: 360 kB / 375.4 MB, free: 3.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01215/0.5613, allocations: 7.57 MB / 382.9 MB, free: 12.07 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.5614, allocations: 0 / 382.9 MB, free: 12.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.5614, allocations: 0 / 382.9 MB, free: 12.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003076/0.5617, allocations: 0 / 382.9 MB, free: 12.07 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.01796/0.5797, allocations: 5.216 MB / 388.1 MB, free: 6.785 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.5797, allocations: 11.97 kB / 388.2 MB, free: 6.773 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1277/0.7074, allocations: 11.71 MB / 399.9 MB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02066/0.7281, allocations: 4.267 MB / 404.1 MB, free: 6.715 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006383/0.7288, allocations: 316.1 kB / 404.4 MB, free: 6.402 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002904/0.7318, allocations: 423.7 kB / 404.9 MB, free: 5.988 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0426/0.7744, allocations: 12 MB / 416.9 MB, free: 9.223 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002575/0.7747, allocations: 59.42 kB / 416.9 MB, free: 9.164 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001375/0.7761, allocations: 195.8 kB / 417.1 MB, free: 8.973 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005472/0.7816, allocations: 2.089 MB / 419.2 MB, free: 6.883 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03216/0.8138, allocations: 9.985 MB / 429.2 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.32/1.134, allocations: 46.5 MB / 475.7 MB, free: 95.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01693/1.151, allocations: 4.248 MB / 479.9 MB, free: 94.06 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02312/1.174, allocations: 9.673 MB / 489.6 MB, free: 88.38 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.492e-05/1.174, allocations: 51.44 kB / 489.6 MB, free: 88.33 MB / 362.7 MB Notification: Performance of pre-optimization done (n=191): time 6.743e-06/1.174, allocations: 0 / 489.6 MB, free: 88.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=218): time 0.08768/1.262, allocations: 20.43 MB / 0.4981 GB, free: 71.56 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.376e-05/1.262, allocations: 201.2 kB / 0.4983 GB, free: 71.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00902/1.271, allocations: 4.529 MB / 0.5027 GB, free: 66.8 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005238/1.272, allocations: 61.69 kB / 0.5028 GB, free: 66.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002957/1.275, allocations: 3.745 MB / 0.5065 GB, free: 62.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001198/1.276, allocations: 0.823 MB / 0.5073 GB, free: 62.17 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005809/1.276, allocations: 128.7 kB / 0.5074 GB, free: 62.04 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003601/1.277, allocations: 0.5809 MB / 0.5079 GB, free: 61.46 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005491/1.282, allocations: 2.326 MB / 0.5102 GB, free: 59.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007849/1.29, allocations: 6.231 MB / 0.5163 GB, free: 50.97 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00819/1.298, allocations: 3.739 MB / 0.52 GB, free: 47.24 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001143/1.299, allocations: 40 kB / 0.52 GB, free: 47.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=853) (initialization): time 0.0239/1.323, allocations: 9.154 MB / 0.5289 GB, free: 38.03 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.53e-05/1.323, allocations: 64 kB / 0.529 GB, free: 37.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001597/1.323, allocations: 140 kB / 0.5291 GB, free: 37.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004938/1.328, allocations: 1.104 MB / 0.5302 GB, free: 36.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00883/1.337, allocations: 1.505 MB / 0.5317 GB, free: 35.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01481/1.351, allocations: 8.385 MB / 0.5399 GB, free: 26.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006763/1.358, allocations: 371.4 kB / 0.5402 GB, free: 26.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001131/1.359, allocations: 397.8 kB / 0.5406 GB, free: 25.82 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 631 * 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 (791): * Single equations (assignments): 786 * 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.005559/1.365, allocations: 2.518 MB / 0.5431 GB, free: 23.29 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001025/1.366, allocations: 434.4 kB / 0.5435 GB, free: 22.86 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01089/1.377, allocations: 3.869 MB / 0.5472 GB, free: 18.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.704e-05/1.377, allocations: 25.64 kB / 0.5473 GB, free: 18.94 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.414e-05/1.377, allocations: 7.938 kB / 0.5473 GB, free: 18.93 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.6e-05/1.377, allocations: 11.97 kB / 0.5473 GB, free: 18.92 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02602/1.403, allocations: 9.739 MB / 0.5568 GB, free: 9.168 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.262e-05/1.403, allocations: 0 / 0.5568 GB, free: 9.168 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003243/1.407, allocations: 351.5 kB / 0.5571 GB, free: 8.824 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00448/1.411, allocations: 0.8495 MB / 0.558 GB, free: 7.969 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004069/1.412, allocations: 39.98 kB / 0.558 GB, free: 7.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01348/1.425, allocations: 7.533 MB / 0.5654 GB, free: 124 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/1.425, allocations: 6.656 kB / 0.5654 GB, free: 120 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2581/1.683, allocations: 6.71 MB / 0.5719 GB, free: 113.5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00375/1.687, allocations: 0.7677 MB / 0.5727 GB, free: 113.3 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001862/1.689, allocations: 32.89 kB / 0.5727 GB, free: 113.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004773/1.694, allocations: 119.6 kB / 0.5728 GB, free: 113.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008348/1.695, allocations: 130 kB / 0.5729 GB, free: 113.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003423/1.695, allocations: 61.02 kB / 0.573 GB, free: 113.2 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.01159/1.707, allocations: 3.228 MB / 0.5761 GB, free: 112.1 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.32e-07/1.707, allocations: 0 / 0.5761 GB, free: 112.1 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.01193/1.719, allocations: 1.222 MB / 0.5773 GB, free: 112 MB / 362.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.001158/1.72, allocations: 194.5 kB / 0.5775 GB, free: 111.9 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01795/1.738, allocations: 5.865 MB / 0.5833 GB, free: 109.8 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/1.738, allocations: 1.062 kB / 0.5833 GB, free: 109.8 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00542/1.743, allocations: 2.06 MB / 0.5853 GB, free: 108.9 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004365/1.748, allocations: 0.5259 MB / 0.5858 GB, free: 108.6 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0293/1.777, allocations: 13.46 MB / 0.5989 GB, free: 99.67 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007882/1.785, allocations: 4.11 MB / 0.6029 GB, free: 96.58 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.008898/1.794, allocations: 2.095 MB / 0.605 GB, free: 94.49 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001631/1.796, allocations: 291.4 kB / 0.6053 GB, free: 94.21 MB / 362.7 MB Notification: Performance of SimCode: time 1.402e-06/1.796, allocations: 0 / 0.6053 GB, free: 94.21 MB / 362.7 MB Notification: Performance of Templates: time 0.122/1.918, allocations: 43.01 MB / 0.6473 GB, free: 51.3 MB / 362.7 MB