Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.784/1.784, allocations: 171.2 MB / 183.3 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.262e-05/4.28e-05, allocations: 4 kB / 225.1 MB, free: 2.207 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2768, allocations: 38.77 MB / 263.9 MB, free: 9.699 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8867/1.163, allocations: 314.3 MB / 0.5646 GB, free: 72.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002882/1.164, allocations: 86.61 kB / 0.5647 GB, free: 72.06 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.497/2.661, allocations: 279 MB / 0.8372 GB, free: 47.69 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.834e-06/2.661, allocations: 0 / 0.8372 GB, free: 47.69 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001795/2.661, allocations: 45.89 kB / 0.8372 GB, free: 47.68 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.007113/2.668, allocations: 1.785 MB / 0.839 GB, free: 46.85 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/2.668, allocations: 14.11 kB / 0.839 GB, free: 46.85 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006804/2.669, allocations: 151 kB / 0.8391 GB, free: 46.81 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001113/2.67, allocations: 175.3 kB / 0.8393 GB, free: 46.73 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004185/2.674, allocations: 1.087 MB / 0.8404 GB, free: 46.39 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001342/2.675, allocations: 81.17 kB / 0.8404 GB, free: 46.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004492/2.675, allocations: 97.53 kB / 0.8405 GB, free: 46.39 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00449/2.68, allocations: 1.603 MB / 0.8421 GB, free: 46.13 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.204e-05/2.68, allocations: 2.719 kB / 0.8421 GB, free: 46.13 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002705/2.68, allocations: 48.55 kB / 0.8421 GB, free: 46.13 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002112/2.68, allocations: 98.2 kB / 0.8422 GB, free: 46.13 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00427/2.684, allocations: 1.577 MB / 0.8438 GB, free: 46.12 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01702/2.701, allocations: 6.529 MB / 0.8502 GB, free: 43.04 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002364/2.704, allocations: 0.8828 MB / 0.851 GB, free: 43.01 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001385/2.705, allocations: 0.5231 MB / 0.8515 GB, free: 43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005899/2.711, allocations: 2.819 MB / 0.8543 GB, free: 41.53 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.582e-05/2.711, allocations: 53.38 kB / 0.8543 GB, free: 41.49 MB / 362.7 MB Notification: Performance of pre-optimization done (n=80): time 3.897e-06/2.711, allocations: 3.797 kB / 0.8543 GB, free: 41.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=90): time 0.009765/2.721, allocations: 2.754 MB / 0.857 GB, free: 40.92 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.634e-05/2.721, allocations: 194.7 kB / 0.8572 GB, free: 40.7 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002107/2.723, allocations: 1.041 MB / 0.8582 GB, free: 40.53 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003487/2.724, allocations: 50.08 kB / 0.8583 GB, free: 40.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006111/2.724, allocations: 0.6648 MB / 0.8589 GB, free: 40.2 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004885/2.725, allocations: 324.2 kB / 0.8592 GB, free: 40 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001512/2.725, allocations: 30.75 kB / 0.8593 GB, free: 40 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001218/2.725, allocations: 364 kB / 0.8596 GB, free: 39.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001484/2.727, allocations: 0.5303 MB / 0.8601 GB, free: 39.7 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001898/2.729, allocations: 1.011 MB / 0.8611 GB, free: 39.13 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00178/2.73, allocations: 0.6665 MB / 0.8618 GB, free: 39.12 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.596e-05/2.731, allocations: 5.812 kB / 0.8618 GB, free: 39.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.005213/2.736, allocations: 1.836 MB / 0.8636 GB, free: 38.97 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001199/2.737, allocations: 5.586 MB / 0.869 GB, free: 33.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.203e-05/2.737, allocations: 15.22 kB / 0.869 GB, free: 33.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006518/2.744, allocations: 0.6476 MB / 0.8697 GB, free: 33.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002223/2.746, allocations: 296.2 kB / 0.8699 GB, free: 32.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002608/2.749, allocations: 2.137 MB / 0.872 GB, free: 31.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002422/2.751, allocations: 110.8 kB / 0.8721 GB, free: 31.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003377/2.751, allocations: 68.66 kB / 0.8722 GB, free: 31.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/2.751, allocations: 7.781 kB / 0.8722 GB, free: 31.16 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004686/2.756, allocations: 1.636 MB / 0.8738 GB, free: 30.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.976e-05/2.756, allocations: 16 kB / 0.8738 GB, free: 30.56 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005383/2.762, allocations: 0.5055 MB / 0.8743 GB, free: 30.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00227/2.764, allocations: 299.3 kB / 0.8746 GB, free: 30.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002041/2.766, allocations: 1.993 MB / 0.8766 GB, free: 28.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002252/2.768, allocations: 104.5 kB / 0.8767 GB, free: 28.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003675/2.769, allocations: 72.12 kB / 0.8767 GB, free: 28.68 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005229/2.769, allocations: 199.1 kB / 0.8769 GB, free: 28.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004084/2.77, allocations: 142.8 kB / 0.877 GB, free: 28.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004594/2.774, allocations: 1.487 MB / 0.8785 GB, free: 27.86 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-05/2.774, allocations: 10.97 kB / 0.8785 GB, free: 27.86 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/2.774, allocations: 0 / 0.8785 GB, free: 27.86 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-05/2.774, allocations: 7.781 kB / 0.8785 GB, free: 27.86 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007315/2.782, allocations: 2.737 MB / 0.8812 GB, free: 26.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/2.782, allocations: 3.906 kB / 0.8812 GB, free: 26.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001325/2.783, allocations: 154.5 kB / 0.8813 GB, free: 26.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004732/2.788, allocations: 0.6113 MB / 0.8819 GB, free: 26.55 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002844/2.788, allocations: 26.27 kB / 0.882 GB, free: 26.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00218/2.79, allocations: 2.098 MB / 0.884 GB, free: 24.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/2.79, allocations: 0 / 0.884 GB, free: 24.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004884/2.795, allocations: 2.095 MB / 0.8861 GB, free: 23.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006691/2.796, allocations: 237.5 kB / 0.8863 GB, free: 23.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004151/2.796, allocations: 27.83 kB / 0.8863 GB, free: 23.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00156/2.798, allocations: 73.02 kB / 0.8864 GB, free: 23.56 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003513/2.798, allocations: 95.73 kB / 0.8865 GB, free: 23.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001445/2.799, allocations: 38.08 kB / 0.8865 GB, free: 23.54 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001697/2.8, allocations: 0.793 MB / 0.8873 GB, free: 23.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.11e-07/2.8, allocations: 0 / 0.8873 GB, free: 23.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005109/2.805, allocations: 1.188 MB / 0.8884 GB, free: 22.91 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.008392/2.814, allocations: 3.907 MB / 0.8923 GB, free: 19.85 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006565/2.82, allocations: 2.228 MB / 0.8944 GB, free: 17.83 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.938e-06/2.821, allocations: 4 kB / 0.8944 GB, free: 17.83 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002228/2.823, allocations: 0.6867 MB / 0.8951 GB, free: 17.22 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004164/2.827, allocations: 0.4962 MB / 0.8956 GB, free: 16.86 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008448/2.835, allocations: 2.815 MB / 0.8983 GB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008744/2.836, allocations: 1.29 MB / 0.8996 GB, free: 13.28 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00368/2.84, allocations: 0.637 MB / 0.9002 GB, free: 12.86 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009899/2.841, allocations: 0.505 MB / 0.9007 GB, free: 12.4 MB / 362.7 MB Notification: Performance of SimCode: time 1.433e-06/2.841, allocations: 0 / 0.9007 GB, free: 12.4 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3859/3.227, allocations: 51.2 MB / 0.9507 GB, free: 40.41 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002124/3.227, allocations: 246.4 kB / 0.951 GB, free: 40.1 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.835/8.063, allocations: 0 / 0.951 GB, free: 40.1 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.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat