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_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadModel(Modelica): time 1.83/1.83, allocations: 171.2 MB / 186.3 MB, free: 1.41 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.188e-05/3.192e-05, allocations: 0 / 228.1 MB, free: 7.996 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09109/0.09115, allocations: 38.78 MB / 266.9 MB, free: 1.141 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.313/0.4042, allocations: 55.29 MB / 322.2 MB, free: 2.383 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.03926/0.4435, allocations: 12.21 MB / 334.4 MB, free: 10.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01654/0.4601, allocations: 298.2 kB / 334.7 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01139/0.4716, allocations: 2.928 MB / 337.6 MB, free: 8.609 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.032/0.5036, allocations: 7.921 MB / 345.5 MB, free: 1.984 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005508/0.5092, allocations: 0.7839 MB / 346.3 MB, free: 1.199 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.05018/0.5594, allocations: 16.78 MB / 363.1 MB, free: 420 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01259/0.5721, allocations: 5.975 MB / 369.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002912/0.5751, allocations: 1.11 MB / 370.2 MB, free: 9.277 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003925/0.579, allocations: 1.679 MB / 371.9 MB, free: 7.594 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003256/0.5824, allocations: 0.9636 MB / 372.8 MB, free: 6.629 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001198/0.5836, allocations: 164 kB / 373 MB, free: 6.469 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003184/0.5868, allocations: 1.999 MB / 375 MB, free: 4.465 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001815/0.5887, allocations: 360 kB / 375.3 MB, free: 4.113 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01233/0.601, allocations: 7.575 MB / 382.9 MB, free: 12.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.6011, allocations: 0 / 382.9 MB, free: 12.52 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.816e-06/0.6011, allocations: 0 / 382.9 MB, free: 12.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003255/0.6014, allocations: 0 / 382.9 MB, free: 12.52 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.01824/0.6197, allocations: 5.208 MB / 388.1 MB, free: 7.234 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.494e-05/0.6198, allocations: 12.03 kB / 388.1 MB, free: 7.223 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1191/0.7389, allocations: 11.71 MB / 399.8 MB, free: 11.49 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01346/0.7524, allocations: 4.267 MB / 404.1 MB, free: 7.164 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004579/0.7529, allocations: 320.1 kB / 404.4 MB, free: 6.848 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002083/0.755, allocations: 419.8 kB / 404.8 MB, free: 6.438 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03416/0.7892, allocations: 12 MB / 416.8 MB, free: 9.672 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002486/0.7895, allocations: 59.48 kB / 416.9 MB, free: 9.613 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001354/0.7909, allocations: 195.8 kB / 417.1 MB, free: 9.422 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005402/0.7963, allocations: 2.093 MB / 419.2 MB, free: 7.328 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03187/0.8282, allocations: 9.985 MB / 429.2 MB, free: 13.33 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3133/1.142, allocations: 46.49 MB / 475.6 MB, free: 95.7 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01699/1.159, allocations: 4.249 MB / 479.9 MB, free: 94.03 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02297/1.182, allocations: 9.676 MB / 489.6 MB, free: 88.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.894e-05/1.182, allocations: 56.06 kB / 489.6 MB, free: 88.41 MB / 362.7 MB Notification: Performance of pre-optimization done (n=191): time 5.39e-06/1.182, allocations: 0 / 489.6 MB, free: 88.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=218): time 0.09094/1.273, allocations: 20.42 MB / 0.4981 GB, free: 71.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.701e-05/1.273, allocations: 207.2 kB / 0.4983 GB, free: 71.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009746/1.283, allocations: 4.523 MB / 0.5027 GB, free: 67.12 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006232/1.283, allocations: 53.7 kB / 0.5028 GB, free: 67.07 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003448/1.287, allocations: 3.607 MB / 0.5063 GB, free: 63.46 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001555/1.288, allocations: 0.8303 MB / 0.5071 GB, free: 62.64 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008971/1.289, allocations: 129.6 kB / 0.5072 GB, free: 62.52 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000565/1.29, allocations: 0.5876 MB / 0.5078 GB, free: 61.92 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006208/1.296, allocations: 2.322 MB / 0.5101 GB, free: 59.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008539/1.305, allocations: 6.234 MB / 0.5161 GB, free: 51.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008358/1.313, allocations: 3.728 MB / 0.5198 GB, free: 47.72 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001008/1.313, allocations: 40 kB / 0.5198 GB, free: 47.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=853) (initialization): time 0.02452/1.338, allocations: 8.98 MB / 0.5286 GB, free: 38.69 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001031/1.338, allocations: 64 kB / 0.5287 GB, free: 38.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001644/1.338, allocations: 136 kB / 0.5288 GB, free: 38.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005162/1.343, allocations: 1.109 MB / 0.5299 GB, free: 37.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009093/1.353, allocations: 1.504 MB / 0.5313 GB, free: 35.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01513/1.368, allocations: 8.391 MB / 0.5395 GB, free: 27.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007179/1.375, allocations: 371.4 kB / 0.5399 GB, free: 26.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001275/1.376, allocations: 393.7 kB / 0.5403 GB, free: 26.48 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.005846/1.382, allocations: 2.534 MB / 0.5427 GB, free: 23.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001074/1.383, allocations: 426.5 kB / 0.5431 GB, free: 23.51 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01085/1.394, allocations: 3.858 MB / 0.5469 GB, free: 19.63 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.953e-05/1.394, allocations: 24 kB / 0.5469 GB, free: 19.61 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.681e-05/1.394, allocations: 8 kB / 0.5469 GB, free: 19.6 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.611e-05/1.394, allocations: 11.95 kB / 0.5469 GB, free: 19.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02548/1.42, allocations: 9.75 MB / 0.5565 GB, free: 9.824 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.296e-05/1.42, allocations: 4 kB / 0.5565 GB, free: 9.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003244/1.423, allocations: 339.5 kB / 0.5568 GB, free: 9.488 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004556/1.428, allocations: 0.8534 MB / 0.5576 GB, free: 8.629 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004067/1.428, allocations: 41.72 kB / 0.5577 GB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01357/1.442, allocations: 7.526 MB / 0.565 GB, free: 0.7891 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/1.442, allocations: 4.062 kB / 0.565 GB, free: 0.7852 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2527/1.695, allocations: 6.719 MB / 0.5716 GB, free: 113.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002844/1.697, allocations: 0.7725 MB / 0.5723 GB, free: 113.6 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001569/1.699, allocations: 32.78 kB / 0.5724 GB, free: 113.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003947/1.703, allocations: 119.5 kB / 0.5725 GB, free: 113.6 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008158/1.704, allocations: 129 kB / 0.5726 GB, free: 113.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002481/1.704, allocations: 63.11 kB / 0.5727 GB, free: 113.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.008932/1.713, allocations: 3.226 MB / 0.5758 GB, free: 112.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.465e-06/1.713, allocations: 0 / 0.5758 GB, free: 112.5 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00806/1.721, allocations: 1.227 MB / 0.577 GB, free: 112.3 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.0009881/1.722, allocations: 192.2 kB / 0.5772 GB, free: 112.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01404/1.736, allocations: 5.866 MB / 0.5829 GB, free: 110.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/1.736, allocations: 0 / 0.5829 GB, free: 110.1 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005605/1.742, allocations: 2.059 MB / 0.5849 GB, free: 109.2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004561/1.747, allocations: 0.5237 MB / 0.5855 GB, free: 109 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02973/1.776, allocations: 14.06 MB / 0.5992 GB, free: 99.82 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007765/1.784, allocations: 4.112 MB / 0.6032 GB, free: 96.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001937/1.786, allocations: 339.4 kB / 0.6035 GB, free: 96.33 MB / 362.7 MB Notification: Performance of SimCode: time 1.813e-06/1.786, allocations: 0 / 0.6035 GB, free: 96.33 MB / 362.7 MB Notification: Performance of Templates: time 0.4303/2.216, allocations: 112.7 MB / 0.7136 GB, free: 120.6 MB / 378.7 MB