Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.171/2.171, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.272e-05/4.287e-05, allocations: 7.984 kB / 292.2 MB, free: 8.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1189, allocations: 50.41 MB / 342.7 MB, free: 5.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.139/1.258, allocations: 327 MB / 0.654 GB, free: 33.32 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003193/1.259, allocations: 90.14 kB / 0.654 GB, free: 33.27 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8326/2.091, allocations: 146.1 MB / 0.7967 GB, free: 65.11 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.844e-06/2.092, allocations: 3.938 kB / 0.7967 GB, free: 65.1 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.697e-05/2.092, allocations: 20 kB / 0.7967 GB, free: 65.08 MB / 442.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.003578/2.095, allocations: 1.076 MB / 0.7978 GB, free: 63.95 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/2.095, allocations: 15.97 kB / 0.7978 GB, free: 63.94 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002955/2.096, allocations: 94.5 kB / 0.7979 GB, free: 63.84 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005965/2.096, allocations: 98.95 kB / 0.798 GB, free: 63.74 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001963/2.098, allocations: 0.6009 MB / 0.7986 GB, free: 63.09 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/2.098, allocations: 96.34 kB / 0.7987 GB, free: 62.99 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001567/2.099, allocations: 44 kB / 0.7987 GB, free: 62.95 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002295/2.101, allocations: 0.8084 MB / 0.7995 GB, free: 62.08 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.001e-05/2.101, allocations: 7.984 kB / 0.7995 GB, free: 62.07 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001494/2.101, allocations: 27.98 kB / 0.7995 GB, free: 62.05 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.62e-05/2.101, allocations: 32.98 kB / 0.7996 GB, free: 62.02 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001726/2.103, allocations: 0.6655 MB / 0.8002 GB, free: 61.35 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007332/2.11, allocations: 3.415 MB / 0.8035 GB, free: 57.73 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/2.111, allocations: 411.6 kB / 0.8039 GB, free: 57.32 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005438/2.112, allocations: 261.1 kB / 0.8042 GB, free: 57.06 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002757/2.115, allocations: 1.417 MB / 0.8056 GB, free: 55.5 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007065/2.115, allocations: 367.5 kB / 0.8059 GB, free: 55.11 MB / 442.7 MB Notification: Performance of pre-optimization done (n=35): time 3.918e-06/2.116, allocations: 0 / 0.8059 GB, free: 55.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=40): time 0.004917/2.12, allocations: 1.59 MB / 0.8075 GB, free: 53.45 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.738e-05/2.121, allocations: 261 kB / 0.8077 GB, free: 53.13 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00123/2.122, allocations: 0.6719 MB / 0.8084 GB, free: 52.45 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000147/2.122, allocations: 41.64 kB / 0.8084 GB, free: 52.4 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003848/2.122, allocations: 399.1 kB / 0.8088 GB, free: 52.01 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001686/2.123, allocations: 134.2 kB / 0.8089 GB, free: 51.88 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.044e-05/2.123, allocations: 12 kB / 0.8089 GB, free: 51.86 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001378/2.123, allocations: 390.8 kB / 0.8093 GB, free: 51.47 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006295/2.123, allocations: 269.5 kB / 0.8096 GB, free: 51.21 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007818/2.124, allocations: 497.2 kB / 0.81 GB, free: 50.62 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007418/2.125, allocations: 360.1 kB / 0.8104 GB, free: 50.27 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/2.125, allocations: 0 / 0.8104 GB, free: 50.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002928/2.128, allocations: 0.9485 MB / 0.8113 GB, free: 49.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006692/2.129, allocations: 2.48 MB / 0.8137 GB, free: 46.62 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.063e-05/2.129, allocations: 8 kB / 0.8137 GB, free: 46.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009892/2.13, allocations: 128.8 kB / 0.8139 GB, free: 46.49 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/2.131, allocations: 135.8 kB / 0.814 GB, free: 46.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007893/2.132, allocations: 0.6851 MB / 0.8147 GB, free: 45.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001303/2.133, allocations: 51.98 kB / 0.8147 GB, free: 45.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/2.133, allocations: 35.98 kB / 0.8147 GB, free: 45.56 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/2.133, allocations: 4 kB / 0.8147 GB, free: 45.55 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002671/2.136, allocations: 0.8936 MB / 0.8156 GB, free: 44.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/2.136, allocations: 8.031 kB / 0.8156 GB, free: 44.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006442/2.137, allocations: 116.8 kB / 0.8157 GB, free: 44.53 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009284/2.137, allocations: 139.8 kB / 0.8159 GB, free: 44.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006428/2.138, allocations: 0.6578 MB / 0.8165 GB, free: 43.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00121/2.139, allocations: 47.88 kB / 0.8166 GB, free: 43.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001042/2.139, allocations: 43.94 kB / 0.8166 GB, free: 43.62 MB / 442.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.0004116/2.14, allocations: 205 kB / 0.8168 GB, free: 43.41 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002194/2.14, allocations: 83.09 kB / 0.8169 GB, free: 43.33 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002162/2.142, allocations: 0.7348 MB / 0.8176 GB, free: 42.58 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/2.142, allocations: 4 kB / 0.8176 GB, free: 42.57 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/2.142, allocations: 0 / 0.8176 GB, free: 42.57 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/2.142, allocations: 7.938 kB / 0.8176 GB, free: 42.57 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003377/2.146, allocations: 1.463 MB / 0.819 GB, free: 41.03 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/2.146, allocations: 0 / 0.819 GB, free: 41.03 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005864/2.146, allocations: 59.91 kB / 0.8191 GB, free: 40.97 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007421/2.147, allocations: 120.8 kB / 0.8192 GB, free: 40.85 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.782e-05/2.147, allocations: 19.98 kB / 0.8192 GB, free: 40.83 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006598/2.148, allocations: 0.6655 MB / 0.8199 GB, free: 40.14 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/2.148, allocations: 0 / 0.8199 GB, free: 40.14 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002394/2.15, allocations: 1.099 MB / 0.8209 GB, free: 39 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003594/2.151, allocations: 160.1 kB / 0.8211 GB, free: 38.83 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002241/2.151, allocations: 15.98 kB / 0.8211 GB, free: 38.81 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009029/2.152, allocations: 35.97 kB / 0.8212 GB, free: 38.78 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/2.152, allocations: 31.95 kB / 0.8212 GB, free: 38.75 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.785e-05/2.152, allocations: 23.98 kB / 0.8212 GB, free: 38.72 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0009705/2.153, allocations: 0.5265 MB / 0.8217 GB, free: 38.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.31e-07/2.153, allocations: 0 / 0.8217 GB, free: 38.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002605/2.156, allocations: 0.5894 MB / 0.8223 GB, free: 37.61 MB / 442.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.004066/2.16, allocations: 2.134 MB / 0.8244 GB, free: 35.45 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003406/2.163, allocations: 1.164 MB / 0.8255 GB, free: 34.25 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.196e-06/2.163, allocations: 4 kB / 0.8255 GB, free: 34.25 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009514/2.164, allocations: 331.2 kB / 0.8258 GB, free: 33.91 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002746/2.167, allocations: 319.1 kB / 0.8261 GB, free: 33.61 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0043/2.171, allocations: 1.378 MB / 0.8275 GB, free: 32.18 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004961/2.172, allocations: 0.9829 MB / 0.8284 GB, free: 31.17 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001783/2.174, allocations: 301.8 kB / 0.8287 GB, free: 30.87 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004812/2.174, allocations: 259.3 kB / 0.829 GB, free: 30.62 MB / 442.7 MB Notification: Performance of SimCode: time 1.042e-06/2.174, allocations: 0 / 0.829 GB, free: 30.62 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07651/2.251, allocations: 27.42 MB / 0.8558 GB, free: 3.434 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002803/2.251, allocations: 222.4 kB / 0.856 GB, free: 3.211 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.09/6.342, allocations: 3.938 kB / 0.856 GB, free: 3.207 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat does not exist to compare? outputFormat=mat