Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.743/1.743, allocations: 171.3 MB / 178.4 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.836e-05/2.853e-05, allocations: 12 kB / 219.6 MB, free: 6.938 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2811/0.2811, allocations: 38.76 MB / 258.3 MB, free: 12.2 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9005/1.182, allocations: 316.2 MB / 0.5611 GB, free: 77.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003082/1.182, allocations: 85.72 kB / 0.5612 GB, free: 77.8 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.635/2.817, allocations: 319.6 MB / 0.8733 GB, free: 47.33 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.552e-06/2.818, allocations: 6.938 kB / 0.8733 GB, free: 47.33 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001858/2.818, allocations: 44.81 kB / 0.8733 GB, free: 47.32 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.007902/2.826, allocations: 2.03 MB / 0.8753 GB, free: 46.22 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/2.826, allocations: 11.91 kB / 0.8753 GB, free: 46.22 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001341/2.827, allocations: 204.6 kB / 0.8755 GB, free: 46.13 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004429/2.831, allocations: 1.24 MB / 0.8767 GB, free: 45.47 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.425e-05/2.832, allocations: 47.31 kB / 0.8768 GB, free: 45.47 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004184/2.832, allocations: 69.12 kB / 0.8769 GB, free: 45.47 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004434/2.837, allocations: 1.744 MB / 0.8786 GB, free: 44.86 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004107/2.841, allocations: 1.753 MB / 0.8803 GB, free: 44.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.347e-05/2.841, allocations: 7.75 kB / 0.8803 GB, free: 44.08 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002278/2.841, allocations: 7.844 kB / 0.8803 GB, free: 44.08 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002272/2.841, allocations: 118.4 kB / 0.8804 GB, free: 44.06 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01698/2.858, allocations: 7.362 MB / 0.8876 GB, free: 39.28 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002458/2.861, allocations: 1.107 MB / 0.8887 GB, free: 38.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001454/2.862, allocations: 0.6951 MB / 0.8893 GB, free: 38.57 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007274/2.87, allocations: 3.304 MB / 0.8926 GB, free: 36.14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.09e-05/2.87, allocations: 47.62 kB / 0.8926 GB, free: 36.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 4.578e-06/2.87, allocations: 0 / 0.8926 GB, free: 36.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=134): time 0.02448/2.894, allocations: 4.626 MB / 0.8971 GB, free: 31.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.607e-05/2.894, allocations: 167.5 kB / 0.8973 GB, free: 31.28 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001745/2.896, allocations: 0.9375 MB / 0.8982 GB, free: 30.33 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003615/2.896, allocations: 29.7 kB / 0.8982 GB, free: 30.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006486/2.897, allocations: 0.7328 MB / 0.899 GB, free: 29.55 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005214/2.898, allocations: 455.7 kB / 0.8994 GB, free: 29.11 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001521/2.898, allocations: 0 / 0.8994 GB, free: 29.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001317/2.898, allocations: 373.9 kB / 0.8997 GB, free: 28.74 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001647/2.9, allocations: 0.7067 MB / 0.9004 GB, free: 28.03 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00187/2.901, allocations: 1.155 MB / 0.9016 GB, free: 26.7 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01965/2.921, allocations: 2.518 MB / 0.904 GB, free: 24.21 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.7e-05/2.921, allocations: 7.984 kB / 0.904 GB, free: 24.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.02442/2.946, allocations: 3.905 MB / 0.9078 GB, free: 20.28 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001355/2.947, allocations: 5.155 MB / 0.9129 GB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-05/2.947, allocations: 12 kB / 0.9129 GB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002777/2.95, allocations: 459 kB / 0.9133 GB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003533/2.953, allocations: 359.4 kB / 0.9137 GB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009792/2.963, allocations: 3.283 MB / 0.9169 GB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003958/2.967, allocations: 103.7 kB / 0.917 GB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003679/2.968, allocations: 83.97 kB / 0.9171 GB, free: 10.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/2.968, allocations: 4 kB / 0.9171 GB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03124/2.999, allocations: 3.535 MB / 0.9205 GB, free: 6.793 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.768e-05/2.999, allocations: 12 kB / 0.9205 GB, free: 6.781 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002359/3.002, allocations: 331.4 kB / 0.9208 GB, free: 6.445 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003752/3.005, allocations: 379.4 kB / 0.9212 GB, free: 6.074 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007578/3.013, allocations: 2.931 MB / 0.9241 GB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003491/3.016, allocations: 103.4 kB / 0.9242 GB, free: 2.945 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003452/3.017, allocations: 87.97 kB / 0.9242 GB, free: 2.859 MB / 362.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.0007464/3.018, allocations: 162.1 kB / 0.9244 GB, free: 2.691 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01096/3.029, allocations: 2.005 MB / 0.9264 GB, free: 0.6641 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006717/3.029, allocations: 150.2 kB / 0.9265 GB, free: 0.5156 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2803/3.31, allocations: 2.316 MB / 0.9288 GB, free: 46.12 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-05/3.31, allocations: 19.84 kB / 0.9288 GB, free: 46.12 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.347e-05/3.31, allocations: 3.141 kB / 0.9288 GB, free: 46.12 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.516e-05/3.31, allocations: 8.375 kB / 0.9288 GB, free: 46.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01453/3.324, allocations: 3.814 MB / 0.9325 GB, free: 45.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-05/3.324, allocations: 7.484 kB / 0.9325 GB, free: 45.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00219/3.327, allocations: 238.2 kB / 0.9328 GB, free: 45.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002201/3.329, allocations: 446.5 kB / 0.9332 GB, free: 45.72 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002409/3.329, allocations: 24.09 kB / 0.9332 GB, free: 45.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004866/3.334, allocations: 3.045 MB / 0.9362 GB, free: 43.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.448e-06/3.334, allocations: 4.766 kB / 0.9362 GB, free: 43.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01011/3.344, allocations: 3.186 MB / 0.9393 GB, free: 43.28 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008853/3.345, allocations: 250.1 kB / 0.9395 GB, free: 43.18 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009264/3.346, allocations: 10.97 kB / 0.9395 GB, free: 43.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002274/3.348, allocations: 84.55 kB / 0.9396 GB, free: 43.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004834/3.349, allocations: 139 kB / 0.9398 GB, free: 43.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002012/3.349, allocations: 59.84 kB / 0.9398 GB, free: 43.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001351/3.35, allocations: 0.6888 MB / 0.9405 GB, free: 43.07 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.31e-07/3.35, allocations: 6.375 kB / 0.9405 GB, free: 43.07 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006373/3.357, allocations: 1.255 MB / 0.9417 GB, free: 43.07 MB / 362.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.01788/3.375, allocations: 5.248 MB / 0.9468 GB, free: 41.71 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0109/3.386, allocations: 2.881 MB / 0.9497 GB, free: 41.66 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.181e-05/3.386, allocations: 0 / 0.9497 GB, free: 41.66 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003921/3.39, allocations: 1.016 MB / 0.9506 GB, free: 41.66 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006844/3.397, allocations: 0.6164 MB / 0.9512 GB, free: 41.64 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01329/3.41, allocations: 3.377 MB / 0.9545 GB, free: 40.92 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001606/3.412, allocations: 1.439 MB / 0.9559 GB, free: 40.2 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.006323/3.418, allocations: 0.7481 MB / 0.9567 GB, free: 40.18 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001792/3.42, allocations: 0.6327 MB / 0.9573 GB, free: 40.17 MB / 362.7 MB Notification: Performance of SimCode: time 1.433e-06/3.42, allocations: 0 / 0.9573 GB, free: 40.17 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1983/3.618, allocations: 57.81 MB / 1.014 GB, free: 31.06 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001786/3.618, allocations: 189.4 kB / 1.014 GB, free: 30.87 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.155/8.774, allocations: 1.031 kB / 1.014 GB, free: 30.87 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat