Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.468/2.468, allocations: 270 MB / 282.7 MB, free: 1.848 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.035e-05/4.053e-05, allocations: 4 kB / 347.1 MB, free: 3.102 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4028/0.4028, allocations: 61.86 MB / 408.9 MB, free: 10.65 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1984/0.6013, allocations: 111.4 MB / 0.5082 GB, free: 11.04 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000294/0.6017, allocations: 79.95 kB / 0.5082 GB, free: 10.96 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9722/1.574, allocations: 162.3 MB / 0.6667 GB, free: 3.555 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.635e-06/1.574, allocations: 0 / 0.6667 GB, free: 3.555 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005136/1.574, allocations: 156 kB / 0.6669 GB, free: 3.402 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3026 * Number of variables: 3026 Notification: Performance of Generate backend data structure: time 0.03131/1.606, allocations: 7.349 MB / 0.6741 GB, free: 11.97 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.279e-05/1.606, allocations: 8.031 kB / 0.6741 GB, free: 11.96 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007536/1.613, allocations: 1.508 MB / 0.6756 GB, free: 10.45 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0769/1.69, allocations: 10.02 MB / 0.6853 GB, free: 404 kB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03305/1.724, allocations: 8.018 MB / 0.6932 GB, free: 8.285 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009735/1.725, allocations: 0.6057 MB / 0.6938 GB, free: 7.676 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00521/1.73, allocations: 0.8082 MB / 0.6946 GB, free: 6.867 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06423/1.794, allocations: 19.81 MB / 0.7139 GB, free: 1.629 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005736/1.795, allocations: 87.2 kB / 0.714 GB, free: 1.543 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004578/1.799, allocations: 383.8 kB / 0.7143 GB, free: 1.168 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.4209/2.22, allocations: 2.038 MB / 0.7163 GB, free: 87.28 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05236/2.273, allocations: 17.07 MB / 0.733 GB, free: 87.24 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1377/2.41, allocations: 83.54 MB / 0.8146 GB, free: 39.82 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02606/2.437, allocations: 7.715 MB / 0.8221 GB, free: 36.54 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009716/2.446, allocations: 4.915 MB / 0.8269 GB, free: 34.51 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003668/2.447, allocations: 60.86 kB / 0.827 GB, free: 34.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.799e-05/2.447, allocations: 72.38 kB / 0.8271 GB, free: 34.43 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=429): time 9.458e-06/2.447, allocations: 0 / 0.8271 GB, free: 34.43 MB / 0.5105 GB Notification: Performance of matching and sorting (n=476): time 0.1531/2.6, allocations: 34.58 MB / 0.8608 GB, free: 11.55 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/2.6, allocations: 222.8 kB / 0.861 GB, free: 11.29 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01394/2.614, allocations: 5.593 MB / 0.8665 GB, free: 6.465 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001078/2.615, allocations: 93.7 kB / 0.8666 GB, free: 6.367 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004579/2.62, allocations: 5.403 MB / 0.8719 GB, free: 1.52 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002749/2.623, allocations: 1.731 MB / 0.8736 GB, free: 0 / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003087/2.626, allocations: 282.5 kB / 0.8738 GB, free: 0 / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001679/2.628, allocations: 0.793 MB / 0.8746 GB, free: 15.34 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01606/2.644, allocations: 4.599 MB / 0.8791 GB, free: 11.18 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02701/2.671, allocations: 10.57 MB / 0.8894 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02304/2.694, allocations: 7.043 MB / 0.8963 GB, free: 8.664 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004009/2.694, allocations: 63.95 kB / 0.8964 GB, free: 8.602 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1448) (initialization): time 0.06702/2.761, allocations: 15.88 MB / 0.9119 GB, free: 11.57 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001949/2.762, allocations: 96 kB / 0.912 GB, free: 11.47 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004059/2.762, allocations: 212 kB / 0.9122 GB, free: 11.27 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008256/2.77, allocations: 1.706 MB / 0.9138 GB, free: 9.938 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01741/2.788, allocations: 2.52 MB / 0.9163 GB, free: 7.77 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4699/3.258, allocations: 14.09 MB / 0.93 GB, free: 116.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01272/3.271, allocations: 0.6469 MB / 0.9307 GB, free: 116.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002938/3.274, allocations: 0.6181 MB / 0.9313 GB, free: 116.9 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 962 * Number of states: 0 () * Number of discrete variables: 53 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],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 (1324): * Single equations (assignments): 1311 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004585/3.278, allocations: 0.9029 MB / 0.9322 GB, free: 116.8 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002129/3.28, allocations: 0.5984 MB / 0.9327 GB, free: 116.8 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02801/3.308, allocations: 9.125 MB / 0.9417 GB, free: 116.5 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001786/3.309, allocations: 90.72 kB / 0.9417 GB, free: 116.5 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.959e-05/3.309, allocations: 13.98 kB / 0.9418 GB, free: 116.5 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.683e-05/3.309, allocations: 22.05 kB / 0.9418 GB, free: 116.5 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05771/3.366, allocations: 20.65 MB / 0.9619 GB, free: 115.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.717e-05/3.367, allocations: 10.59 kB / 0.962 GB, free: 115.3 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006969/3.374, allocations: 0.7457 MB / 0.9627 GB, free: 115.3 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006654/3.38, allocations: 1.361 MB / 0.964 GB, free: 115.3 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001031/3.381, allocations: 91.05 kB / 0.9641 GB, free: 115.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0209/3.402, allocations: 12.87 MB / 0.9767 GB, free: 110.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.437e-05/3.402, allocations: 16.16 kB / 0.9767 GB, free: 110.1 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03516/3.438, allocations: 16.35 MB / 0.9926 GB, free: 104.2 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001875/3.439, allocations: 0.6259 MB / 0.9933 GB, free: 103.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002247/3.442, allocations: 85.64 kB / 0.9933 GB, free: 103.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006376/3.448, allocations: 293.5 kB / 0.9936 GB, free: 103.8 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0015/3.45, allocations: 285.9 kB / 0.9939 GB, free: 103.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005895/3.45, allocations: 127.3 kB / 0.994 GB, free: 103.7 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01048/3.461, allocations: 3.865 MB / 0.9978 GB, free: 102.4 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.343e-06/3.461, allocations: 2.25 kB / 0.9978 GB, free: 102.4 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0137/3.475, allocations: 1.978 MB / 0.9997 GB, free: 102.2 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 (359): * Single equations (assignments): 346 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0357/3.51, allocations: 19.11 MB / 1.018 GB, free: 91.79 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02461/3.535, allocations: 11.14 MB / 1.029 GB, free: 88.21 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.587e-05/3.535, allocations: 0 / 1.029 GB, free: 88.21 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01026/3.545, allocations: 4.57 MB / 1.034 GB, free: 84.14 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006303/3.552, allocations: 0.7127 MB / 1.034 GB, free: 83.54 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06223/3.614, allocations: 20.45 MB / 1.054 GB, free: 65.78 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01486/3.629, allocations: 6.145 MB / 1.06 GB, free: 61.26 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01021/3.639, allocations: 4.016 MB / 1.064 GB, free: 57.54 MB / 0.5573 GB Notification: Performance of SimCode: time 1.343e-06/3.639, allocations: 0 / 1.064 GB, free: 57.54 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.716/10.36, allocations: 299 MB / 1.356 GB, free: 125.8 MB / 0.5886 GB