Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.976/1.976, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.153e-05/3.163e-05, allocations: 4 kB / 292.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1379, allocations: 50.41 MB / 342.6 MB, free: 6.324 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5018/0.6399, allocations: 94.04 MB / 436.7 MB, free: 15.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000323/0.6402, allocations: 83.7 kB / 436.8 MB, free: 15.95 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2755/0.9158, allocations: 59.42 MB / 496.2 MB, free: 9.062 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.9158, allocations: 0 / 496.2 MB, free: 9.062 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001558/0.916, allocations: 47.94 kB / 496.2 MB, free: 9.016 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 951 * Number of variables: 951 Notification: Performance of Generate backend data structure: time 0.01085/0.9268, allocations: 2.626 MB / 498.9 MB, free: 6.332 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.762e-05/0.9269, allocations: 8.031 kB / 498.9 MB, free: 6.324 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002186/0.9291, allocations: 498.3 kB / 499.3 MB, free: 5.828 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0153/0.9445, allocations: 1.927 MB / 0.4895 GB, free: 3.895 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01419/0.9587, allocations: 3.268 MB / 0.4927 GB, free: 0.5742 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003215/0.9591, allocations: 184.8 kB / 0.4929 GB, free: 400 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001739/0.9608, allocations: 251.8 kB / 0.4931 GB, free: 148 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02167/0.9826, allocations: 6.749 MB / 0.4997 GB, free: 8.699 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001796/0.9828, allocations: 35.69 kB / 0.4998 GB, free: 8.664 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001125/0.9839, allocations: 123.9 kB / 0.4999 GB, free: 8.543 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001985/0.9859, allocations: 0.7228 MB / 0.5006 GB, free: 7.816 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01886/1.005, allocations: 5.731 MB / 0.5062 GB, free: 2.082 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3755/1.38, allocations: 31.21 MB / 0.5367 GB, free: 95.2 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01037/1.391, allocations: 2.594 MB / 0.5392 GB, free: 94.54 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00289/1.394, allocations: 1.19 MB / 0.5403 GB, free: 94.5 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01541/1.409, allocations: 5.145 MB / 0.5454 GB, free: 93.07 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.081e-05/1.409, allocations: 41.77 kB / 0.5454 GB, free: 93.04 MB / 442.7 MB Notification: Performance of pre-optimization done (n=97): time 5.661e-06/1.409, allocations: 0.875 kB / 0.5454 GB, free: 93.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=105): time 0.03913/1.449, allocations: 7.994 MB / 0.5532 GB, free: 91.12 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.189e-05/1.449, allocations: 139.5 kB / 0.5534 GB, free: 90.97 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00725/1.456, allocations: 2.38 MB / 0.5557 GB, free: 90.69 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003948/1.456, allocations: 39.61 kB / 0.5557 GB, free: 90.66 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002403/1.459, allocations: 2.033 MB / 0.5577 GB, free: 89.56 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009522/1.46, allocations: 433.6 kB / 0.5581 GB, free: 89.33 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006364/1.46, allocations: 79.75 kB / 0.5582 GB, free: 89.33 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004204/1.461, allocations: 494 kB / 0.5587 GB, free: 89 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00496/1.466, allocations: 1.387 MB / 0.56 GB, free: 88.99 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007147/1.473, allocations: 3.971 MB / 0.5639 GB, free: 85.62 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007478/1.481, allocations: 2.315 MB / 0.5662 GB, free: 85.47 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001297/1.481, allocations: 25.72 kB / 0.5662 GB, free: 85.47 MB / 442.7 MB Notification: Performance of matching and sorting (n=532) (initialization): time 0.02317/1.504, allocations: 5.562 MB / 0.5716 GB, free: 84.11 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000125/1.504, allocations: 45.59 kB / 0.5717 GB, free: 84.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002061/1.504, allocations: 90.84 kB / 0.5717 GB, free: 84.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005751/1.51, allocations: 0.833 MB / 0.5726 GB, free: 84.03 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006205/1.516, allocations: 0.9409 MB / 0.5735 GB, free: 83.91 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01427/1.531, allocations: 4.287 MB / 0.5777 GB, free: 81.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005733/1.537, allocations: 284.4 kB / 0.5779 GB, free: 81.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001037/1.538, allocations: 264.3 kB / 0.5782 GB, free: 81.58 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 423 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (496): * Single equations (assignments): 492 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001148/1.539, allocations: 418.5 kB / 0.5786 GB, free: 81.23 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006643/1.54, allocations: 234 kB / 0.5788 GB, free: 81.11 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007361/1.547, allocations: 2.107 MB / 0.5809 GB, free: 80.48 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.202e-05/1.547, allocations: 14.59 kB / 0.5809 GB, free: 80.48 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/1.547, allocations: 6 kB / 0.5809 GB, free: 80.48 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.572e-05/1.547, allocations: 6.328 kB / 0.5809 GB, free: 80.48 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01638/1.563, allocations: 5.067 MB / 0.5858 GB, free: 78.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-05/1.564, allocations: 6.938 kB / 0.5858 GB, free: 78.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00155/1.565, allocations: 144.8 kB / 0.586 GB, free: 78.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004604/1.57, allocations: 0.6738 MB / 0.5866 GB, free: 78.61 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003055/1.57, allocations: 20.38 kB / 0.5867 GB, free: 78.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008066/1.578, allocations: 3.837 MB / 0.5904 GB, free: 76.56 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/1.578, allocations: 0 / 0.5904 GB, free: 76.56 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01116/1.589, allocations: 4.128 MB / 0.5944 GB, free: 74.89 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008358/1.59, allocations: 295.2 kB / 0.5947 GB, free: 74.65 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000756/1.591, allocations: 14.11 kB / 0.5947 GB, free: 74.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002471/1.594, allocations: 86.52 kB / 0.5948 GB, free: 74.63 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004182/1.594, allocations: 62.61 kB / 0.5949 GB, free: 74.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001362/1.594, allocations: 31.31 kB / 0.5949 GB, free: 74.61 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004176/1.598, allocations: 1.654 MB / 0.5965 GB, free: 74 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.41e-07/1.598, allocations: 0 / 0.5965 GB, free: 74 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005647/1.604, allocations: 0.6758 MB / 0.5972 GB, free: 73.92 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 70 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01103/1.615, allocations: 5.098 MB / 0.6022 GB, free: 70.36 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007663/1.623, allocations: 3.275 MB / 0.6054 GB, free: 67.39 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/1.623, allocations: 0 / 0.6054 GB, free: 67.39 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002236/1.625, allocations: 1.02 MB / 0.6064 GB, free: 66.47 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002305/1.628, allocations: 233.5 kB / 0.6066 GB, free: 66.26 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01893/1.647, allocations: 5.706 MB / 0.6122 GB, free: 61.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004188/1.651, allocations: 2.291 MB / 0.6144 GB, free: 59.49 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002761/1.654, allocations: 1.133 MB / 0.6155 GB, free: 58.45 MB / 442.7 MB Notification: Performance of SimCode: time 1.293e-06/1.654, allocations: 0 / 0.6155 GB, free: 58.45 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.951/5.604, allocations: 61.74 MB / 0.6758 GB, free: 15.74 MB / 458.7 MB