Please enable JavaScript to view this site.

ModelMuse Help

Navigation: Examples/Tutorials > PEST Examples > SUTRA Example: RmaSutra

RmaSutra: Run PEST

Scroll Prev Top Next More

After making all the changes to the model, you have to run the model from ModelMuse one more time. Select File|Export|SUTRA Input Files. ModelMuse will start a command line window that will run the model and some additional operations and then the SUTRA listing file will be opened in a text editor. The other operations consist of creating a kriging factors file and a PEST instruction file. PLPROC is used to create the kriging factors file and SutraObsExtractor is used to create the instruction file. These files will be used when PEST runs the model.

In addition to creating the input files for MODFLOW, ModelMuse also created the PEST control file when it ran MODFLOW along with two batch files named RunPestChek.bat and RunPest.bat. PESTCHEK is a PEST utility program that checks the PEST input for errors. It is recommended to always run PESTCHEK before attempting to run PEST. You can run PESTCHEK by double clicking on the RunPestChek.bat file in Windows Explorer. It is normal for some warnings to be present with control files generated by ModelMuse. However, if it reports errors, you will need to fix them. If something is wrong with your parameters, observations, pilot points, or delimiters, you may need to run the model again after fixing them. Otherwise, you will probably just need to export the PEST control file again after fixing the problem in the PEST Properties dialog box. To export the PEST control file again, select “File|Export|PEST|Export PEST Control File.” The Save File dialog box will have options to run PESTCHEK, PEST, or not run anything. Choose the option you prefer. When PESTCHECK does not report any errors, you are ready to run PEST.

Before running PEST, it would be a good idea to estimate how long one parameter estimation iteration will take. You can estimate that by multiplying the number of parameters by the time required to run the model. The number of parameters is NPAR. It is the first number in the control data section of the PEST control file. The PEST control file is a text file with the extension .pst. You can determine the time required to run the model by comparing the modification dates of the last input file for the model (RunModel.bat) and the last output file from the model (the listing file with the extension .lst). PEST will need multiple parameter estimation iterations to estimate the parameter values so if one parameter estimation iteration takes too long, you will need to simplify the model by, for example, reducing the number of pilot points.

Go ahead and run PEST. For this problem run on a standard desktop, PEST may take more than twenty minutes to finish but can be much faster depending on the characteristics of the computer and on how many other programs are running.  It is good practice to monitor PEST performance during the parameter estimation by opening and inspecting the PEST run record (.rec) file.

Screen capture of exporting PEST input file.

Screen capture of exporting PEST input file.

While PEST is running, you may wish to read Working with PEST if you have not already done so.

When PEST has finished running, you may wish to back up your model input and output files, so you do not accidentally overwrite them later if you run ModelMuse again.