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 1.981/1.981, allocations: 194.9 MB / 208 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.352e-05/3.377e-05, allocations: 4 kB / 255.5 MB, free: 2.609 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09535/0.09542, allocations: 44.5 MB / 300 MB, free: 6.047 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.018/1.114, allocations: 322.2 MB / 0.6076 GB, free: 65.57 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003171/1.114, allocations: 88.58 kB / 0.6077 GB, free: 65.53 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.771/2.885, allocations: 321.4 MB / 0.9216 GB, free: 57.31 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.455e-06/2.885, allocations: 0 / 0.9216 GB, free: 57.31 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000251/2.885, allocations: 46.39 kB / 0.9216 GB, free: 57.3 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.008894/2.894, allocations: 2.045 MB / 0.9236 GB, free: 56.24 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/2.894, allocations: 9.594 kB / 0.9236 GB, free: 56.24 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008956/2.895, allocations: 186.8 kB / 0.9238 GB, free: 56.12 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001594/2.896, allocations: 203.3 kB / 0.924 GB, free: 56.03 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005126/2.902, allocations: 1.243 MB / 0.9252 GB, free: 55.38 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002052/2.902, allocations: 96.52 kB / 0.9253 GB, free: 55.34 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007973/2.903, allocations: 128 kB / 0.9254 GB, free: 55.3 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005943/2.909, allocations: 1.916 MB / 0.9273 GB, free: 54.45 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.999e-05/2.909, allocations: 4.453 kB / 0.9273 GB, free: 54.45 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003148/2.909, allocations: 53.98 kB / 0.9274 GB, free: 54.41 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002475/2.909, allocations: 120 kB / 0.9275 GB, free: 54.39 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006105/2.916, allocations: 1.919 MB / 0.9294 GB, free: 53.73 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02277/2.938, allocations: 7.631 MB / 0.9368 GB, free: 48.78 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003215/2.942, allocations: 1.135 MB / 0.9379 GB, free: 48.35 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002078/2.944, allocations: 0.7312 MB / 0.9386 GB, free: 48.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009039/2.953, allocations: 3.381 MB / 0.9419 GB, free: 45.8 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.46e-05/2.953, allocations: 50.12 kB / 0.942 GB, free: 45.75 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 4.829e-06/2.953, allocations: 0 / 0.942 GB, free: 45.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=134): time 0.01678/2.97, allocations: 4.081 MB / 0.946 GB, free: 44.11 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.6e-05/2.97, allocations: 173.5 kB / 0.9461 GB, free: 43.92 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002662/2.973, allocations: 1.151 MB / 0.9473 GB, free: 43.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004934/2.973, allocations: 60.08 kB / 0.9473 GB, free: 43.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000779/2.974, allocations: 0.7297 MB / 0.948 GB, free: 42.83 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008656/2.975, allocations: 465.7 kB / 0.9485 GB, free: 42.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002345/2.975, allocations: 38.41 kB / 0.9485 GB, free: 42.45 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001736/2.975, allocations: 377.1 kB / 0.9489 GB, free: 42.12 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002157/2.977, allocations: 0.7379 MB / 0.9496 GB, free: 41.85 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002706/2.98, allocations: 1.185 MB / 0.9508 GB, free: 40.68 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002557/2.983, allocations: 0.8657 MB / 0.9516 GB, free: 39.97 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.849e-05/2.983, allocations: 4 kB / 0.9516 GB, free: 39.96 MB / 410.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.007266/2.99, allocations: 2.378 MB / 0.9539 GB, free: 37.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001161/2.991, allocations: 5.206 MB / 0.959 GB, free: 32.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.485e-05/2.992, allocations: 15.72 kB / 0.959 GB, free: 32.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00952/3.001, allocations: 0.9386 MB / 0.9599 GB, free: 31.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002912/3.004, allocations: 357.5 kB / 0.9603 GB, free: 31.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003625/3.008, allocations: 2.883 MB / 0.9631 GB, free: 28.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003194/3.011, allocations: 137.7 kB / 0.9632 GB, free: 28.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006366/3.012, allocations: 81.56 kB / 0.9633 GB, free: 28.36 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/3.012, allocations: 4 kB / 0.9633 GB, free: 28.36 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006335/3.018, allocations: 2.102 MB / 0.9654 GB, free: 26.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.897e-05/3.018, allocations: 12 kB / 0.9654 GB, free: 26.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007569/3.026, allocations: 0.6806 MB / 0.966 GB, free: 25.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002975/3.029, allocations: 364.7 kB / 0.9664 GB, free: 25.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002765/3.032, allocations: 2.635 MB / 0.969 GB, free: 23.06 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003053/3.035, allocations: 137.7 kB / 0.9691 GB, free: 22.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000654/3.035, allocations: 83.78 kB / 0.9692 GB, free: 22.87 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.000683/3.036, allocations: 225.5 kB / 0.9694 GB, free: 22.64 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000571/3.037, allocations: 166 kB / 0.9695 GB, free: 22.48 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008635/3.045, allocations: 2.302 MB / 0.9718 GB, free: 20.47 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.278e-05/3.045, allocations: 19.94 kB / 0.9718 GB, free: 20.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/3.045, allocations: 0 / 0.9718 GB, free: 20.45 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-05/3.046, allocations: 19.77 kB / 0.9718 GB, free: 20.43 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01542/3.061, allocations: 3.912 MB / 0.9756 GB, free: 16.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.748e-05/3.061, allocations: 0 / 0.9756 GB, free: 16.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003253/3.064, allocations: 239.7 kB / 0.9759 GB, free: 16.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009169/3.074, allocations: 0.8695 MB / 0.9767 GB, free: 15.35 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005314/3.074, allocations: 39.98 kB / 0.9768 GB, free: 15.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00446/3.079, allocations: 2.826 MB / 0.9795 GB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/3.079, allocations: 3.938 kB / 0.9795 GB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0103/3.089, allocations: 3.166 MB / 0.9826 GB, free: 9.125 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001036/3.09, allocations: 262.9 kB / 0.9829 GB, free: 8.848 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009674/3.091, allocations: 39.75 kB / 0.9829 GB, free: 8.812 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002712/3.094, allocations: 103.8 kB / 0.983 GB, free: 8.711 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006217/3.095, allocations: 161 kB / 0.9832 GB, free: 8.555 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003055/3.095, allocations: 59.97 kB / 0.9832 GB, free: 8.496 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002863/3.098, allocations: 0.8783 MB / 0.9841 GB, free: 7.617 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.22e-07/3.098, allocations: 0 / 0.9841 GB, free: 7.617 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00799/3.106, allocations: 1.366 MB / 0.9854 GB, free: 6.254 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.0161/3.122, allocations: 5.228 MB / 0.9905 GB, free: 1.074 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.331/3.453, allocations: 3.041 MB / 0.9935 GB, free: 54.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.236e-05/3.453, allocations: 1.188 kB / 0.9935 GB, free: 54.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003972/3.457, allocations: 1.044 MB / 0.9945 GB, free: 54.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006305/3.463, allocations: 0.6536 MB / 0.9951 GB, free: 54.69 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01374/3.477, allocations: 3.567 MB / 0.9986 GB, free: 54.03 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001895/3.479, allocations: 1.437 MB / 1 GB, free: 53.31 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.006218/3.485, allocations: 0.8187 MB / 1.001 GB, free: 53.29 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001783/3.487, allocations: 0.6403 MB / 1.001 GB, free: 53.28 MB / 410.7 MB Notification: Performance of SimCode: time 1.653e-06/3.487, allocations: 0 / 1.001 GB, free: 53.28 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.159/3.646, allocations: 64.35 MB / 1.064 GB, free: 49.56 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002004/3.647, allocations: 239.2 kB / 1.065 GB, free: 49.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.939/9.586, allocations: 0 / 1.065 GB, free: 49.25 MB / 410.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