# CMAQ-5.3.2 run error

**URL:** <https://forum.cmascenter.org/t/cmaq-5-3-2-run-error/1900>\
**Category:** CMAQ\
**Created:** [November 9, 2020, 1:05pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-run-error/1900 "2020-11-09T13:05:10Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![lwu127](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@lwu127](https://forum.cmascenter.org/u/lwu127)\
**Post date:** [November 9, 2020, 1:05pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-run-error/1900/1 "2020-11-09T13:05:10Z")

</div>

Hi everyone,  
I am using CMAQ-5.3.2 and i get the following error when running it. It run for 11 simulation hours and stopped with this:  
Processing Day/Time [YYYYDDD:HHMMSS]: 2010046:113320  
Which is Equivalent to (UTC): 11:33:20 Monday, Feb. 15, 2010  
Time-Step Length (HHMMSS): 000640  
VDIFF completed… 2.7 seconds  
COUPLE completed… 0.1 seconds  
HADV completed… 19.6 seconds  
ZADV completed… 0.9 seconds  
HDIFF completed… 2.2 seconds  
DECOUPLE completed… 0.1 seconds  
PHOT completed… 0.0 seconds  
CLDPROC completed… 0.5 seconds  
At line 112 of file o3totcol.f  
Fortran runtime error: Bad unit number in statement  
At line 112 of file o3totcol.f  
Fortran runtime error: Bad unit number in statement  
At line 112 of file o3totcol.f  
Fortran runtime error: Bad unit number in statement  
At line 112 of file o3totcol.f  
Fortran runtime error: Bad unit number in statement  
At line 112 of file o3totcol.f  
Fortran runtime error: Bad unit number in statement  
At line 112 of file o3totcol.f  
Fortran runtime error: Bad unit number in statement  
At line 112 of file o3totcol.f  
Fortran runtime error: Bad unit number in statement  
At line 112 of file o3totcol.f  
Fortran runtime error: Bad unit number in statement  
Command exited with non-zero status 2  
real 12346.85  
user 92836.71  
sys 685.22  
Could you please help with this?  
Thanks!  
Lin

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [November 9, 2020, 1:49pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-run-error/1900/2 "2020-11-09T13:49:14Z")

</div>

If the code had followed the error-checking standards that should have been in place, he code should have had a check immediately after the GETEFILE() call at line 110: if TMUNIT is negative, M3EXIT() with a message that TMFILE could not be opened.

In the per-processor output files there should have been messages from GETEFILE() that indicate the I/O status-number. In your compiler’s documentation (the numbers are compiler specific), you should be able to track down the nature of the error from the value of that status-number.

---

<div class="post-metadata">

**Author:** ![lwu127](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@lwu127](https://forum.cmascenter.org/u/lwu127)\
**Post date:** [November 9, 2020, 2:17pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-run-error/1900/3 "2020-11-09T14:17:45Z")

</div>

Got it. I will check.  
Thanks!  
Lin

---

<div class="post-metadata">

**Author:** ![cgnolte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/cgnolte/32/53_2.png) [@cgnolte](https://forum.cmascenter.org/u/cgnolte)\
**Post date:** [November 9, 2020, 2:50pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-run-error/1900/4 "2020-11-09T14:50:14Z")

</div>

Line 112 of o3totcol.f is in a FIRSTIME block, which should not be getting executed 11 hours into a model simulation. Are there any other errors occurring previously?

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [November 9, 2020, 4:59pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-run-error/1900/5 "2020-11-09T16:59:10Z")

</div>

> [@lwu127](#):
>
> o3totcol.f

Hi Lin,

Be sure that you are using the following OMIfile in your run script.

#\> Ozone column data  
set OMIfile = OMI\_1979\_to\_2019.dat

---

<div class="post-metadata">

**Author:** ![lwu127](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@lwu127](https://forum.cmascenter.org/u/lwu127)\
**Post date:** [November 9, 2020, 6:11pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-run-error/1900/6 "2020-11-09T18:11:15Z")

</div>

Thanks so much! Yeah it seems i used the wrong OMI file, i used OMI\_1979-2017.dat before. I changed to the right one and am now running the model to see if it works.  
Lin

---

<div class="post-metadata">

**Author:** ![lwu127](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@lwu127](https://forum.cmascenter.org/u/lwu127)\
**Post date:** [November 11, 2020, 3:21pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-run-error/1900/7 "2020-11-11T15:21:52Z")

</div>

Hi everyone,  
After i changed OMI file it run smoothly for 2 complete days and then stopped with this error on screen:

 ![2020-11-11 (2)](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/1X/40857aae74c71b2ffc949f2fed32b87321c5d199.jpeg)  
It shows program complete successfully but i actually set the running for 18 days.  
Attached is my run script. [run\_cctm.csh](https://forum.cmascenter.org/uploads/short-url/xiWNGFVDluI5FCXHTic2qRruZ2B.csh) (35.6 KB)  
Could you help with it?  
Thanks!  
Lin

---

<div class="post-metadata">

**Author:** ![cgnolte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/cgnolte/32/53_2.png) [@cgnolte](https://forum.cmascenter.org/u/cgnolte)\
**Post date:** [November 11, 2020, 3:52pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-run-error/1900/8 "2020-11-11T15:52:52Z")

</div>

Not my area of expertise, but an internet search suggests this is probably a problem with the version of MPICH that is installed on your system rather than something in CMAQ.

---

<div class="post-metadata">

**Author:** ![lwu127](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@lwu127](https://forum.cmascenter.org/u/lwu127)\
**Post date:** [November 12, 2020, 1:29pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-run-error/1900/9 "2020-11-12T13:29:42Z")

</div>

Thanks cgnoite,  
I know very little about MPICH. If it is the MPICH version problem, would the error show after two days simulation?  
Lin

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [November 12, 2020, 3:53pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-run-error/1900/10 "2020-11-12T15:53:49Z")

</div>

Please share the output from the following commands on your system along with the error you are seeing with your system administrator.  
`uname -a`  
`mpif90 --version`  
`mpif90 --show`  
`mpiexec --version`

---

<div class="post-metadata">

**Author:** ![lwu127](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@lwu127](https://forum.cmascenter.org/u/lwu127)\
**Post date:** [November 12, 2020, 5:43pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-run-error/1900/11 "2020-11-12T17:43:36Z")

</div>

HI Liz,  
I have the following information from those commands:

1. Linux j430-Inspiron-3847 4.4.0-92-generic #115-Ubuntu SMP Thu Aug 10 09:04:33 UTC 2017 x86\_64 x86\_64 x86\_64 GNU/Linux

2. GNU Fortran (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609  
Copyright © 2015 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.  
You may redistribute copies of GNU Fortran  
under the terms of the GNU General Public License.  
For more information about these matters, see the file named COPYING

1. gfortran: error: unrecognized command line option ‘–show’

2. HYDRA build details:  
Version: 3.3.2  
Release Date: Tue Nov 12 21:23:16 CST 2019  
CC: gcc -I/home/j430/library/netcdf-c/include -L/home/j430/library/netcdf-c/lib -L/usr/lib/x86\_64-linux-gnu  
CXX: g++ -I/home/j430/library/netcdf-c/include -L/home/j430/library/netcdf-c/lib -L/usr/lib/x86\_64-linux-gnu  
F77: gfortran -L/home/j430/library/netcdf-c/lib -L/usr/lib/x86\_64-linux-gnu  
F90: gfortran -L/home/j430/library/netcdf-c/lib -L/usr/lib/x86\_64-linux-gnu  
Configure options: ‘–disable-option-checking’ ‘–prefix=/home/j430/library/mpich-3.3.2’ ‘LDFLAGS=-L/home/j430/library/netcdf-c/lib -L/usr/lib/x86\_64-linux-gnu’ ‘CPPFLAGS=-I/home/j430/library/netcdf-c/include -I/home/j430/lib-install/mpich-3.3.2/src/mpl/include -I/home/j430/lib-install/mpich-3.3.2/src/mpl/include -I/home/j430/lib-install/mpich-3.3.2/src/openpa/src -I/home/j430/lib-install/mpich-3.3.2/src/openpa/src -D\_REENTRANT -I/home/j430/lib-install/mpich-3.3.2/src/mpi/romio/include’ ‘–cache-file=/dev/null’ ‘–srcdir=.’ ‘CC=gcc’ ‘CFLAGS= -O2’ ‘LIBS=’ ‘MPLLIBNAME=mpl’  
Process Manager: pmi  
Launchers available: ssh rsh fork slurm ll lsf sge manual persist  
Topology libraries available: hwloc  
Resource management kernels available: user slurm ll lsf sge pbs cobalt  
Checkpointing libraries available:  
Demux engines available: poll select

---

<div class="post-metadata">

**Author:** ![wong.david-c](https://avatars.discourse-cdn.com/v4/letter/w/bcef8e/32.png) [@wong.david-c](https://forum.cmascenter.org/u/wong.david-c)\
**Post date:** [November 17, 2020, 4:44pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-run-error/1900/12 "2020-11-17T16:44:24Z")

</div>

Hi lwu127,

```
Could you please try set your START_DATE to "2010-02-17" and NEW_START to FALSE and resubmit your job and let me know the outcome?

```

Cheers,  
David

---

<div class="post-metadata">

**Author:** ![lwu127](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@lwu127](https://forum.cmascenter.org/u/lwu127)\
**Post date:** [December 4, 2020, 3:11pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-run-error/1900/13 "2020-12-04T15:11:27Z")

</div>

Hi David,  
I restart from 02-17, set NEW\_START to FALSE and it runs smothly without error till now. Do you have any idea of what causes the error in the past simulation?  
Thanks!  
Lin
