Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.151/2.151, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.684e-05/3.689e-05, allocations: 7.984 kB / 292.2 MB, free: 8.711 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1058, allocations: 50.41 MB / 342.6 MB, free: 6.277 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.459/0.5649, allocations: 99.05 MB / 441.7 MB, free: 10.97 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003239/0.5652, allocations: 92.88 kB / 441.8 MB, free: 10.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4232/0.9884, allocations: 95.01 MB / 0.5242 GB, free: 164 kB / 442.7 MB Notification: Performance of FrontEnd: time 2.023e-06/0.9885, allocations: 4 kB / 0.5242 GB, free: 160 kB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002647/0.9888, allocations: 87.98 kB / 0.5243 GB, free: 72 kB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.3234/1.312, allocations: 4.7 MB / 0.5289 GB, free: 97.32 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.87e-05/1.312, allocations: 10.33 kB / 0.5289 GB, free: 97.32 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004983/1.317, allocations: 0.8542 MB / 0.5297 GB, free: 97.24 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02343/1.341, allocations: 2.694 MB / 0.5324 GB, free: 96.93 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02219/1.363, allocations: 5.306 MB / 0.5375 GB, free: 96.47 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007202/1.364, allocations: 362.5 kB / 0.5379 GB, free: 96.46 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003002/1.367, allocations: 477 kB / 0.5383 GB, free: 96.46 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04195/1.409, allocations: 12.47 MB / 0.5505 GB, free: 93.41 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003697/1.409, allocations: 66.5 kB / 0.5506 GB, free: 93.41 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00242/1.412, allocations: 230.9 kB / 0.5508 GB, free: 93.41 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003175/1.415, allocations: 1.216 MB / 0.552 GB, free: 93.39 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03326/1.448, allocations: 9.926 MB / 0.5617 GB, free: 93.38 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0764/1.525, allocations: 52.89 MB / 0.6133 GB, free: 55.14 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0186/1.543, allocations: 4.493 MB / 0.6177 GB, free: 53.29 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003757/1.547, allocations: 1.654 MB / 0.6193 GB, free: 52.64 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01938/1.566, allocations: 8.262 MB / 0.6274 GB, free: 47.97 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.288e-05/1.567, allocations: 53.84 kB / 0.6275 GB, free: 47.92 MB / 442.7 MB Notification: Performance of pre-optimization done (n=183): time 7.795e-06/1.567, allocations: 0 / 0.6275 GB, free: 47.92 MB / 442.7 MB Notification: Performance of matching and sorting (n=205): time 0.0595/1.626, allocations: 13.68 MB / 0.6408 GB, free: 36.97 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001287/1.627, allocations: 1.592 MB / 0.6424 GB, free: 35.26 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008492/1.636, allocations: 3.675 MB / 0.6459 GB, free: 31.98 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005064/1.637, allocations: 53.7 kB / 0.646 GB, free: 31.93 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002727/1.639, allocations: 3.336 MB / 0.6493 GB, free: 28.91 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001234/1.641, allocations: 0.8055 MB / 0.65 GB, free: 28.2 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008868/1.641, allocations: 132 kB / 0.6502 GB, free: 28.07 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005286/1.642, allocations: 0.5949 MB / 0.6508 GB, free: 27.55 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006946/1.649, allocations: 2.135 MB / 0.6528 GB, free: 25.63 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01146/1.66, allocations: 6.182 MB / 0.6589 GB, free: 17.75 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01116/1.672, allocations: 3.587 MB / 0.6624 GB, free: 14.67 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001611/1.672, allocations: 44 kB / 0.6624 GB, free: 14.63 MB / 442.7 MB Notification: Performance of matching and sorting (n=883) (initialization): time 0.03393/1.706, allocations: 8.355 MB / 0.6706 GB, free: 7.465 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001559/1.706, allocations: 68 kB / 0.6706 GB, free: 7.398 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01259/1.719, allocations: 2.782 MB / 0.6734 GB, free: 5.125 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00776/1.726, allocations: 1.084 MB / 0.6744 GB, free: 4.34 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009742/1.736, allocations: 1.587 MB / 0.676 GB, free: 2.926 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00699/1.743, allocations: 4.386 MB / 0.6803 GB, free: 14.28 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009176/1.753, allocations: 0.4955 MB / 0.6807 GB, free: 13.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001827/1.754, allocations: 416 kB / 0.6811 GB, free: 13.38 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 662 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (845): * Single equations (assignments): 836 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002602/1.757, allocations: 0.6336 MB / 0.6817 GB, free: 12.74 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001107/1.758, allocations: 375.1 kB / 0.6821 GB, free: 12.37 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01212/1.77, allocations: 3.223 MB / 0.6853 GB, free: 9.117 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009897/1.78, allocations: 2.695 MB / 0.6879 GB, free: 6.406 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.803e-05/1.78, allocations: 7.953 kB / 0.6879 GB, free: 6.398 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.284e-05/1.78, allocations: 7.969 kB / 0.6879 GB, free: 6.391 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3566/2.137, allocations: 10.26 MB / 0.6979 GB, free: 99.81 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.597e-05/2.137, allocations: 13.59 kB / 0.6979 GB, free: 99.81 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00327/2.14, allocations: 373 kB / 0.6983 GB, free: 99.81 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005853/2.146, allocations: 0.9708 MB / 0.6992 GB, free: 99.78 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000567/2.147, allocations: 64.27 kB / 0.6993 GB, free: 99.78 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008308/2.155, allocations: 4.599 MB / 0.7038 GB, free: 97.23 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001216/2.157, allocations: 1.467 MB / 0.7052 GB, free: 95.88 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01623/2.173, allocations: 7.44 MB / 0.7125 GB, free: 92.96 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001618/2.175, allocations: 451.5 kB / 0.7129 GB, free: 92.87 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001508/2.176, allocations: 55.77 kB / 0.713 GB, free: 92.87 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004284/2.18, allocations: 183.9 kB / 0.7131 GB, free: 92.87 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007837/2.181, allocations: 170.9 kB / 0.7133 GB, free: 92.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002598/2.181, allocations: 74.66 kB / 0.7134 GB, free: 92.86 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007108/2.189, allocations: 2.522 MB / 0.7158 GB, free: 92.66 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.233e-06/2.189, allocations: 0 / 0.7158 GB, free: 92.66 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008356/2.197, allocations: 1.149 MB / 0.717 GB, free: 92.66 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 61 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (179): * Single equations (assignments): 172 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01657/2.214, allocations: 11.37 MB / 0.7281 GB, free: 86.18 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0147/2.228, allocations: 5.506 MB / 0.7334 GB, free: 85.74 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.845e-05/2.228, allocations: 3.094 kB / 0.7334 GB, free: 85.74 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006588/2.235, allocations: 2.129 MB / 0.7355 GB, free: 85.31 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004213/2.239, allocations: 459.8 kB / 0.736 GB, free: 85.29 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03504/2.274, allocations: 10.86 MB / 0.7466 GB, free: 82.91 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00755/2.282, allocations: 3.548 MB / 0.75 GB, free: 82.11 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004928/2.287, allocations: 2.127 MB / 0.7521 GB, free: 80.45 MB / 458.7 MB Notification: Performance of SimCode: time 1.703e-06/2.287, allocations: 4 kB / 0.7521 GB, free: 80.45 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.248/7.535, allocations: 159.3 MB / 0.9077 GB, free: 110.5 MB / 474.7 MB