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.815/1.815, allocations: 171.3 MB / 178.4 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.392e-05/3.412e-05, allocations: 4 kB / 219.6 MB, free: 6.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2856/0.2856, allocations: 38.77 MB / 258.4 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9144/1.2, allocations: 315.4 MB / 0.5603 GB, free: 78.54 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003169/1.2, allocations: 86.75 kB / 0.5604 GB, free: 78.51 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7285/1.929, allocations: 140.4 MB / 0.6974 GB, free: 92.14 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.364e-06/1.929, allocations: 0 / 0.6974 GB, free: 92.14 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.143e-05/1.929, allocations: 29.59 kB / 0.6975 GB, free: 92.13 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.00301/1.932, allocations: 1.066 MB / 0.6985 GB, free: 91.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/1.932, allocations: 11 kB / 0.6985 GB, free: 91.29 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006334/1.933, allocations: 91.92 kB / 0.6986 GB, free: 91.24 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001945/1.935, allocations: 0.6341 MB / 0.6992 GB, free: 90.76 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000102/1.935, allocations: 82.36 kB / 0.6993 GB, free: 90.69 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001261/1.935, allocations: 30.39 kB / 0.6993 GB, free: 90.68 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001452/1.937, allocations: 0.5831 MB / 0.6999 GB, free: 90.42 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001483/1.938, allocations: 0.7197 MB / 0.7006 GB, free: 89.96 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.058e-05/1.938, allocations: 7.844 kB / 0.7006 GB, free: 89.96 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.797e-05/1.938, allocations: 3.906 kB / 0.7006 GB, free: 89.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.811e-05/1.938, allocations: 39.91 kB / 0.7007 GB, free: 89.95 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006309/1.945, allocations: 3.295 MB / 0.7039 GB, free: 87.12 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008367/1.945, allocations: 382.7 kB / 0.7042 GB, free: 86.93 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004442/1.946, allocations: 223.8 kB / 0.7045 GB, free: 86.83 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002642/1.949, allocations: 1.319 MB / 0.7057 GB, free: 85.64 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005447/1.949, allocations: 279.4 kB / 0.706 GB, free: 85.45 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 3.797e-06/1.949, allocations: 0 / 0.706 GB, free: 85.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.004881/1.954, allocations: 1.365 MB / 0.7073 GB, free: 84.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.114e-05/1.954, allocations: 166.2 kB / 0.7075 GB, free: 84.04 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009043/1.955, allocations: 0.5327 MB / 0.708 GB, free: 83.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001044/1.955, allocations: 29.7 kB / 0.7081 GB, free: 83.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003309/1.956, allocations: 427 kB / 0.7085 GB, free: 83.04 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001449/1.956, allocations: 122.2 kB / 0.7086 GB, free: 82.92 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.027e-05/1.956, allocations: 4 kB / 0.7086 GB, free: 82.91 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001295/1.956, allocations: 383.4 kB / 0.7089 GB, free: 82.54 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005342/1.957, allocations: 229.5 kB / 0.7092 GB, free: 82.31 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006669/1.957, allocations: 0.5086 MB / 0.7097 GB, free: 81.67 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005395/1.963, allocations: 0.758 MB / 0.7104 GB, free: 80.91 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.569e-05/1.963, allocations: 4 kB / 0.7104 GB, free: 80.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.007238/1.97, allocations: 1.331 MB / 0.7117 GB, free: 79.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007488/1.971, allocations: 3.519 MB / 0.7151 GB, free: 75.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.408e-05/1.971, allocations: 8 kB / 0.7152 GB, free: 75.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006494/1.971, allocations: 108.7 kB / 0.7153 GB, free: 75.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/1.973, allocations: 159.7 kB / 0.7154 GB, free: 75.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009371/1.973, allocations: 0.7045 MB / 0.7161 GB, free: 74.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001056/1.975, allocations: 27.97 kB / 0.7161 GB, free: 74.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.966e-05/1.975, allocations: 40.06 kB / 0.7162 GB, free: 74.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/1.975, allocations: 4 kB / 0.7162 GB, free: 74.7 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006913/1.982, allocations: 1.225 MB / 0.7174 GB, free: 73.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.888e-05/1.982, allocations: 16.02 kB / 0.7174 GB, free: 73.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005261/1.982, allocations: 104.3 kB / 0.7175 GB, free: 73.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009143/1.983, allocations: 151.8 kB / 0.7176 GB, free: 73.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006282/1.984, allocations: 0.6577 MB / 0.7183 GB, free: 72.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000948/1.985, allocations: 31.97 kB / 0.7183 GB, free: 72.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.146e-05/1.985, allocations: 36 kB / 0.7183 GB, free: 72.46 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.0003918/1.985, allocations: 192.4 kB / 0.7185 GB, free: 72.26 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001809/1.987, allocations: 0.5792 MB / 0.7191 GB, free: 71.67 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001259/1.987, allocations: 71.16 kB / 0.7191 GB, free: 71.6 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002026/1.989, allocations: 0.6384 MB / 0.7198 GB, free: 70.95 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/1.989, allocations: 11 kB / 0.7198 GB, free: 70.94 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/1.989, allocations: 0 / 0.7198 GB, free: 70.94 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.854e-06/1.989, allocations: 3.984 kB / 0.7198 GB, free: 70.94 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002983/1.992, allocations: 1.254 MB / 0.721 GB, free: 69.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/1.992, allocations: 0 / 0.721 GB, free: 69.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005199/1.993, allocations: 51.97 kB / 0.7211 GB, free: 69.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005022/1.993, allocations: 112 kB / 0.7212 GB, free: 69.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.336e-05/1.994, allocations: 11.98 kB / 0.7212 GB, free: 69.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007675/1.994, allocations: 0.6772 MB / 0.7218 GB, free: 68.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/1.994, allocations: 8 kB / 0.7218 GB, free: 68.76 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002106/1.996, allocations: 0.966 MB / 0.7228 GB, free: 67.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00027/1.997, allocations: 151.6 kB / 0.7229 GB, free: 67.6 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001945/1.997, allocations: 4 kB / 0.7229 GB, free: 67.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006565/1.998, allocations: 27.98 kB / 0.723 GB, free: 67.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/1.998, allocations: 35.94 kB / 0.723 GB, free: 67.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.521e-05/1.998, allocations: 19.98 kB / 0.723 GB, free: 67.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006356/1.998, allocations: 407.1 kB / 0.7234 GB, free: 67.12 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.1e-07/1.998, allocations: 3.938 kB / 0.7234 GB, free: 67.12 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002386/2.001, allocations: 0.5113 MB / 0.7239 GB, free: 66.61 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.003951/2.005, allocations: 1.979 MB / 0.7258 GB, free: 64.64 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002451/2.007, allocations: 1.024 MB / 0.7268 GB, free: 63.59 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/2.007, allocations: 4.062 kB / 0.7268 GB, free: 63.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00063/2.008, allocations: 279.3 kB / 0.7271 GB, free: 63.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002127/2.01, allocations: 238.1 kB / 0.7273 GB, free: 63.08 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004274/2.014, allocations: 1.343 MB / 0.7286 GB, free: 61.69 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005071/2.015, allocations: 0.9819 MB / 0.7296 GB, free: 60.68 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001705/2.017, allocations: 268.5 kB / 0.7299 GB, free: 60.42 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004263/2.017, allocations: 243.3 kB / 0.7301 GB, free: 60.18 MB / 362.7 MB Notification: Performance of SimCode: time 1.142e-06/2.017, allocations: 0 / 0.7301 GB, free: 60.18 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07698/2.094, allocations: 21.44 MB / 0.751 GB, free: 38.73 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001993/2.095, allocations: 168.8 kB / 0.7512 GB, free: 38.54 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.355/5.449, allocations: 3.938 kB / 0.7512 GB, free: 38.53 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