# ERROR ABORT in subroutine FORMLIST

**URL:** <https://forum.cmascenter.org/t/error-abort-in-subroutine-formlist/4127>\
**Category:** SMOKE\
**Tags:** smoke, smoke-481\
**Created:** [May 19, 2023, 4:46pm UTC](https://forum.cmascenter.org/t/error-abort-in-subroutine-formlist/4127 "2023-05-19T16:46:38Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iqbal](https://avatars.discourse-cdn.com/v4/letter/i/bc8723/32.png) [@Iqbal](https://forum.cmascenter.org/u/Iqbal)\
**Post date:** [May 19, 2023, 4:46pm UTC](https://forum.cmascenter.org/t/error-abort-in-subroutine-formlist/4127/1 "2023-05-19T16:46:38Z")

</div>

Hello,

I am trying to run ptnonipm SMOKE run for 2023gf (2016v3 modeling). When I attempt to run ‘onetime’ script, I am getting error.

I checked the /intermed/ptnonipm/logs/smkinven\_ptnonipm\_2023gf\_16j.log, and the error is

" ERROR: Problem processing formula 1: “PMC=PM10-PM2\_5”  
\*\*\* ERROR ABORT in subroutine FORMLIST

I am using all the input files as it is from EPA’s 2016v3 modeling except for EMIS file.

Would you please help me with this?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![eyth.alison](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@eyth.alison](https://forum.cmascenter.org/u/eyth.alison)\
**Post date:** [May 19, 2023, 5:15pm UTC](https://forum.cmascenter.org/t/error-abort-in-subroutine-formlist/4127/2 "2023-05-19T17:15:47Z")

</div>

Can you please attach your log file and stdout?

---

<div class="post-metadata">

**Author:** ![Iqbal](https://avatars.discourse-cdn.com/v4/letter/i/bc8723/32.png) [@Iqbal](https://forum.cmascenter.org/u/Iqbal)\
**Post date:** [May 19, 2023, 5:43pm UTC](https://forum.cmascenter.org/t/error-abort-in-subroutine-formlist/4127/3 "2023-05-19T17:43:06Z")

</div>

Hi @eyth.alison

Please see the attached files  
[Terminal\_out.txt](https://forum.cmascenter.org/uploads/short-url/iRO5RRYoIB5uSPpqy7RSeOBLGUB.txt) (4.8 KB)  
[smkinven\_ptnonipm\_2023gf\_16j.txt](https://forum.cmascenter.org/uploads/short-url/AmFLoy1WOncE5U48x3tZwTip8bT.txt) (11.0 KB)

Thanks in advance

---

<div class="post-metadata">

**Author:** ![eyth.alison](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@eyth.alison](https://forum.cmascenter.org/u/eyth.alison)\
**Post date:** [May 19, 2023, 5:53pm UTC](https://forum.cmascenter.org/t/error-abort-in-subroutine-formlist/4127/4 "2023-05-19T17:53:00Z")

</div>

Have you run with the inventories that come with the 2016v3 platform as a first cut to make sure that works before substituting in your own inventory?

The error suggests that your provided inventory doesn’t have any PM. If no PM is expected for your work, then you should set SMKINVEN\_FORMULA to blank (“”).

If there is PM in your inventory, then there is something wrong with the inventory and we suggest attaching at least a portion of the inventory so we can take a look.

---

<div class="post-metadata">

**Author:** ![eyth.alison](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@eyth.alison](https://forum.cmascenter.org/u/eyth.alison)\
**Post date:** [May 19, 2023, 6:58pm UTC](https://forum.cmascenter.org/t/error-abort-in-subroutine-formlist/4127/5 "2023-05-19T18:58:40Z")

</div>

Can you upload a portion of your FLATFILE.csv inventory file?

I see in the log it says: WARNING: No kept pollutants found at line 29 . The source will be dropped.

Does the inventory have PM sources?

---

<div class="post-metadata">

**Author:** ![Iqbal](https://avatars.discourse-cdn.com/v4/letter/i/bc8723/32.png) [@Iqbal](https://forum.cmascenter.org/u/Iqbal)\
**Post date:** [May 19, 2023, 7:33pm UTC](https://forum.cmascenter.org/t/error-abort-in-subroutine-formlist/4127/6 "2023-05-19T19:33:58Z")

</div>

Hi @eyth.alison

I checked my FLATFILE, where I don’t have PM. I only have NOx. So, I used

SMKINVEN\_FORMULA “”

Then I ran the onetime script, where I can see segmantation fault core dumped error with  
message " ERROR detected in Smkreport". Then I checked the smkreport file, I don’t see any error. the last line is " Selecting records" then nothing else. Which looks to me, run is incomplete?

Would you please look at it?  
[smkreport\_ptnonipm\_2023gf\_16j\_inv.txt](https://forum.cmascenter.org/uploads/short-url/fr3G0rh3QsuJHxbsprOP52ebiL9.txt) (7.3 KB)

Please see the part of the terminal output

> Blockquote 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 ”).

```
 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.

```

Segmentation fault (core dumped)  
0.3u 0.0s 0:01.01 31.6% 0+0k 25760+24io 21pf+0w  
now checking log file /Air/emismod/2016/v3/FOLDER/2023gf\_16j/intermed/ptnonipm/logs/smkreport\_ptnonipm\_2023gf\_16j\_inv.log

* * *

- ERROR detected in logfile:
- /Air/emismod/2016/v3/FOLDER/2023gf\_16j/intermed/ptnonipm/logs/smkreport\_ptnonipm\_2023gf\_16j\_inv.log

* * *

ERROR detected in Smkreport  
ERROR: Running qa\_run for inv  
log analyzer  
Getting message data (might take some time)…  
grep: /Air/emismod/2016/v3/FOLDER/2023gf\_16j/intermed/ptnonipm/logs: Is a directory  
grep: /Air/emismod/2016/v3/FOLDER/2023gf\_16j/intermed/ptnonipm/logs: Is a directory  
Finished getting data  
Classifying message types…  
Total number of known messages: 24  
Total number of unknown messages: 0  
Level 3 analysis…  
Finished classifying message types  
log analyzer  
Getting message data (might take some time)…  
grep: /Air/emismod/2016/v3/FOLDER/2023gf\_16j/intermed/ptnonipm/logs: Is a directory  
grep: /Air/emismod/2016/v3/FOLDER/2023gf\_16j/intermed/ptnonipm/logs: Is a directory  
Finished getting data  
Classifying message types…  
Total number of known messages: 24  
Total number of unknown messages: 0  
Level 1 analysis…  
Finished classifying message types  
Testing for exit priority

---

<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:** [May 19, 2023, 7:40pm UTC](https://forum.cmascenter.org/t/error-abort-in-subroutine-formlist/4127/7 "2023-05-19T19:40:34Z")

</div>

It could conceivably be useful to compile for one of the debug/traceback/check-everything binary types (I/O API `$BIN` binary compile types for `Makeinclude.$BIN` of the form `Makeinclude.*dbg`).

That will give you “traceback” info that should tell you at what line of what subroutine the seg-fault happened. Then at least you’ll have some idea where the problem is…

---

<div class="post-metadata">

**Author:** ![eyth.alison](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@eyth.alison](https://forum.cmascenter.org/u/eyth.alison)\
**Post date:** [May 19, 2023, 8:23pm UTC](https://forum.cmascenter.org/t/error-abort-in-subroutine-formlist/4127/8 "2023-05-19T20:23:13Z")

</div>

Smkreport is crashing on the reports that generate emissions by speciation profile for PM2.5 and VOC, since neither of those pollutants is in the inventory.

The easiest thing to do would be to skip Smkreport altogether by adding this line to run\_settings.txt:

ptnonipm, 12US1, smkreport, ALL, 0, 0, N

Or, if you want to run Smkreport, you could:

- Use the same REPCONFIG\_INV as the canada\_ag sector

- Remove REPCONFIG\_INV3 from the ptnonipm run script

---

<div class="post-metadata">

**Author:** ![Iqbal](https://avatars.discourse-cdn.com/v4/letter/i/bc8723/32.png) [@Iqbal](https://forum.cmascenter.org/u/Iqbal)\
**Post date:** [May 19, 2023, 8:46pm UTC](https://forum.cmascenter.org/t/error-abort-in-subroutine-formlist/4127/9 "2023-05-19T20:46:01Z")

</div>

Hi @eyth.alison

As your suggestions,

I added a line in the run\_settings.txt,  
[run\_settings.txt](https://forum.cmascenter.org/uploads/short-url/6DESjTJwhxsXMGMZSkvlcKYlpwM.txt) (1.1 KB)  
But still same error. If I add that line, shouldn’t it remove smkreport file?:

# 

# NOTES TO CONSIDER WHEN BUILDING THIS DATASET:

# 1) If running the Temporal program for multiple dates, you can either turn

# off all or none of the dates per run. To do this, make sure that the

# date range given includes the FIRST date of each Temporal program run.

# 2) Entries do not need to be here for a “Yes”, since the defaults in the

# main run script are assumed to be “Yes”. However, including “Y” entries

# will not hurt anything.

# 3) Sector-specific “Y” entries will override Sector = “all” “N” entries

# for the same grid, program, part, and date range.

# 4) (Added by C. Allen) If you set Temporal to Y, then this induces a bug

# where the Temporal files are deleted after they are created. To avoid,

# never set Temporal to Y to override an “all=N” setting (only use N settings).

# 5) (Added by C. Allen) The domain totals program (“domain”) doesn’t work for

# files larger than 2 GB. Therefore, it is turned off for 12EUS1.

# 

# Column labels:

# Sector, Grid, Environment Variable Name, Part, Start Date, End Date, Value

ptnonipm, 12US2, smkreport, ALL, 0, 0, N

---

<div class="post-metadata">

**Author:** ![Iqbal](https://avatars.discourse-cdn.com/v4/letter/i/bc8723/32.png) [@Iqbal](https://forum.cmascenter.org/u/Iqbal)\
**Post date:** [May 19, 2023, 9:22pm UTC](https://forum.cmascenter.org/t/error-abort-in-subroutine-formlist/4127/10 "2023-05-19T21:22:17Z")

</div>

Hi @eyth.alison

Using REPCONFIG\_INV as the canada\_ag sector and removing REPCONFIG\_INV3 works for the ‘onetime’ script for ptnonipm.

But when I tried run ‘daily’ script  
[Annual\_ptnonipm\_daily\_12US1\_2023gf\_16j\_WC.txt](https://forum.cmascenter.org/uploads/short-url/DY6gxqFjlXWgnH3E25XxlmEzak.txt) (6.6 KB)

I get the too many arugements error in terminal. What could be the reason?. Please see below terminal output

> Linux2\_x86\_64ifort  
> NOTE: Default MONTH setting to ‘jan’  
> /bin/ls: No match.  
> /bin/ls: No match.  
> /bin/ls: No match.  
> /bin/ls: No match.  
> source: Too many arguments.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![eyth.alison](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@eyth.alison](https://forum.cmascenter.org/u/eyth.alison)\
**Post date:** [May 22, 2023, 1:23pm UTC](https://forum.cmascenter.org/t/error-abort-in-subroutine-formlist/4127/11 "2023-05-22T13:23:16Z")

</div>

Can you please upload your standard output?

Also, try removing /bin/ before ls, to see if that makes a difference

---

<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:** [May 30, 2023, 12:35pm UTC](https://forum.cmascenter.org/t/error-abort-in-subroutine-formlist/4127/12 "2023-05-30T12:35:35Z")

</div>

Was this issue resolved by using tcsh instead of csh?

---

<div class="post-metadata">

**Author:** ![Iqbal](https://avatars.discourse-cdn.com/v4/letter/i/bc8723/32.png) [@Iqbal](https://forum.cmascenter.org/u/Iqbal)\
**Post date:** [May 30, 2023, 1:03pm UTC](https://forum.cmascenter.org/t/error-abort-in-subroutine-formlist/4127/13 "2023-05-30T13:03:46Z")

</div>

Yes, i solved the issue using tcsh.
