Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.661/1.661, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.942e-05/2.952e-05, allocations: 0 / 225.1 MB, free: 2.617 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2542, allocations: 38.77 MB / 263.8 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9245/1.179, allocations: 314.3 MB / 0.5646 GB, free: 69.87 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000305/1.179, allocations: 90.64 kB / 0.5647 GB, free: 69.82 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.52/2.699, allocations: 279 MB / 0.8372 GB, free: 48.46 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.854e-06/2.699, allocations: 0 / 0.8372 GB, free: 48.46 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001478/2.699, allocations: 41.95 kB / 0.8372 GB, free: 48.45 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.006881/2.706, allocations: 1.785 MB / 0.839 GB, free: 47.59 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/2.706, allocations: 10.5 kB / 0.839 GB, free: 47.59 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005365/2.707, allocations: 152.7 kB / 0.8391 GB, free: 47.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009076/2.708, allocations: 177.7 kB / 0.8393 GB, free: 47.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003982/2.712, allocations: 1.084 MB / 0.8404 GB, free: 47.13 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/2.712, allocations: 84.61 kB / 0.8404 GB, free: 47.13 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003029/2.712, allocations: 97.11 kB / 0.8405 GB, free: 47.13 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003881/2.716, allocations: 1.594 MB / 0.8421 GB, free: 46.88 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.898e-05/2.716, allocations: 0 / 0.8421 GB, free: 46.88 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002393/2.716, allocations: 45.19 kB / 0.8421 GB, free: 46.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002151/2.717, allocations: 102.2 kB / 0.8422 GB, free: 46.88 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0042/2.721, allocations: 1.559 MB / 0.8438 GB, free: 46.88 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01685/2.738, allocations: 6.537 MB / 0.8501 GB, free: 43.8 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002287/2.74, allocations: 0.8681 MB / 0.851 GB, free: 43.77 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001295/2.742, allocations: 0.5215 MB / 0.8515 GB, free: 43.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005881/2.747, allocations: 2.827 MB / 0.8543 GB, free: 42.29 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.705e-05/2.748, allocations: 44.06 kB / 0.8543 GB, free: 42.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=80): time 3.748e-06/2.748, allocations: 0 / 0.8543 GB, free: 42.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=90): time 0.009784/2.757, allocations: 2.765 MB / 0.857 GB, free: 41.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.152e-05/2.757, allocations: 187.6 kB / 0.8572 GB, free: 41.46 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002087/2.76, allocations: 1.039 MB / 0.8582 GB, free: 41.29 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003204/2.76, allocations: 53.83 kB / 0.8582 GB, free: 41.26 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005419/2.76, allocations: 0.6531 MB / 0.8589 GB, free: 40.89 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004179/2.761, allocations: 324.2 kB / 0.8592 GB, free: 40.69 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/2.761, allocations: 27.09 kB / 0.8592 GB, free: 40.69 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001197/2.761, allocations: 371.2 kB / 0.8596 GB, free: 40.38 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001418/2.763, allocations: 0.5314 MB / 0.8601 GB, free: 40.38 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001676/2.764, allocations: 1.005 MB / 0.8611 GB, free: 39.81 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001766/2.766, allocations: 0.6653 MB / 0.8617 GB, free: 39.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.147e-05/2.766, allocations: 3.5 kB / 0.8617 GB, free: 39.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004759/2.771, allocations: 1.718 MB / 0.8634 GB, free: 39.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001163/2.772, allocations: 5.586 MB / 0.8689 GB, free: 33.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.821e-05/2.772, allocations: 15.38 kB / 0.8689 GB, free: 33.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006701/2.779, allocations: 0.6441 MB / 0.8695 GB, free: 33.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002309/2.781, allocations: 298.4 kB / 0.8698 GB, free: 33.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002622/2.784, allocations: 2.134 MB / 0.8719 GB, free: 31.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002516/2.786, allocations: 103.9 kB / 0.872 GB, free: 31.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003355/2.787, allocations: 73.39 kB / 0.872 GB, free: 31.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/2.787, allocations: 3.875 kB / 0.872 GB, free: 31.41 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004565/2.791, allocations: 1.599 MB / 0.8736 GB, free: 30.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.095e-05/2.792, allocations: 18.19 kB / 0.8736 GB, free: 30.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005227/2.797, allocations: 496.8 kB / 0.8741 GB, free: 30.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002319/2.799, allocations: 303.7 kB / 0.8744 GB, free: 30.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002014/2.801, allocations: 1.977 MB / 0.8763 GB, free: 29.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001846/2.803, allocations: 102.3 kB / 0.8764 GB, free: 28.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002033/2.803, allocations: 71.11 kB / 0.8765 GB, free: 28.96 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (171): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004891/2.804, allocations: 202.2 kB / 0.8767 GB, free: 28.79 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000402/2.804, allocations: 134.7 kB / 0.8768 GB, free: 28.72 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004625/2.809, allocations: 1.497 MB / 0.8783 GB, free: 28.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.487e-05/2.809, allocations: 11.16 kB / 0.8783 GB, free: 28.14 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/2.809, allocations: 0 / 0.8783 GB, free: 28.14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.576e-05/2.809, allocations: 3.703 kB / 0.8783 GB, free: 28.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007082/2.816, allocations: 2.738 MB / 0.881 GB, free: 26.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.287e-06/2.816, allocations: 0 / 0.881 GB, free: 26.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001371/2.818, allocations: 159.9 kB / 0.8811 GB, free: 26.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004802/2.822, allocations: 0.5924 MB / 0.8817 GB, free: 26.86 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002709/2.823, allocations: 26.98 kB / 0.8817 GB, free: 26.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002252/2.825, allocations: 2.107 MB / 0.8838 GB, free: 25.06 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/2.825, allocations: 0 / 0.8838 GB, free: 25.06 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004786/2.83, allocations: 2.095 MB / 0.8858 GB, free: 24.07 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000638/2.83, allocations: 232.8 kB / 0.886 GB, free: 23.89 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003417/2.831, allocations: 30.92 kB / 0.8861 GB, free: 23.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001506/2.832, allocations: 75.39 kB / 0.8861 GB, free: 23.85 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002907/2.833, allocations: 92.88 kB / 0.8862 GB, free: 23.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001343/2.833, allocations: 39.2 kB / 0.8863 GB, free: 23.83 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001606/2.834, allocations: 0.79 MB / 0.887 GB, free: 23.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/2.834, allocations: 0 / 0.887 GB, free: 23.5 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004955/2.839, allocations: 1.185 MB / 0.8882 GB, free: 22.62 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.008492/2.848, allocations: 3.933 MB / 0.892 GB, free: 19.08 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006413/2.854, allocations: 2.121 MB / 0.8941 GB, free: 17.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/2.854, allocations: 4 kB / 0.8941 GB, free: 17.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002277/2.857, allocations: 0.6783 MB / 0.8948 GB, free: 16.56 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00422/2.861, allocations: 0.4983 MB / 0.8953 GB, free: 16.2 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008598/2.87, allocations: 2.852 MB / 0.898 GB, free: 13.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008305/2.871, allocations: 1.278 MB / 0.8993 GB, free: 12.59 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001233/2.872, allocations: 0.5307 MB / 0.8998 GB, free: 12.11 MB / 362.7 MB Notification: Performance of SimCode: time 1.222e-06/2.872, allocations: 0 / 0.8998 GB, free: 12.11 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.052/6.923, allocations: 49.46 MB / 0.9481 GB, free: 40.96 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat