SWAT-CUP stop running after first simulation, without giving me any error message

2,693 views
Skip to first unread message

nahal hoghooghi

unread,
Aug 24, 2015, 12:30:30 PM8/24/15
to SWAT-CUP

Dear SWAT-CUP users,

I have total of 29 sub-basins , and watershed outlet is in the sub-basin# 29. I'm trying to calibrate flow just for sub-basin #7 for 1 variable (flow), it didn't give me an error in SWAT-CUP, but it stopped after running the first simulation. I have 22 parameters and run it for 1000 simulations. I attached the screen shot of SWAT-CUP. I would appreciate your help. 


Regards,

Nahal


SWAT-CUP.png

GULESER SUFRACI

unread,
Aug 24, 2015, 1:40:59 PM8/24/15
to SWAT-CUP
It supposed to be continue if you did not get any error or message. If I were you I would check all the info you provided and try it again. after your next try if you still have problem you can post your input information in swat-cup and we can take a look at it.

Iman Fazeli

unread,
Aug 24, 2015, 6:17:54 PM8/24/15
to swat...@googlegroups.com
Dear Nahal,

I agree with Guleser, If you got an error after first simulation there are two reasons: first in making project procedure using SWAT_CUP something is wrong inserted and for solving check all of steps in SWAT_CUP. Second, input data you introduced into SWAT_CUP, check them again. Also you could screen shot of your error. Your attached file didn't get any error.


Best,
Iman

--
You received this message because you are subscribed to the Google Groups "SWAT-CUP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swat-cup+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

nahal hoghooghi

unread,
Aug 25, 2015, 10:51:05 AM8/25/15
to SWAT-CUP
Thanks Iman. But I didn't get any error. It just stopped at the end of simulation #1.

Iman Fazeli

unread,
Aug 25, 2015, 10:56:50 AM8/25/15
to swat...@googlegroups.com
Hi Nahal

Could you zip and send me your project to look at it?


Best,
Iman

pj...@stanford.edu

unread,
Aug 25, 2015, 12:51:16 PM8/25/15
to SWAT-CUP
Hi Nahal,

This isn't a SWAT error, it's something about the reading of the SWAT output by SWAT-CUP. My guess is that there is a mismatch in the dates between the SWAT run (set in file.cio) and in the extract settings in SWAT-CUP. Make sure that you have the same dates, the same printout frequency (daily, monthly, annual), and that you properly account for the NYSKIP warmup period. I've had this type of screen come up a number of times, and it's always been due to something like this. 

Best,
James

Somsubhra Chattopadhyay

unread,
Aug 26, 2015, 11:41:19 AM8/26/15
to swat...@googlegroups.com
Hi James,

I have my SWAT run from 1970-2010 with no warm up period and would like to calibrate the model with the observed data from 1970-1990, and then validate the model from 1990-2010. So my file.cio has beginning year as 1970 and my extract_def has beginning and ending year as 1970 to 1990. Is this incorrect? Should it be 1970-2010 instead?

Thanks
Som

pj...@stanford.edu

unread,
Aug 27, 2015, 12:34:29 PM8/27/15
to SWAT-CUP
Hi Som,

It depends on how many years file.cio is set to run--is it set to run 21 years (1970-1990) or 41 years (1970-2010)? Also, make sure that you have the same timescale (day, month, year) on both the SWAT model outputs (set in file.cio) and on the extract files. And make sure that you are only extracting what you intend to be by checking which extract files are active in the Sufi2_Extract.bat

I don't know exactly what the problem is in your case, but whenever I've seen a case where it hangs displaying "Variable #1" like that it has had to do with the timing of the model outputs and the extraction program.

Best,
James

nahal hoghooghi

unread,
Aug 27, 2015, 2:26:14 PM8/27/15
to SWAT-CUP
Thanks James. I checked it couple of times. The beginning of simulation is from 7/31/2008 to 7/31/2014 including 4 years of warm up in daily time step. For calibration I used the observed flow from 8/1/2008 till 7/31/2014. Attached is File.Cio in SWAT-CUP. I would appreciate if you can check it.

Best,
Nahal
file.Cio.jpg

GULESER SUFRACI

unread,
Aug 27, 2015, 3:36:21 PM8/27/15
to SWAT-CUP
Nahal,

I just wonder why your julian day shows 213 ? does not it supposed to be 365 ?

Somsubhra Chattopadhyay

unread,
Aug 27, 2015, 3:44:35 PM8/27/15
to swat...@googlegroups.com
Hi James,

Thanks for the reply. My SWAT run was from 1970-2010 and thus model was simulated for 41 years. Since calibration period is 1970-1990, extract def has dates from 1970-1990 (21 years). Time scales match and so IPRINT is 0 for monthly. I am also just extracting the flow out so don't think that's an issue. Attached is my error message in case you can throw some light. My post bat doesn't run properly.

Som
sufi 2 error.JPG

Abbaspour

unread,
Aug 27, 2015, 7:29:35 PM8/27/15
to swat...@googlegroups.com
First, you should have 2-3 years of warm up period. Second, if you calibrate from 1970 to 1990 why do you run the model till 2010?
Just run the model for the period of calibration.

<sufi 2 error.JPG>

Abbaspour

unread,
Aug 27, 2015, 7:30:26 PM8/27/15
to swat...@googlegroups.com
Simulation should start from beginning of the  year and end at the end of the year.
Karim


--
You received this message because you are subscribed to the Google Groups "SWAT-CUP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swat-cup+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<file.Cio.jpg>

nahal hoghooghi

unread,
Aug 28, 2015, 12:15:14 PM8/28/15
to SWAT-CUP
Thanks Dr. Abbaspour, it works.
Message has been deleted

Santosa S. Putra

unread,
Dec 27, 2016, 6:55:35 AM12/27/16
to SWAT-CUP
I just want to summarize the answer of Mr. James and Mr. Karim, and also after I experience their suggestion myself.

The problem is related to the time setting in the File.Cio and in the SUFI2_extract_rch.def.

The beginning year of simulation (IYR) in the master watershed file [File.Cio] is including the warm up period (NYSKIP).

As a contrast, the beginning year of simulation that is mentioned in the extract file [SUFI2_extract_rch.def] must not include the warm up period.

Please use simple start and end calibration period to avoid confusion related to this time setting,
(e.g. Simulation start at 1 January and end at 31 December).

Finally make sure that the time step stated in the extract file is match with the output print code interval (IPRINT) in the master file.

Thanks

ampar...@hotmail.com

unread,
Apr 19, 2018, 6:06:18 AM4/19/18
to SWAT-CUP
Hello!

I am having the same problem:


After one simulation, it stops... I am doing my validation, calibration was from 2005 to 2012, so : NBYR:8 with NYSKP:3 and IYR:2005, and now for validation from 2013 until 2016, so NBYR:12 with NYSKP:8 and YBR:2005 and in my extract_rch.def is from 2013 to 2016, so apparently, everything fine.
My observed data also from 2013-2016

I have tried with this format,  starting the 1st of January of 2013  with 1, as I saw in some tutorials, so honestly dont know what is wrong in order to get just one simulation without not error, but just a running loop...

Any help will be appreciate,

Regards,

Amparo
Auto Generated Inline Image 1
Auto Generated Inline Image 2

Karim Abbaspour

unread,
Apr 19, 2018, 8:35:11 AM4/19/18
to swat...@googlegroups.com
look in the Echo_extrcat_rch.txt... file  in the Echo folder. It may provide some clues. Also, make sure the No_Observed extraction is not on.

Karim

--
You received this message because you are subscribed to the Google Groups "SWAT-CUP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swat-cup+unsubscribe@googlegroups.com.

Pravin Patil

unread,
Jul 28, 2018, 4:51:21 PM7/28/18
to SWAT-CUP
Hi nahal,
I am also stuck with this problem. After 1 simulation execution was stopped. I run for 2 hrs, still didn't get the output. I request you, can you please share if you resolved this problem. It would be very appreciated.

nahal hoghooghi

unread,
Jul 28, 2018, 5:49:06 PM7/28/18
to swat...@googlegroups.com
Hi Pravin, 
As I remember it was something wrong with input climate data or observed data. The sequence wasn’t  correct. 

Good luck 
Nahal

On Sat, Jul 28, 2018 at 4:51 PM Pravin Patil <pravinp...@gmail.com> wrote:
Hi nahal,
I am also stuck with this problem. After 1 simulation execution was stopped. I run for 2 hrs, still didn't get the output. I request you, can you please share if you resolved this problem. It would be very appreciated.

--
You received this message because you are subscribed to a topic in the Google Groups "SWAT-CUP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swat-cup/2zcQ2gvGOTY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swat-cup+u...@googlegroups.com.

Pravin Patil

unread,
Jul 29, 2018, 12:58:17 PM7/29/18
to swat...@googlegroups.com
Hi nahal,
That has resolved now next one araised that after saving interaction file., 95ppu file doesn't exist in pathfolder it shows, what should I do for that?

