Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.262/2.262, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.188e-05/3.206e-05, allocations: 4 kB / 292.2 MB, free: 8.746 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1117, allocations: 50.41 MB / 342.6 MB, free: 6.324 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4577/0.5695, allocations: 83.59 MB / 426.2 MB, free: 10.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002365/0.5698, allocations: 69.47 kB / 426.3 MB, free: 10.23 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06696/0.6367, allocations: 15.64 MB / 441.9 MB, free: 13.15 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.6368, allocations: 0 / 441.9 MB, free: 13.15 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.914e-05/0.6369, allocations: 16 kB / 441.9 MB, free: 13.14 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.00277/0.6396, allocations: 0.9642 MB / 442.9 MB, free: 12.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.6397, allocations: 8.031 kB / 442.9 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002507/0.64, allocations: 106.6 kB / 443 MB, free: 12.08 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002923/0.6403, allocations: 98.88 kB / 443.1 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001072/0.6414, allocations: 480.7 kB / 443.6 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002272/0.6416, allocations: 106.5 kB / 443.7 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001398/0.6418, allocations: 57.41 kB / 443.7 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001642/0.6434, allocations: 0.754 MB / 444.5 MB, free: 10.74 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.121e-05/0.6435, allocations: 3.953 kB / 444.5 MB, free: 10.74 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.948e-05/0.6436, allocations: 25.25 kB / 444.5 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.337e-05/0.6436, allocations: 12 kB / 444.5 MB, free: 10.72 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001248/0.6449, allocations: 438.4 kB / 445 MB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005688/0.6506, allocations: 2.063 MB / 447 MB, free: 8.797 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001648/0.6523, allocations: 499.7 kB / 447.5 MB, free: 8.453 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006167/0.653, allocations: 234 kB / 447.7 MB, free: 8.316 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.14e-05/0.6531, allocations: 9.641 kB / 447.8 MB, free: 8.309 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007558/0.6538, allocations: 293.3 kB / 448 MB, free: 8.094 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 3.867e-06/0.6538, allocations: 0 / 448 MB, free: 8.094 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.002897/0.6567, allocations: 0.7025 MB / 448.7 MB, free: 7.555 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004231/0.6572, allocations: 0.8266 MB / 449.6 MB, free: 6.535 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001032/0.6583, allocations: 0.5019 MB / 450.1 MB, free: 6.145 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001745/0.6585, allocations: 44.45 kB / 450.1 MB, free: 6.105 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003161/0.6588, allocations: 353.5 kB / 450.5 MB, free: 5.855 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003201/0.6591, allocations: 205.7 kB / 450.7 MB, free: 5.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.264e-05/0.6592, allocations: 15.06 kB / 450.7 MB, free: 5.672 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.6593, allocations: 336.3 kB / 451 MB, free: 5.344 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005382/0.6599, allocations: 180 kB / 451.2 MB, free: 5.238 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008859/0.6608, allocations: 489.2 kB / 451.7 MB, free: 4.746 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006625/0.6615, allocations: 277.8 kB / 451.9 MB, free: 4.531 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.483e-06/0.6615, allocations: 0 / 451.9 MB, free: 4.531 MB / 362.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002894/0.6644, allocations: 0.7857 MB / 452.7 MB, free: 3.906 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.321e-05/0.6645, allocations: 63.09 kB / 452.8 MB, free: 3.836 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.6645, allocations: 0 / 452.8 MB, free: 3.836 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009205/0.6655, allocations: 203.6 kB / 453 MB, free: 3.676 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001358/0.6668, allocations: 126.2 kB / 453.1 MB, free: 3.559 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00856/0.6754, allocations: 4.092 MB / 457.2 MB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001259/0.6767, allocations: 95.33 kB / 457.3 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.952e-05/0.6769, allocations: 27.98 kB / 457.3 MB, free: 15.18 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,oneWayValve.backward) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * 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: 0 * Non-linear torn systems: 2 {9 3,1 11} Notification: Performance of prepare postOptimizeDAE: time 0.0002701/0.6771, allocations: 156.9 kB / 457.5 MB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000195/0.6773, allocations: 83.14 kB / 457.5 MB, free: 14.94 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002487/0.6776, allocations: 86.81 kB / 457.6 MB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.6776, allocations: 8 kB / 457.6 MB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.6776, allocations: 0 / 457.6 MB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002636/0.6803, allocations: 0.9881 MB / 458.6 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003815/0.6841, allocations: 1.49 MB / 460.1 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.6842, allocations: 0 / 460.1 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001305/0.6855, allocations: 119.8 kB / 460.2 MB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006648/0.6862, allocations: 142 kB / 460.4 MB, free: 11.92 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.653e-05/0.6863, allocations: 15.98 kB / 460.4 MB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006192/0.6925, allocations: 3.515 MB / 463.9 MB, free: 8.121 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.6925, allocations: 0 / 463.9 MB, free: 8.121 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002725/0.6953, allocations: 0.9257 MB / 464.8 MB, free: 7.172 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005629/0.6959, allocations: 216.1 kB / 465 MB, free: 6.941 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001762/0.6961, allocations: 15.98 kB / 465.1 MB, free: 6.926 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009224/0.697, allocations: 59.98 kB / 465.1 MB, free: 6.867 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002272/0.6973, allocations: 48.48 kB / 465.2 MB, free: 6.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.282e-05/0.6973, allocations: 19.98 kB / 465.2 MB, free: 6.801 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007911/0.6981, allocations: 407.2 kB / 465.6 MB, free: 6.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.425e-06/0.6982, allocations: 112 / 465.6 MB, free: 6.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001289/0.6995, allocations: 275.6 kB / 465.9 MB, free: 6.141 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (speed.phi) * Number of discrete variables: 4 ($whenCondition1,trapezoid.T_start,trapezoid.count,oneWayValve.backward) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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: 0 * Non-linear torn systems: 2 {2 3,1 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.003085/0.7026, allocations: 1.517 MB / 467.4 MB, free: 4.59 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002483/0.7051, allocations: 0.9139 MB / 468.3 MB, free: 3.633 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/0.7051, allocations: 8.125 kB / 468.3 MB, free: 3.625 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001145/0.7063, allocations: 497.4 kB / 468.8 MB, free: 3.121 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001515/0.7078, allocations: 195.2 kB / 469 MB, free: 2.926 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003435/0.7113, allocations: 1.008 MB / 470 MB, free: 1.871 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006359/0.712, allocations: 0.9433 MB / 470.9 MB, free: 0.8984 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006063/0.7126, allocations: 267.3 kB / 471.2 MB, free: 0.6406 MB / 378.7 MB Notification: Performance of SimCode: time 8.62e-07/0.7126, allocations: 0 / 471.2 MB, free: 0.6406 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.117/3.83, allocations: 18.49 MB / 489.7 MB, free: 14.2 MB / 410.7 MB