Opened 3 years ago

Closed 3 years ago

#2367 closed help (answered)

Suite failed: Atmos Main - GET_EMFILE_REC

Reported by: s.varma13 Owned by: um_support
Component: UM Model Keywords: GET_EMFILE_REC
Cc: Platform: Monsoon2
UM Version: 10.8



My suite u-as619 failed nearing the end of its run with the following error:

???!!!???!!!???!!!???!!!???!!! ERROR ???!!!???!!!???!!!???!!!???!!!
? Error code: 493
? Error from routine: GET_EMFILE_REC
? Error message: Invalid time record 2, End-of-file reached ?
? Error from processor: 200
? Error number: 42

Should I just retriggger it?

Many thanks


Change History (14)

comment:1 Changed 3 years ago by s.varma13

Update: 2 of my other suites also failed for the same reason so I have just retriggered them all.

Hope that was the correct thing to do.


comment:2 Changed 3 years ago by grenville


I'm looking at this now - the problem appears to be a mismatch between the UKCA emission data and your config.

Re-triggering won't fix that


comment:3 Changed 3 years ago by s.varma13

Hi Grenville

Yes, the suite failed again. I am using year specific biomass burning files - could that be the issue? However, I am running 2 other simulations with the same setup. The other 2 failed respectively in 1999 (u-as927) and 2008 (u-as983). The latter I had run successfully before without any issue. However these 2 are still running after retriggering.

Thanks a lot.


comment:4 Changed 3 years ago by grenville


/projects/ukca-admin/inputs/ancil/gregorian/n96e/ukca_emiss/cmip5/1970_2010/v2/ only has data to 2010 (for example) - so the model will fail after that. Please check your ancillary data.


comment:5 Changed 3 years ago by s.varma13

Hi Grenville, could you please let me know where in my suite has this been selected. I changed all the ancillaries in /roses/u-as691/app/um/rose-app.conf under ukca_em_files.

Thank you.


comment:6 Changed 3 years ago by luke

Firstly, can I apologise for the incredibly unhelpful error message. It really should give the name of the file giving the problem!

The DMS file Grenville pointed to is the likely culprit - the error code of 493 is the minimum number of time fields it was expecting, meaning that the problematic file will have less than this, and the DMS file has 492, ending 2010-12-01. This is a rather strange date for a file (usually they are the middle of the month), but the fact that your model (I checked u-as691, which I think is the one you meant) died on 2010-11-29. While technically there is one time-point after this in the file, the time interpolation would need more after this, hence the error.

The data is in the netCDF file itself. You'll need to make a new DMS emissions file to allow the job to proceed. I'd also suggest looking at the other files to see if similar things are about to happen to them.

comment:7 Changed 3 years ago by luke

As a follow-up, for more information on netCDF emissions, see the UKCA tutorial

and the latest version of the UMDP

comment:8 Changed 3 years ago by s.varma13

Thanks a lot Luke, I had changed the source of my emission files to cover me to 2015 or so I thought:/roses/u-as691/app/um/rose-app.conf under ukca_em_files. Could you please let me know where in my suite it is being directed to the incorrect files ending in 2010?

When I redirect the suite to files after 2010 do I have to run the suite from the beginning as it is now using new files?

comment:9 Changed 3 years ago by luke

Have you done a

rose suite-run --reload

just re-triggering wouldn't do anything I think.

comment:10 Changed 3 years ago by s.varma13

Sorry Luke - my existing suite before the fail had files up to 2015 but for some reason it is using files to 2010 and I do not know why. Could you please point me to the place in the suite where it is using the DMS File you and Grenville mentioned above?

Thank you.


comment:11 Changed 3 years ago by luke

Ah - I thought that you'd only just changed the files.

You can find the files the UM is reading in the job.out file. These are from your u-as691 /home/d04/suvar/cylc-run/u-as691/log/job/20101101T0000Z/atmos_main/NN/job.out

