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_3.2.1_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") Notification: Performance of loadModel(ModelicaTest): time 1.98/1.98, allocations: 209.3 MB / 223.8 MB, free: 1.602 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.695e-05/3.683e-05, allocations: 7.984 kB / 276.2 MB, free: 15.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1061, allocations: 48.71 MB / 324.9 MB, free: 14.56 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.3815/0.4876, allocations: 55.32 MB / 380.2 MB, free: 14.38 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03921/0.5269, allocations: 12.21 MB / 392.4 MB, free: 5.016 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01599/0.543, allocations: 295.3 kB / 392.7 MB, free: 4.727 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01218/0.5552, allocations: 2.928 MB / 395.6 MB, free: 1.781 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03208/0.5873, allocations: 7.939 MB / 403.6 MB, free: 9.82 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005269/0.5927, allocations: 0.7684 MB / 404.3 MB, free: 9.051 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.04995/0.6427, allocations: 16.78 MB / 421.1 MB, free: 8.258 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0129/0.6556, allocations: 5.983 MB / 427.1 MB, free: 2.238 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00311/0.6588, allocations: 1.118 MB / 428.2 MB, free: 1.117 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004015/0.6628, allocations: 1.679 MB / 429.9 MB, free: 15.43 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00338/0.6663, allocations: 0.9559 MB / 430.9 MB, free: 14.48 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001454/0.6678, allocations: 167.9 kB / 431 MB, free: 14.31 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003401/0.6712, allocations: 2.003 MB / 433 MB, free: 12.3 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001769/0.673, allocations: 356 kB / 433.4 MB, free: 11.96 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01232/0.6853, allocations: 7.567 MB / 440.9 MB, free: 4.371 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.381e-06/0.6854, allocations: 0 / 440.9 MB, free: 4.371 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.6854, allocations: 4 kB / 440.9 MB, free: 4.367 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004075/0.6858, allocations: 0 / 440.9 MB, free: 4.367 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: 1842 * Number of variables: 1842 Notification: Performance of Generate backend data structure: time 0.01891/0.7048, allocations: 5.212 MB / 446.2 MB, free: 15.08 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.7048, allocations: 8.031 kB / 446.2 MB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1187/0.8235, allocations: 11.71 MB / 457.9 MB, free: 3.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01373/0.8373, allocations: 4.271 MB / 462.1 MB, free: 15.01 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004497/0.8378, allocations: 316.1 kB / 462.5 MB, free: 14.7 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002048/0.8399, allocations: 419.7 kB / 462.9 MB, free: 14.29 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03393/0.8738, allocations: 12.01 MB / 474.9 MB, free: 1.508 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002358/0.8741, allocations: 47.59 kB / 474.9 MB, free: 1.461 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001432/0.8756, allocations: 195.8 kB / 475.1 MB, free: 1.27 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005495/0.8811, allocations: 2.086 MB / 477.2 MB, free: 15.18 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03221/0.9133, allocations: 9.993 MB / 487.2 MB, free: 5.172 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3683/1.282, allocations: 46.51 MB / 0.5212 GB, free: 112.3 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01889/1.301, allocations: 4.25 MB / 0.5253 GB, free: 110.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02522/1.326, allocations: 9.679 MB / 0.5348 GB, free: 106.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.657e-05/1.326, allocations: 52.12 kB / 0.5348 GB, free: 106.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=191): time 6.842e-06/1.326, allocations: 0 / 0.5348 GB, free: 106.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=218): time 0.09576/1.422, allocations: 20.42 MB / 0.5548 GB, free: 96.26 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/1.422, allocations: 207.2 kB / 0.555 GB, free: 96.04 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009707/1.432, allocations: 4.524 MB / 0.5594 GB, free: 91.52 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005292/1.432, allocations: 61.64 kB / 0.5595 GB, free: 91.45 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003087/1.435, allocations: 3.748 MB / 0.5631 GB, free: 87.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001264/1.437, allocations: 0.8241 MB / 0.5639 GB, free: 86.89 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007059/1.437, allocations: 132 kB / 0.564 GB, free: 86.76 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004905/1.438, allocations: 0.5828 MB / 0.5646 GB, free: 86.17 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005813/1.444, allocations: 2.32 MB / 0.5669 GB, free: 83.85 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008099/1.452, allocations: 6.231 MB / 0.573 GB, free: 75.78 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008299/1.46, allocations: 3.732 MB / 0.5766 GB, free: 72.05 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001184/1.46, allocations: 40 kB / 0.5766 GB, free: 72.02 MB / 426.7 MB Notification: Performance of matching and sorting (n=853) (initialization): time 0.02539/1.486, allocations: 9.181 MB / 0.5856 GB, free: 62.83 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001004/1.486, allocations: 64 kB / 0.5857 GB, free: 62.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001762/1.486, allocations: 140 kB / 0.5858 GB, free: 62.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005161/1.491, allocations: 1.105 MB / 0.5869 GB, free: 61.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009198/1.501, allocations: 1.501 MB / 0.5884 GB, free: 60.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01564/1.516, allocations: 8.384 MB / 0.5965 GB, free: 51.37 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007378/1.524, allocations: 359.4 kB / 0.5969 GB, free: 51.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001246/1.525, allocations: 401.2 kB / 0.5973 GB, free: 50.63 MB / 426.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.005996/1.531, allocations: 2.534 MB / 0.5997 GB, free: 48.08 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001083/1.532, allocations: 430.5 kB / 0.6002 GB, free: 47.66 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01153/1.544, allocations: 3.858 MB / 0.6039 GB, free: 43.78 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.716e-05/1.544, allocations: 24 kB / 0.6039 GB, free: 43.75 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.182e-05/1.544, allocations: 11.95 kB / 0.604 GB, free: 43.74 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.784e-05/1.544, allocations: 11.95 kB / 0.604 GB, free: 43.73 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02852/1.572, allocations: 9.739 MB / 0.6135 GB, free: 33.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.35e-05/1.572, allocations: 4 kB / 0.6135 GB, free: 33.97 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003301/1.576, allocations: 339.5 kB / 0.6138 GB, free: 33.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004715/1.581, allocations: 0.8534 MB / 0.6146 GB, free: 32.78 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004695/1.581, allocations: 39.95 kB / 0.6147 GB, free: 32.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01409/1.595, allocations: 7.545 MB / 0.622 GB, free: 24.93 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/1.595, allocations: 4.047 kB / 0.622 GB, free: 24.93 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01708/1.612, allocations: 6.72 MB / 0.6286 GB, free: 18.15 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002774/1.615, allocations: 0.7731 MB / 0.6294 GB, free: 17.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001352/1.617, allocations: 32.78 kB / 0.6294 GB, free: 17.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003897/1.62, allocations: 125.3 kB / 0.6295 GB, free: 17.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007139/1.621, allocations: 137.7 kB / 0.6296 GB, free: 17.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002171/1.621, allocations: 52 kB / 0.6297 GB, free: 17.02 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007239/1.629, allocations: 3.234 MB / 0.6329 GB, free: 13.79 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.22e-07/1.629, allocations: 0 / 0.6329 GB, free: 13.79 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007256/1.636, allocations: 1.214 MB / 0.634 GB, free: 12.58 MB / 426.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.0008951/1.637, allocations: 191.1 kB / 0.6342 GB, free: 12.39 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01365/1.651, allocations: 5.873 MB / 0.64 GB, free: 6.523 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/1.651, allocations: 0 / 0.64 GB, free: 6.523 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005021/1.656, allocations: 2.054 MB / 0.642 GB, free: 4.441 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004124/1.66, allocations: 0.5282 MB / 0.6425 GB, free: 3.914 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03205/1.692, allocations: 13.45 MB / 0.6556 GB, free: 6.426 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01/1.702, allocations: 4.107 MB / 0.6596 GB, free: 2.285 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01001/1.712, allocations: 2.095 MB / 0.6617 GB, free: 188 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2889/2.001, allocations: 287.2 kB / 0.6619 GB, free: 136.3 MB / 442.7 MB Notification: Performance of SimCode: time 1.683e-06/2.001, allocations: 0 / 0.6619 GB, free: 136.3 MB / 442.7 MB Notification: Performance of Templates: time 0.1335/2.135, allocations: 43.06 MB / 0.704 GB, free: 121.1 MB / 442.7 MB