You received this message because you are subscribed to the Google Groups "SWAT-CUP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swat-cup+u...@googlegroups.com.

Yao Li

unread,
Mar 15, 2019, 1:30:19 PM3/15/19
to SWAT-CUP
Hi Pravin,

I have encountered this problem and I found it might related with the ArcSWAT input database setup. Whenever I update the weather data input, and then go to the next to update the database and have several following dialogues : 

Database update selection not working

Maturity, yes

Pp,yes

Ppi(inletr), yes

Res, yes

Not working for swat cup and it will stop at the end of 1st ieration

 

Database update selection working

Maturity, no

Pp,no

Ppi(inletr), no

Res, no-

Working for swat cup

Sandhya

unread,
Mar 1, 2024, 10:23:24 AMMar 1
to SWAT-CUP
Hello, I have an error in SWAT-CUP. No matter how many simulations I run, it works in run.bat but, during post-processing, it doesn't generate more than 2 simulations. The error is as shown:Screenshot 2024-02-26 131650.png
Thinking its the issue with elevation band and upstream basins, I corrected them but, the error still persists, what should I do?

Oscar Cabezas N.

unread,
Mar 1, 2024, 11:10:29 AMMar 1
to SWAT-CUP
Hi,

It seems that oyur issue it is related to the configurations that you made for your SWAT-CUP project (maybe the Extract files, or in the observations), because If the run.bat works well, then the issue it is not related to the input files

Which variable are you trying to calibrate? .rch, .sub, .hru ?

Best regards,
Oscar Cabezas-Nivin

Sandhya

unread,
Mar 1, 2024, 11:26:18 AMMar 1
to SWAT-CUP
Hello,

I am trying to calibrate for discharge and sediment load but, in that particular program I was trying to calibrate for discharge data. Where should I look into for the solution?

Best regards,
Sandhya Khanal




Oscar Cabezas N.

unread,
Mar 1, 2024, 11:44:45 AMMar 1
to swat...@googlegroups.com
Hi,

In order to better understand what is the issue in your project, please send me the screenshots of this section of your SWAT-CUP project:

image.png

Also, where did you downloaded your SWAT-CUP program from? From the official website? If it is so, that is an issue too

Best regards,
Oscar Cabezas-Nivin

--
You received this message because you are subscribed to a topic in the Google Groups "SWAT-CUP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swat-cup/2zcQ2gvGOTY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swat-cup+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/swat-cup/c087d30a-b06e-494a-95c6-2a6c6657d795n%40googlegroups.com.

Sandhya

unread,
Mar 1, 2024, 11:54:57 AMMar 1
to SWAT-CUP
Hi,

Here are the SSs of the required sections. And yes, I downloaded the software from original site. However, the program runs well on other swat-cup project. Screenshot (97).pngScreenshot (98).pngScreenshot (99).pngScreenshot (100).pngScreenshot (101).pngScreenshot 2024-02-26 131650.png

Regards,
Sandhya Khanal

Sandhya

unread,
Mar 1, 2024, 11:56:23 AMMar 1
to SWAT-CUP
I forgot the SS for Sufi2_Extract.bat
Screenshot (103).png

Oscar Cabezas N.

unread,
Mar 1, 2024, 12:03:44 PMMar 1
to swat...@googlegroups.com
Hi,

Everything seems fine actually, I can only think that maybe your issue is in the output.rch file and maybe in the file.cio too. Please send me the screenshots of both or the files (both are ok I think). And in the worst case scenario, the problem is actually the program, because when I used SWAT-CUP for the first time, I downloaded from the official website but It never worked, so that may be an issue.

Best regards,
Oscar Cabezas-Nivin


You received this message because you are subscribed to the Google Groups "SWAT-CUP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swat-cup+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/swat-cup/8772c4fc-fc78-4126-881c-3c180b747284n%40googlegroups.com.

Aida Yahyavi Rahimi

unread,
Mar 6, 2024, 7:38:01 PMMar 6
to SWAT-CUP
Hi Nahal
Please make sure that you entered the same number of simulations in both "Par_inf.txt" and in ".def" .
Best;
Aida

Fahim Mondol

unread,
May 20, 2024, 6:26:54 AMMay 20
to SWAT-CUP
Hello  Aida Yahyavi Rahimi, I am seeking ur help please. i am facing best simulation= 1 shows all the time , how to change goal value? it shows partial goal 0.2 and shows this same value.
echo_goal_fn.txt
Reply all
Reply to author
Forward
0 new messages