SMOKE trial run error: ERROR ABORT in subroutine GRDMAT

Hello, I installed SMOKE 4.7 using pgi compiler and ioapi3.2 successfully. While doing that, I needed to delete ‘&’ sign in /fixed_src/PARMS3.EXT file.

However, when I tried to run a test case (section 4.3 in https://www.cmascenter.org/smoke/documentation/4.7/manual_smokev47.pdf) I am getting error in log file. When I ran area file, I get message /bin/rm: no match please see below

[IqbalHossan@adeq run]$ csh smk_area_nctox.csh
/bin/rm: No match.
/bin/rm: No match.
Running part 1…

 This program uses the EPA-AREAL/MCNC-EnvPgms/BAMS Models-3      
 I/O Applications Programming Interface, [I/O API] which is      
 built on top of the netCDF I/O library (Copyright 1993, 1996    
 University Corporation for Atmospheric Research/Unidata         
 Program) and the PVM parallel-programming library (from         
 Oak Ridge National Laboratory).                                 
 Copyright (C) 1992-2002 MCNC,                                   
 (C) 1992-2018 Carlie J. Coats, Jr.,                             
 (C) 2003-2012 Baron Advanced Meteorological Systems, LLC, and   
 (C) 2014-2020 UNC Institute for the Environment.                
 Released under the GNU LGPL  License, version 2.1.  See URL     
                                                                 
     https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html     
                                                                 
 for conditions of use.                                          
                                                                 
 ioapi-3.2: $Id: init3.F90 185 2020-08-28 16:49:45Z coats $
 netCDF version 4.3.3.1 of Dec 10 2015 16:44:18 $
  
 SMOKE ---------------
 Copyright (c)2004 Environmental Modeling for Policy Development
 All rights reserved

 Program SMKINVEN, Version SMOKEv4.7_Oct2019
 Online documentation 
     http://www.cep.unc.edu/empd/products/smoke                 
  
 Program SMKINVEN to take ASCII area or point source files
 in IDA, EMS-95, or SMOKE list format, or mobile files
 in IDA format, and produce the I/O API and ASCII SMOKE
 inventory files and list of unique SCCs in the inventory.
  
  
 You will need to enter the logical names for the input and
 output files (and to have set them prior to program start,
 using "setenv <logicalname> <pathname>").
  
 You may use END_OF-FILE (control-D) to quit the program
 during logical-name entry. Default responses are given in
 brackets [LIKE THIS] and can be accepted by hitting the
 <RETURN> key.

0.012u 0.026s 0:00.07 42.8% 0+0k 30328+8io 50pf+0w

 This program uses the EPA-AREAL/MCNC-EnvPgms/BAMS Models-3      
 I/O Applications Programming Interface, [I/O API] which is      
 built on top of the netCDF I/O library (Copyright 1993, 1996    
 University Corporation for Atmospheric Research/Unidata         
 Program) and the PVM parallel-programming library (from         
 Oak Ridge National Laboratory).                                 
 Copyright (C) 1992-2002 MCNC,                                   
 (C) 1992-2018 Carlie J. Coats, Jr.,                             
 (C) 2003-2012 Baron Advanced Meteorological Systems, LLC, and   
 (C) 2014-2020 UNC Institute for the Environment.                
 Released under the GNU LGPL  License, version 2.1.  See URL     
                                                                 
     https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html     
                                                                 
 for conditions of use.                                          
                                                                 
 ioapi-3.2: $Id: init3.F90 185 2020-08-28 16:49:45Z coats $
 netCDF version 4.3.3.1 of Dec 10 2015 16:44:18 $
  
 SMOKE ---------------
 Copyright (c)2004 Environmental Modeling for Policy Development
 All rights reserved

 Program SPCMAT, Version SMOKEv4.7_Oct2019
 Online documentation 
     http://www.cep.unc.edu/empd/products/smoke                 
  
 Program SPCMAT to take a SMOKE area, mobile, or point source
 inventory file, a speciation profiles file, a speciation
 cross-reference file, an optional pollutant-to-pollutant,
 conversion file, and produce mass-based and/or mole-based
 SMOKE speciation matrices for all inventory pollutants
 using run-time defined combinations of pollutants and model
 species. The output species are defined at run time by the
 speciation profiles file, permitting support of any chemical
 mechanism.
  
  
 You will need to enter the logical names for the input and
 output files (and to have set them prior to program start,
 using "setenv <logicalname> <pathname>").
  
 You may use END_OF-FILE (control-D) to quit the program
 during logical-name entry. Default responses are given in
 brackets [LIKE THIS] and can be accepted by hitting the
 <RETURN> key.

0.020u 0.032s 0:00.06 83.3% 0+0k 19144+8io 14pf+0w

 This program uses the EPA-AREAL/MCNC-EnvPgms/BAMS Models-3      
 I/O Applications Programming Interface, [I/O API] which is      
 built on top of the netCDF I/O library (Copyright 1993, 1996    
 University Corporation for Atmospheric Research/Unidata         
 Program) and the PVM parallel-programming library (from         
 Oak Ridge National Laboratory).                                 
 Copyright (C) 1992-2002 MCNC,                                   
 (C) 1992-2018 Carlie J. Coats, Jr.,                             
 (C) 2003-2012 Baron Advanced Meteorological Systems, LLC, and   
 (C) 2014-2020 UNC Institute for the Environment.                
 Released under the GNU LGPL  License, version 2.1.  See URL     
                                                                 
     https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html     
                                                                 
 for conditions of use.                                          
                                                                 
 ioapi-3.2: $Id: init3.F90 185 2020-08-28 16:49:45Z coats $
 netCDF version 4.3.3.1 of Dec 10 2015 16:44:18 $
  
 SMOKE ---------------
 Copyright (c)2004 Environmental Modeling for Policy Development
 All rights reserved

 Program GRDMAT, Version SMOKEv4.7_Oct2019
 Online documentation 
     http://www.cep.unc.edu/empd/products/smoke                 
  
 Program GRDMAT to take a SMOKE area, mobile, or point source
 inventory file, gridding surrogates,  surrogate cross-
 reference, and an optional link definitions file, and produce
 a SMOKE gridding matrix for a grid defined at run time. For
 mobile sources, an "ungridding" matrix is also created to
 allow the use of gridded temperature data in assigning
 factors to mobile sources.
  
  
 You will need to enter the logical names for the input and
 output files (and to have set them prior to program start,
 using "setenv <logicalname> <pathname>").
  
 You may use END_OF-FILE (control-D) to quit the program
 during logical-name entry. Default responses are given in
 brackets [LIKE THIS] and can be accepted by hitting the
 <RETURN> key.

0.010u 0.037s 0:00.06 66.6% 0+0k 19360+8io 13pf+0w

 This program uses the EPA-AREAL/MCNC-EnvPgms/BAMS Models-3      
 I/O Applications Programming Interface, [I/O API] which is      
 built on top of the netCDF I/O library (Copyright 1993, 1996    
 University Corporation for Atmospheric Research/Unidata         
 Program) and the PVM parallel-programming library (from         
 Oak Ridge National Laboratory).                                 
 Copyright (C) 1992-2002 MCNC,                                   
 (C) 1992-2018 Carlie J. Coats, Jr.,                             
 (C) 2003-2012 Baron Advanced Meteorological Systems, LLC, and   
 (C) 2014-2020 UNC Institute for the Environment.                
 Released under the GNU LGPL  License, version 2.1.  See URL     
                                                                 
     https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html     
                                                                 
 for conditions of use.                                          
                                                                 
 ioapi-3.2: $Id: init3.F90 185 2020-08-28 16:49:45Z coats $
 netCDF version 4.3.3.1 of Dec 10 2015 16:44:18 $
  
 SMOKE ---------------
 Copyright (c)2004 Environmental Modeling for Policy Development
 All rights reserved

 Program SMKREPORT, Version SMOKEv4.7_Oct2019
 Online documentation 
     http://www.cep.unc.edu/empd/products/smoke                 
  
 Program SMKREPORT to take any combination of SMOKE intermed-
 iate files (but at least an inventory file) and generate
 one or more user-defined reports in any combination of output
 files.
  
  
 You will need to enter the logical names for the input and
 output files (and to have set them prior to program start,
 using "setenv <logicalname> <pathname>").
  
 You may use END_OF-FILE (control-D) to quit the program
 during logical-name entry. Default responses are given in
 brackets [LIKE THIS] and can be accepted by hitting the
 <RETURN> key.

0.021u 0.028s 0:00.06 66.6% 0+0k 19936+8io 15pf+0w
Running part 2, for 20050710 …
Running part 4, for 20050710…

 This program uses the EPA-AREAL/MCNC-EnvPgms/BAMS Models-3      
 I/O Applications Programming Interface, [I/O API] which is      
 built on top of the netCDF I/O library (Copyright 1993, 1996    
 University Corporation for Atmospheric Research/Unidata         
 Program) and the PVM parallel-programming library (from         
 Oak Ridge National Laboratory).                                 
 Copyright (C) 1992-2002 MCNC,                                   
 (C) 1992-2018 Carlie J. Coats, Jr.,                             
 (C) 2003-2012 Baron Advanced Meteorological Systems, LLC, and   
 (C) 2014-2020 UNC Institute for the Environment.                
 Released under the GNU LGPL  License, version 2.1.  See URL     
                                                                 
     https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html     
                                                                 
 for conditions of use.                                          
                                                                 
 ioapi-3.2: $Id: init3.F90 185 2020-08-28 16:49:45Z coats $
 netCDF version 4.3.3.1 of Dec 10 2015 16:44:18 $
  
 SMOKE ---------------
 Copyright (c)2004 Environmental Modeling for Policy Development
 All rights reserved

 Program TEMPORAL, Version SMOKEv4.7_Oct2019
 Online documentation 
     http://www.cep.unc.edu/empd/products/smoke                 
  
 Program TEMPORAL to take a SMOKE area, mobile, or point
 source inventory file, a temporal profiles file, a temporal
 cross-reference file, an optional SMOKE day-specific file, 
 and an optional SMOKE hour-specific point source file, and
 produce hourly low-level and optionally hourly elevated point
 source emissions for the requested episode.
  
  
 You will need to enter the logical names for the input and
 output files (and to have set them prior to program start,
 using "setenv <logicalname> <pathname>").
  
 You may use END_OF-FILE (control-D) to quit the program
 during logical-name entry. Default responses are given in
 brackets [LIKE THIS] and can be accepted by hitting the
 <RETURN> key.

0.009u 0.024s 0:00.05 40.0% 0+0k 19112+8io 13pf+0w

 This program uses the EPA-AREAL/MCNC-EnvPgms/BAMS Models-3      
 I/O Applications Programming Interface, [I/O API] which is      
 built on top of the netCDF I/O library (Copyright 1993, 1996    
 University Corporation for Atmospheric Research/Unidata         
 Program) and the PVM parallel-programming library (from         
 Oak Ridge National Laboratory).                                 
 Copyright (C) 1992-2002 MCNC,                                   
 (C) 1992-2018 Carlie J. Coats, Jr.,                             
 (C) 2003-2012 Baron Advanced Meteorological Systems, LLC, and   
 (C) 2014-2020 UNC Institute for the Environment.                
 Released under the GNU LGPL  License, version 2.1.  See URL     
                                                                 
     https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html     
                                                                 
 for conditions of use.                                          
                                                                 
 ioapi-3.2: $Id: init3.F90 185 2020-08-28 16:49:45Z coats $
 netCDF version 4.3.3.1 of Dec 10 2015 16:44:18 $
  
 SMOKE ---------------
 Copyright (c)2004 Environmental Modeling for Policy Development
 All rights reserved

 Program SMKMERGE, Version SMOKEv4.7_Oct2019
 Online documentation 
     http://www.cep.unc.edu/empd/products/smoke                 
  
 Program SMKMERGE to merge the inventory or hourly emission
 files with gridding matrices and with optionally any
 combination of speciation matrices, multiplicative control
 matrices, additive control matrices, or reactivity control
 matrices. The program can operate on one to four source 
 categories (area, biogenic, mobile, or point sources), or any
 combination of these.  Gridded and/or state reports and/or
 county reports can be written from this program. If a layer-
 fractions file is input, then the total emissions output file
 is three-dimensional.
  
  
 You will need to enter the logical names for the input and
 output files (and to have set them prior to program start,
 using "setenv <logicalname> <pathname>").
  
 You may use END_OF-FILE (control-D) to quit the program
 during logical-name entry. Default responses are given in
 brackets [LIKE THIS] and can be accepted by hitting the
 <RETURN> key.

0.014u 0.034s 0:00.05 80.0% 0+0k 19624+16io 14pf+0w

 This program uses the EPA-AREAL/MCNC-EnvPgms/BAMS Models-3      
 I/O Applications Programming Interface, [I/O API] which is      
 built on top of the netCDF I/O library (Copyright 1993, 1996    
 University Corporation for Atmospheric Research/Unidata         
 Program) and the PVM parallel-programming library (from         
 Oak Ridge National Laboratory).                                 
 Copyright (C) 1992-2002 MCNC,                                   
 (C) 1992-2018 Carlie J. Coats, Jr.,                             
 (C) 2003-2012 Baron Advanced Meteorological Systems, LLC, and   
 (C) 2014-2020 UNC Institute for the Environment.                
 Released under the GNU LGPL  License, version 2.1.  See URL     
                                                                 
     https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html     
                                                                 
 for conditions of use.                                          
                                                                 
 ioapi-3.2: $Id: init3.F90 185 2020-08-28 16:49:45Z coats $
 netCDF version 4.3.3.1 of Dec 10 2015 16:44:18 $
  
 SMOKE ---------------
 Copyright (c)2004 Environmental Modeling for Policy Development
 All rights reserved

 Program SMKREPORT, Version SMOKEv4.7_Oct2019
 Online documentation 
     http://www.cep.unc.edu/empd/products/smoke                 
  
 Program SMKREPORT to take any combination of SMOKE intermed-
 iate files (but at least an inventory file) and generate
 one or more user-defined reports in any combination of output
 files.
  
  
 You will need to enter the logical names for the input and
 output files (and to have set them prior to program start,
 using "setenv <logicalname> <pathname>").
  
 You may use END_OF-FILE (control-D) to quit the program
 during logical-name entry. Default responses are given in
 brackets [LIKE THIS] and can be accepted by hitting the
 <RETURN> key.

0.016u 0.033s 0:00.05 80.0% 0+0k 8+8io 0pf+0w

Then I checked log file by using grep ERROR * it is giving me following error:

[IqbalHossan@adeq logs]$ grep ERROR *
grdmat.area.nctox.us12-nc.log: ERROR: input file not found: AREA
grdmat.area.nctox.us12-nc.log: *** ERROR ABORT in subroutine GRDMAT
smkinven.area.nctox.log: ERROR: input file not found: ARINV
smkinven.area.nctox.log: *** ERROR ABORT in subroutine OPENINVIN
smkmerge.area.nctox.20050710.us12-nc.log: ERROR: input file not found: AREA
smkmerge.area.nctox.20050710.us12-nc.log: *** ERROR ABORT in subroutine OPENMRGIN
smkreport.area.inv.nctox.log: ERROR: input file not found: AREA
smkreport.area.inv.nctox.log: *** ERROR ABORT in subroutine OPENREPIN
smkreport.area.temporal.nctox.2005191.log: ERROR: input file not found: AREA
smkreport.area.temporal.nctox.2005191.log: *** ERROR ABORT in subroutine OPENREPIN
spcmat.area.nctox.cmaq_cb05_soa.log: ERROR: input file not found: AREA
spcmat.area.nctox.cmaq_cb05_soa.log: *** ERROR ABORT in subroutine SPCMAT
temporal.area.nctox.20050710.log: ERROR: input file not found: AREA
temporal.area.nctox.20050710.log: *** ERROR ABORT in subroutine OPENTMPIN

Finally, I checked grdmat.area…log file, where I can see input file not found error

[IqbalHossan@adeq logs]$ cat grdmat.area.nctox.us12-nc.log

 This program uses the EPA-AREAL/MCNC-EnvPgms/BAMS Models-3      
 I/O Applications Programming Interface, [I/O API] which is      
 built on top of the netCDF I/O library (Copyright 1993, 1996    
 University Corporation for Atmospheric Research/Unidata         
 Program) and the PVM parallel-programming library (from         
 Oak Ridge National Laboratory).                                 
 Copyright (C) 1992-2002 MCNC,                                   
 (C) 1992-2018 Carlie J. Coats, Jr.,                             
 (C) 2003-2012 Baron Advanced Meteorological Systems, LLC, and   
 (C) 2014-2020 UNC Institute for the Environment.                
 Released under the GNU LGPL  License, version 2.1.  See URL     
                                                                 
     https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html     
                                                                 
 for conditions of use.                                          
                                                                 
 ioapi-3.2: $Id: init3.F90 185 2020-08-28 16:49:45Z coats $
 Version with PARMS3.EXT/PARAMETER::MXVARS3= 2048
 netCDF version 4.3.3.1 of Dec 10 2015 16:44:18 $
  
  
 Missing environment variable EXECUTION_ID
 SMOKE ---------------
 Copyright (c)2004 Environmental Modeling for Policy Development
 All rights reserved

 Program GRDMAT, Version SMOKEv4.7_Oct2019
 Online documentation 
     http://www.cep.unc.edu/empd/products/smoke                 
  
 Program GRDMAT to take a SMOKE area, mobile, or point source
 inventory file, gridding surrogates,  surrogate cross-
 reference, and an optional link definitions file, and produce
 a SMOKE gridding matrix for a grid defined at run time. For
 mobile sources, an "ungridding" matrix is also created to
 allow the use of gridded temperature data in assigning
 factors to mobile sources.
  
  
 You will need to enter the logical names for the input and
 output files (and to have set them prior to program start,
 using "setenv <logicalname> <pathname>").
  
 You may use END_OF-FILE (control-D) to quit the program
 during logical-name entry. Default responses are given in
 brackets [LIKE THIS] and can be accepted by hitting the
 <RETURN> key.
  
 Value for PROMPTFLAG:  N returning FALSE
 Returning default value TRUE for query:
 "Continue with program?"
 Value for GRDMAT_ADJUST not defined;returning default:   FALSE
 Value for GRDMAT_LINKDEFS not defined;returning default:   FALSE
 Value for USE_VARIABLE_GRID not defined;returning default:   FALSE
 Value for IMPORT_GRDNETCDF_YN not defined;returning default:   FALSE
 Value for SMK_SOURCE:  'A'
 Value for SMK_SOURCE:  'A'
 Value for PROMPTFLAG:  N returning FALSE

ERROR: input file not found: AREA
/home/IqbalHossan/Documents/SMOKE/SMK/data/inventory/nctox/area.map.area.nctox.txt

 Could not open input file "AREA".
 
 *** ERROR ABORT in subroutine GRDMAT
 Ending program "GRDMAT".

Please help

I met the same error message. And in my case, the problem has been solved when I fixed ARINV (arinv.$SRCABBR.lst). My ARINV had a comment character “#”. And I deleted the whole commented line.

1 Like

Have you used pgi compiler ?

No. I am using Intel compiler.

1 Like

Looks like your smkinven run failed. That is why you are getting the error messages from the rest of the programs, which use Smkinven output files as their inputs.

Hello @bbaek

I couldn’t solve the problem using ‘pgi’ compiler. So, I used ‘gfortran’ compiler and compilation was successful.

Thanks