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.611/1.611, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.763e-05/3.79e-05, allocations: 4 kB / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2569, allocations: 38.76 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8504/1.107, allocations: 314.3 MB / 0.5646 GB, free: 71.03 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002956/1.108, allocations: 91.36 kB / 0.5647 GB, free: 71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.468/2.575, allocations: 279 MB / 0.8372 GB, free: 48 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.834e-06/2.575, allocations: 2.875 kB / 0.8372 GB, free: 48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001383/2.575, allocations: 42.12 kB / 0.8372 GB, free: 47.99 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.005848/2.581, allocations: 1.784 MB / 0.839 GB, free: 47.12 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/2.581, allocations: 9.812 kB / 0.839 GB, free: 47.12 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000332/2.582, allocations: 154.1 kB / 0.8391 GB, free: 47.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008229/2.583, allocations: 170.1 kB / 0.8393 GB, free: 47.01 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003468/2.586, allocations: 1.088 MB / 0.8403 GB, free: 46.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.456e-05/2.586, allocations: 80.5 kB / 0.8404 GB, free: 46.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002549/2.586, allocations: 95.52 kB / 0.8405 GB, free: 46.66 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003512/2.59, allocations: 1.595 MB / 0.8421 GB, free: 46.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.721e-05/2.59, allocations: 3 kB / 0.8421 GB, free: 46.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002019/2.59, allocations: 51.95 kB / 0.8421 GB, free: 46.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000198/2.59, allocations: 100.7 kB / 0.8422 GB, free: 46.41 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003692/2.594, allocations: 1.575 MB / 0.8437 GB, free: 46.4 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01391/2.608, allocations: 6.534 MB / 0.8501 GB, free: 43.33 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001971/2.61, allocations: 0.8789 MB / 0.851 GB, free: 43.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00112/2.611, allocations: 0.5234 MB / 0.8515 GB, free: 43.28 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005259/2.617, allocations: 2.822 MB / 0.8542 GB, free: 41.81 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.158e-05/2.617, allocations: 46.36 kB / 0.8543 GB, free: 41.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=80): time 2.945e-06/2.617, allocations: 0 / 0.8543 GB, free: 41.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=90): time 0.008524/2.625, allocations: 2.763 MB / 0.857 GB, free: 41.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.914e-05/2.625, allocations: 193.5 kB / 0.8572 GB, free: 40.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00186/2.627, allocations: 1.041 MB / 0.8582 GB, free: 40.81 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001532/2.627, allocations: 46.89 kB / 0.8582 GB, free: 40.78 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004853/2.628, allocations: 0.6574 MB / 0.8589 GB, free: 40.41 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003503/2.628, allocations: 324.7 kB / 0.8592 GB, free: 40.21 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/2.628, allocations: 31.72 kB / 0.8592 GB, free: 40.21 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001102/2.628, allocations: 365.5 kB / 0.8596 GB, free: 39.9 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001319/2.63, allocations: 0.5325 MB / 0.8601 GB, free: 39.9 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001557/2.631, allocations: 1.013 MB / 0.8611 GB, free: 39.34 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001502/2.633, allocations: 0.6625 MB / 0.8617 GB, free: 39.32 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.067e-05/2.633, allocations: 3.844 kB / 0.8617 GB, free: 39.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004294/2.637, allocations: 1.764 MB / 0.8635 GB, free: 39.14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001123/2.638, allocations: 5.58 MB / 0.8689 GB, free: 33.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.847e-05/2.638, allocations: 12.12 kB / 0.8689 GB, free: 33.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006277/2.645, allocations: 0.6488 MB / 0.8695 GB, free: 33.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002151/2.647, allocations: 296.8 kB / 0.8698 GB, free: 33.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002389/2.649, allocations: 2.147 MB / 0.8719 GB, free: 31.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002185/2.651, allocations: 105 kB / 0.872 GB, free: 31.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001788/2.652, allocations: 77.62 kB / 0.8721 GB, free: 31.3 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/2.652, allocations: 3.188 kB / 0.8721 GB, free: 31.3 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004112/2.656, allocations: 1.64 MB / 0.8737 GB, free: 30.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.103e-05/2.656, allocations: 18.84 kB / 0.8737 GB, free: 30.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004945/2.661, allocations: 491.2 kB / 0.8742 GB, free: 30.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00203/2.663, allocations: 310.2 kB / 0.8745 GB, free: 30.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001821/2.665, allocations: 1.97 MB / 0.8764 GB, free: 28.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001601/2.666, allocations: 99.95 kB / 0.8765 GB, free: 28.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001676/2.667, allocations: 73.47 kB / 0.8766 GB, free: 28.82 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.0004649/2.667, allocations: 196.8 kB / 0.8768 GB, free: 28.65 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000368/2.667, allocations: 133.7 kB / 0.8769 GB, free: 28.58 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00439/2.672, allocations: 1.5 MB / 0.8784 GB, free: 28 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/2.672, allocations: 12.91 kB / 0.8784 GB, free: 28 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/2.672, allocations: 4.688 kB / 0.8784 GB, free: 28 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.34e-05/2.672, allocations: 5.906 kB / 0.8784 GB, free: 28 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006418/2.678, allocations: 2.743 MB / 0.8811 GB, free: 26.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/2.678, allocations: 0 / 0.8811 GB, free: 26.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001289/2.68, allocations: 154.4 kB / 0.8812 GB, free: 26.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004637/2.684, allocations: 0.5976 MB / 0.8818 GB, free: 26.7 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000166/2.684, allocations: 22.89 kB / 0.8818 GB, free: 26.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00215/2.687, allocations: 2.113 MB / 0.8839 GB, free: 24.9 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/2.687, allocations: 0 / 0.8839 GB, free: 24.9 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00451/2.691, allocations: 2.104 MB / 0.8859 GB, free: 23.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005226/2.692, allocations: 223.6 kB / 0.8861 GB, free: 23.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000314/2.692, allocations: 34.53 kB / 0.8862 GB, free: 23.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001399/2.693, allocations: 68.98 kB / 0.8862 GB, free: 23.69 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002752/2.694, allocations: 98.17 kB / 0.8863 GB, free: 23.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001221/2.694, allocations: 42.72 kB / 0.8864 GB, free: 23.67 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001479/2.695, allocations: 0.7841 MB / 0.8871 GB, free: 23.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.41e-07/2.695, allocations: 0 / 0.8871 GB, free: 23.34 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004361/2.7, allocations: 1.189 MB / 0.8883 GB, free: 23.04 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.007939/2.708, allocations: 3.91 MB / 0.8921 GB, free: 19.61 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006012/2.714, allocations: 2.167 MB / 0.8942 GB, free: 17.65 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/2.714, allocations: 3.938 kB / 0.8942 GB, free: 17.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002144/2.716, allocations: 0.6899 MB / 0.8949 GB, free: 17.03 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003833/2.72, allocations: 0.4952 MB / 0.8954 GB, free: 16.67 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00781/2.728, allocations: 2.865 MB / 0.8982 GB, free: 14.14 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008452/2.729, allocations: 1.279 MB / 0.8994 GB, free: 13.05 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001106/2.73, allocations: 0.5347 MB / 0.9 GB, free: 12.56 MB / 362.7 MB Notification: Performance of SimCode: time 1.292e-06/2.73, allocations: 0 / 0.9 GB, free: 12.56 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.892/6.622, allocations: 49.47 MB / 0.9483 GB, free: 39.57 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