Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.989/1.989, allocations: 205.8 MB / 218.9 MB, free: 9.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.338e-05/5.352e-05, allocations: 8 kB / 269.5 MB, free: 6.301 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.113, allocations: 47.58 MB / 317 MB, free: 6.637 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.078/1.191, allocations: 326.2 MB / 0.6281 GB, free: 37.23 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003248/1.192, allocations: 94 kB / 0.6282 GB, free: 37.19 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8306/2.022, allocations: 143.1 MB / 0.7679 GB, free: 71.31 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.394e-06/2.022, allocations: 0 / 0.7679 GB, free: 71.31 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001016/2.023, allocations: 23.98 kB / 0.768 GB, free: 71.29 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.004034/2.027, allocations: 1.073 MB / 0.769 GB, free: 70.16 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.213e-05/2.027, allocations: 8.031 kB / 0.769 GB, free: 70.16 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003368/2.027, allocations: 90.52 kB / 0.7691 GB, free: 70.06 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006655/2.028, allocations: 94.97 kB / 0.7692 GB, free: 69.96 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002191/2.03, allocations: 0.6203 MB / 0.7698 GB, free: 69.3 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001498/2.03, allocations: 84.41 kB / 0.7699 GB, free: 69.2 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002325/2.03, allocations: 51.98 kB / 0.7699 GB, free: 69.15 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002108/2.033, allocations: 0.8084 MB / 0.7707 GB, free: 68.29 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.272e-05/2.033, allocations: 3.984 kB / 0.7707 GB, free: 68.28 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001444/2.033, allocations: 24 kB / 0.7707 GB, free: 68.26 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001002/2.033, allocations: 40.98 kB / 0.7708 GB, free: 68.22 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001808/2.035, allocations: 0.6655 MB / 0.7714 GB, free: 67.55 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008109/2.043, allocations: 3.412 MB / 0.7748 GB, free: 63.93 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/2.044, allocations: 415.2 kB / 0.7752 GB, free: 63.52 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006196/2.045, allocations: 261.1 kB / 0.7754 GB, free: 63.26 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003018/2.048, allocations: 1.413 MB / 0.7768 GB, free: 61.71 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007936/2.049, allocations: 365.1 kB / 0.7771 GB, free: 61.32 MB / 426.7 MB Notification: Performance of pre-optimization done (n=35): time 3.286e-06/2.049, allocations: 0 / 0.7771 GB, free: 61.32 MB / 426.7 MB Notification: Performance of matching and sorting (n=40): time 0.005301/2.054, allocations: 1.577 MB / 0.7787 GB, free: 59.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/2.054, allocations: 272.9 kB / 0.7789 GB, free: 59.34 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001353/2.056, allocations: 0.6796 MB / 0.7796 GB, free: 58.64 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002078/2.056, allocations: 37.7 kB / 0.7796 GB, free: 58.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000396/2.056, allocations: 395.2 kB / 0.78 GB, free: 58.21 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002059/2.056, allocations: 138.1 kB / 0.7801 GB, free: 58.07 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.981e-05/2.057, allocations: 12 kB / 0.7802 GB, free: 58.06 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/2.057, allocations: 390.7 kB / 0.7805 GB, free: 57.67 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006727/2.057, allocations: 257.5 kB / 0.7808 GB, free: 57.42 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008118/2.058, allocations: 0.4971 MB / 0.7813 GB, free: 56.81 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007839/2.059, allocations: 345.5 kB / 0.7816 GB, free: 56.47 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/2.059, allocations: 0 / 0.7816 GB, free: 56.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00286/2.062, allocations: 0.9527 MB / 0.7825 GB, free: 55.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005551/2.063, allocations: 2.48 MB / 0.7849 GB, free: 52.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.964e-05/2.063, allocations: 4 kB / 0.7849 GB, free: 52.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009842/2.064, allocations: 136.7 kB / 0.7851 GB, free: 52.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001096/2.065, allocations: 131.8 kB / 0.7852 GB, free: 52.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008283/2.066, allocations: 0.681 MB / 0.7859 GB, free: 51.85 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001462/2.067, allocations: 55.94 kB / 0.7859 GB, free: 51.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001977/2.067, allocations: 36 kB / 0.786 GB, free: 51.76 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/2.067, allocations: 4 kB / 0.786 GB, free: 51.75 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002879/2.07, allocations: 0.8892 MB / 0.7868 GB, free: 50.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.293e-05/2.07, allocations: 8 kB / 0.7868 GB, free: 50.85 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006799/2.071, allocations: 117.4 kB / 0.7869 GB, free: 50.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/2.072, allocations: 135.8 kB / 0.7871 GB, free: 50.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007232/2.073, allocations: 0.6654 MB / 0.7877 GB, free: 49.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001338/2.074, allocations: 51.91 kB / 0.7878 GB, free: 49.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001646/2.074, allocations: 32 kB / 0.7878 GB, free: 49.82 MB / 426.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 = tank.T_start 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: 28 * Number of states: 0 () * Number of discrete variables: 11 ($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,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 76 * 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.000435/2.075, allocations: 220.8 kB / 0.788 GB, free: 49.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002571/2.075, allocations: 83.06 kB / 0.7881 GB, free: 49.52 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002287/2.077, allocations: 0.7336 MB / 0.7888 GB, free: 48.77 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/2.078, allocations: 4 kB / 0.7888 GB, free: 48.76 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/2.078, allocations: 7.984 kB / 0.7888 GB, free: 48.75 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/2.078, allocations: 3.938 kB / 0.7888 GB, free: 48.75 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003779/2.081, allocations: 1.466 MB / 0.7903 GB, free: 47.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/2.081, allocations: 0 / 0.7903 GB, free: 47.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005753/2.082, allocations: 59.91 kB / 0.7903 GB, free: 47.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008054/2.083, allocations: 124.8 kB / 0.7904 GB, free: 47.03 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001298/2.083, allocations: 19.98 kB / 0.7905 GB, free: 47.01 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006937/2.084, allocations: 0.6539 MB / 0.7911 GB, free: 46.33 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/2.084, allocations: 4.031 kB / 0.7911 GB, free: 46.33 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002555/2.086, allocations: 1.095 MB / 0.7922 GB, free: 45.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003992/2.087, allocations: 156.2 kB / 0.7923 GB, free: 45.02 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002515/2.087, allocations: 16.12 kB / 0.7923 GB, free: 45.01 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/2.088, allocations: 47.81 kB / 0.7924 GB, free: 44.96 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001723/2.088, allocations: 39.89 kB / 0.7924 GB, free: 44.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.548e-05/2.088, allocations: 16 kB / 0.7924 GB, free: 44.91 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001052/2.09, allocations: 0.5304 MB / 0.7929 GB, free: 44.38 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.81e-07/2.09, allocations: 0 / 0.7929 GB, free: 44.38 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002869/2.092, allocations: 0.5971 MB / 0.7935 GB, free: 43.78 MB / 426.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: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * 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.004492/2.097, allocations: 2.124 MB / 0.7956 GB, free: 41.62 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003721/2.101, allocations: 1.15 MB / 0.7967 GB, free: 40.45 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/2.101, allocations: 0 / 0.7967 GB, free: 40.45 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001062/2.102, allocations: 339.5 kB / 0.7971 GB, free: 40.11 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002872/2.105, allocations: 310.3 kB / 0.7973 GB, free: 39.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00472/2.11, allocations: 1.385 MB / 0.7987 GB, free: 38.37 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005072/2.11, allocations: 0.9868 MB / 0.7997 GB, free: 37.35 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00189/2.112, allocations: 300.2 kB / 0.7999 GB, free: 37.06 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005099/2.113, allocations: 259.3 kB / 0.8002 GB, free: 36.8 MB / 426.7 MB Notification: Performance of SimCode: time 1.613e-06/2.113, allocations: 0 / 0.8002 GB, free: 36.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08226/2.195, allocations: 27.41 MB / 0.827 GB, free: 9.438 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002389/2.195, allocations: 222.9 kB / 0.8272 GB, free: 9.211 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.933/6.128, allocations: 0 / 0.8272 GB, free: 9.211 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.OneTank_res.mat does not exist to compare? outputFormat=mat