Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.208/2.208, allocations: 195 MB / 202.8 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.758e-05/2.765e-05, allocations: 4 kB / 249.7 MB, free: 14.8 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.333, allocations: 44.49 MB / 294.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.054/1.387, allocations: 320.8 MB / 0.6006 GB, free: 110.8 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003129/1.387, allocations: 88.12 kB / 0.6007 GB, free: 110.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7743/2.162, allocations: 140.5 MB / 0.7378 GB, free: 97.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.074e-06/2.162, allocations: 1.031 kB / 0.7378 GB, free: 97.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.57e-05/2.162, allocations: 19.89 kB / 0.7379 GB, free: 97.18 MB / 410.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.003477/2.165, allocations: 1.078 MB / 0.7389 GB, free: 96.69 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/2.165, allocations: 9.312 kB / 0.7389 GB, free: 96.69 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006746/2.166, allocations: 96.09 kB / 0.739 GB, free: 96.64 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002112/2.168, allocations: 0.6453 MB / 0.7396 GB, free: 96.4 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001031/2.168, allocations: 78.38 kB / 0.7397 GB, free: 96.34 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/2.168, allocations: 27.25 kB / 0.7397 GB, free: 96.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001593/2.17, allocations: 0.5961 MB / 0.7403 GB, free: 96.33 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001709/2.172, allocations: 0.7258 MB / 0.741 GB, free: 96.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.792e-05/2.172, allocations: 4.875 kB / 0.741 GB, free: 96.16 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/2.172, allocations: 7.125 kB / 0.741 GB, free: 96.16 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001045/2.172, allocations: 38.7 kB / 0.7411 GB, free: 96.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006878/2.179, allocations: 3.306 MB / 0.7443 GB, free: 94.28 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009247/2.18, allocations: 384.3 kB / 0.7447 GB, free: 94.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005033/2.18, allocations: 233.7 kB / 0.7449 GB, free: 94.25 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002399/2.183, allocations: 1.324 MB / 0.7462 GB, free: 93.39 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005285/2.183, allocations: 284.3 kB / 0.7465 GB, free: 93.31 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 3.687e-06/2.183, allocations: 3.031 kB / 0.7465 GB, free: 93.31 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.004574/2.188, allocations: 1.305 MB / 0.7477 GB, free: 92.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/2.188, allocations: 165.2 kB / 0.7479 GB, free: 92.74 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000907/2.189, allocations: 0.5329 MB / 0.7484 GB, free: 92.61 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.82e-05/2.189, allocations: 29.58 kB / 0.7484 GB, free: 92.58 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000351/2.19, allocations: 424.6 kB / 0.7488 GB, free: 92.39 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000159/2.19, allocations: 130.2 kB / 0.749 GB, free: 92.33 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.05e-05/2.19, allocations: 2.734 kB / 0.749 GB, free: 92.33 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/2.19, allocations: 382.8 kB / 0.7493 GB, free: 92.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005348/2.19, allocations: 236.6 kB / 0.7496 GB, free: 92.02 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006782/2.191, allocations: 0.5074 MB / 0.7501 GB, free: 91.67 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005588/2.197, allocations: 0.7675 MB / 0.7508 GB, free: 91.66 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.876e-05/2.197, allocations: 3.469 kB / 0.7508 GB, free: 91.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.007489/2.204, allocations: 1.282 MB / 0.7521 GB, free: 91.57 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000826/2.205, allocations: 3.524 MB / 0.7555 GB, free: 87.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.254e-05/2.205, allocations: 9.156 kB / 0.7555 GB, free: 87.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006204/2.206, allocations: 109.9 kB / 0.7556 GB, free: 87.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/2.207, allocations: 153 kB / 0.7558 GB, free: 87.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009928/2.208, allocations: 0.7082 MB / 0.7565 GB, free: 87.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001106/2.209, allocations: 31.75 kB / 0.7565 GB, free: 87.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001087/2.209, allocations: 41.19 kB / 0.7565 GB, free: 87.38 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/2.209, allocations: 5.188 kB / 0.7565 GB, free: 87.38 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007143/2.216, allocations: 1.184 MB / 0.7577 GB, free: 87.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.414e-05/2.216, allocations: 6.906 kB / 0.7577 GB, free: 87.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005586/2.217, allocations: 113 kB / 0.7578 GB, free: 87.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/2.218, allocations: 145.4 kB / 0.7579 GB, free: 87.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007731/2.219, allocations: 0.6625 MB / 0.7586 GB, free: 86.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001121/2.22, allocations: 32.84 kB / 0.7586 GB, free: 86.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/2.22, allocations: 44.06 kB / 0.7587 GB, free: 86.83 MB / 410.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: 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 (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.000431/2.221, allocations: 182.7 kB / 0.7588 GB, free: 86.69 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001947/2.223, allocations: 0.5488 MB / 0.7594 GB, free: 86.61 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002051/2.223, allocations: 71 kB / 0.7594 GB, free: 86.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002135/2.225, allocations: 0.6025 MB / 0.76 GB, free: 86.51 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/2.225, allocations: 7.828 kB / 0.76 GB, free: 86.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/2.225, allocations: 0 / 0.76 GB, free: 86.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/2.225, allocations: 3.844 kB / 0.76 GB, free: 86.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003242/2.228, allocations: 1.217 MB / 0.7612 GB, free: 86.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/2.228, allocations: 3.344 kB / 0.7612 GB, free: 86.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005267/2.229, allocations: 61.45 kB / 0.7613 GB, free: 86.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005292/2.229, allocations: 101.2 kB / 0.7614 GB, free: 86.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.809e-05/2.23, allocations: 10.42 kB / 0.7614 GB, free: 86.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008443/2.23, allocations: 0.6745 MB / 0.7621 GB, free: 85.68 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/2.23, allocations: 3.375 kB / 0.7621 GB, free: 85.68 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002339/2.233, allocations: 0.9326 MB / 0.763 GB, free: 85.48 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003684/2.233, allocations: 148.6 kB / 0.7631 GB, free: 85.35 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002118/2.233, allocations: 3.969 kB / 0.7631 GB, free: 85.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007049/2.234, allocations: 33.62 kB / 0.7631 GB, free: 85.35 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/2.234, allocations: 40.45 kB / 0.7632 GB, free: 85.35 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.236e-05/2.234, allocations: 21.62 kB / 0.7632 GB, free: 85.35 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006742/2.235, allocations: 405.9 kB / 0.7636 GB, free: 85.26 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.573e-06/2.235, allocations: 2.156 kB / 0.7636 GB, free: 85.26 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002723/2.238, allocations: 0.529 MB / 0.7641 GB, free: 85.18 MB / 410.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 (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.004204/2.242, allocations: 1.969 MB / 0.766 GB, free: 84.28 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002665/2.245, allocations: 1.089 MB / 0.7671 GB, free: 84.14 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.184e-06/2.245, allocations: 0 / 0.7671 GB, free: 84.14 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006827/2.246, allocations: 308.6 kB / 0.7674 GB, free: 84.08 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001984/2.248, allocations: 223.1 kB / 0.7676 GB, free: 84.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004433/2.252, allocations: 1.36 MB / 0.7689 GB, free: 83.67 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005275/2.253, allocations: 0.9724 MB / 0.7699 GB, free: 82.97 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001677/2.254, allocations: 275 kB / 0.7701 GB, free: 82.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004302/2.255, allocations: 242.1 kB / 0.7704 GB, free: 82.95 MB / 410.7 MB Notification: Performance of SimCode: time 1.252e-06/2.255, allocations: 0 / 0.7704 GB, free: 82.95 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08403/2.339, allocations: 21.68 MB / 0.7916 GB, free: 81.97 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002749/2.339, allocations: 176.7 kB / 0.7917 GB, free: 81.78 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.613/5.952, allocations: 0 / 0.7917 GB, free: 81.78 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat does not exist to compare? outputFormat=mat