Error running movesmerg for RPD


I am trying to run RPD for my domain using EPA platform 2017. However, in PART4, I am getting the following error without any specific error in my log file.

forrtl: severe (61): format/variable-type mismatch, unit -5, file Internal Formatted Write
Image PC Routine Line Source
movesmrg 000000000065EEFB Unknown Unknown Unknown
movesmrg 000000000069703C Unknown Unknown Unknown
movesmrg 0000000000425D49 rdmrclist_ 273 rdmrclist.f
movesmrg 0000000000441AC0 setrefcnty_ 221 setrefcnty.f
movesmrg 0000000000406CAD MAIN__ 379 movesmrg.f
movesmrg 0000000000405412 Unknown Unknown Unknown 00007FF31B8C6555 __libc_start_main Unknown Unknown
movesmrg 0000000000405329 Unknown Unknown Unknown
8.025u 0.230s 0:08.28 99.6% 0+0k 0+0io 0pf+0w

Is anyone know what is causing the problem? Or it is related to which input file?

Can you provide the rest of your log file?

What type of computer are you running on – has some of the process worked? Do the intermediate files have data in them?

I was able to fix the issue. I was due to the emission factor processing step.

This is actually a bug: the original code forf RDMRCLIST has the following at lines 273-275:

WRITE( MESG, 94010 ) 'ERROR: No factor file found ' //
& 'for reference county', MCREFIDX( I,1 ), 'in ' //
& 'reference county factors list.'

but the format 94010 needs an INTEGER where MCREFIDX( I,1 ) is. However, MCREFIDX( I,1 ) is a CHARACTER string.
The code instead should have:

MESG = 'ERROR: No factor file found ' //
& 'for reference county'// MCREFIDX( I,1 )//
& ' in reference county factors list.