I am running a SUFI-2 calibration in SWAT-CUP for monthly discharge, but I am facing an issue where the model crashes or fails right after simulation 1.
C:\SWAT_ERESMA_8\calibracion_simu5.Sufi2.SwatCup>SUFI2_95ppu_beh.exe
Cannot open input file /SUFI2.OUT/no_beh_sims.txt
THIS IS NOT AN ERROR!!
There were no solutions with the
objective function value >= the behavioral threshold
C:\SWAT_ERESMA_8\calibracion_simu5.Sufi2.SwatCup>rem 95ppu_NO_Obs.exe
Upon troubleshooting, I noticed the following details:
1. When running a single simulation (n=1), SWAT-CUP finishes, but the hydrograph / observed data plots show that SWAT-CUP only reads the very first observed value correctly (e.g., ~4 m3/s). For all remaining time steps (72 months), the observed flow drops to 0.
2. Because all subsequent observed values are being read as 0, the objective function and goodness-of-fit statistics (NSE, R2, PBIAS) are completely unrealistic.
3. Starting from simulation #2, the execution crashes/fails.
What I have checked/tried so far:
- Formatting: Verified column structure, date/number of observations, and header variables in `Observed.txt` / `Observed_Data.txt`. The structure was generated from Excel and dragged down for all rows.
- Tried modifying unobserved file structures as suggested in some forum threads, but I do have full observed streamflow records for the entire period.
![]()
Could this be related to:
- Hidden characters, line breaks, or tab vs. space delimiters in `Observed.txt`?
- Variable indexing or conflict with Inlets in the TxtInOut folder?
- Decimal separator issues (dot vs. comma)?
Has anyone encountered this specific behavior where SWAT-CUP reads only the first row of observed data and zeroes out the rest? Any guidance or a working template example of `Observed.txt` for discharge would be greatly appreciated!
Thanks in advance for your support.
Best regards,
Juan