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.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadModel(Modelica): time 1.912/1.912, allocations: 205.8 MB / 218.9 MB, free: 9.344 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.787e-05/2.8e-05, allocations: 4 kB / 269.4 MB, free: 6.398 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08547/0.08552, allocations: 47.57 MB / 316.9 MB, free: 6.738 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.358/0.4436, allocations: 98.46 MB / 415.4 MB, free: 5.965 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002532/0.4439, allocations: 86.64 kB / 415.5 MB, free: 5.922 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4397/0.8837, allocations: 107.1 MB / 0.5103 GB, free: 1.441 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.995e-06/0.8837, allocations: 0 / 0.5103 GB, free: 1.441 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003448/0.8841, allocations: 108 kB / 0.5104 GB, free: 1.336 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.2527/1.137, allocations: 5.264 MB / 0.5156 GB, free: 85.8 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/1.137, allocations: 9.953 kB / 0.5156 GB, free: 85.8 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03805/1.175, allocations: 6.936 MB / 0.5223 GB, free: 85.44 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02007/1.195, allocations: 6.824 MB / 0.529 GB, free: 85.03 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004846/1.196, allocations: 407.3 kB / 0.5294 GB, free: 85.02 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002272/1.198, allocations: 0.5391 MB / 0.5299 GB, free: 85 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03017/1.228, allocations: 12.61 MB / 0.5422 GB, free: 81.93 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002623/1.228, allocations: 76.12 kB / 0.5423 GB, free: 81.93 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001201/1.23, allocations: 255.8 kB / 0.5425 GB, free: 81.93 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001749/1.231, allocations: 1.137 MB / 0.5437 GB, free: 81.91 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02725/1.259, allocations: 10.08 MB / 0.5535 GB, free: 81.89 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06941/1.328, allocations: 57.2 MB / 0.6094 GB, free: 40.73 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01431/1.342, allocations: 4.336 MB / 0.6136 GB, free: 39.04 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003895/1.346, allocations: 2.386 MB / 0.6159 GB, free: 37.97 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02557/1.372, allocations: 9.963 MB / 0.6257 GB, free: 31.12 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.076e-05/1.372, allocations: 58.47 kB / 0.6257 GB, free: 31.06 MB / 426.7 MB Notification: Performance of pre-optimization done (n=192): time 7.423e-06/1.372, allocations: 0 / 0.6257 GB, free: 31.06 MB / 426.7 MB Notification: Performance of matching and sorting (n=218): time 0.05417/1.426, allocations: 16.18 MB / 0.6415 GB, free: 17.24 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.774e-05/1.426, allocations: 209 kB / 0.6417 GB, free: 17 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008561/1.435, allocations: 4.21 MB / 0.6458 GB, free: 13.26 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003772/1.435, allocations: 53.7 kB / 0.6459 GB, free: 13.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002831/1.438, allocations: 3.781 MB / 0.6496 GB, free: 9.816 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001014/1.439, allocations: 0.8285 MB / 0.6504 GB, free: 9.09 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005726/1.44, allocations: 136 kB / 0.6505 GB, free: 8.957 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004033/1.44, allocations: 0.5792 MB / 0.6511 GB, free: 8.449 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004321/1.445, allocations: 2.191 MB / 0.6532 GB, free: 6.473 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007019/1.452, allocations: 6.103 MB / 0.6592 GB, free: 14.79 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007993/1.46, allocations: 3.659 MB / 0.6627 GB, free: 11.64 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001321/1.46, allocations: 40 kB / 0.6628 GB, free: 11.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=860) (initialization): time 0.02258/1.482, allocations: 8.441 MB / 0.671 GB, free: 4.234 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001274/1.483, allocations: 66.03 kB / 0.6711 GB, free: 4.172 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000193/1.483, allocations: 140 kB / 0.6712 GB, free: 4.035 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003579/1.486, allocations: 0.9278 MB / 0.6721 GB, free: 3.301 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006751/1.493, allocations: 1.512 MB / 0.6736 GB, free: 1.984 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2973/1.791, allocations: 7.419 MB / 0.6808 GB, free: 88.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006377/1.797, allocations: 355.7 kB / 0.6812 GB, free: 88.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001254/1.798, allocations: 400.3 kB / 0.6816 GB, free: 88.7 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 638 * Number of states: 0 () * Number of discrete variables: 45 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (798): * Single equations (assignments): 793 * 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.001239/1.8, allocations: 0.6266 MB / 0.6822 GB, free: 88.59 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009673/1.801, allocations: 431.9 kB / 0.6826 GB, free: 88.59 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008451/1.809, allocations: 3.534 MB / 0.686 GB, free: 88.43 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.723e-05/1.809, allocations: 24.88 kB / 0.6861 GB, free: 88.43 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-05/1.809, allocations: 6.219 kB / 0.6861 GB, free: 88.43 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-05/1.809, allocations: 9.875 kB / 0.6861 GB, free: 88.43 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02156/1.831, allocations: 9.238 MB / 0.6951 GB, free: 87.89 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.138e-05/1.831, allocations: 3.094 kB / 0.6951 GB, free: 87.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003448/1.834, allocations: 345.8 kB / 0.6954 GB, free: 87.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004866/1.839, allocations: 0.6858 MB / 0.6961 GB, free: 87.87 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000606/1.84, allocations: 38.47 kB / 0.6961 GB, free: 87.87 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01621/1.856, allocations: 6.551 MB / 0.7025 GB, free: 85.27 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.324e-06/1.856, allocations: 3.562 kB / 0.7025 GB, free: 85.27 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01965/1.876, allocations: 6.253 MB / 0.7086 GB, free: 84.64 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003518/1.879, allocations: 0.7404 MB / 0.7094 GB, free: 84.45 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001276/1.881, allocations: 34.19 kB / 0.7094 GB, free: 84.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003951/1.885, allocations: 109.8 kB / 0.7095 GB, free: 84.45 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006105/1.885, allocations: 133.2 kB / 0.7096 GB, free: 84.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003438/1.886, allocations: 54.47 kB / 0.7097 GB, free: 84.45 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0085/1.894, allocations: 2.967 MB / 0.7126 GB, free: 84.25 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.898e-06/1.894, allocations: 0 / 0.7126 GB, free: 84.25 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01207/1.906, allocations: 1.188 MB / 0.7137 GB, free: 84.25 MB / 442.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.0007699/1.907, allocations: 191.3 kB / 0.7139 GB, free: 84.16 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01773/1.925, allocations: 5.43 MB / 0.7192 GB, free: 83.09 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.309e-06/1.925, allocations: 0 / 0.7192 GB, free: 83.09 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004336/1.929, allocations: 1.929 MB / 0.7211 GB, free: 82.27 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003105/1.932, allocations: 0.5344 MB / 0.7216 GB, free: 82.05 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02016/1.953, allocations: 9.289 MB / 0.7307 GB, free: 78.75 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007038/1.96, allocations: 4.109 MB / 0.7347 GB, free: 77.29 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0075/1.967, allocations: 2.099 MB / 0.7368 GB, free: 77.25 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001277/1.969, allocations: 282.9 kB / 0.737 GB, free: 77.23 MB / 442.7 MB Notification: Performance of SimCode: time 2.392e-06/1.969, allocations: 0 / 0.737 GB, free: 77.23 MB / 442.7 MB Notification: Performance of Templates: time 0.1107/2.079, allocations: 40.45 MB / 0.7765 GB, free: 58.99 MB / 442.7 MB