Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.886/1.886, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.368e-05/4.377e-05, allocations: 4 kB / 225.1 MB, free: 2.238 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2803/0.2804, allocations: 38.77 MB / 263.9 MB, free: 9.703 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9266/1.207, allocations: 316 MB / 0.5663 GB, free: 67.68 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003317/1.208, allocations: 85.02 kB / 0.5664 GB, free: 67.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.753/1.961, allocations: 141.4 MB / 0.7045 GB, free: 79.81 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.044e-06/1.961, allocations: 0 / 0.7045 GB, free: 79.81 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.572e-05/1.961, allocations: 16 kB / 0.7045 GB, free: 79.79 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.003384/1.964, allocations: 1.07 MB / 0.7055 GB, free: 78.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/1.964, allocations: 8.031 kB / 0.7055 GB, free: 78.67 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000267/1.964, allocations: 94.42 kB / 0.7056 GB, free: 78.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005663/1.965, allocations: 98.98 kB / 0.7057 GB, free: 78.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002185/1.967, allocations: 0.6318 MB / 0.7063 GB, free: 77.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001176/1.967, allocations: 96.3 kB / 0.7064 GB, free: 77.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001496/1.968, allocations: 47.91 kB / 0.7065 GB, free: 77.67 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001829/1.969, allocations: 0.784 MB / 0.7072 GB, free: 76.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.469e-05/1.969, allocations: 0 / 0.7072 GB, free: 76.84 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001111/1.97, allocations: 23.75 kB / 0.7073 GB, free: 76.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.128e-05/1.97, allocations: 40.97 kB / 0.7073 GB, free: 76.78 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001582/1.971, allocations: 0.6461 MB / 0.7079 GB, free: 76.13 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006993/1.978, allocations: 3.393 MB / 0.7112 GB, free: 72.55 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009525/1.979, allocations: 402.3 kB / 0.7116 GB, free: 72.15 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004885/1.98, allocations: 232.8 kB / 0.7118 GB, free: 71.92 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002521/1.982, allocations: 1.335 MB / 0.7131 GB, free: 70.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005954/1.983, allocations: 285.7 kB / 0.7134 GB, free: 70.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 5.059e-06/1.983, allocations: 0 / 0.7134 GB, free: 70.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.004548/1.988, allocations: 1.48 MB / 0.7149 GB, free: 68.61 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.853e-05/1.988, allocations: 162.2 kB / 0.715 GB, free: 68.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00107/1.989, allocations: 0.6051 MB / 0.7156 GB, free: 67.8 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001344/1.989, allocations: 33.7 kB / 0.7156 GB, free: 67.76 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003314/1.989, allocations: 430.2 kB / 0.7161 GB, free: 67.34 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001598/1.989, allocations: 130.1 kB / 0.7162 GB, free: 67.21 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.775e-05/1.99, allocations: 19.94 kB / 0.7162 GB, free: 67.2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001301/1.99, allocations: 386.7 kB / 0.7166 GB, free: 66.81 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005989/1.99, allocations: 237.5 kB / 0.7168 GB, free: 66.58 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007027/1.991, allocations: 0.5189 MB / 0.7173 GB, free: 65.92 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007204/1.992, allocations: 360.2 kB / 0.7176 GB, free: 65.56 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.214e-06/1.992, allocations: 0 / 0.7176 GB, free: 65.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002576/1.994, allocations: 0.947 MB / 0.7186 GB, free: 64.6 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007349/1.995, allocations: 3.511 MB / 0.722 GB, free: 60.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.043e-05/1.995, allocations: 8 kB / 0.722 GB, free: 60.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009152/1.996, allocations: 128.8 kB / 0.7221 GB, free: 60.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001019/1.997, allocations: 151.7 kB / 0.7223 GB, free: 60.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007562/1.998, allocations: 0.6693 MB / 0.7229 GB, free: 59.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001153/1.999, allocations: 52.03 kB / 0.723 GB, free: 59.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001184/1.999, allocations: 43.94 kB / 0.723 GB, free: 59.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/1.999, allocations: 6.031 kB / 0.723 GB, free: 59.73 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002674/2.002, allocations: 0.8759 MB / 0.7239 GB, free: 58.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.162e-05/2.002, allocations: 8 kB / 0.7239 GB, free: 58.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006788/2.003, allocations: 117 kB / 0.724 GB, free: 58.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009734/2.004, allocations: 151.7 kB / 0.7241 GB, free: 58.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006689/2.004, allocations: 0.6576 MB / 0.7248 GB, free: 57.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001077/2.006, allocations: 39.98 kB / 0.7248 GB, free: 57.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001089/2.006, allocations: 48.05 kB / 0.7249 GB, free: 57.8 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004404/2.006, allocations: 210 kB / 0.7251 GB, free: 57.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/2.006, allocations: 71.16 kB / 0.7251 GB, free: 57.52 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002022/2.008, allocations: 0.682 MB / 0.7258 GB, free: 56.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/2.008, allocations: 4 kB / 0.7258 GB, free: 56.81 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.315e-06/2.008, allocations: 7.938 kB / 0.7258 GB, free: 56.8 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/2.008, allocations: 3.984 kB / 0.7258 GB, free: 56.8 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003123/2.012, allocations: 1.363 MB / 0.7271 GB, free: 55.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/2.012, allocations: 0 / 0.7271 GB, free: 55.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005412/2.012, allocations: 59.91 kB / 0.7272 GB, free: 55.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007399/2.013, allocations: 128.8 kB / 0.7273 GB, free: 55.19 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.99e-05/2.013, allocations: 11.98 kB / 0.7273 GB, free: 55.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006643/2.014, allocations: 0.6616 MB / 0.728 GB, free: 54.49 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/2.014, allocations: 3.984 kB / 0.728 GB, free: 54.49 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002163/2.016, allocations: 1.027 MB / 0.729 GB, free: 53.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002844/2.016, allocations: 152.1 kB / 0.7291 GB, free: 53.26 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001794/2.016, allocations: 16 kB / 0.7292 GB, free: 53.24 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007158/2.017, allocations: 32.03 kB / 0.7292 GB, free: 53.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/2.017, allocations: 35.91 kB / 0.7292 GB, free: 53.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.733e-05/2.017, allocations: 19.98 kB / 0.7292 GB, free: 53.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008482/2.018, allocations: 471.1 kB / 0.7297 GB, free: 52.7 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.61e-07/2.018, allocations: 0 / 0.7297 GB, free: 52.7 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00249/2.021, allocations: 0.558 MB / 0.7302 GB, free: 52.15 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 7 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 7 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.003879/2.025, allocations: 2.035 MB / 0.7322 GB, free: 50.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003254/2.028, allocations: 1.094 MB / 0.7333 GB, free: 48.99 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.116e-06/2.028, allocations: 1.438 kB / 0.7333 GB, free: 48.99 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009/2.029, allocations: 315.2 kB / 0.7336 GB, free: 48.67 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002127/2.031, allocations: 244.1 kB / 0.7338 GB, free: 48.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004464/2.036, allocations: 1.399 MB / 0.7352 GB, free: 46.98 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005061/2.036, allocations: 0.9783 MB / 0.7361 GB, free: 45.97 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001825/2.038, allocations: 281.4 kB / 0.7364 GB, free: 45.7 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005158/2.039, allocations: 247.3 kB / 0.7366 GB, free: 45.45 MB / 362.7 MB Notification: Performance of SimCode: time 2.024e-06/2.039, allocations: 0 / 0.7366 GB, free: 45.45 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0699/2.109, allocations: 24.07 MB / 0.7602 GB, free: 21.41 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002667/2.109, allocations: 214.5 kB / 0.7604 GB, free: 21.19 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.733/5.842, allocations: 0 / 0.7604 GB, free: 21.19 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.OneTank_res.mat does not exist to compare? outputFormat=mat