Error in running CMAQv5.3.2_Benchmark test: ERROR in INIT3/INITLOG3

Hi, everyone,
I am trying to run CMAQv5.3.2 Benchmark case using intel compiler but running into the following error:

 ***  ERROR in INIT3/INITLOG3  ***
     Error opening log file on unit        99
     I/O STATUS =        10
     DESCRIPTION: cannot overwrite existing file, unit 99, file /share/home/jliu2/dir_lingyun/CMAQ/CMAQv5.3.2/test_case/CTM_LOG_000.v532_intel_Bench_2016_12SE1_20160701

     File: CTM_LOG_000.v532_intel_Bench_2016_12SE1_20160701

        CTM_APPL  |  v532_intel_Bench_2016_12SE1_20160701

This is my .csh file:
run_cctm_Bench_2016_12SE1.csh (35.1 KB)
The CTM_LOG_000.v532_intel_Bench_2016_12SE1_20160701 stopped as the followed:

 "GRID_DOT_2D" opened as OLD:READ-ONLY
     File name "/share/home/jliu2/dir_lingyun/CMAQ/2016_12SE1_input/CMAQv5.3.2_Benchmark_2Day_Input/2016_12SE1/met/mcipv5.0/GRIDDOT2D_160701.nc"
     File type GRDDED3
     Execution ID "mcip"
     Grid name "SE52BENCH_DOT"
     Dimensions: 81 rows, 101 cols, 1 lays, 9 vbles
     NetCDF ID:    262144  opened as READONLY
     Time-independent data.

     "LUFRAC_CRO" opened as OLD:READ-ONLY
     File name "/share/home/jliu2/dir_lingyun/CMAQ/2016_12SE1_input/CMAQv5.3.2_Benchmark_2Day_Input/2016_12SE1/met/mcipv5.0/LUFRAC_CRO_160701.nc"
     File type GRDDED3
     Execution ID "mcip"
     Grid name "SE52BENCH_CROSS"
     Dimensions: 80 rows, 100 cols, 40 lays, 1 vbles
     NetCDF ID:    327680  opened as READONLY
     Time-independent data.

Before I ran the .csh file, I have deleted the old log file and set “CLOBBER_DATA = TRUE”.
Could anyone help me resolve the error? Thank you very much!

Hi,

you also need to remove all of the CTM_LOG files if there are any that remain in the scripts directory, prior to re-running CMAQ.

‘’’
rm CTM_LOG_*
‘’’

Hi,

Before re-running CMAQ, I have removed all of the CTM_LOG files. I typed in “find -name “CTM_LOG_*”” and no CTM-LOG file exists. But after re-running CMAQ, it still has a same error.

What do you get when you look specifically at the path specified by the log:

Typically after a successful run, the CTM_LOG* files are moved from the scripts directory to the $OUTDIR/LOGS directory.

It looks like you have modified the location of the Log directory location in your run script, and this may be causing the issue.


# setenv LOGDIR  ${OUTDIR}/LOGS     #> Log Directory Location
  setenv LOGDIR ${WORKDIR}

Please uncomment the first line above, and comment the second, and try re-running.

You have commented out the cd commands in the script. The WORKDIR and LOGDIR variables are perhaps a bit misleading, in that they are shell variables used within the script but are not environment variables used within the program. As a result I suspect the CTM_LOG files are being written in your home directory, but the part of the script that removes them is trying to delete them from LOGDIR.

Somewhere prior to the executable call, insert a command cd $WORKDIR.

Hi, after setenv LOGDIR ${OUTDIR}/LOGS, it also has the same error:

 ***  ERROR in INIT3/INITLOG3  ***
     Error opening log file on unit        99
     I/O STATUS =        10
     DESCRIPTION: cannot overwrite existing file, unit 99, file /share/home/jliu2/dir_lingyun/CMAQ/CMAQv5.3.2/test_case/CTM_LOG_000.v532_intel_Bench_2016_12SE1_20160701

     File: CTM_LOG_000.v532_intel_Bench_2016_12SE1_20160701

Sorry for my late reply.
Before I run CMAQ, I will get:

[jliu2@c01n01 test_case]$ ls -l /share/home/jliu2/dir_lingyun/CMAQ/CMAQv5.3.2/test_case/CTM_LOG_*
ls: No match.

After I run CMAQ and see the error from my log:

***  ERROR in INIT3/INITLOG3  ***
     Error opening log file on unit        99
     I/O STATUS =        10
     DESCRIPTION: cannot overwrite existing file, unit 99, file /share/home/jliu2/dir_lingyun/CMAQ/CMAQv5.3.2/test_case/CTM_LOG_000.v532_intel_Bench_2016_12SE1_20160701

     File: CTM_LOG_000.v532_intel_Bench_2016_12SE1_20160701

I get the followed information:

