Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.847/1.847, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.426e-05/4.444e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1031, allocations: 44.52 MB / 299.9 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.014/1.117, allocations: 321.4 MB / 0.6068 GB, free: 66.6 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000314/1.117, allocations: 86.89 kB / 0.6069 GB, free: 66.55 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.758/1.875, allocations: 141.4 MB / 0.745 GB, free: 99.37 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.835e-06/1.875, allocations: 0 / 0.745 GB, free: 99.37 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.948e-05/1.875, allocations: 27.88 kB / 0.745 GB, free: 99.34 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.003149/1.878, allocations: 1.07 MB / 0.7461 GB, free: 98.23 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/1.878, allocations: 8.031 kB / 0.7461 GB, free: 98.22 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002451/1.879, allocations: 93.56 kB / 0.7462 GB, free: 98.12 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005582/1.879, allocations: 102.9 kB / 0.7462 GB, free: 98.02 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002075/1.881, allocations: 0.6448 MB / 0.7469 GB, free: 97.34 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/1.882, allocations: 87.45 kB / 0.747 GB, free: 97.25 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000136/1.882, allocations: 47.05 kB / 0.747 GB, free: 97.21 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001823/1.884, allocations: 0.7955 MB / 0.7478 GB, free: 96.36 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.424e-05/1.884, allocations: 0 / 0.7478 GB, free: 96.36 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001141/1.884, allocations: 27.36 kB / 0.7478 GB, free: 96.34 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.186e-05/1.884, allocations: 44.97 kB / 0.7479 GB, free: 96.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00161/1.885, allocations: 0.6713 MB / 0.7485 GB, free: 95.62 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00671/1.892, allocations: 3.419 MB / 0.7518 GB, free: 92.02 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009233/1.893, allocations: 395.2 kB / 0.7522 GB, free: 91.62 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005375/1.894, allocations: 245.1 kB / 0.7525 GB, free: 91.38 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002421/1.896, allocations: 1.341 MB / 0.7538 GB, free: 89.91 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005972/1.897, allocations: 292.9 kB / 0.754 GB, free: 89.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 3.036e-06/1.897, allocations: 0 / 0.754 GB, free: 89.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.004136/1.901, allocations: 1.399 MB / 0.7554 GB, free: 88.13 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.678e-05/1.901, allocations: 170.4 kB / 0.7556 GB, free: 87.93 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001089/1.902, allocations: 0.6051 MB / 0.7562 GB, free: 87.32 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001046/1.902, allocations: 37.7 kB / 0.7562 GB, free: 87.28 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002865/1.903, allocations: 440.8 kB / 0.7566 GB, free: 86.85 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001521/1.903, allocations: 133.6 kB / 0.7568 GB, free: 86.72 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.909e-05/1.903, allocations: 16 kB / 0.7568 GB, free: 86.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.494e-05/1.903, allocations: 346.8 kB / 0.7571 GB, free: 86.36 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000597/1.904, allocations: 245.4 kB / 0.7573 GB, free: 86.11 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007345/1.904, allocations: 0.5297 MB / 0.7578 GB, free: 85.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007448/1.905, allocations: 351.9 kB / 0.7582 GB, free: 85.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/1.905, allocations: 4 kB / 0.7582 GB, free: 85.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002385/1.907, allocations: 0.8851 MB / 0.7591 GB, free: 84.19 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007065/1.908, allocations: 3.524 MB / 0.7625 GB, free: 80.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.251e-05/1.908, allocations: 8 kB / 0.7625 GB, free: 80.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008931/1.909, allocations: 124.8 kB / 0.7626 GB, free: 80.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/1.91, allocations: 147.8 kB / 0.7628 GB, free: 80.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007273/1.911, allocations: 0.681 MB / 0.7634 GB, free: 79.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001065/1.912, allocations: 35.98 kB / 0.7635 GB, free: 79.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/1.912, allocations: 47.98 kB / 0.7635 GB, free: 79.32 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/1.912, allocations: 7.953 kB / 0.7635 GB, free: 79.31 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002505/1.915, allocations: 0.8642 MB / 0.7644 GB, free: 78.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.043e-05/1.915, allocations: 12 kB / 0.7644 GB, free: 78.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005679/1.915, allocations: 108.8 kB / 0.7645 GB, free: 78.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009267/1.916, allocations: 151.8 kB / 0.7646 GB, free: 78.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005787/1.917, allocations: 0.6421 MB / 0.7652 GB, free: 77.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007973/1.918, allocations: 51.89 kB / 0.7653 GB, free: 77.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.278e-05/1.918, allocations: 43.98 kB / 0.7653 GB, free: 77.41 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003731/1.918, allocations: 210.2 kB / 0.7655 GB, free: 77.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001914/1.918, allocations: 71.16 kB / 0.7656 GB, free: 77.12 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001901/1.92, allocations: 0.6559 MB / 0.7662 GB, free: 76.45 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/1.92, allocations: 0 / 0.7662 GB, free: 76.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/1.92, allocations: 4 kB / 0.7662 GB, free: 76.45 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.405e-06/1.92, allocations: 3.984 kB / 0.7663 GB, free: 76.45 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00306/1.923, allocations: 1.337 MB / 0.7676 GB, free: 75.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/1.924, allocations: 4.031 kB / 0.7676 GB, free: 75.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005267/1.924, allocations: 71.84 kB / 0.7676 GB, free: 74.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007219/1.925, allocations: 120.7 kB / 0.7677 GB, free: 74.85 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.786e-05/1.925, allocations: 12 kB / 0.7678 GB, free: 74.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006599/1.926, allocations: 0.6539 MB / 0.7684 GB, free: 74.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/1.926, allocations: 0 / 0.7684 GB, free: 74.16 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002041/1.928, allocations: 1.005 MB / 0.7694 GB, free: 73.12 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002713/1.928, allocations: 148.3 kB / 0.7695 GB, free: 72.96 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001745/1.928, allocations: 19.98 kB / 0.7695 GB, free: 72.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006964/1.929, allocations: 23.98 kB / 0.7696 GB, free: 72.91 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/1.929, allocations: 39.89 kB / 0.7696 GB, free: 72.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.824e-05/1.929, allocations: 23.98 kB / 0.7696 GB, free: 72.85 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000851/1.93, allocations: 471.1 kB / 0.7701 GB, free: 72.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.93, allocations: 4 kB / 0.7701 GB, free: 72.39 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002344/1.932, allocations: 0.562 MB / 0.7706 GB, free: 71.83 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.003911/1.936, allocations: 2.017 MB / 0.7726 GB, free: 69.82 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003081/1.939, allocations: 1.158 MB / 0.7737 GB, free: 68.64 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.686e-06/1.939, allocations: 4.125 kB / 0.7737 GB, free: 68.64 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009363/1.94, allocations: 343.2 kB / 0.7741 GB, free: 68.29 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002117/1.942, allocations: 244.2 kB / 0.7743 GB, free: 68.05 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004361/1.947, allocations: 1.432 MB / 0.7757 GB, free: 66.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004778/1.947, allocations: 0.9772 MB / 0.7766 GB, free: 65.56 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005064/1.948, allocations: 263.3 kB / 0.7769 GB, free: 65.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.213e-06/1.948, allocations: 0 / 0.7769 GB, free: 65.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.037/4.985, allocations: 19.78 MB / 0.7962 GB, free: 45.53 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat does not exist to compare? outputFormat=mat