Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.14/2.14, allocations: 195 MB / 202.8 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.427e-05/2.427e-05, allocations: 4 kB / 249.7 MB, free: 14.8 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4435/0.4435, allocations: 44.49 MB / 294.2 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.16/1.603, allocations: 321.6 MB / 0.6014 GB, free: 110.8 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003207/1.604, allocations: 90.08 kB / 0.6014 GB, free: 110.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.962/3.566, allocations: 319.6 MB / 0.9135 GB, free: 49.19 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.015e-06/3.566, allocations: 0 / 0.9135 GB, free: 49.19 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000344/3.567, allocations: 51.98 kB / 0.9136 GB, free: 49.19 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.01264/3.579, allocations: 2.042 MB / 0.9156 GB, free: 48.36 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.322e-05/3.579, allocations: 13.12 kB / 0.9156 GB, free: 48.36 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002363/3.582, allocations: 198.8 kB / 0.9158 GB, free: 48.27 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007565/3.589, allocations: 1.237 MB / 0.917 GB, free: 47.96 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002808/3.59, allocations: 47.05 kB / 0.917 GB, free: 47.96 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009666/3.591, allocations: 73.16 kB / 0.9171 GB, free: 47.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008646/3.599, allocations: 1.756 MB / 0.9188 GB, free: 47.95 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00909/3.609, allocations: 1.75 MB / 0.9205 GB, free: 47.67 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001136/3.609, allocations: 2.344 kB / 0.9205 GB, free: 47.67 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008274/3.61, allocations: 4.312 kB / 0.9205 GB, free: 47.67 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004109/3.61, allocations: 117.8 kB / 0.9206 GB, free: 47.67 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0301/3.64, allocations: 7.362 MB / 0.9278 GB, free: 44.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004382/3.645, allocations: 1.095 MB / 0.9289 GB, free: 44.27 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002745/3.647, allocations: 0.6962 MB / 0.9296 GB, free: 44.26 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01351/3.661, allocations: 3.312 MB / 0.9328 GB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.765e-05/3.661, allocations: 48 kB / 0.9329 GB, free: 42.66 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 7.274e-06/3.661, allocations: 0.9375 kB / 0.9329 GB, free: 42.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=134): time 0.04218/3.703, allocations: 4.619 MB / 0.9374 GB, free: 42 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.463e-05/3.704, allocations: 172.9 kB / 0.9375 GB, free: 41.81 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003078/3.707, allocations: 0.9324 MB / 0.9385 GB, free: 41.64 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005913/3.707, allocations: 33.17 kB / 0.9385 GB, free: 41.61 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00123/3.709, allocations: 0.7285 MB / 0.9392 GB, free: 41.28 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001159/3.71, allocations: 461 kB / 0.9396 GB, free: 40.99 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004315/3.71, allocations: 0 / 0.9396 GB, free: 40.99 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002974/3.711, allocations: 380 kB / 0.94 GB, free: 40.68 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003091/3.714, allocations: 0.7021 MB / 0.9407 GB, free: 40.68 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003553/3.717, allocations: 1.16 MB / 0.9418 GB, free: 40.16 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03035/3.748, allocations: 2.516 MB / 0.9443 GB, free: 40.15 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.47e-05/3.748, allocations: 6.344 kB / 0.9443 GB, free: 40.15 MB / 410.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.03794/3.786, allocations: 3.91 MB / 0.9481 GB, free: 39.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001664/3.788, allocations: 5.154 MB / 0.9531 GB, free: 34.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.182e-05/3.788, allocations: 11.31 kB / 0.9531 GB, free: 34.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003378/3.791, allocations: 457.9 kB / 0.9536 GB, free: 34.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00411/3.795, allocations: 354.7 kB / 0.9539 GB, free: 34.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01112/3.807, allocations: 3.288 MB / 0.9571 GB, free: 32.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004458/3.811, allocations: 105.5 kB / 0.9572 GB, free: 32.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008702/3.812, allocations: 83.98 kB / 0.9573 GB, free: 32.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/3.812, allocations: 5.562 kB / 0.9573 GB, free: 32.48 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03606/3.848, allocations: 3.526 MB / 0.9608 GB, free: 32.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000129/3.848, allocations: 15.59 kB / 0.9608 GB, free: 32.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003623/3.852, allocations: 339.1 kB / 0.9611 GB, free: 32.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003047/3.855, allocations: 368.1 kB / 0.9614 GB, free: 32.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005963/3.861, allocations: 2.941 MB / 0.9643 GB, free: 30.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002969/3.864, allocations: 99.56 kB / 0.9644 GB, free: 30.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006967/3.865, allocations: 82.66 kB / 0.9645 GB, free: 30.28 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.0008092/3.866, allocations: 171.7 kB / 0.9647 GB, free: 30.16 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0107/3.877, allocations: 2.006 MB / 0.9666 GB, free: 30 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009588/3.878, allocations: 152.6 kB / 0.9668 GB, free: 29.92 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01039/3.888, allocations: 2.328 MB / 0.969 GB, free: 29.75 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.212e-05/3.888, allocations: 18.31 kB / 0.969 GB, free: 29.75 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/3.888, allocations: 0 / 0.969 GB, free: 29.75 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.222e-05/3.888, allocations: 10.08 kB / 0.9691 GB, free: 29.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01472/3.903, allocations: 3.817 MB / 0.9728 GB, free: 29.33 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.103e-05/3.903, allocations: 3 kB / 0.9728 GB, free: 29.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002259/3.905, allocations: 242.7 kB / 0.973 GB, free: 29.33 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002328/3.908, allocations: 444.8 kB / 0.9734 GB, free: 29.29 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004236/3.908, allocations: 23.56 kB / 0.9735 GB, free: 29.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005479/3.914, allocations: 3.032 MB / 0.9764 GB, free: 27.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.005e-05/3.914, allocations: 5.312 kB / 0.9764 GB, free: 27.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01057/3.924, allocations: 3.19 MB / 0.9795 GB, free: 26.75 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008117/3.925, allocations: 240.1 kB / 0.9798 GB, free: 26.57 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009608/3.926, allocations: 15.7 kB / 0.9798 GB, free: 26.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00251/3.929, allocations: 77.44 kB / 0.9799 GB, free: 26.56 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007339/3.93, allocations: 155.1 kB / 0.98 GB, free: 26.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000258/3.93, allocations: 58.11 kB / 0.9801 GB, free: 26.55 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001493/3.931, allocations: 0.6908 MB / 0.9807 GB, free: 26.45 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.102e-06/3.931, allocations: 2.375 kB / 0.9807 GB, free: 26.45 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.008144/3.94, allocations: 1.262 MB / 0.982 GB, free: 26.24 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.02102/3.961, allocations: 5.244 MB / 0.9871 GB, free: 24.61 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009359/3.97, allocations: 2.87 MB / 0.9899 GB, free: 24.57 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.31e-05/3.97, allocations: 3.812 kB / 0.9899 GB, free: 24.57 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003495/3.974, allocations: 1.017 MB / 0.9909 GB, free: 24.56 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00587/3.98, allocations: 0.6189 MB / 0.9915 GB, free: 24.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01349/3.993, allocations: 3.384 MB / 0.9948 GB, free: 23.63 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002366/3.996, allocations: 1.434 MB / 0.9962 GB, free: 38.9 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005575/4.001, allocations: 0.7447 MB / 0.9969 GB, free: 38.81 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001731/4.003, allocations: 0.629 MB / 0.9976 GB, free: 38.8 MB / 426.7 MB Notification: Performance of SimCode: time 1.563e-06/4.003, allocations: 0 / 0.9976 GB, free: 38.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1656/4.169, allocations: 57.81 MB / 1.054 GB, free: 5.395 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003173/4.169, allocations: 191.5 kB / 1.054 GB, free: 5.199 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.637/9.806, allocations: 0 / 1.054 GB, free: 5.199 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat