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.809/1.809, allocations: 171.3 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.505e-05/2.518e-05, allocations: 4 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2565, allocations: 38.77 MB / 258.3 MB, free: 12.06 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9105/1.167, allocations: 313.6 MB / 0.5586 GB, free: 80.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003/1.167, allocations: 87.03 kB / 0.5586 GB, free: 80.24 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.466/2.634, allocations: 277.3 MB / 0.8294 GB, free: 49.51 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.913e-06/2.634, allocations: 3.375 kB / 0.8294 GB, free: 49.51 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001598/2.634, allocations: 37.7 kB / 0.8295 GB, free: 49.5 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.006524/2.64, allocations: 1.784 MB / 0.8312 GB, free: 48.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/2.64, allocations: 13.19 kB / 0.8312 GB, free: 48.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001065/2.641, allocations: 170.7 kB / 0.8314 GB, free: 48.63 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003724/2.645, allocations: 1.088 MB / 0.8325 GB, free: 48.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.74e-05/2.645, allocations: 40.14 kB / 0.8325 GB, free: 48.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002443/2.646, allocations: 54.47 kB / 0.8326 GB, free: 48.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003411/2.649, allocations: 1.429 MB / 0.834 GB, free: 48.33 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003329/2.652, allocations: 1.458 MB / 0.8354 GB, free: 48.08 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.223e-05/2.652, allocations: 2.625 kB / 0.8354 GB, free: 48.08 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000186/2.653, allocations: 6.812 kB / 0.8354 GB, free: 48.08 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000206/2.653, allocations: 104.9 kB / 0.8355 GB, free: 48.08 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01386/2.667, allocations: 6.315 MB / 0.8417 GB, free: 45.06 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001815/2.669, allocations: 0.8482 MB / 0.8425 GB, free: 45.03 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009985/2.67, allocations: 0.5125 MB / 0.843 GB, free: 45.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005246/2.675, allocations: 2.753 MB / 0.8457 GB, free: 43.56 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.628e-05/2.675, allocations: 45.47 kB / 0.8457 GB, free: 43.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=80): time 4.569e-06/2.675, allocations: 0 / 0.8457 GB, free: 43.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=90): time 0.01408/2.689, allocations: 3.097 MB / 0.8487 GB, free: 42.96 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.397e-05/2.689, allocations: 196.7 kB / 0.8489 GB, free: 42.74 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001521/2.691, allocations: 0.8544 MB / 0.8498 GB, free: 42.57 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002101/2.691, allocations: 32.39 kB / 0.8498 GB, free: 42.54 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005179/2.691, allocations: 0.6689 MB / 0.8504 GB, free: 42.14 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003546/2.692, allocations: 311.7 kB / 0.8507 GB, free: 41.95 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/2.692, allocations: 0 / 0.8507 GB, free: 41.95 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001159/2.692, allocations: 374.5 kB / 0.8511 GB, free: 41.64 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00117/2.693, allocations: 0.5137 MB / 0.8516 GB, free: 41.64 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001387/2.695, allocations: 0.983 MB / 0.8526 GB, free: 41.08 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01684/2.712, allocations: 2.172 MB / 0.8547 GB, free: 41.06 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.306e-05/2.712, allocations: 4.625 kB / 0.8547 GB, free: 41.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.01987/2.731, allocations: 3.177 MB / 0.8578 GB, free: 40.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001152/2.733, allocations: 5.573 MB / 0.8632 GB, free: 35.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.083e-05/2.733, allocations: 15.22 kB / 0.8632 GB, free: 35.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001618/2.734, allocations: 327 kB / 0.8636 GB, free: 35.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002142/2.737, allocations: 299 kB / 0.8638 GB, free: 35.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004705/2.741, allocations: 2.441 MB / 0.8662 GB, free: 33.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002206/2.743, allocations: 79.75 kB / 0.8663 GB, free: 33.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001833/2.744, allocations: 73.78 kB / 0.8664 GB, free: 33.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/2.744, allocations: 3.969 kB / 0.8664 GB, free: 33.54 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01903/2.763, allocations: 2.947 MB / 0.8693 GB, free: 33.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.31e-05/2.763, allocations: 14.53 kB / 0.8693 GB, free: 33.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001243/2.764, allocations: 245.9 kB / 0.8695 GB, free: 33.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002067/2.766, allocations: 307.9 kB / 0.8698 GB, free: 33.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003694/2.77, allocations: 2.171 MB / 0.8719 GB, free: 31.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001709/2.772, allocations: 75.81 kB / 0.872 GB, free: 31.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001693/2.772, allocations: 77.11 kB / 0.8721 GB, free: 31.9 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.000502/2.772, allocations: 158.1 kB / 0.8722 GB, free: 31.77 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005573/2.778, allocations: 1.328 MB / 0.8735 GB, free: 31.63 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003613/2.778, allocations: 127.3 kB / 0.8736 GB, free: 31.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00563/2.784, allocations: 1.518 MB / 0.8751 GB, free: 31.43 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.49e-05/2.784, allocations: 11.62 kB / 0.8751 GB, free: 31.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/2.784, allocations: 2.844 kB / 0.8751 GB, free: 31.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.652e-05/2.784, allocations: 11.64 kB / 0.8751 GB, free: 31.43 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00767/2.792, allocations: 2.649 MB / 0.8777 GB, free: 31.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/2.792, allocations: 3.875 kB / 0.8777 GB, free: 31.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001269/2.793, allocations: 158.6 kB / 0.8779 GB, free: 31.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001586/2.795, allocations: 316.8 kB / 0.8782 GB, free: 31.02 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.46e-05/2.795, allocations: 14.81 kB / 0.8782 GB, free: 31.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003354/2.798, allocations: 2.26 MB / 0.8804 GB, free: 29.44 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/2.798, allocations: 3.281 kB / 0.8804 GB, free: 29.44 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005618/2.804, allocations: 2.135 MB / 0.8825 GB, free: 28.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005266/2.804, allocations: 218.1 kB / 0.8827 GB, free: 28.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003551/2.805, allocations: 7.469 kB / 0.8827 GB, free: 28.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001315/2.806, allocations: 59.69 kB / 0.8828 GB, free: 28.38 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002802/2.806, allocations: 98.02 kB / 0.8829 GB, free: 28.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/2.807, allocations: 35.88 kB / 0.8829 GB, free: 28.36 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001126/2.808, allocations: 0.6317 MB / 0.8835 GB, free: 28.07 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/2.808, allocations: 2.625 kB / 0.8835 GB, free: 28.07 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004743/2.812, allocations: 1.107 MB / 0.8846 GB, free: 27.83 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.009084/2.822, allocations: 3.931 MB / 0.8884 GB, free: 25.83 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00536/2.827, allocations: 2.051 MB / 0.8904 GB, free: 25.14 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/2.827, allocations: 0 / 0.8904 GB, free: 25.14 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001771/2.829, allocations: 0.6475 MB / 0.8911 GB, free: 24.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003816/2.833, allocations: 478.1 kB / 0.8915 GB, free: 24.84 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007876/2.84, allocations: 2.73 MB / 0.8942 GB, free: 23.66 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008492/2.841, allocations: 1.28 MB / 0.8954 GB, free: 22.89 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001177/2.843, allocations: 0.5255 MB / 0.8959 GB, free: 22.5 MB / 362.7 MB Notification: Performance of SimCode: time 9.52e-07/2.843, allocations: 2.844 kB / 0.896 GB, free: 22.5 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.006/6.849, allocations: 48.9 MB / 0.9437 GB, free: 46.4 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