Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.436/2.436, allocations: 270 MB / 282.6 MB, free: 1.887 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.594e-05/3.627e-05, allocations: 0 / 347.1 MB, free: 3.125 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4027/0.4028, allocations: 61.85 MB / 408.9 MB, free: 10.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2019/0.6048, allocations: 109.8 MB / 0.5066 GB, free: 12.73 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003072/0.6051, allocations: 79.95 kB / 0.5066 GB, free: 12.65 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8292/1.434, allocations: 104.5 MB / 0.6087 GB, free: 31.62 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.445e-06/1.434, allocations: 0 / 0.6087 GB, free: 31.62 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003545/1.435, allocations: 104 kB / 0.6088 GB, free: 31.52 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.02009/1.455, allocations: 5.113 MB / 0.6138 GB, free: 26.34 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/1.455, allocations: 8.031 kB / 0.6138 GB, free: 26.33 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004057/1.459, allocations: 0.8937 MB / 0.6147 GB, free: 25.43 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05056/1.51, allocations: 6.9 MB / 0.6214 GB, free: 18.51 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02315/1.533, allocations: 6.473 MB / 0.6277 GB, free: 11.98 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004427/1.533, allocations: 390.3 kB / 0.6281 GB, free: 11.59 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00272/1.536, allocations: 0.5153 MB / 0.6286 GB, free: 11.08 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03618/1.572, allocations: 12.16 MB / 0.6405 GB, free: 13.78 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004394/1.573, allocations: 71.31 kB / 0.6406 GB, free: 13.71 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002608/1.575, allocations: 247.9 kB / 0.6408 GB, free: 13.46 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002769/1.578, allocations: 1.07 MB / 0.6418 GB, free: 12.39 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03443/1.613, allocations: 9.674 MB / 0.6513 GB, free: 2.703 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1096/1.722, allocations: 55.57 MB / 0.7055 GB, free: 9.281 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01885/1.741, allocations: 4.125 MB / 0.7096 GB, free: 5.008 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005353/1.747, allocations: 2.21 MB / 0.7117 GB, free: 2.789 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4293/2.176, allocations: 9.365 MB / 0.7209 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.921e-05/2.176, allocations: 55.86 kB / 0.7209 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=171): time 5.971e-06/2.176, allocations: 3.5 kB / 0.7209 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=197): time 0.06956/2.246, allocations: 15.07 MB / 0.7356 GB, free: 117.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.971e-05/2.246, allocations: 199.7 kB / 0.7358 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01238/2.258, allocations: 4.1 MB / 0.7398 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005009/2.259, allocations: 54.58 kB / 0.7399 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004172/2.263, allocations: 3.52 MB / 0.7433 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001482/2.264, allocations: 0.7546 MB / 0.7441 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008969/2.265, allocations: 124.5 kB / 0.7442 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006141/2.266, allocations: 0.5765 MB / 0.7448 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006937/2.273, allocations: 2.033 MB / 0.7467 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01041/2.283, allocations: 5.83 MB / 0.7524 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01029/2.294, allocations: 3.455 MB / 0.7558 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001983/2.294, allocations: 36.47 kB / 0.7558 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=822) (initialization): time 0.03013/2.324, allocations: 7.848 MB / 0.7635 GB, free: 108 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002003/2.324, allocations: 68.75 kB / 0.7636 GB, free: 108 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000309/2.325, allocations: 134.8 kB / 0.7637 GB, free: 108 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004988/2.33, allocations: 0.9361 MB / 0.7646 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00883/2.339, allocations: 1.435 MB / 0.766 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01387/2.353, allocations: 7.4 MB / 0.7732 GB, free: 103 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007006/2.36, allocations: 344.6 kB / 0.7736 GB, free: 102.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001274/2.361, allocations: 382.2 kB / 0.7739 GB, free: 102.9 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.001509/2.362, allocations: 0.6048 MB / 0.7745 GB, free: 102.4 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001044/2.363, allocations: 412.3 kB / 0.7749 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00911/2.373, allocations: 3.168 MB / 0.778 GB, free: 101 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.338e-05/2.373, allocations: 18.97 kB / 0.778 GB, free: 101 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.821e-05/2.373, allocations: 11.61 kB / 0.778 GB, free: 100.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.488e-05/2.373, allocations: 7.5 kB / 0.778 GB, free: 100.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02381/2.397, allocations: 8.531 MB / 0.7864 GB, free: 97.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-05/2.397, allocations: 1.406 kB / 0.7864 GB, free: 97.45 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002826/2.399, allocations: 300.9 kB / 0.7867 GB, free: 97.21 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003748/2.403, allocations: 0.6783 MB / 0.7873 GB, free: 96.73 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003282/2.404, allocations: 39 kB / 0.7874 GB, free: 96.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01107/2.415, allocations: 6.544 MB / 0.7938 GB, free: 90.58 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/2.415, allocations: 10.75 kB / 0.7938 GB, free: 90.57 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01227/2.427, allocations: 5.691 MB / 0.7993 GB, free: 85.51 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001377/2.428, allocations: 455 kB / 0.7998 GB, free: 85.06 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007906/2.429, allocations: 35.12 kB / 0.7998 GB, free: 85.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002762/2.432, allocations: 102.7 kB / 0.7999 GB, free: 84.96 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005654/2.433, allocations: 123 kB / 0.8 GB, free: 84.88 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001917/2.433, allocations: 55.17 kB / 0.8001 GB, free: 84.84 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006455/2.439, allocations: 2.888 MB / 0.8029 GB, free: 82.29 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.22e-07/2.439, allocations: 0 / 0.8029 GB, free: 82.29 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007498/2.447, allocations: 1.131 MB / 0.804 GB, free: 81.16 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.01287/2.46, allocations: 6.561 MB / 0.8104 GB, free: 75.26 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0114/2.471, allocations: 5.05 MB / 0.8153 GB, free: 70.68 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/2.471, allocations: 0 / 0.8153 GB, free: 70.68 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004077/2.475, allocations: 1.741 MB / 0.817 GB, free: 69.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003998/2.479, allocations: 0.5107 MB / 0.8175 GB, free: 68.67 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04032/2.52, allocations: 11.06 MB / 0.8283 GB, free: 59.13 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01123/2.531, allocations: 3.968 MB / 0.8322 GB, free: 56.16 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006538/2.538, allocations: 2.41 MB / 0.8346 GB, free: 53.93 MB / 0.5105 GB Notification: Performance of SimCode: time 1.443e-06/2.538, allocations: 0 / 0.8346 GB, free: 53.93 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.993/7.53, allocations: 137.6 MB / 0.9689 GB, free: 133 MB / 0.5417 GB