# Running CCTM in CMAQ failed

**URL:** <https://forum.cmascenter.org/t/running-cctm-in-cmaq-failed/4648>\
**Category:** Run Time Errors and Issues\
**Tags:** cmaq\
**Created:** [January 21, 2024, 5:52pm UTC](https://forum.cmascenter.org/t/running-cctm-in-cmaq-failed/4648 "2024-01-21T17:52:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![penguin](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@penguin](https://forum.cmascenter.org/u/penguin)\
**Post date:** [January 21, 2024, 5:52pm UTC](https://forum.cmascenter.org/t/running-cctm-in-cmaq-failed/4648/1 "2024-01-21T17:52:33Z")

</div>

Hello, I just started to learn to run CMAQ, I use CMAQv5.3.3, where mcip file is run out by run\_mcip.csh, emission file is given by the teacher, initial boundary file is processed by mozart2camx\_v3.2.1, these three steps did not report errors, but there are problems when running cctm.

 ![问题1](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/d/d5d6c4ddc5907aea849ceaa987c47325eaa4e61d.png)  
This is my environment:  
 ![环境](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/6/67ee2e2d5f1264a950b11813c1a2848daee08e57.png)

Since there are many run scripts in CCTM, I ran one of them randomly.

---

<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:** [January 21, 2024, 6:02pm UTC](https://forum.cmascenter.org/t/running-cctm-in-cmaq-failed/4648/2 "2024-01-21T18:02:56Z")

</div>

See the I/O API “Troubleshooting” page, [https://cjcoats.github.io/ioapi/ERRORS.html#inst](https://cjcoats.github.io/ioapi/ERRORS.html#inst): you have an executable compiled from a different machine architecture that you’re running on.

---

<div class="post-metadata">

**Author:** ![penguin](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@penguin](https://forum.cmascenter.org/u/penguin)\
**Post date:** [January 22, 2024, 6:51am UTC](https://forum.cmascenter.org/t/running-cctm-in-cmaq-failed/4648/3 "2024-01-22T06:51:21Z")

</div>

I read the content below the link but still can’t find a solution. Do you mean my I/O API needs to be updated or something else? Also, confusing, I ran cctm with CMAQv5.3.3 or CMAQ5.4 with this problem, but not with CMAQv5.2.1, but with version 5.2.1 I ran other problems, as follows:

 ![问题2](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/0/0a1d20cc368e9d0baae38cb09957826828700cd6.png)

Here are the last lines of the log file:  
Value for CTM\_PROCAN: N returning FALSE  
PA\_DATAGEN: Process Analysis is not activated  
application called MPI\_Abort(MPI\_COMM\_WORLD, 538976288) - process 15  
date  
Mon Jan 22 22:04:01 CST 2024  
if ( ! -e /data/home/pzy/CMAQ5.4/CMAQ-5.2.1/data/output\_CCTM\_v52\_intel\_160702/LOGS ) then  
mv CTM\_LOG\_001.v52\_intel\_160702\_20230701 CTM\_LOG\_002.v52\_intel\_160702\_20230701 CTM\_LOG\_003.v52\_intel\_160702\_20230701 CTM\_LOG\_004.v52\_intel\_160702\_20230701 CTM\_LOG\_005.v52\_intel\_160702\_20230701 CTM\_LOG\_006.v52\_intel\_160702\_20230701 CTM\_LOG\_007.v52\_intel\_160702\_20230701 CTM\_LOG\_008.v52\_intel\_160702\_20230701 CTM\_LOG\_009.v52\_intel\_160702\_20230701 CTM\_LOG\_010.v52\_intel\_160702\_20230701 CTM\_LOG\_011.v52\_intel\_160702\_20230701 CTM\_LOG\_012.v52\_intel\_160702\_20230701 CTM\_LOG\_013.v52\_intel\_160702\_20230701 CTM\_LOG\_014.v52\_intel\_160702\_20230701 CTM\_LOG\_015.v52\_intel\_160702\_20230701 /data/home/pzy/CMAQ5.4/CMAQ-5.2.1/data/output\_CCTM\_v52\_intel\_160702/LOGS  
setenv NEW\_START false  
set TODAYG = `date -ud "${TODAYG}+1days" +%Y-%m-%d`  
date -ud 2023-07-01+1days +%Y-%m-%d  
set TODAYJ = `date -ud "${TODAYG}" +%Y%j`  
date -ud 2023-07-02 +%Y%j  
end  
while ( 2023183 \< = 2023182 )  
exit

---

<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:** [January 22, 2024, 12:17pm UTC](https://forum.cmascenter.org/t/running-cctm-in-cmaq-failed/4648/4 "2024-01-22T12:17:36Z")

</div>

It means that someone built your CCTM on some other machine that isn’t fully hardware-compatible with the machine you’re using. You need to re-build the whole thing (starting with the netCDF and I/O API libraries) yourself. On the machine you’re using to run the CCTM.
