# CMAQ5.3.2-ISAM starts running with an error:File not available

**URL:** https://forum.cmascenter.org/t/cmaq5-3-2-isam-starts-running-with-an-error-file-not-available/3390
**Category:** CMAQ-ISAM
**Tags:** cmaqsmoke, admin, cmaq
**Created:** [June 29, 2022, 3:49am UTC](https://forum.cmascenter.org/t/cmaq5-3-2-isam-starts-running-with-an-error-file-not-available/3390 "2022-06-29T03:49:07Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![ghb980003021](https://avatars.discourse-cdn.com/v4/letter/g/f1d935/32.png) [@ghb980003021](https://forum.cmascenter.org/u/ghb980003021)
#### Post date: [June 29, 2022, 3:49am UTC](https://forum.cmascenter.org/t/cmaq5-3-2-isam-starts-running-with-an-error-file-not-available/3390/1 "2022-06-29T03:49:07Z")

</div>

Hello everyone,  
I am currently using CMAQ\_ISAM for PM2.5 source apportionment. I am getting the following error at runtime. What is the problem and how can I fix it?

```
 =========================================================
 |>--- OPEN OR CREATE AVERAGE CONCENTRATION FILE ---<|
 =========================================================
 A_CONC_1 :/home/cmaq/CMAQ-5.3.2/data/output_CCTM_c2001/CCTM_ACONC_v532_ISAM_gcc_c2001_20200101.nc
 
 >>--->> WARNING in subroutine OPEN3
 File not available.
 Could not open A_CONC_1 file for update - try to open new

```

Interestingly, when I reduce the total number of species tracked in the isam\_control.txt file to less than 15 (tracking only EC, OC, etc.), CMAQ runs fine, but when I increase the number of species tracked to 16 (tracking nitrate species) it does not run and I still get the error.  
I have attached the isam\_control.txt file below. I have a total of 26 area tags.  
Thank you for your answer!  
[isam\_control\_20.txt](https://forum.cmascenter.org/uploads/short-url/rGatfNQqPxSOUMdQoXHDpvab3Q9.txt) (10.4 KB)

---

<div class="post-metadata">

### Author: ![FengLiu](https://avatars.discourse-cdn.com/v4/letter/f/49beb7/32.png) [@FengLiu](https://forum.cmascenter.org/u/FengLiu)
#### Post date: [June 29, 2022, 10:18pm UTC](https://forum.cmascenter.org/t/cmaq5-3-2-isam-starts-running-with-an-error-file-not-available/3390/2 "2022-06-29T22:18:05Z")

</div>

What you show is a WARNING message not an error. Please attach full log file instead of part of it.

Please check your EmissCtrl file or attach it here for review.

Hope it is helpful.

Thanks.

---

<div class="post-metadata">

### Author: ![ghb980003021](https://avatars.discourse-cdn.com/v4/letter/g/f1d935/32.png) [@ghb980003021](https://forum.cmascenter.org/u/ghb980003021)
#### Post date: [June 30, 2022, 1:47am UTC](https://forum.cmascenter.org/t/cmaq5-3-2-isam-starts-running-with-an-error-file-not-available/3390/3 "2022-06-30T01:47:11Z")

</div>

Thank you for your reply.  
I have attached the documents you need below for your review.  
Thanks again!  
[CTM\_LOG\_031\_v532\_ISAM\_gcc\_c2001\_20200101.txt](https://forum.cmascenter.org/uploads/short-url/qWBl0jHcnDeEd7i6MOCf1qSJCak.txt) (37.0 KB)  
[EmissCtrl\_cb6r3\_ae6\_aq.txt](https://forum.cmascenter.org/uploads/short-url/zpxYWxbwM5k1XOpzfJDH8EBQoAl.txt) (31.0 KB)

---

<div class="post-metadata">

### Author: ![FengLiu](https://avatars.discourse-cdn.com/v4/letter/f/49beb7/32.png) [@FengLiu](https://forum.cmascenter.org/u/FengLiu)
#### Post date: [June 30, 2022, 5:35pm UTC](https://forum.cmascenter.org/t/cmaq5-3-2-isam-starts-running-with-an-error-file-not-available/3390/4 "2022-06-30T17:35:50Z")

</div>

First, all regions like BC, CC, CF … in your isam\_control\_20.txt are not defined in section of &RegionsRegistry in your EmissCtrl\_cb6r3\_ae6\_aq.txt.

Second, you should find ERROR from all log files when you run CMAQ in parallel way, the log file CTM\_LOG\_031 could not tell you what is wrong with your script or input data, please use

grep ERROR CTM\_LOG\* to find error message from all log files

I hope it is helpful.

---

<div class="post-metadata">

### Author: ![ghb980003021](https://avatars.discourse-cdn.com/v4/letter/g/f1d935/32.png) [@ghb980003021](https://forum.cmascenter.org/u/ghb980003021)
#### Post date: [July 1, 2022, 2:05am UTC](https://forum.cmascenter.org/t/cmaq5-3-2-isam-starts-running-with-an-error-file-not-available/3390/5 "2022-07-01T02:05:10Z")

</div>

Thank you for your answer.  
I have checked the CTM\_LOG file and found the following error in one of the log files. I have attached the log file with the error below for your review.Since the log file was too large (\>8MB), I trimmed some of the content in between to be able to upload it here.  
[CTM\_LOG\_000\_v532\_ISAM\_gcc\_c2001\_20200101.txt](https://forum.cmascenter.org/uploads/short-url/oQFo4zTPwDWWveL4aZaYE0LNI8w.txt) (4.6 MB)

```auto
     Variable name VNAME3D( 543 ) = " " duplicates VNAME3D( 532 ) = " " in file "SA_CONC_1"
     Variable name VNAME3D( 543 ) = " " duplicates VNAME3D( 533 ) = " " in file "SA_CONC_1"
     Variable name VNAME3D( 543 ) = " " duplicates VNAME3D( 534 ) = " " in file "SA_CONC_1"
     Variable name VNAME3D( 543 ) = " " duplicates VNAME3D( 535 ) = " " in file "SA_CONC_1"
     Variable name VNAME3D( 543 ) = " " duplicates VNAME3D( 536 ) = " " in file "SA_CONC_1"
     Variable name VNAME3D( 543 ) = " " duplicates VNAME3D( 537 ) = " " in file "SA_CONC_1"
     Variable name VNAME3D( 543 ) = " " duplicates VNAME3D( 538 ) = " " in file "SA_CONC_1"
     Variable name VNAME3D( 543 ) = " " duplicates VNAME3D( 539 ) = " " in file "SA_CONC_1"
     Variable name VNAME3D( 543 ) = " " duplicates VNAME3D( 540 ) = " " in file "SA_CONC_1"
     Variable name VNAME3D( 543 ) = " " duplicates VNAME3D( 541 ) = " " in file "SA_CONC_1"
     Variable name VNAME3D( 543 ) = " " duplicates VNAME3D( 542 ) = " " in file "SA_CONC_1"
>>--->> WARNING in subroutine OPEN3
     Could not open SA_CONC_1 : Maximum number of files already opened.
    
     *** ERROR ABORT in subroutine OP_SA on PE 000           
     Could not create SA_CONC_1 file
 PM3EXIT: DTBUF 0:00:00 Jan. 1, 2020  
     Date and time 0:00:00 Jan. 1, 2020 (2020001:000000)

```

Also, regarding the issue that the regions in isam\_control.txt are not defined in the EmissCtrl file. I also did not define the tracking regions one by one in the EmissCtrl file when I successfully simulated ISAM. Because I have set the Region Label and Variable on File to ‘ALL’ in &RegionsRegistry, each region in the region file will be read automatically during simulation, so I don’t need to define them individually.  
Thanks again for your answer!

---

<div class="post-metadata">

### Author: ![sergey](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@sergey](https://forum.cmascenter.org/u/sergey)
#### Post date: [July 5, 2022, 2:52pm UTC](https://forum.cmascenter.org/t/cmaq5-3-2-isam-starts-running-with-an-error-file-not-available/3390/6 "2022-07-05T14:52:34Z")

</div>

It looks like it is having trouble creating variable names for the ISAM output files. I am not exactly sure why, but because you can run with 1 less tag successfully, it is possible that you are running into memory limits on your machine. Is there a way you can create the amount of memory available for this job?

Sergey

---

<div class="post-metadata">

### Author: ![ghb980003021](https://avatars.discourse-cdn.com/v4/letter/g/f1d935/32.png) [@ghb980003021](https://forum.cmascenter.org/u/ghb980003021)
#### Post date: [July 6, 2022, 3:00am UTC](https://forum.cmascenter.org/t/cmaq5-3-2-isam-starts-running-with-an-error-file-not-available/3390/7 "2022-07-06T03:00:41Z")

</div>

Thank you for your answer!  
I am currently using ISAM for sector and regional source apportionment.  
The reason I set up the tags this way is that I can run the simulation only once and then calculate it into sector and regional sources with the Combine tool, so I don’t have to do separate sector and regional source apportionment. How can I reduce the number of tags to achieve my goal?  
Thanks again!

---

<div class="post-metadata">

### Author: ![sergey](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@sergey](https://forum.cmascenter.org/u/sergey)
#### Post date: [July 7, 2022, 5:48pm UTC](https://forum.cmascenter.org/t/cmaq5-3-2-isam-starts-running-with-an-error-file-not-available/3390/8 "2022-07-07T17:48:13Z")

</div>

Sorry, I mistyped in the response… I meant to write: “Is there any way to increase the amount of memory for this job?”

I don’t know how to reduce the number of tags for you. That depends entirely on your application and your goals for the output.

Sergey

---

<div class="post-metadata">

### Author: ![hogrefe.christian](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hogrefe.christian](https://forum.cmascenter.org/u/hogrefe.christian)
#### Post date: [July 8, 2022, 12:21pm UTC](https://forum.cmascenter.org/t/cmaq5-3-2-isam-starts-running-with-an-error-file-not-available/3390/9 "2022-07-08T12:21:32Z")

</div>

Your setup very likely is running up against the 2048 maximum variables-per-file limit set in your I/O API library. The product of tracked species (determined by the tag classes) and tags (region/emission stream combinations) cannot exceed that number. Since you define more than 100 tags, adding the nitrate tag class to all the other tag classes likely pushes you above that limit.

---

<div class="post-metadata">

### Author: ![ghb980003021](https://avatars.discourse-cdn.com/v4/letter/g/f1d935/32.png) [@ghb980003021](https://forum.cmascenter.org/u/ghb980003021)
#### Post date: [July 14, 2022, 9:07am UTC](https://forum.cmascenter.org/t/cmaq5-3-2-isam-starts-running-with-an-error-file-not-available/3390/10 "2022-07-14T09:07:00Z")

</div>

Thank you for your answer.  
Yes, that was the problem, I installed the ioapi-large version as suggested in the user manual and the problem was solved.
