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.841/1.841, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.099e-05/3.118e-05, allocations: 4 kB / 225.1 MB, free: 2.246 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2666/0.2666, allocations: 38.76 MB / 263.9 MB, free: 9.727 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9371/1.204, allocations: 316 MB / 0.5663 GB, free: 67.63 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003129/1.204, allocations: 86.7 kB / 0.5664 GB, free: 67.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7283/1.932, allocations: 141.4 MB / 0.7044 GB, free: 79.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.713e-06/1.932, allocations: 0 / 0.7044 GB, free: 79.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.653e-05/1.933, allocations: 20 kB / 0.7044 GB, free: 79.75 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.002839/1.935, allocations: 1.07 MB / 0.7055 GB, free: 78.63 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/1.935, allocations: 8.031 kB / 0.7055 GB, free: 78.62 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001794/1.936, allocations: 94.34 kB / 0.7056 GB, free: 78.53 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004929/1.936, allocations: 87.06 kB / 0.7057 GB, free: 78.44 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001853/1.938, allocations: 0.6473 MB / 0.7063 GB, free: 77.77 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.526e-05/1.938, allocations: 87.92 kB / 0.7064 GB, free: 77.67 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/1.938, allocations: 55.81 kB / 0.7064 GB, free: 77.62 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001715/1.94, allocations: 0.786 MB / 0.7072 GB, free: 76.79 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.671e-05/1.94, allocations: 0 / 0.7072 GB, free: 76.79 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000106/1.94, allocations: 27.91 kB / 0.7072 GB, free: 76.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.581e-05/1.94, allocations: 36.98 kB / 0.7073 GB, free: 76.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00149/1.942, allocations: 0.6558 MB / 0.7079 GB, free: 76.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006564/1.948, allocations: 3.409 MB / 0.7112 GB, free: 72.47 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008916/1.949, allocations: 391.4 kB / 0.7116 GB, free: 72.08 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004847/1.95, allocations: 232.7 kB / 0.7118 GB, free: 71.85 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002309/1.952, allocations: 1.338 MB / 0.7131 GB, free: 70.38 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005685/1.953, allocations: 287.7 kB / 0.7134 GB, free: 70.08 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.925e-06/1.953, allocations: 0 / 0.7134 GB, free: 70.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.004189/1.957, allocations: 1.474 MB / 0.7149 GB, free: 68.54 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.678e-05/1.957, allocations: 162.2 kB / 0.715 GB, free: 68.34 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001018/1.958, allocations: 0.6051 MB / 0.7156 GB, free: 67.73 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.803e-05/1.958, allocations: 41.7 kB / 0.7156 GB, free: 67.68 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003179/1.959, allocations: 418.4 kB / 0.716 GB, free: 67.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001352/1.959, allocations: 134.2 kB / 0.7162 GB, free: 67.14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.49e-05/1.959, allocations: 12 kB / 0.7162 GB, free: 67.13 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001345/1.959, allocations: 386.7 kB / 0.7165 GB, free: 66.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005628/1.959, allocations: 245.4 kB / 0.7168 GB, free: 66.51 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007526/1.96, allocations: 0.5204 MB / 0.7173 GB, free: 65.85 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007027/1.961, allocations: 352.2 kB / 0.7176 GB, free: 65.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.166e-06/1.961, allocations: 7.938 kB / 0.7176 GB, free: 65.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002622/1.964, allocations: 0.9704 MB / 0.7186 GB, free: 64.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007128/1.964, allocations: 3.516 MB / 0.722 GB, free: 60.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/1.964, allocations: 12 kB / 0.722 GB, free: 60.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008452/1.965, allocations: 124.8 kB / 0.7221 GB, free: 60.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/1.966, allocations: 147.8 kB / 0.7223 GB, free: 60.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007165/1.967, allocations: 0.6771 MB / 0.7229 GB, free: 59.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/1.968, allocations: 43.98 kB / 0.723 GB, free: 59.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/1.968, allocations: 47.92 kB / 0.723 GB, free: 59.64 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/1.968, allocations: 4 kB / 0.723 GB, free: 59.63 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002486/1.971, allocations: 0.9031 MB / 0.7239 GB, free: 58.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/1.971, allocations: 8 kB / 0.7239 GB, free: 58.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006136/1.971, allocations: 116.8 kB / 0.724 GB, free: 58.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009013/1.972, allocations: 151.9 kB / 0.7242 GB, free: 58.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000579/1.973, allocations: 0.6576 MB / 0.7248 GB, free: 57.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009795/1.974, allocations: 43.97 kB / 0.7249 GB, free: 57.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.777e-05/1.974, allocations: 36 kB / 0.7249 GB, free: 57.69 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.0003569/1.974, allocations: 214.5 kB / 0.7251 GB, free: 57.47 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/1.975, allocations: 71.16 kB / 0.7252 GB, free: 57.4 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001937/1.976, allocations: 0.6826 MB / 0.7258 GB, free: 56.7 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/1.976, allocations: 7.938 kB / 0.7259 GB, free: 56.69 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/1.977, allocations: 0 / 0.7259 GB, free: 56.69 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/1.977, allocations: 0 / 0.7259 GB, free: 56.69 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002848/1.979, allocations: 1.371 MB / 0.7272 GB, free: 55.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/1.979, allocations: 4 kB / 0.7272 GB, free: 55.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005288/1.98, allocations: 59.91 kB / 0.7273 GB, free: 55.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007008/1.981, allocations: 120.8 kB / 0.7274 GB, free: 55.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.265e-05/1.981, allocations: 15.98 kB / 0.7274 GB, free: 55.06 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006086/1.981, allocations: 0.6577 MB / 0.728 GB, free: 54.38 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/1.981, allocations: 0 / 0.728 GB, free: 54.38 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002058/1.983, allocations: 1.03 MB / 0.729 GB, free: 53.31 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002638/1.984, allocations: 148.1 kB / 0.7292 GB, free: 53.14 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001659/1.984, allocations: 19.98 kB / 0.7292 GB, free: 53.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006879/1.985, allocations: 28.05 kB / 0.7292 GB, free: 53.1 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/1.985, allocations: 39.89 kB / 0.7293 GB, free: 53.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.701e-05/1.985, allocations: 23.98 kB / 0.7293 GB, free: 53.04 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007849/1.986, allocations: 467.1 kB / 0.7297 GB, free: 52.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.986, allocations: 0 / 0.7297 GB, free: 52.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002232/1.988, allocations: 0.5541 MB / 0.7303 GB, free: 52.04 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.003736/1.992, allocations: 2.042 MB / 0.7323 GB, free: 49.99 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002991/1.995, allocations: 1.126 MB / 0.7334 GB, free: 48.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/1.995, allocations: 4 kB / 0.7334 GB, free: 48.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008622/1.996, allocations: 316.8 kB / 0.7337 GB, free: 48.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001936/1.998, allocations: 246.6 kB / 0.7339 GB, free: 48.27 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004096/2.002, allocations: 1.399 MB / 0.7353 GB, free: 46.82 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004897/2.002, allocations: 0.9783 MB / 0.7362 GB, free: 45.81 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001596/2.004, allocations: 278.6 kB / 0.7365 GB, free: 45.54 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003991/2.004, allocations: 239.4 kB / 0.7367 GB, free: 45.3 MB / 362.7 MB Notification: Performance of SimCode: time 1.193e-06/2.004, allocations: 4 kB / 0.7367 GB, free: 45.3 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08025/2.085, allocations: 24.09 MB / 0.7602 GB, free: 21.23 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002678/2.085, allocations: 223.8 kB / 0.7605 GB, free: 21 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.717/5.802, allocations: 8 kB / 0.7605 GB, free: 21 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