Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.939/1.939, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.658e-05/4.666e-05, allocations: 4 kB / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1159, allocations: 50.42 MB / 342.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4707/0.5867, allocations: 93.71 MB / 436.3 MB, free: 308 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002711/0.587, allocations: 87.56 kB / 436.4 MB, free: 260 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2566/0.8436, allocations: 58.85 MB / 495.3 MB, free: 9.918 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.8437, allocations: 0 / 495.3 MB, free: 9.918 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001365/0.8438, allocations: 52 kB / 495.3 MB, free: 9.867 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.01779/0.8616, allocations: 2.947 MB / 498.3 MB, free: 6.863 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.8617, allocations: 8.031 kB / 498.3 MB, free: 6.855 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001767/0.8635, allocations: 0.5026 MB / 498.8 MB, free: 6.344 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0169/0.8804, allocations: 2.059 MB / 0.4891 GB, free: 4.277 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01506/0.8955, allocations: 3.486 MB / 0.4925 GB, free: 0.7422 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000305/0.8959, allocations: 189 kB / 0.4927 GB, free: 0.5547 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001531/0.8974, allocations: 251.8 kB / 0.4929 GB, free: 316 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02111/0.9186, allocations: 6.931 MB / 0.4997 GB, free: 8.633 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001837/0.9188, allocations: 39.62 kB / 0.4997 GB, free: 8.594 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001132/0.9199, allocations: 131.9 kB / 0.4999 GB, free: 8.465 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00189/0.9219, allocations: 0.715 MB / 0.5006 GB, free: 7.75 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01875/0.9406, allocations: 5.821 MB / 0.5062 GB, free: 1.926 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3589/1.3, allocations: 32.68 MB / 0.5382 GB, free: 93.34 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01399/1.314, allocations: 2.639 MB / 0.5407 GB, free: 92.68 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00342/1.317, allocations: 1.012 MB / 0.5417 GB, free: 92.65 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01338/1.331, allocations: 3.889 MB / 0.5455 GB, free: 90.81 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.638e-05/1.331, allocations: 51.58 kB / 0.5456 GB, free: 90.77 MB / 442.7 MB Notification: Performance of pre-optimization done (n=112): time 5.81e-06/1.331, allocations: 2.938 kB / 0.5456 GB, free: 90.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=125): time 0.05501/1.386, allocations: 8.87 MB / 0.5542 GB, free: 88.82 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001331/1.387, allocations: 1.578 MB / 0.5558 GB, free: 87.29 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004795/1.392, allocations: 2.407 MB / 0.5581 GB, free: 87 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003632/1.392, allocations: 43.61 kB / 0.5582 GB, free: 86.97 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001706/1.394, allocations: 2.083 MB / 0.5602 GB, free: 85.8 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008195/1.395, allocations: 0.5034 MB / 0.5607 GB, free: 85.52 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004694/1.395, allocations: 90.09 kB / 0.5608 GB, free: 85.52 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002792/1.396, allocations: 0.4977 MB / 0.5613 GB, free: 85.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003616/1.399, allocations: 1.566 MB / 0.5628 GB, free: 85.18 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005364/1.405, allocations: 4.317 MB / 0.567 GB, free: 81.59 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00545/1.41, allocations: 2.6 MB / 0.5696 GB, free: 81.57 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.288e-05/1.41, allocations: 29.94 kB / 0.5696 GB, free: 81.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=589) (initialization): time 0.02095/1.431, allocations: 6.569 MB / 0.576 GB, free: 80.04 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001251/1.431, allocations: 48.06 kB / 0.576 GB, free: 80.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01027/1.442, allocations: 2.518 MB / 0.5785 GB, free: 79.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008948/1.451, allocations: 1.495 MB / 0.58 GB, free: 79.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005761/1.457, allocations: 1.018 MB / 0.581 GB, free: 79.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01432/1.471, allocations: 7.223 MB / 0.588 GB, free: 74.99 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005948/1.477, allocations: 363.9 kB / 0.5884 GB, free: 74.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008109/1.478, allocations: 282.3 kB / 0.5886 GB, free: 74.87 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 450 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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 (541): * Single equations (assignments): 533 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009236/1.479, allocations: 453 kB / 0.5891 GB, free: 74.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000586/1.479, allocations: 235.1 kB / 0.5893 GB, free: 74.37 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01072/1.49, allocations: 2.822 MB / 0.592 GB, free: 73.57 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009891/1.5, allocations: 2.496 MB / 0.5945 GB, free: 72.93 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.253e-05/1.5, allocations: 7.922 kB / 0.5945 GB, free: 72.93 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.198e-05/1.5, allocations: 6.75 kB / 0.5945 GB, free: 72.93 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02124/1.521, allocations: 6.869 MB / 0.6012 GB, free: 70.56 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.448e-05/1.521, allocations: 0 / 0.6012 GB, free: 70.56 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001711/1.523, allocations: 178.7 kB / 0.6014 GB, free: 70.55 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008472/1.532, allocations: 1.423 MB / 0.6028 GB, free: 70.16 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003014/1.532, allocations: 38.5 kB / 0.6028 GB, free: 70.14 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0143/1.546, allocations: 7.322 MB / 0.6099 GB, free: 63.61 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001055/1.547, allocations: 1.447 MB / 0.6114 GB, free: 62.07 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01389/1.561, allocations: 4.92 MB / 0.6162 GB, free: 57.95 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009006/1.562, allocations: 313.4 kB / 0.6165 GB, free: 57.64 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005036/1.563, allocations: 20 kB / 0.6165 GB, free: 57.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002303/1.565, allocations: 128.4 kB / 0.6166 GB, free: 57.55 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003369/1.565, allocations: 90.03 kB / 0.6167 GB, free: 57.49 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001487/1.566, allocations: 37 kB / 0.6167 GB, free: 57.46 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003335/1.569, allocations: 1.656 MB / 0.6183 GB, free: 55.98 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.82e-07/1.569, allocations: 0 / 0.6183 GB, free: 55.98 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005278/1.574, allocations: 0.7796 MB / 0.6191 GB, free: 55.21 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01431/1.589, allocations: 5.942 MB / 0.6249 GB, free: 50.09 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01032/1.599, allocations: 4.094 MB / 0.6289 GB, free: 46.09 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.473e-06/1.599, allocations: 4 kB / 0.6289 GB, free: 46.08 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005078/1.604, allocations: 1.669 MB / 0.6305 GB, free: 44.37 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002022/1.606, allocations: 237.9 kB / 0.6308 GB, free: 44.13 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01819/1.624, allocations: 6.708 MB / 0.6373 GB, free: 37.41 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002908/1.627, allocations: 2.346 MB / 0.6396 GB, free: 35.04 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002289/1.63, allocations: 1.148 MB / 0.6407 GB, free: 33.89 MB / 442.7 MB Notification: Performance of SimCode: time 2.023e-06/1.63, allocations: 0 / 0.6407 GB, free: 33.89 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.337/5.967, allocations: 86.8 MB / 0.7255 GB, free: 120.1 MB / 458.7 MB