Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.335/2.335, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.29e-05/3.294e-05, allocations: 3.984 kB / 292.2 MB, free: 8.746 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1079, allocations: 50.41 MB / 342.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5057/0.6137, allocations: 99.68 MB / 442.3 MB, free: 10.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003005/0.614, allocations: 86.39 kB / 442.4 MB, free: 10.71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7582/1.372, allocations: 104.3 MB / 0.5339 GB, free: 93.07 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.405e-06/1.372, allocations: 2.812 kB / 0.5339 GB, free: 93.07 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005667/1.373, allocations: 105.6 kB / 0.534 GB, free: 93.07 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.02377/1.397, allocations: 5.105 MB / 0.539 GB, free: 91.05 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/1.397, allocations: 9.875 kB / 0.539 GB, free: 91.05 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004321/1.401, allocations: 0.893 MB / 0.5399 GB, free: 90.97 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05177/1.453, allocations: 6.9 MB / 0.5466 GB, free: 90.62 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02304/1.476, allocations: 6.429 MB / 0.5529 GB, free: 89.89 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004578/1.476, allocations: 389.6 kB / 0.5533 GB, free: 89.88 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002711/1.479, allocations: 0.5127 MB / 0.5538 GB, free: 89.88 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03544/1.515, allocations: 12.16 MB / 0.5656 GB, free: 86.84 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003556/1.515, allocations: 75.84 kB / 0.5657 GB, free: 86.83 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001977/1.517, allocations: 248.7 kB / 0.5659 GB, free: 86.83 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002252/1.519, allocations: 1.07 MB / 0.567 GB, free: 86.82 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0293/1.549, allocations: 9.672 MB / 0.5764 GB, free: 85.89 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07627/1.625, allocations: 55.56 MB / 0.6307 GB, free: 43.87 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01701/1.642, allocations: 4.12 MB / 0.6347 GB, free: 42.01 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004246/1.646, allocations: 2.212 MB / 0.6369 GB, free: 39.98 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02093/1.667, allocations: 9.376 MB / 0.646 GB, free: 31.88 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.162e-05/1.667, allocations: 47.56 kB / 0.6461 GB, free: 31.82 MB / 442.7 MB Notification: Performance of pre-optimization done (n=171): time 5.441e-06/1.667, allocations: 3.938 kB / 0.6461 GB, free: 31.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=197): time 0.07148/1.739, allocations: 15.06 MB / 0.6608 GB, free: 18.93 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/1.739, allocations: 208.5 kB / 0.661 GB, free: 18.68 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009646/1.749, allocations: 4.094 MB / 0.665 GB, free: 15.05 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004517/1.749, allocations: 61.64 kB / 0.665 GB, free: 14.98 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002701/1.752, allocations: 3.519 MB / 0.6685 GB, free: 11.79 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001085/1.753, allocations: 0.7556 MB / 0.6692 GB, free: 11.12 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005065/1.754, allocations: 124 kB / 0.6693 GB, free: 11 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003652/1.754, allocations: 0.5726 MB / 0.6699 GB, free: 10.5 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004543/1.759, allocations: 2.031 MB / 0.6719 GB, free: 8.664 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007014/1.766, allocations: 5.831 MB / 0.6776 GB, free: 1.219 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007982/1.774, allocations: 3.46 MB / 0.6809 GB, free: 14.25 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001154/1.774, allocations: 40 kB / 0.681 GB, free: 14.21 MB / 458.7 MB Notification: Performance of matching and sorting (n=822) (initialization): time 0.02497/1.799, allocations: 7.839 MB / 0.6886 GB, free: 6.723 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001286/1.799, allocations: 64 kB / 0.6887 GB, free: 6.66 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002204/1.799, allocations: 140.2 kB / 0.6888 GB, free: 6.523 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004761/1.804, allocations: 0.9335 MB / 0.6897 GB, free: 5.586 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009537/1.814, allocations: 1.431 MB / 0.6911 GB, free: 4.152 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3405/2.154, allocations: 7.4 MB / 0.6984 GB, free: 94.38 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006914/2.161, allocations: 333.3 kB / 0.6987 GB, free: 94.38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001293/2.163, allocations: 388.3 kB / 0.6991 GB, free: 94.38 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.001261/2.164, allocations: 0.6067 MB / 0.6997 GB, free: 94.27 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001083/2.165, allocations: 413.2 kB / 0.7 GB, free: 94.27 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009916/2.175, allocations: 3.16 MB / 0.7031 GB, free: 94.13 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.411e-05/2.175, allocations: 23.03 kB / 0.7032 GB, free: 94.13 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.27e-05/2.175, allocations: 7.344 kB / 0.7032 GB, free: 94.13 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.235e-05/2.175, allocations: 13.95 kB / 0.7032 GB, free: 94.13 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02584/2.201, allocations: 8.537 MB / 0.7115 GB, free: 93.61 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.129e-05/2.201, allocations: 1.375 kB / 0.7115 GB, free: 93.61 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00283/2.204, allocations: 297.2 kB / 0.7118 GB, free: 93.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003714/2.208, allocations: 0.6854 MB / 0.7125 GB, free: 93.6 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000245/2.208, allocations: 39.73 kB / 0.7125 GB, free: 93.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01095/2.219, allocations: 6.534 MB / 0.7189 GB, free: 91.02 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/2.219, allocations: 3.938 kB / 0.7189 GB, free: 91.02 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01282/2.232, allocations: 5.681 MB / 0.7244 GB, free: 90.39 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00158/2.233, allocations: 462.7 kB / 0.7249 GB, free: 90.23 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001197/2.234, allocations: 34.16 kB / 0.7249 GB, free: 90.23 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003215/2.238, allocations: 92.2 kB / 0.725 GB, free: 90.23 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006833/2.238, allocations: 126 kB / 0.7251 GB, free: 90.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001878/2.239, allocations: 51.83 kB / 0.7252 GB, free: 90.23 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007416/2.246, allocations: 2.889 MB / 0.728 GB, free: 90.02 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.61e-07/2.246, allocations: 2.438 kB / 0.728 GB, free: 90.02 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008118/2.254, allocations: 1.129 MB / 0.7291 GB, free: 90.02 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.01355/2.268, allocations: 6.551 MB / 0.7355 GB, free: 87.09 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0121/2.28, allocations: 5.047 MB / 0.7404 GB, free: 85.54 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/2.28, allocations: 3.594 kB / 0.7404 GB, free: 85.54 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004458/2.285, allocations: 1.738 MB / 0.7421 GB, free: 84.79 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004489/2.289, allocations: 0.5279 MB / 0.7426 GB, free: 84.58 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03507/2.324, allocations: 11.05 MB / 0.7534 GB, free: 80.54 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008814/2.333, allocations: 3.97 MB / 0.7573 GB, free: 79.11 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005613/2.339, allocations: 2.41 MB / 0.7597 GB, free: 77.17 MB / 458.7 MB Notification: Performance of SimCode: time 1.583e-06/2.339, allocations: 0 / 0.7597 GB, free: 77.17 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.953/7.292, allocations: 137.6 MB / 0.894 GB, free: 107.6 MB / 474.7 MB