Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.065/2.065, allocations: 205.8 MB / 218.9 MB, free: 9.355 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.157e-05/3.174e-05, allocations: 0 / 269.5 MB, free: 6.309 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1104, allocations: 47.57 MB / 317 MB, free: 6.648 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.054/1.164, allocations: 321.7 MB / 0.6237 GB, free: 41.64 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003827/1.165, allocations: 87.75 kB / 0.6238 GB, free: 41.59 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7731/1.938, allocations: 137.2 MB / 0.7578 GB, free: 81.46 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.733e-06/1.938, allocations: 0 / 0.7578 GB, free: 81.46 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.954e-05/1.938, allocations: 20 kB / 0.7578 GB, free: 81.44 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003066/1.941, allocations: 1.024 MB / 0.7588 GB, free: 80.38 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.025e-05/1.941, allocations: 12.03 kB / 0.7589 GB, free: 80.37 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002161/1.942, allocations: 89.72 kB / 0.7589 GB, free: 80.27 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004589/1.942, allocations: 87.92 kB / 0.759 GB, free: 80.19 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001683/1.944, allocations: 0.5835 MB / 0.7596 GB, free: 79.57 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.639e-05/1.944, allocations: 39.25 kB / 0.7596 GB, free: 79.54 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/1.944, allocations: 46.81 kB / 0.7597 GB, free: 79.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00167/1.946, allocations: 0.7189 MB / 0.7604 GB, free: 78.75 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.724e-05/1.946, allocations: 0 / 0.7604 GB, free: 78.75 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001036/1.946, allocations: 26.56 kB / 0.7604 GB, free: 78.73 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-05/1.946, allocations: 40.97 kB / 0.7604 GB, free: 78.69 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001571/1.947, allocations: 0.6617 MB / 0.7611 GB, free: 78.02 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007522/1.955, allocations: 2.856 MB / 0.7639 GB, free: 75.02 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/1.956, allocations: 459.7 kB / 0.7643 GB, free: 74.55 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005319/1.957, allocations: 246.1 kB / 0.7646 GB, free: 74.31 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000321/1.957, allocations: 344.7 kB / 0.7649 GB, free: 73.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/1.957, allocations: 42.95 kB / 0.7649 GB, free: 73.85 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 3.777e-06/1.957, allocations: 3.984 kB / 0.7649 GB, free: 73.85 MB / 426.7 MB Notification: Performance of matching and sorting (n=58): time 0.006331/1.963, allocations: 1.819 MB / 0.7667 GB, free: 71.98 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/1.963, allocations: 89.62 kB / 0.7668 GB, free: 71.88 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009415/1.964, allocations: 0.5384 MB / 0.7673 GB, free: 71.33 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001103/1.965, allocations: 45.7 kB / 0.7674 GB, free: 71.28 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002584/1.965, allocations: 324.4 kB / 0.7677 GB, free: 70.95 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002036/1.965, allocations: 212.8 kB / 0.7679 GB, free: 70.75 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.31e-05/1.965, allocations: 16 kB / 0.7679 GB, free: 70.73 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001253/1.965, allocations: 382.8 kB / 0.7683 GB, free: 70.35 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007108/1.966, allocations: 277.4 kB / 0.7685 GB, free: 70.08 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000756/1.967, allocations: 441.5 kB / 0.7689 GB, free: 69.59 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007525/1.967, allocations: 337.9 kB / 0.7693 GB, free: 69.25 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.451e-06/1.968, allocations: 0 / 0.7693 GB, free: 69.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002215/1.97, allocations: 0.8987 MB / 0.7701 GB, free: 68.34 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003736/1.97, allocations: 1.749 MB / 0.7718 GB, free: 66.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/1.97, allocations: 12 kB / 0.7719 GB, free: 66.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003293/1.973, allocations: 344.5 kB / 0.7722 GB, free: 66.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/1.975, allocations: 151.7 kB / 0.7723 GB, free: 65.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001194/1.976, allocations: 0.8137 MB / 0.7731 GB, free: 65.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/1.977, allocations: 51.97 kB / 0.7732 GB, free: 65.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/1.977, allocations: 31.98 kB / 0.7732 GB, free: 65.04 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/1.977, allocations: 4 kB / 0.7732 GB, free: 65.04 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00191/1.979, allocations: 0.7606 MB / 0.774 GB, free: 64.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/1.979, allocations: 8 kB / 0.774 GB, free: 64.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002437/1.982, allocations: 225.2 kB / 0.7742 GB, free: 64.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001171/1.983, allocations: 155.7 kB / 0.7743 GB, free: 63.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007938/1.984, allocations: 0.7006 MB / 0.775 GB, free: 63.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000987/1.985, allocations: 43.97 kB / 0.775 GB, free: 63.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.421e-05/1.985, allocations: 31.98 kB / 0.7751 GB, free: 63.09 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002829/1.985, allocations: 152.8 kB / 0.7752 GB, free: 62.93 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000176/1.985, allocations: 71.16 kB / 0.7753 GB, free: 62.86 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002235/1.987, allocations: 0.8289 MB / 0.7761 GB, free: 62.02 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/1.987, allocations: 8 kB / 0.7761 GB, free: 62.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/1.988, allocations: 3.984 kB / 0.7761 GB, free: 62.01 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/1.988, allocations: 0 / 0.7761 GB, free: 62.01 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003779/1.991, allocations: 1.645 MB / 0.7777 GB, free: 60.31 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.101e-05/1.991, allocations: 4.062 kB / 0.7777 GB, free: 60.31 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009799/1.992, allocations: 107.9 kB / 0.7778 GB, free: 60.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00244/1.995, allocations: 332.6 kB / 0.7781 GB, free: 59.88 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001088/1.995, allocations: 12 kB / 0.7782 GB, free: 59.86 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009756/1.996, allocations: 0.8022 MB / 0.7789 GB, free: 59.04 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/1.996, allocations: 3.938 kB / 0.7789 GB, free: 59.03 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002604/1.999, allocations: 1.248 MB / 0.7802 GB, free: 57.75 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003273/1.999, allocations: 156.1 kB / 0.7803 GB, free: 57.57 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001758/1.999, allocations: 16 kB / 0.7803 GB, free: 57.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008787/2, allocations: 35.97 kB / 0.7804 GB, free: 57.52 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001599/2, allocations: 60.42 kB / 0.7804 GB, free: 57.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.711e-05/2, allocations: 23.98 kB / 0.7804 GB, free: 57.44 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007636/2.001, allocations: 435.1 kB / 0.7809 GB, free: 57.02 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.81e-07/2.001, allocations: 0 / 0.7809 GB, free: 57.02 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002623/2.004, allocations: 0.5893 MB / 0.7814 GB, free: 56.43 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.004654/2.008, allocations: 2.417 MB / 0.7838 GB, free: 54 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003253/2.012, allocations: 1.095 MB / 0.7849 GB, free: 52.91 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/2.012, allocations: 0.8125 kB / 0.7849 GB, free: 52.91 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000969/2.013, allocations: 378.4 kB / 0.7852 GB, free: 52.55 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002812/2.016, allocations: 336.8 kB / 0.7855 GB, free: 52.23 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00438/2.02, allocations: 1.526 MB / 0.787 GB, free: 50.65 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004767/2.021, allocations: 0.9801 MB / 0.788 GB, free: 49.64 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001828/2.022, allocations: 324.8 kB / 0.7883 GB, free: 49.32 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000476/2.023, allocations: 243.3 kB / 0.7885 GB, free: 49.08 MB / 426.7 MB Notification: Performance of SimCode: time 1.433e-06/2.023, allocations: 0 / 0.7885 GB, free: 49.08 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09412/2.117, allocations: 28.05 MB / 0.8159 GB, free: 21.06 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002309/2.117, allocations: 180.6 kB / 0.8161 GB, free: 20.84 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.809/5.926, allocations: 8 kB / 0.8161 GB, free: 20.83 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.TwoTanks_res.mat does not exist to compare? outputFormat=mat