Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.274/2.274, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.464e-05/3.473e-05, allocations: 4 kB / 292.2 MB, free: 8.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.109, allocations: 50.41 MB / 342.6 MB, free: 6.289 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5477/0.6568, allocations: 94.74 MB / 437.4 MB, free: 15.28 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004852/0.6573, allocations: 84.58 kB / 437.5 MB, free: 15.24 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3265/0.9838, allocations: 67.56 MB / 0.4932 GB, free: 72 kB / 410.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.9839, allocations: 0 / 0.4932 GB, free: 72 kB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002551/0.9842, allocations: 64 kB / 0.4932 GB, free: 8 kB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1143 * Number of variables: 1143 Notification: Performance of Generate backend data structure: time 0.01223/0.9964, allocations: 3.087 MB / 0.4963 GB, free: 12.86 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.9965, allocations: 12.03 kB / 0.4963 GB, free: 12.85 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00243/0.9989, allocations: 0.5891 MB / 0.4968 GB, free: 12.25 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01431/1.013, allocations: 1.894 MB / 0.4987 GB, free: 10.34 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007237/1.021, allocations: 1.973 MB / 0.5006 GB, free: 8.312 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003525/1.021, allocations: 234.1 kB / 0.5008 GB, free: 8.082 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001757/1.023, allocations: 303.8 kB / 0.5011 GB, free: 7.785 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02015/1.043, allocations: 7.365 MB / 0.5083 GB, free: 15.55 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001473/1.043, allocations: 43.56 kB / 0.5084 GB, free: 15.51 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001041/1.044, allocations: 163.9 kB / 0.5085 GB, free: 15.35 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001631/1.046, allocations: 0.7348 MB / 0.5092 GB, free: 14.61 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01633/1.062, allocations: 5.456 MB / 0.5146 GB, free: 9.145 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3709/1.433, allocations: 35.31 MB / 0.5491 GB, free: 86.39 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004806/1.438, allocations: 1.638 MB / 0.5507 GB, free: 85.66 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001205/1.439, allocations: 474.3 kB / 0.5511 GB, free: 85.61 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006932/1.446, allocations: 2.913 MB / 0.554 GB, free: 83.91 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.889e-05/1.446, allocations: 46.81 kB / 0.554 GB, free: 83.87 MB / 442.7 MB Notification: Performance of pre-optimization done (n=83): time 5.781e-06/1.446, allocations: 0 / 0.554 GB, free: 83.87 MB / 442.7 MB Notification: Performance of matching and sorting (n=83): time 0.00705/1.453, allocations: 1.421 MB / 0.5554 GB, free: 83.67 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.661e-05/1.454, allocations: 222.8 kB / 0.5556 GB, free: 83.42 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007892/1.461, allocations: 3.269 MB / 0.5588 GB, free: 83.11 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001605/1.462, allocations: 39.22 kB / 0.5588 GB, free: 83.07 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002233/1.464, allocations: 2.63 MB / 0.5614 GB, free: 81.79 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005522/1.464, allocations: 371.6 kB / 0.5617 GB, free: 81.61 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004133/1.465, allocations: 93.31 kB / 0.5618 GB, free: 81.61 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003108/1.465, allocations: 0.5074 MB / 0.5623 GB, free: 81.29 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002901/1.468, allocations: 1.184 MB / 0.5635 GB, free: 81.27 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004543/1.473, allocations: 4.503 MB / 0.5679 GB, free: 76.88 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004666/1.477, allocations: 2.319 MB / 0.5702 GB, free: 76.87 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001005/1.478, allocations: 36.25 kB / 0.5702 GB, free: 76.87 MB / 442.7 MB Notification: Performance of matching and sorting (n=620) (initialization): time 0.01264/1.49, allocations: 4.994 MB / 0.5751 GB, free: 76.42 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.936e-05/1.49, allocations: 61.12 kB / 0.5751 GB, free: 76.42 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001517/1.491, allocations: 121.2 kB / 0.5752 GB, free: 76.42 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001946/1.491, allocations: 173.7 kB / 0.5754 GB, free: 76.42 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006145/1.497, allocations: 1.131 MB / 0.5765 GB, free: 76.31 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002042/1.497, allocations: 238.3 kB / 0.5767 GB, free: 76.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005731/1.503, allocations: 0.6982 MB / 0.5774 GB, free: 75.89 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00104/1.504, allocations: 349.7 kB / 0.5777 GB, free: 75.89 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 551 * Number of states: 0 () * Number of discrete variables: 24 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (596): * Single equations (assignments): 593 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007658/1.505, allocations: 494 kB / 0.5782 GB, free: 75.6 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007302/1.505, allocations: 307.6 kB / 0.5785 GB, free: 75.43 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001316/1.507, allocations: 0.4902 MB / 0.579 GB, free: 75.36 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.15e-05/1.507, allocations: 11.88 kB / 0.579 GB, free: 75.36 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.29e-05/1.507, allocations: 3.594 kB / 0.579 GB, free: 75.36 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.274e-05/1.507, allocations: 11.19 kB / 0.579 GB, free: 75.36 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008097/1.515, allocations: 3.287 MB / 0.5822 GB, free: 74.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.931e-05/1.515, allocations: 7.859 kB / 0.5822 GB, free: 74.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009941/1.516, allocations: 112.1 kB / 0.5823 GB, free: 74.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.545e-05/1.516, allocations: 7.469 kB / 0.5824 GB, free: 74.21 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.016e-05/1.516, allocations: 19.25 kB / 0.5824 GB, free: 74.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.03e-05/1.516, allocations: 7.5 kB / 0.5824 GB, free: 74.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.174e-06/1.516, allocations: 11.06 kB / 0.5824 GB, free: 74.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003102/1.519, allocations: 2.469 MB / 0.5848 GB, free: 72.52 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001202/1.521, allocations: 469 kB / 0.5852 GB, free: 72.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004347/1.521, allocations: 15.91 kB / 0.5853 GB, free: 72.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001601/1.523, allocations: 41.38 kB / 0.5853 GB, free: 72.19 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/1.523, allocations: 52.3 kB / 0.5853 GB, free: 72.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.146e-05/1.523, allocations: 28.5 kB / 0.5854 GB, free: 72.17 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005063/1.528, allocations: 2.331 MB / 0.5877 GB, free: 71.38 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.142e-06/1.528, allocations: 2.844 kB / 0.5877 GB, free: 71.38 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005615/1.534, allocations: 0.8256 MB / 0.5885 GB, free: 71.17 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 2 (prismatic.v,position.s) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 57 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003707/1.537, allocations: 4.047 MB / 0.5924 GB, free: 68.02 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005884/1.543, allocations: 2.606 MB / 0.595 GB, free: 67.21 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.147e-05/1.543, allocations: 0 / 0.595 GB, free: 67.21 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008358/1.544, allocations: 406.3 kB / 0.5953 GB, free: 67.09 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002746/1.547, allocations: 358.4 kB / 0.5957 GB, free: 66.93 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02103/1.568, allocations: 6.785 MB / 0.6023 GB, free: 64.31 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004609/1.573, allocations: 2.755 MB / 0.605 GB, free: 63.17 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002954/1.576, allocations: 1.536 MB / 0.6065 GB, free: 61.98 MB / 442.7 MB Notification: Performance of SimCode: time 1.092e-06/1.576, allocations: 4 kB / 0.6065 GB, free: 61.98 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.908/5.483, allocations: 63.8 MB / 0.6688 GB, free: 8.996 MB / 442.7 MB