tallies.xml parse error

Hi all,

I’m working with a tallies.xml file that produces a parse error with OpenMC v0.5.4 and v0.6.0. However, the tallies.xml file works fine with OpenMC v0.5.3, and it seems to be compliant with the format specified in the most recent OpenMC manual.

The tallies.xml file (as well as the rest of the model) are from one of the MIT CRPG workshops. I’m working with the tallying demo, from here:
https://github.com/mit-crpg/openmc-workshop/blob/master/examples/demos/tallying/tallies.xml

The demo works fine with v0.5.3, but more recent versions fail to read the tallies.xml. This is the error I get with OpenMC v0.6.0, after compiling with gfortran:

===========================================================================
========================> INITIALIZATION <=========================

Reading settings XML file…
Reading cross sections XML file…
Reading geometry XML file…
Reading materials XML file…
Reading tallies XML file…
PARSE_ERR
81 runParser
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
libintlc.so.5 00007FEBC7CE92C9 Unknown Unknown Unknown
libintlc.so.5 00007FEBC7CE7B9E Unknown Unknown Unknown
libifcoremt.so.5 00007FEBC96DD79F Unknown Unknown Unknown
libifcoremt.so.5 00007FEBC9642279 Unknown Unknown Unknown
libifcoremt.so.5 00007FEBC96538D3 Unknown Unknown Unknown
libpthread.so.0 00007FEBC7ACFCB0 Unknown Unknown Unknown
openmc 00000000009CCF59 Unknown Unknown Unknown
openmc 0000000000931867 Unknown Unknown Unknown
openmc 0000000000934BBB Unknown Unknown Unknown
openmc 00000000006AB986 xml_interface_mp_ 52 xml_interface.F90
openmc 00000000008578ED input_xml_mp_read 1788 input_xml.F90
openmc 0000000000826D32 input_xml_mp_read 39 input_xml.F90
openmc 000000000058E1D7 initialize_mp_ini 75 initialize.F90
openmc 0000000000741095 MAIN__ 15 main.F90
openmc 0000000000402B46 Unknown Unknown Unknown
libc.so.6 00007FEBC772176D Unknown Unknown Unknown
openmc 0000000000402A19 Unknown Unknown Unknown

Thanks,
Ron Rahaman

Hey Ron,

For release 0.5.4 we put in a better XML parser that follows the DOM standard. This also means that if there is and XML problem it will just error out with that runParser. I wish FoX put a better error handler into their code so we could get more information. Anyway, if you see that runParser error, that means you have an XML issue which has nothing to do with OpenMC. If you paste your code into an online XML validator you will see the error:

0.0 0.625e-6 20.0

You have instead of . Maybe I will edit the FoX source code to suggest user’s to go and paste their XML into an online validator.

-Bryan

Thanks a lot, Bryan!