Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.311/2.311, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.441e-05/3.467e-05, allocations: 0 / 269.5 MB, free: 6.305 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.11, allocations: 47.58 MB / 317 MB, free: 6.641 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.089/1.199, allocations: 324.1 MB / 0.6261 GB, free: 39.32 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003281/1.2, allocations: 94.23 kB / 0.6262 GB, free: 39.27 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.644/2.844, allocations: 282.1 MB / 0.9017 GB, free: 65.95 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.924e-06/2.844, allocations: 2.781 kB / 0.9017 GB, free: 65.95 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001697/2.844, allocations: 36.91 kB / 0.9018 GB, free: 65.95 MB / 426.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.00721/2.852, allocations: 1.781 MB / 0.9035 GB, free: 65.04 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/2.852, allocations: 7.125 kB / 0.9035 GB, free: 65.04 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005734/2.852, allocations: 165 kB / 0.9037 GB, free: 65 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001001/2.853, allocations: 166.9 kB / 0.9038 GB, free: 64.93 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00377/2.857, allocations: 1.033 MB / 0.9048 GB, free: 64.59 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000129/2.857, allocations: 84.28 kB / 0.9049 GB, free: 64.59 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003855/2.858, allocations: 90.23 kB / 0.905 GB, free: 64.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0042/2.862, allocations: 1.594 MB / 0.9066 GB, free: 64.33 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.866e-05/2.862, allocations: 9.25 kB / 0.9066 GB, free: 64.33 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002397/2.862, allocations: 44.81 kB / 0.9066 GB, free: 64.33 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002163/2.862, allocations: 102.9 kB / 0.9067 GB, free: 64.33 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004312/2.867, allocations: 1.568 MB / 0.9082 GB, free: 64.32 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01731/2.884, allocations: 6.543 MB / 0.9146 GB, free: 61.3 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00232/2.886, allocations: 0.8899 MB / 0.9155 GB, free: 61.27 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001329/2.888, allocations: 0.544 MB / 0.916 GB, free: 61.26 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006319/2.894, allocations: 2.909 MB / 0.9189 GB, free: 59.79 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.222e-05/2.894, allocations: 50.84 kB / 0.9189 GB, free: 59.75 MB / 426.7 MB Notification: Performance of pre-optimization done (n=80): time 4.098e-06/2.894, allocations: 1.875 kB / 0.9189 GB, free: 59.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=90): time 0.01023/2.905, allocations: 2.82 MB / 0.9217 GB, free: 59.02 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.925e-05/2.905, allocations: 191.1 kB / 0.9218 GB, free: 58.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002391/2.907, allocations: 1.136 MB / 0.923 GB, free: 58.32 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003775/2.908, allocations: 48.2 kB / 0.923 GB, free: 58.28 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006195/2.908, allocations: 0.6431 MB / 0.9236 GB, free: 57.77 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004459/2.909, allocations: 316.9 kB / 0.9239 GB, free: 57.53 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001436/2.909, allocations: 33.38 kB / 0.924 GB, free: 57.51 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001221/2.909, allocations: 360.6 kB / 0.9243 GB, free: 57.18 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00145/2.91, allocations: 0.5433 MB / 0.9248 GB, free: 56.99 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001693/2.912, allocations: 0.9321 MB / 0.9258 GB, free: 56.32 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001667/2.914, allocations: 0.6637 MB / 0.9264 GB, free: 56.09 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.047e-05/2.914, allocations: 3.562 kB / 0.9264 GB, free: 56.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.00464/2.918, allocations: 1.779 MB / 0.9281 GB, free: 55.42 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001025/2.92, allocations: 4.389 MB / 0.9324 GB, free: 50.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.014e-05/2.92, allocations: 15.45 kB / 0.9324 GB, free: 50.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006539/2.926, allocations: 0.6552 MB / 0.9331 GB, free: 50.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002244/2.928, allocations: 283.2 kB / 0.9334 GB, free: 50.67 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00273/2.931, allocations: 2.16 MB / 0.9355 GB, free: 48.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002782/2.934, allocations: 106.1 kB / 0.9356 GB, free: 48.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003384/2.934, allocations: 67.86 kB / 0.9356 GB, free: 48.83 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/2.935, allocations: 3.719 kB / 0.9356 GB, free: 48.83 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004361/2.939, allocations: 1.567 MB / 0.9372 GB, free: 48.26 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.077e-05/2.939, allocations: 9.906 kB / 0.9372 GB, free: 48.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005489/2.944, allocations: 0.5074 MB / 0.9377 GB, free: 48.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002332/2.947, allocations: 285.4 kB / 0.9379 GB, free: 48.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002211/2.949, allocations: 2 MB / 0.9399 GB, free: 46.42 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002479/2.952, allocations: 105.3 kB / 0.94 GB, free: 46.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002968/2.952, allocations: 64.92 kB / 0.9401 GB, free: 46.38 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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 (163): * Single equations (assignments): 160 * 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.0005855/2.953, allocations: 199.1 kB / 0.9402 GB, free: 46.21 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004203/2.953, allocations: 144.2 kB / 0.9404 GB, free: 46.13 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004614/2.958, allocations: 1.503 MB / 0.9418 GB, free: 45.55 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-05/2.958, allocations: 11.41 kB / 0.9419 GB, free: 45.55 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/2.958, allocations: 3.938 kB / 0.9419 GB, free: 45.55 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.131e-05/2.958, allocations: 9.031 kB / 0.9419 GB, free: 45.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007772/2.966, allocations: 2.794 MB / 0.9446 GB, free: 44.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.888e-06/2.966, allocations: 3.281 kB / 0.9446 GB, free: 44.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001354/2.967, allocations: 152.4 kB / 0.9447 GB, free: 44.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004835/2.972, allocations: 0.6068 MB / 0.9453 GB, free: 44.23 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002988/2.972, allocations: 26.14 kB / 0.9454 GB, free: 44.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002346/2.975, allocations: 2.107 MB / 0.9474 GB, free: 42.43 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/2.975, allocations: 0 / 0.9474 GB, free: 42.43 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005142/2.98, allocations: 2.121 MB / 0.9495 GB, free: 41.42 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000842/2.981, allocations: 253.2 kB / 0.9497 GB, free: 41.21 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005309/2.981, allocations: 19.44 kB / 0.9498 GB, free: 41.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001958/2.983, allocations: 76.69 kB / 0.9498 GB, free: 41.18 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003738/2.984, allocations: 99.75 kB / 0.9499 GB, free: 41.17 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001809/2.984, allocations: 48.59 kB / 0.95 GB, free: 41.16 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001943/2.986, allocations: 0.88 MB / 0.9508 GB, free: 40.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.42e-07/2.986, allocations: 0 / 0.9508 GB, free: 40.43 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005652/2.991, allocations: 1.216 MB / 0.952 GB, free: 39.25 MB / 426.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.009128/3.001, allocations: 3.972 MB / 0.9559 GB, free: 35.66 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006559/3.007, allocations: 2.152 MB / 0.958 GB, free: 33.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-05/3.007, allocations: 0 / 0.958 GB, free: 33.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002373/3.01, allocations: 0.6898 MB / 0.9587 GB, free: 33.11 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005083/3.015, allocations: 0.5772 MB / 0.9592 GB, free: 32.69 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009645/3.025, allocations: 2.749 MB / 0.9619 GB, free: 30.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008827/3.026, allocations: 1.288 MB / 0.9632 GB, free: 29.19 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003836/3.029, allocations: 0.6552 MB / 0.9638 GB, free: 28.76 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001073/3.03, allocations: 0.5147 MB / 0.9643 GB, free: 28.29 MB / 426.7 MB Notification: Performance of SimCode: time 1.382e-06/3.031, allocations: 0 / 0.9643 GB, free: 28.29 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5069/3.537, allocations: 54.51 MB / 1.018 GB, free: 60.47 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000304/3.538, allocations: 242.6 kB / 1.018 GB, free: 60.16 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.309/8.847, allocations: 3.094 kB / 1.018 GB, free: 60.16 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat