Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") Notification: Performance of loadModel(ModelicaTest): time 2.517/2.517, allocations: 270 MB / 283.6 MB, free: 1.773 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.194e-05/3.202e-05, allocations: 4 kB / 348.4 MB, free: 2.664 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.3239, allocations: 61.88 MB / 410.3 MB, free: 10.72 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1686/0.4926, allocations: 109.8 MB / 0.5079 GB, free: 12.78 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002459/0.4929, allocations: 79.95 kB / 0.5079 GB, free: 12.7 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6447/1.138, allocations: 104.5 MB / 0.61 GB, free: 31.76 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.103e-06/1.138, allocations: 0 / 0.61 GB, free: 31.76 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003145/1.138, allocations: 100 kB / 0.6101 GB, free: 31.66 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.01517/1.153, allocations: 5.109 MB / 0.6151 GB, free: 26.48 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/1.153, allocations: 8.031 kB / 0.6151 GB, free: 26.48 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03427/1.188, allocations: 6.9 MB / 0.6218 GB, free: 19.56 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01814/1.206, allocations: 6.48 MB / 0.6282 GB, free: 13.02 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004103/1.206, allocations: 390.3 kB / 0.6285 GB, free: 12.64 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00211/1.208, allocations: 0.5114 MB / 0.629 GB, free: 12.12 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02956/1.238, allocations: 12.15 MB / 0.6409 GB, free: 14.83 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003739/1.238, allocations: 83.23 kB / 0.641 GB, free: 14.75 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002036/1.24, allocations: 247.9 kB / 0.6412 GB, free: 14.51 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002506/1.243, allocations: 1.066 MB / 0.6422 GB, free: 13.44 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02751/1.27, allocations: 9.674 MB / 0.6517 GB, free: 3.75 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08691/1.357, allocations: 55.55 MB / 0.7059 GB, free: 10.34 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01463/1.372, allocations: 4.141 MB / 0.71 GB, free: 6.051 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004316/1.376, allocations: 2.21 MB / 0.7121 GB, free: 3.828 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.327/1.704, allocations: 9.356 MB / 0.7213 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.819e-05/1.704, allocations: 55.06 kB / 0.7213 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=171): time 6.738e-06/1.704, allocations: 0 / 0.7213 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=197): time 0.05155/1.755, allocations: 15.08 MB / 0.7361 GB, free: 117.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.277e-05/1.755, allocations: 202.4 kB / 0.7363 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007947/1.763, allocations: 4.102 MB / 0.7403 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003341/1.764, allocations: 57.27 kB / 0.7403 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002643/1.766, allocations: 3.658 MB / 0.7439 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008543/1.767, allocations: 0.7575 MB / 0.7446 GB, free: 115 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005009/1.768, allocations: 125.6 kB / 0.7447 GB, free: 115 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003708/1.768, allocations: 0.5688 MB / 0.7453 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003798/1.772, allocations: 2.032 MB / 0.7473 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005892/1.778, allocations: 5.833 MB / 0.753 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00633/1.784, allocations: 3.447 MB / 0.7564 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001202/1.784, allocations: 39.66 kB / 0.7564 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=822) (initialization): time 0.02261/1.807, allocations: 8.009 MB / 0.7642 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001721/1.807, allocations: 64.66 kB / 0.7643 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002612/1.807, allocations: 137.4 kB / 0.7644 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005826/1.813, allocations: 0.93 MB / 0.7653 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009021/1.822, allocations: 1.44 MB / 0.7667 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01101/1.833, allocations: 7.415 MB / 0.774 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006061/1.84, allocations: 336.5 kB / 0.7743 GB, free: 103.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001006/1.841, allocations: 382.4 kB / 0.7746 GB, free: 103.1 MB / 0.5105 GB 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.001096/1.842, allocations: 0.6029 MB / 0.7752 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007967/1.843, allocations: 410.8 kB / 0.7756 GB, free: 102.4 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006705/1.849, allocations: 3.171 MB / 0.7787 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.002e-05/1.849, allocations: 25.02 kB / 0.7787 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-05/1.849, allocations: 7.812 kB / 0.7788 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.34e-05/1.849, allocations: 10.33 kB / 0.7788 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01788/1.867, allocations: 8.536 MB / 0.7871 GB, free: 98.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-05/1.867, allocations: 3.422 kB / 0.7871 GB, free: 98.02 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001825/1.869, allocations: 296.6 kB / 0.7874 GB, free: 98 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002764/1.872, allocations: 0.6889 MB / 0.7881 GB, free: 97.52 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002138/1.872, allocations: 39.94 kB / 0.7881 GB, free: 97.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008959/1.881, allocations: 6.533 MB / 0.7945 GB, free: 91.37 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.356e-06/1.881, allocations: 7.938 kB / 0.7945 GB, free: 91.36 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009732/1.891, allocations: 5.688 MB / 0.8 GB, free: 86.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001289/1.892, allocations: 455.7 kB / 0.8005 GB, free: 85.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008329/1.893, allocations: 28 kB / 0.8005 GB, free: 85.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002152/1.895, allocations: 103.1 kB / 0.8006 GB, free: 85.75 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004053/1.896, allocations: 119.3 kB / 0.8007 GB, free: 85.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000186/1.896, allocations: 57.11 kB / 0.8008 GB, free: 85.63 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005801/1.902, allocations: 2.895 MB / 0.8036 GB, free: 83.08 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.41e-07/1.902, allocations: 0 / 0.8036 GB, free: 83.08 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00707/1.909, allocations: 1.128 MB / 0.8047 GB, free: 81.96 MB / 0.5105 GB 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.0005188/1.909, allocations: 180.9 kB / 0.8049 GB, free: 81.79 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009868/1.919, allocations: 5.042 MB / 0.8098 GB, free: 77.22 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.966e-06/1.919, allocations: 4 kB / 0.8098 GB, free: 77.21 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003256/1.923, allocations: 1.746 MB / 0.8115 GB, free: 75.63 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003042/1.926, allocations: 0.5136 MB / 0.812 GB, free: 75.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01857/1.944, allocations: 8.804 MB / 0.8206 GB, free: 67.38 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005873/1.95, allocations: 3.97 MB / 0.8245 GB, free: 64.4 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.00656/1.957, allocations: 2.004 MB / 0.8264 GB, free: 63.13 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001096/1.958, allocations: 270.1 kB / 0.8267 GB, free: 62.88 MB / 0.5105 GB Notification: Performance of SimCode: time 1.698e-06/1.958, allocations: 0 / 0.8267 GB, free: 62.88 MB / 0.5105 GB Notification: Performance of Templates: time 0.1062/2.064, allocations: 38.72 MB / 0.8645 GB, free: 31.02 MB / 0.5105 GB