Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.083/2.083, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.092e-05/2.093e-05, allocations: 0 / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2938/0.2939, allocations: 44.5 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9821/1.276, allocations: 321.6 MB / 0.6014 GB, free: 110.9 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003/1.276, allocations: 90.42 kB / 0.6014 GB, free: 110.9 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.65/2.927, allocations: 319.6 MB / 0.9135 GB, free: 49.36 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.264e-06/2.927, allocations: 0 / 0.9135 GB, free: 49.36 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001967/2.927, allocations: 46.38 kB / 0.9136 GB, free: 49.36 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.007994/2.935, allocations: 2.04 MB / 0.9156 GB, free: 48.53 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/2.935, allocations: 12.31 kB / 0.9156 GB, free: 48.53 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001592/2.937, allocations: 196.3 kB / 0.9157 GB, free: 48.44 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004744/2.941, allocations: 1.239 MB / 0.917 GB, free: 48.13 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000133/2.942, allocations: 48.22 kB / 0.917 GB, free: 48.13 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005855/2.942, allocations: 73.91 kB / 0.9171 GB, free: 48.13 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005047/2.947, allocations: 1.741 MB / 0.9188 GB, free: 48.12 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005223/2.953, allocations: 1.753 MB / 0.9205 GB, free: 47.84 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.477e-05/2.953, allocations: 3.719 kB / 0.9205 GB, free: 47.84 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002653/2.953, allocations: 6.891 kB / 0.9205 GB, free: 47.84 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002307/2.953, allocations: 121.8 kB / 0.9206 GB, free: 47.84 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01871/2.972, allocations: 7.362 MB / 0.9278 GB, free: 44.48 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002662/2.975, allocations: 1.092 MB / 0.9289 GB, free: 44.44 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001667/2.976, allocations: 0.7007 MB / 0.9296 GB, free: 44.43 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007886/2.984, allocations: 3.313 MB / 0.9328 GB, free: 42.87 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.292e-05/2.984, allocations: 50.41 kB / 0.9328 GB, free: 42.83 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 5.56e-06/2.984, allocations: 0 / 0.9328 GB, free: 42.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=134): time 0.02483/3.009, allocations: 4.614 MB / 0.9373 GB, free: 42.17 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.758e-05/3.009, allocations: 176.1 kB / 0.9375 GB, free: 41.98 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001806/3.011, allocations: 0.9265 MB / 0.9384 GB, free: 41.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004625/3.012, allocations: 34.55 kB / 0.9384 GB, free: 41.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006987/3.012, allocations: 0.7198 MB / 0.9392 GB, free: 41.38 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007435/3.013, allocations: 453.8 kB / 0.9396 GB, free: 41.09 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002014/3.013, allocations: 0 / 0.9396 GB, free: 41.09 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001516/3.014, allocations: 388.5 kB / 0.94 GB, free: 40.78 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001764/3.015, allocations: 0.703 MB / 0.9406 GB, free: 40.78 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002269/3.018, allocations: 1.159 MB / 0.9418 GB, free: 40.26 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02065/3.038, allocations: 2.516 MB / 0.9442 GB, free: 40.25 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.961e-05/3.038, allocations: 3.125 kB / 0.9442 GB, free: 40.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.02388/3.062, allocations: 3.845 MB / 0.948 GB, free: 40.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001103/3.063, allocations: 5.136 MB / 0.953 GB, free: 34.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.258e-05/3.064, allocations: 11.44 kB / 0.953 GB, free: 34.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002259/3.066, allocations: 460.9 kB / 0.9535 GB, free: 34.72 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002805/3.069, allocations: 356.6 kB / 0.9538 GB, free: 34.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00695/3.076, allocations: 3.281 MB / 0.957 GB, free: 32.63 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002922/3.079, allocations: 104 kB / 0.9571 GB, free: 32.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005585/3.079, allocations: 88.23 kB / 0.9572 GB, free: 32.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/3.079, allocations: 4.594 kB / 0.9572 GB, free: 32.62 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02265/3.102, allocations: 3.528 MB / 0.9606 GB, free: 32.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.247e-05/3.102, allocations: 18.36 kB / 0.9606 GB, free: 32.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001613/3.104, allocations: 319.8 kB / 0.961 GB, free: 32.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002846/3.107, allocations: 368.5 kB / 0.9613 GB, free: 32.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005349/3.112, allocations: 2.928 MB / 0.9642 GB, free: 30.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002182/3.114, allocations: 97.97 kB / 0.9643 GB, free: 30.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003086/3.114, allocations: 86.03 kB / 0.9643 GB, free: 30.43 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (207): * Single equations (assignments): 203 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005852/3.115, allocations: 159.7 kB / 0.9645 GB, free: 30.31 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009267/3.124, allocations: 2.013 MB / 0.9665 GB, free: 30.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006317/3.125, allocations: 148.1 kB / 0.9666 GB, free: 30.07 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009159/3.134, allocations: 2.329 MB / 0.9689 GB, free: 29.89 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-05/3.134, allocations: 17.03 kB / 0.9689 GB, free: 29.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/3.134, allocations: 0 / 0.9689 GB, free: 29.89 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.217e-05/3.134, allocations: 9.172 kB / 0.9689 GB, free: 29.89 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01271/3.147, allocations: 3.814 MB / 0.9726 GB, free: 29.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/3.147, allocations: 0 / 0.9726 GB, free: 29.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002027/3.149, allocations: 244.1 kB / 0.9729 GB, free: 29.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002159/3.151, allocations: 445.4 kB / 0.9733 GB, free: 29.44 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003796/3.152, allocations: 26.94 kB / 0.9733 GB, free: 29.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004956/3.157, allocations: 3.034 MB / 0.9763 GB, free: 27.35 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.637e-06/3.157, allocations: 3.094 kB / 0.9763 GB, free: 27.35 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01001/3.167, allocations: 3.193 MB / 0.9794 GB, free: 26.89 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007312/3.168, allocations: 246.2 kB / 0.9796 GB, free: 26.71 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008051/3.168, allocations: 12.94 kB / 0.9796 GB, free: 26.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002239/3.171, allocations: 76.38 kB / 0.9797 GB, free: 26.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006118/3.171, allocations: 153.2 kB / 0.9799 GB, free: 26.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002275/3.172, allocations: 57.38 kB / 0.9799 GB, free: 26.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001416/3.173, allocations: 0.6929 MB / 0.9806 GB, free: 26.59 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.81e-07/3.173, allocations: 0 / 0.9806 GB, free: 26.59 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006315/3.179, allocations: 1.259 MB / 0.9818 GB, free: 26.38 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01424/3.194, allocations: 5.262 MB / 0.987 GB, free: 24.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008494/3.202, allocations: 2.833 MB / 0.9897 GB, free: 24.72 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.178e-05/3.202, allocations: 3.844 kB / 0.9897 GB, free: 24.72 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003119/3.205, allocations: 1.016 MB / 0.9907 GB, free: 24.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00551/3.211, allocations: 0.6132 MB / 0.9913 GB, free: 24.69 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01103/3.222, allocations: 3.427 MB / 0.9947 GB, free: 23.75 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001815/3.224, allocations: 1.429 MB / 0.9961 GB, free: 39.02 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001665/3.226, allocations: 0.6567 MB / 0.9967 GB, free: 39.01 MB / 426.7 MB Notification: Performance of SimCode: time 1.704e-06/3.226, allocations: 0.75 kB / 0.9967 GB, free: 39.01 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.271/7.497, allocations: 65.52 MB / 1.061 GB, free: 57.8 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat