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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadModel(Modelica): time 1.923/1.923, allocations: 225.8 MB / 238.8 MB, free: 11.13 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.023e-05/3.036e-05, allocations: 8.219 kB / 292.2 MB, free: 8.309 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09734/0.09739, allocations: 50.41 MB / 342.6 MB, free: 5.875 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4144/0.5118, allocations: 99.62 MB / 442.2 MB, free: 10.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002402/0.5121, allocations: 85.52 kB / 442.3 MB, free: 10.8 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7624/1.274, allocations: 104.3 MB / 0.5338 GB, free: 93.23 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.203e-06/1.275, allocations: 0.9688 kB / 0.5338 GB, free: 93.23 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004994/1.275, allocations: 112.6 kB / 0.5339 GB, free: 93.23 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.02699/1.302, allocations: 5.111 MB / 0.5389 GB, free: 91.2 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.231e-05/1.302, allocations: 9.375 kB / 0.5389 GB, free: 91.2 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06827/1.37, allocations: 6.898 MB / 0.5456 GB, free: 90.85 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02561/1.396, allocations: 6.421 MB / 0.5519 GB, free: 90.13 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004592/1.397, allocations: 396.9 kB / 0.5522 GB, free: 90.12 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002173/1.399, allocations: 0.513 MB / 0.5527 GB, free: 90.11 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02886/1.428, allocations: 12.16 MB / 0.5646 GB, free: 87.07 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002874/1.428, allocations: 72.44 kB / 0.5647 GB, free: 87.07 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00158/1.43, allocations: 249.5 kB / 0.5649 GB, free: 87.07 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001706/1.431, allocations: 1.066 MB / 0.566 GB, free: 87.05 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02364/1.455, allocations: 9.671 MB / 0.5754 GB, free: 86.39 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06524/1.52, allocations: 55.56 MB / 0.6297 GB, free: 44.37 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01349/1.534, allocations: 4.127 MB / 0.6337 GB, free: 42.76 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003613/1.537, allocations: 2.211 MB / 0.6359 GB, free: 40.75 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01767/1.555, allocations: 9.36 MB / 0.645 GB, free: 32.66 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.776e-05/1.555, allocations: 55.5 kB / 0.6451 GB, free: 32.6 MB / 442.7 MB Notification: Performance of pre-optimization done (n=171): time 5.927e-06/1.555, allocations: 0 / 0.6451 GB, free: 32.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=197): time 0.05048/1.606, allocations: 15.07 MB / 0.6598 GB, free: 19.7 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/1.606, allocations: 197.2 kB / 0.66 GB, free: 19.47 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007111/1.613, allocations: 4.103 MB / 0.664 GB, free: 15.82 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003371/1.613, allocations: 57.7 kB / 0.664 GB, free: 15.76 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002487/1.616, allocations: 3.65 MB / 0.6676 GB, free: 12.49 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008195/1.617, allocations: 0.7611 MB / 0.6683 GB, free: 11.82 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004026/1.617, allocations: 124 kB / 0.6684 GB, free: 11.7 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003492/1.618, allocations: 0.5628 MB / 0.669 GB, free: 11.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003467/1.621, allocations: 2.036 MB / 0.671 GB, free: 9.367 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005409/1.626, allocations: 5.834 MB / 0.6767 GB, free: 1.918 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006429/1.633, allocations: 3.465 MB / 0.6801 GB, free: 14.99 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001025/1.633, allocations: 39.95 kB / 0.6801 GB, free: 14.95 MB / 458.7 MB Notification: Performance of matching and sorting (n=822) (initialization): time 0.02625/1.659, allocations: 8.01 MB / 0.6879 GB, free: 7.203 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001974/1.66, allocations: 67.47 kB / 0.688 GB, free: 7.141 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002981/1.66, allocations: 142.6 kB / 0.6881 GB, free: 7.008 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006159/1.666, allocations: 0.9258 MB / 0.689 GB, free: 6.078 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0116/1.678, allocations: 1.439 MB / 0.6904 GB, free: 4.637 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2757/1.953, allocations: 7.405 MB / 0.6977 GB, free: 94.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006003/1.959, allocations: 340.3 kB / 0.698 GB, free: 94.16 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001006/1.96, allocations: 390.1 kB / 0.6984 GB, free: 94.16 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 47 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (760): * Single equations (assignments): 755 * 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.001066/1.962, allocations: 0.5935 MB / 0.6989 GB, free: 94.04 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008385/1.962, allocations: 413.8 kB / 0.6993 GB, free: 94.04 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007453/1.97, allocations: 3.162 MB / 0.7024 GB, free: 93.9 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.572e-05/1.97, allocations: 22.33 kB / 0.7024 GB, free: 93.9 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.03e-05/1.97, allocations: 6.5 kB / 0.7025 GB, free: 93.9 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.04e-05/1.97, allocations: 17.67 kB / 0.7025 GB, free: 93.9 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02073/1.991, allocations: 8.524 MB / 0.7108 GB, free: 93.39 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.831e-05/1.991, allocations: 1.375 kB / 0.7108 GB, free: 93.39 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002098/1.993, allocations: 300.5 kB / 0.7111 GB, free: 93.39 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002847/1.996, allocations: 0.6937 MB / 0.7118 GB, free: 93.37 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002194/1.996, allocations: 36.08 kB / 0.7118 GB, free: 93.37 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009462/2.006, allocations: 6.539 MB / 0.7182 GB, free: 90.79 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.665e-06/2.006, allocations: 0 / 0.7182 GB, free: 90.79 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0104/2.016, allocations: 5.687 MB / 0.7237 GB, free: 90.16 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001279/2.017, allocations: 460.3 kB / 0.7242 GB, free: 90.01 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006025/2.018, allocations: 29.62 kB / 0.7242 GB, free: 90.01 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001837/2.02, allocations: 90.72 kB / 0.7243 GB, free: 90.01 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003539/2.02, allocations: 130.2 kB / 0.7244 GB, free: 90 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001805/2.02, allocations: 51.22 kB / 0.7245 GB, free: 90 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005167/2.026, allocations: 2.888 MB / 0.7273 GB, free: 89.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.02e-06/2.026, allocations: 0 / 0.7273 GB, free: 89.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006549/2.032, allocations: 1.13 MB / 0.7284 GB, free: 89.8 MB / 458.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 (147): * Single equations (assignments): 142 * 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.0004717/2.033, allocations: 184.8 kB / 0.7286 GB, free: 89.71 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008977/2.042, allocations: 5.04 MB / 0.7335 GB, free: 88.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.825e-06/2.042, allocations: 3.281 kB / 0.7335 GB, free: 88.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003299/2.045, allocations: 1.74 MB / 0.7352 GB, free: 87.86 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002978/2.048, allocations: 0.5265 MB / 0.7357 GB, free: 87.64 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01778/2.066, allocations: 8.802 MB / 0.7443 GB, free: 84.52 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006216/2.072, allocations: 3.965 MB / 0.7482 GB, free: 83.09 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.006796/2.079, allocations: 2.002 MB / 0.7501 GB, free: 83.05 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001089/2.08, allocations: 267.6 kB / 0.7504 GB, free: 83.04 MB / 458.7 MB Notification: Performance of SimCode: time 1.752e-06/2.08, allocations: 0 / 0.7504 GB, free: 83.04 MB / 458.7 MB Notification: Performance of Templates: time 0.1077/2.188, allocations: 38.7 MB / 0.7882 GB, free: 70 MB / 458.7 MB