Trouble with OpenMC/DAGMC/HDF5 install

Hello there,
I’m a relatively new user of OpenMC and I am attempting to get DAGMC working with OpenMC. However, post installation I am encountering this error that I haven’t been able to overcome:

         Version | 0.15.2
     Commit Hash | e23760b0264c66fb7bb373aa0596801e5209d920
       Date/Time | 2025-06-12 05:43:11
   MPI Processes | 1
  OpenMP Threads | 12

 Reading settings XML file...
 Reading cross sections XML file...
 Reading materials XML file...
 Reading geometry XML file...
Loading file /CubeTest1/DAGMC_test/utah_teapot.h5m
HDF5-DIAG: Error detected in HDF5 (1.10.8) MPI-process 0:
  #000: ../../../src/H5T.c line 1833 in H5Tcopy(): not a datatype or dataset
    major: Invalid arguments to routine
    minor: Inappropriate type
MOAB ERROR: --------------------- Error Message ------------------------------------
MOAB ERROR: ReadHDF5 Failure!
MOAB ERROR: init() line 207 in src/io/ReadHDF5.cpp
MOAB ERROR: --------------------- Error Message ------------------------------------
MOAB ERROR: ReadHDF5 Failure!
MOAB ERROR: set_up_read() line 248 in src/io/ReadHDF5.cpp
MOAB ERROR: --------------------- Error Message ------------------------------------
MOAB ERROR: NULL file handle.!
MOAB ERROR: is_error() line 134 in src/io/ReadHDF5.hpp
MOAB ERROR: --------------------- Error Message ------------------------------------
MOAB ERROR: Failed to load file after trying all possible readers!
MOAB ERROR: serial_load_file() line 588 in src/Core.cpp
MOAB ERROR: load_file() line 471 in src/Core.cpp
ERROR: DagMC Couldn't read file /CubeTest1/DAGMC_test/utah_teapot.h5m
Error message: Failed to load file after trying all possible readers
MOAB ERROR: init_dagmc() line 157 in dagmc.cpp
Building acceleration data structures...
MOAB ERROR: --------------------- Error Message ------------------------------------
MOAB ERROR: Failed to join the obb trees!
MOAB ERROR: construct_obb_tree() line 491 in src/GeomTopoTool.cpp
MOAB ERROR: --------------------- Error Message ------------------------------------
MOAB ERROR: Failed to construct obb tree for volume!
MOAB ERROR: construct_obb_trees() line 591 in src/GeomTopoTool.cpp
MOAB ERROR: --------------------- Error Message ------------------------------------
MOAB ERROR: Failed to build obb trees!
MOAB ERROR: setup_obbs() line 204 in DagMC.cpp
MOAB ERROR: --------------------- Error Message ------------------------------------
MOAB ERROR: Failed to setup the OBBs!
MOAB ERROR: init_OBBTree() line 685 in DagMC.cpp
MOAB ERROR: init_dagmc() line 161 in dagmc.cpp
 ERROR: No cells were found in the geometry.xml file
Abort(-1) on node 0 (rank 0 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, -1) - process 0

It appears to me the HDF5 dependency is at fault, perhaps something to do the with the installation. I did see other similar problems in other posts that found HDF5 not being enabled in the MOAB install was at fault but I double check and I did use the --with_hdf5 flag in the config command.
I have installed HDF5 version 1.8.13 as per the DAGMA install instructions, and the MOAB is the most recent version. OpenMC version is 0.15.2 with the following enabled:
MPI enabled: yes
Parallel HDF5 enabled: yes
PNG support: yes
DAGMC support: yes
libMesh support: no
MCPL support: no
Coverage testing: no
Profiling flags: no
UWUW support: no

I also tried HDF5 version 1.14.6 but this also resulted in the same error, except the first MOAB ERROR was “Memory allocation failed!” instead of “ReadHDF5 Failure!”. I’m a bit at a loss as to what to try next so any advice is welcome!

Here is the notebook I’m generating the xmls from. I’ve just been copying from the DAGMC OpenMC example notebook with the fuel pin and teapot to test the install.

DAGMC_test.ipynb (20.4 KB)

Many thanks in advance for anyone who is able to spare some time to help.
J

Hi Jas,
OpenMC version with DAGMC enabled could be installed with conda.

conda search openmc

Just choose the version you want. When I installed OpenMC from source with DAGMC, I usually encounter the problem that DAGMC’s dependencies are incompatible.
Hope this help,

Hi Squang,

Many thanks for your reply! This indeed fixed the problem.