ukca_em_dir =
ukca_em_files(  1) = /projects/ukca-admin/inputs/ancil/gregorian/n96e/ukca_emiss/cmip5/1970_2010/v2/
ukca_em_files(  2) = /projects/ukca-admin/inputs/ancil/gregorian/n96e/ukca_emiss/cmip5/2000/v2/
ukca_em_files(  3) = /projects/ukca-admin/inputs/ancil/gregorian/n96e/ukca_emiss/aerocom/v1/
ukca_em_files(  4) = /projects/ukca-admin/inputs/ancil/gregorian/n96e/ukca_emiss/cmip5/2000/v2/
ukca_em_files(  5) = /projects/ukca-admin/inputs/ancil/gregorian/n96e/ukca_emiss/cmip5/2000/v2/
ukca_em_files(  6) = /projects/ukca-admin/inputs/ancil/gregorian/n96e/ukca_emiss/cmip5/2000/v2/
ukca_em_files(  7) = /projects/ukca-admin/inputs/ancil/gregorian/n96e/ukca_emiss/cmip5/2000/v2/
ukca_em_files(  8) = /projects/ukca-admin/inputs/ancil/gregorian/n96e/ukca_emiss/cmip5/2000/v3/
ukca_em_files(  9) = /projects/ukca-admin/inputs/ancil/gregorian/n96e/ukca_emiss/cmip5/2000/v2/
ukca_em_files( 10) = /projects/ukca-admin/inputs/ancil/gregorian/n96e/ukca_emiss/cmip5/2000/v2/
ukca_em_files( 11) = /projects/ukca-admin/inputs/ancil/gregorian/n96e/ukca_emiss/cmip5/2000/v2/
ukca_em_files( 12) = /projects/ukca-admin/inputs/ancil/gregorian/n96e/ukca_emiss/cmip5/2000/v2/
ukca_em_files( 13) = /projects/ukca-admin/inputs/ancil/gregorian/n96e/ukca_emiss/cmip5/2000/v2/
ukca_em_files( 14) = /projects/ukca-admin/inputs/ancil/gregorian/n96e/ukca_emiss/cmip5/1970_2010/v2/
ukca_em_files( 15) = /projects/ukca-admin/inputs/ancil/gregorian/n96e/ukca_emiss/cmip5/2000/v2/
ukca_em_files( 16) = /projects/ancils/cmip6/ancils/n96e/timeseries_1850-2014/AerosolChemistryEmissions/v1/
ukca_em_files( 17) = /projects/ancils/cmip6/ancils/n96e/timeseries_1850-2014/AerosolChemistryEmissions/v1/
ukca_em_files( 18) = /projects/ancils/cmip6/ancils/n96e/timeseries_1850-2014/AerosolChemistryEmissions/v1/
ukca_em_files( 19) = /projects/ancils/cmip6/ancils/n96e/timeseries_1850-2014/AerosolChemistryEmissions/v1/
ukca_em_files( 20) = /projects/ancils/cmip6/ancils/n96e/timeseries_1850-2014/AerosolChemistryEmissions/v1/
ukca_em_files( 21) = /projects/ancils/cmip6/ancils/n96e/timeseries_1850-2014/AerosolChemistryEmissions/v1/
ukca_em_files( 22) = /projects/ancils/cmip6/ancils/n96e/timeseries_1850-2014/AerosolChemistryEmissions/v1/
ukca_em_files( 23) = /projects/ancils/cmip6/ancils/n96e/timeseries_1850-2014/AerosolChemistryEmissions/v1/
ukca_em_files( 24) = /projects/ancils/cmip6/ancils/n96e/timeseries_1850-2014/AerosolChemistryEmissions/v1/
ukca_em_files( 25) = /projects/ancils/cmip6/ancils/n96e/timeseries_1850-2014/AerosolChemistryEmissions/v1/

These are set in using the ukca_em_files variable in the Section 34 - UKCA: UK Aerosols and Chemistry namelist panel of the um app. The current setting for these is:


So the one you want to change is the '$UM_NETCDF_UKCAEMISS_DMS_DIR/$UM_NETCDF_UKCAEMISS_DMS_FILE' one (in fact the first). You can do this simply by deleting this entry and then pointing to your own.

More generally, these are set by environment variables, which are defined by the install_ancil app. This is pointing to this directory:


This directory contains

[12:47:00 hadlk@exvmsrose GA7p1_AMIP]$ ls -al
total 24
drwxr-xr-x. 2 hadzm ukca-admin 4096 Oct 27 16:23 ./
drwxr-xr-x. 4 hadzm ukca-admin 4096 May 19  2017 ../
-rwxr-xr-x. 1 hadzm ukca-admin 7692 Feb 27  2017 ancil_fnames*
lrwxrwxrwx. 1 hadzm mo_users     10 Oct 27 16:23 ancils -> ancil_vers*
-rwxr-xr-x. 1 hadzm ukca-admin 6194 Feb 27  2017 ancil_vers*

The ancil_vers contains the settings for the directories, e.g.

export UM_NETCDF_UKCAEMISS_DMS_DIR=$UM_UKCA_N96EDIR/ukca_emiss/cmip5/1970_2010/v2


export UM_UKCA_N96EDIR=${UM_UKCA_N96EDIR:-/projects/ukca-admin/inputs/ancil/gregorian/n96e}

The ancil_fnames contains the filenames, e.g.


So this is how the files were set.

If you want to change the files I suggest not bothering with the ancil versions/filenames unless you really want to (it can be handy when setting up an experiment set, for instance), and just put the files in as a list to the ukca_em_files varialble. If they are all in one place, and cover all the required files, then you can also make use of the ukca_em_dir variable, although this isn't necessary (as can be seen from current settings).

comment:12 Changed 3 years ago by s.varma13

Thank you Luke - that is really helpful.

I have contacted the Met Office to recommend alternate files I can use to take my run to 2014.

Can you keep this ticket open so that I can come back to it if I have any problems changing the source of the files and particularly when I restart the suite.

Have a good weekend.


comment:13 Changed 3 years ago by s.varma13

Hi Luke

The Met Office says I need to start suite from the beginning with the change of the emission files. Please therefore close this ticket.

Many thanks for your help.


comment:14 Changed 3 years ago by luke

  • Resolution set to answered
  • Status changed from new to closed

No problem! All the best.

Note: See TracTickets for help on using tickets.