Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.933/1.933, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.877e-05/3.887e-05, allocations: 7.984 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1094, allocations: 50.41 MB / 342.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.061/1.171, allocations: 329 MB / 0.6559 GB, free: 26.88 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003154/1.171, allocations: 89.02 kB / 0.656 GB, free: 26.84 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8863/2.057, allocations: 169.9 MB / 0.8219 GB, free: 65.66 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.923e-06/2.057, allocations: 0 / 0.8219 GB, free: 65.66 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.84e-05/2.057, allocations: 23.98 kB / 0.8219 GB, free: 65.63 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.00366/2.061, allocations: 1.11 MB / 0.823 GB, free: 64.48 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/2.061, allocations: 8.031 kB / 0.823 GB, free: 64.47 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000298/2.061, allocations: 102.4 kB / 0.8231 GB, free: 64.36 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006105/2.062, allocations: 103 kB / 0.8232 GB, free: 64.26 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002104/2.064, allocations: 0.6284 MB / 0.8238 GB, free: 63.59 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.73e-05/2.064, allocations: 45.3 kB / 0.8239 GB, free: 63.54 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001694/2.065, allocations: 59.94 kB / 0.8239 GB, free: 63.48 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002126/2.067, allocations: 0.8634 MB / 0.8248 GB, free: 62.56 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.772e-05/2.067, allocations: 7.844 kB / 0.8248 GB, free: 62.55 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001367/2.067, allocations: 27.98 kB / 0.8248 GB, free: 62.53 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.984e-05/2.067, allocations: 45.3 kB / 0.8249 GB, free: 62.48 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001925/2.069, allocations: 0.7599 MB / 0.8256 GB, free: 61.72 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008058/2.077, allocations: 3.783 MB / 0.8293 GB, free: 57.71 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001313/2.078, allocations: 0.5114 MB / 0.8298 GB, free: 57.19 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005629/2.079, allocations: 258.1 kB / 0.83 GB, free: 56.94 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003592/2.083, allocations: 1.887 MB / 0.8319 GB, free: 54.84 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.628e-05/2.083, allocations: 42.5 kB / 0.8319 GB, free: 54.79 MB / 458.7 MB Notification: Performance of pre-optimization done (n=41): time 4.028e-06/2.083, allocations: 0 / 0.8319 GB, free: 54.79 MB / 458.7 MB Notification: Performance of matching and sorting (n=46): time 0.004644/2.087, allocations: 1.364 MB / 0.8332 GB, free: 53.36 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.765e-05/2.087, allocations: 136.5 kB / 0.8334 GB, free: 53.2 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001202/2.089, allocations: 0.6562 MB / 0.834 GB, free: 52.53 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001624/2.089, allocations: 37.7 kB / 0.8341 GB, free: 52.49 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002865/2.089, allocations: 421.4 kB / 0.8345 GB, free: 52.07 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001881/2.089, allocations: 161.7 kB / 0.8346 GB, free: 51.91 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.421e-05/2.089, allocations: 16 kB / 0.8346 GB, free: 51.9 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.71e-05/2.09, allocations: 338.8 kB / 0.8349 GB, free: 51.56 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006708/2.09, allocations: 253.5 kB / 0.8352 GB, free: 51.31 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007621/2.091, allocations: 485.5 kB / 0.8357 GB, free: 50.73 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007359/2.092, allocations: 327 kB / 0.836 GB, free: 50.41 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.972e-06/2.092, allocations: 0 / 0.836 GB, free: 50.41 MB / 458.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002175/2.094, allocations: 0.8085 MB / 0.8368 GB, free: 49.59 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005798/2.095, allocations: 2.707 MB / 0.8394 GB, free: 46.68 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.171e-05/2.095, allocations: 8 kB / 0.8394 GB, free: 46.67 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001672/2.096, allocations: 161.6 kB / 0.8396 GB, free: 46.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001967/2.098, allocations: 195.7 kB / 0.8397 GB, free: 46.31 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001452/2.1, allocations: 1.796 MB / 0.8415 GB, free: 44.44 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00139/2.101, allocations: 63.94 kB / 0.8416 GB, free: 44.38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001328/2.101, allocations: 35.98 kB / 0.8416 GB, free: 44.34 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/2.101, allocations: 4 kB / 0.8416 GB, free: 44.34 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001962/2.103, allocations: 0.7525 MB / 0.8423 GB, free: 43.58 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/2.104, allocations: 8 kB / 0.8423 GB, free: 43.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001425/2.105, allocations: 158.4 kB / 0.8425 GB, free: 43.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001345/2.106, allocations: 183.7 kB / 0.8427 GB, free: 43.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008699/2.107, allocations: 1.171 MB / 0.8438 GB, free: 42.01 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009327/2.108, allocations: 59.94 kB / 0.8439 GB, free: 41.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/2.108, allocations: 39.98 kB / 0.8439 GB, free: 41.91 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003177/2.109, allocations: 156.1 kB / 0.8441 GB, free: 41.75 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002739/2.109, allocations: 83.06 kB / 0.8441 GB, free: 41.67 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002475/2.111, allocations: 0.8086 MB / 0.8449 GB, free: 40.84 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.719e-05/2.111, allocations: 8 kB / 0.8449 GB, free: 40.84 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/2.111, allocations: 4 kB / 0.8449 GB, free: 40.83 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/2.112, allocations: 7.922 kB / 0.8449 GB, free: 40.82 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004093/2.116, allocations: 1.552 MB / 0.8465 GB, free: 39.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.758e-06/2.116, allocations: 0 / 0.8465 GB, free: 39.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001303/2.117, allocations: 135.8 kB / 0.8466 GB, free: 39.07 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00102/2.118, allocations: 121.7 kB / 0.8467 GB, free: 38.94 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000169/2.118, allocations: 23.98 kB / 0.8467 GB, free: 38.92 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001112/2.119, allocations: 1.745 MB / 0.8484 GB, free: 37.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/2.119, allocations: 7.984 kB / 0.8484 GB, free: 37.09 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002567/2.122, allocations: 1.114 MB / 0.8495 GB, free: 35.93 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000489/2.123, allocations: 172.2 kB / 0.8497 GB, free: 35.74 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002244/2.123, allocations: 16 kB / 0.8497 GB, free: 35.72 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/2.124, allocations: 43.97 kB / 0.8498 GB, free: 35.68 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001887/2.124, allocations: 52.47 kB / 0.8498 GB, free: 35.63 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/2.124, allocations: 35.97 kB / 0.8498 GB, free: 35.59 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0009734/2.125, allocations: 0.507 MB / 0.8503 GB, free: 35.09 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.01e-07/2.125, allocations: 0 / 0.8503 GB, free: 35.09 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003092/2.128, allocations: 0.6556 MB / 0.851 GB, free: 34.43 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.004978/2.133, allocations: 2.444 MB / 0.8534 GB, free: 31.95 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004324/2.138, allocations: 1.1 MB / 0.8544 GB, free: 30.86 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.738e-06/2.138, allocations: 384 / 0.8544 GB, free: 30.86 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001444/2.139, allocations: 377.9 kB / 0.8548 GB, free: 30.49 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003329/2.143, allocations: 361.8 kB / 0.8551 GB, free: 30.14 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005132/2.148, allocations: 1.521 MB / 0.8566 GB, free: 28.56 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005179/2.148, allocations: 0.9987 MB / 0.8576 GB, free: 27.53 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007917/2.149, allocations: 307.3 kB / 0.8579 GB, free: 27.23 MB / 458.7 MB Notification: Performance of SimCode: time 2.385e-06/2.149, allocations: 3.938 kB / 0.8579 GB, free: 27.23 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.596/5.745, allocations: 29.21 MB / 0.8864 GB, free: 102.6 MB / 458.7 MB