[jliu2@c01n01 test_case]$ ls -l /share/home/jliu2/dir_lingyun/CMAQ/CMAQv5.3.2/test_case/CTM_LOG_*
-rw-r--r-- 1 jliu2 atmo 4006 Nov  9 16:55 /share/home/jliu2/dir_lingyun/CMAQ/CMAQv5.3.2/test_case/CTM_LOG_000.v532_intel_Bench_2016_12SE1_20160701

Thank you very much!

What are the contents of the CTM_LOG_000 file? Perhaps your MPI is not set up correctly, or the call to mpirun is not formatted correctly for the version you have installed. There ought to be 32 files created, CTM_LOG_000 through CTM_LOG_031.

Very sorry for my late reply. I insert a command cd $WORKDIR before WORKDIR is defined in run_cctm_Bench_2016_12SE1.csh
run_cctm_Bench_2016_12SE1.csh (35.2 KB)

#> Source the config.cmaq file to set the build environment
# cd ../..
# source ./config_cmaq.csh $compiler $compilerVrsn
# cd CCTM/scripts
 cd /share/home/jliu2/dir_lingyun/CMAQ/CMAQv5.3.2/test_case

But still exists the same error


     ***  ERROR in INIT3/INITLOG3  ***
     Error opening log file on unit        99
     I/O STATUS =        10
     DESCRIPTION: cannot overwrite existing file, unit 99, file /share/home/jliu2/dir_lingyun/CMAQ/CMAQv5.3.2/test_case/CTM_LOG_000.v532_intel_Bench_2016_12SE1_20160701

     File: CTM_LOG_000.v532_intel_Bench_2016_12SE1_20160701


     ***  ERROR in INIT3/INITLOG3  ***
     Error opening log file on unit        99
     I/O STATUS =        10
     DESCRIPTION: cannot overwrite existing file, unit 99, file /share/home/jliu2/dir_lingyun/CMAQ/CMAQv5.3.2/test_case/CTM_LOG_000.v532_intel_Bench_2016_12SE1_20160701

     File: CTM_LOG_000.v532_intel_Bench_2016_12SE1_20160701

The contents of the CTM_LOG_000 file stopped at:

Grid name "SE52BENCH_CROSS"
     Dimensions: 80 rows, 100 cols, 40 lays, 1 vbles
     NetCDF ID:    327680  opened as READONLY
     "MET_CRO_2D" opened as OLD:READ-ONLY
     File type GRDDED3
     Execution ID "mcip"
     Grid name "SE52BENCH_CROSS"
     Dimensions: 80 rows, 100 cols, 1 lays, 35 vbles
     NetCDF ID:    393216  opened as READONLY
     Starting date and time  2016183:000000 (0:00:00   July 1, 2016)
     File type GRDDED3
     Execution ID "mcip"
     Grid name "SE52BENCH_CROSS"
     Dimensions: 80 rows, 100 cols, 1 lays, 35 vbles
     NetCDF ID:    393216  opened as READONLY
     Starting date and time  2016183:000000 (0:00:00   July 1, 2016)
     Timestep                          010000 (1:00:00 hh:mm:ss)
     Maximum current record number        25

     "MET_DOT_3D" opened as OLD:READ-ONLY
     File name "/share/home/jliu2/dir_lingyun/CMAQ/2016_12SE1_input/CMAQv5.3.2_Benchmark_2Day_Input/2016_12SE1/met/mcipv5.0/METDOT3D_160701.nc"
     File type GRDDED3
     Execution ID "mcip"
     Grid name "SE52BENCH_DOT"
     Dimensions: 81 rows, 101 cols, 35 lays, 6 vbles
     NetCDF ID:    458752  opened as READONLY
     Starting date and time  2016183:000000 (0:00:00   July 1, 2016)
     Timestep                          010000 (1:00:00 hh:mm:ss)
     Maximum current record number        25

     "GR_EMIS_001" opened as OLD:READ-ONLY
     File name "/share/home/jliu2/dir_lingyun/CMAQ/2016_12SE1_input/CMAQv5.3.2_Benchmark_2Day_Input/2016_12SE1/emis/gridded_area/gridded/emis_mole_all_20160701_cb6_bench.nc"
     File type GRDDED3
     Execution ID "????????????????"
     Grid name "SE53BENCH"
     Dimensions: 80 rows, 100 cols, 1 lays, 62 vbles
     NetCDF ID:    524288  opened as READONLY
     Starting date and time  2016183:000000 (0:00:00   July 1, 2016)
     Timestep                          010000 (1:00:00 hh:mm:ss)
     Maximum current record number        25
GR_EM_SYM_DATE_0  |           F


A strange thing is that evey time I re-running CMAQ, the error is same, but the contents in CTM_LOG_000 file stops at different lines. Sometime the contents in CTM_LOG_000 file stops before any file is opened.

Thank you very much for your help!

Hi, sorry for my late reply. After I changed the compiler from intel to gcc and recompile CMAQ, the test case run successfully!