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.901/1.901, allocations: 194.9 MB / 210.6 MB, free: 8.355 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.42e-05/3.406e-05, allocations: 7.906 kB / 258.8 MB, free: 8.055 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.2886, allocations: 44.49 MB / 303.3 MB, free: 12.98 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.08022/0.3688, allocations: 55.32 MB / 358.6 MB, free: 6.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03231/0.4012, allocations: 12.24 MB / 370.9 MB, free: 9.887 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01177/0.413, allocations: 299.3 kB / 371.2 MB, free: 9.594 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009615/0.4227, allocations: 2.932 MB / 374.1 MB, free: 6.648 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02785/0.4506, allocations: 7.924 MB / 382 MB, free: 14.7 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004616/0.4552, allocations: 0.7762 MB / 382.8 MB, free: 13.93 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.04899/0.5043, allocations: 16.79 MB / 399.6 MB, free: 13.12 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01199/0.5163, allocations: 5.986 MB / 405.6 MB, free: 7.078 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002567/0.5189, allocations: 1.114 MB / 406.7 MB, free: 5.961 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003464/0.5224, allocations: 1.687 MB / 408.4 MB, free: 4.27 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002823/0.5252, allocations: 0.9597 MB / 409.3 MB, free: 3.309 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001089/0.5263, allocations: 164 kB / 409.5 MB, free: 3.148 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002725/0.5291, allocations: 2.003 MB / 411.5 MB, free: 1.141 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001558/0.5307, allocations: 360 kB / 411.8 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01111/0.5418, allocations: 7.575 MB / 419.4 MB, free: 9.191 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.5419, allocations: 3.938 kB / 419.4 MB, free: 9.188 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.418e-06/0.5419, allocations: 0 / 419.4 MB, free: 9.188 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000273/0.5422, allocations: 3.938 kB / 419.4 MB, free: 9.184 MB / 362.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.01716/0.5593, allocations: 5.212 MB / 424.6 MB, free: 3.902 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.5594, allocations: 15.97 kB / 424.7 MB, free: 3.887 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3609/0.9203, allocations: 11.7 MB / 436.4 MB, free: 107.4 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01143/0.9318, allocations: 4.28 MB / 440.6 MB, free: 104 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002552/0.9321, allocations: 312.2 kB / 440.9 MB, free: 103.8 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001517/0.9336, allocations: 446.6 kB / 441.4 MB, free: 103.4 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02883/0.9624, allocations: 12.28 MB / 453.7 MB, free: 90.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002315/0.9627, allocations: 55.48 kB / 453.7 MB, free: 90.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001132/0.9639, allocations: 199.3 kB / 453.9 MB, free: 90.28 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004402/0.9683, allocations: 2.089 MB / 456 MB, free: 88.19 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02875/0.9971, allocations: 10.42 MB / 466.4 MB, free: 77.76 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07163/1.069, allocations: 47.07 MB / 0.5015 GB, free: 29.57 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01769/1.086, allocations: 4.485 MB / 0.5058 GB, free: 24.94 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02079/1.107, allocations: 10.14 MB / 0.5157 GB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.965e-05/1.107, allocations: 55.81 kB / 0.5158 GB, free: 14.65 MB / 362.7 MB Notification: Performance of pre-optimization done (n=192): time 5.581e-06/1.107, allocations: 4 kB / 0.5158 GB, free: 14.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=218): time 0.08101/1.188, allocations: 19.83 MB / 0.5351 GB, free: 10.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/1.189, allocations: 205.2 kB / 0.5353 GB, free: 10.44 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00939/1.198, allocations: 4.515 MB / 0.5398 GB, free: 5.922 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004908/1.199, allocations: 57.7 kB / 0.5398 GB, free: 5.859 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004132/1.203, allocations: 3.747 MB / 0.5435 GB, free: 2.062 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001418/1.204, allocations: 0.829 MB / 0.5443 GB, free: 1.223 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005279/1.205, allocations: 132 kB / 0.5444 GB, free: 1.094 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0005288/1.205, allocations: 0.5828 MB / 0.545 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006438/1.212, allocations: 2.328 MB / 0.5472 GB, free: 14.17 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01027/1.222, allocations: 6.247 MB / 0.5533 GB, free: 5.969 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009322/1.231, allocations: 3.749 MB / 0.557 GB, free: 2.219 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.601e-05/1.232, allocations: 40 kB / 0.557 GB, free: 2.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=853) (initialization): time 0.026/1.258, allocations: 9.183 MB / 0.566 GB, free: 8.98 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001144/1.258, allocations: 69.5 kB / 0.5661 GB, free: 8.914 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001794/1.258, allocations: 136 kB / 0.5662 GB, free: 8.781 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005475/1.263, allocations: 1.104 MB / 0.5673 GB, free: 7.672 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009656/1.273, allocations: 1.505 MB / 0.5688 GB, free: 6.164 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2729/1.546, allocations: 8.38 MB / 0.5769 GB, free: 134 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006745/1.553, allocations: 376.6 kB / 0.5773 GB, free: 134 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001004/1.554, allocations: 395.9 kB / 0.5777 GB, free: 134 MB / 410.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.005079/1.559, allocations: 2.527 MB / 0.5801 GB, free: 133.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009729/1.56, allocations: 422.8 kB / 0.5805 GB, free: 133.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0105/1.57, allocations: 3.887 MB / 0.5843 GB, free: 131.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.136e-05/1.57, allocations: 24.28 kB / 0.5844 GB, free: 131.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.265e-05/1.571, allocations: 7.719 kB / 0.5844 GB, free: 131.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.543e-05/1.571, allocations: 14.86 kB / 0.5844 GB, free: 131.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02351/1.594, allocations: 9.782 MB / 0.5939 GB, free: 128.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.772e-05/1.594, allocations: 4.781 kB / 0.5939 GB, free: 128.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003178/1.597, allocations: 347 kB / 0.5943 GB, free: 128.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004515/1.602, allocations: 0.8602 MB / 0.5951 GB, free: 128 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002323/1.602, allocations: 38.22 kB / 0.5952 GB, free: 128 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01296/1.615, allocations: 7.529 MB / 0.6025 GB, free: 123.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/1.615, allocations: 0 / 0.6025 GB, free: 123.4 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01493/1.63, allocations: 6.766 MB / 0.6091 GB, free: 117.9 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002187/1.632, allocations: 0.7709 MB / 0.6099 GB, free: 117.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008639/1.633, allocations: 39.95 kB / 0.6099 GB, free: 117.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002921/1.636, allocations: 115.8 kB / 0.61 GB, free: 117.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004307/1.637, allocations: 129.8 kB / 0.6101 GB, free: 116.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002106/1.637, allocations: 56.89 kB / 0.6102 GB, free: 116.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005724/1.643, allocations: 3.218 MB / 0.6133 GB, free: 113.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.032e-06/1.643, allocations: 0 / 0.6133 GB, free: 113.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006545/1.649, allocations: 1.222 MB / 0.6145 GB, free: 112.5 MB / 410.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.0006235/1.65, allocations: 186.1 kB / 0.6147 GB, free: 112.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01263/1.662, allocations: 5.914 MB / 0.6205 GB, free: 106.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/1.662, allocations: 4 kB / 0.6205 GB, free: 106.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004612/1.667, allocations: 2.073 MB / 0.6225 GB, free: 104.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00367/1.671, allocations: 0.5278 MB / 0.623 GB, free: 103.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02625/1.697, allocations: 13.46 MB / 0.6362 GB, free: 90.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006/1.703, allocations: 4.103 MB / 0.6402 GB, free: 86.37 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.008161/1.711, allocations: 2.099 MB / 0.6422 GB, free: 84.27 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001201/1.713, allocations: 288 kB / 0.6425 GB, free: 83.99 MB / 410.7 MB Notification: Performance of SimCode: time 1.173e-06/1.713, allocations: 0 / 0.6425 GB, free: 83.99 MB / 410.7 MB Notification: Performance of Templates: time 0.1162/1.829, allocations: 42.98 MB / 0.6845 GB, free: 41.06 MB / 410.7 MB