When running the test suite with 0.11.0, we’ve run into a problem with one of the unit tests, the output from which is below:
platform linux – Python 3.7.3, pytest-4.3.1, py-1.8.0, pluggy-0.9.0
rootdir: /openmc, inifile: pytest.ini
plugins: remotedata-0.3.1, openfiles-0.3.2, doctestplus-0.3.0, arraydiff-0.3
collected 429 items
regression_tests/asymmetric_lattice/test.py F
regression_tests/cmfd_feed/test.py …
regression_tests/cmfd_feed_2g/test.py F
regression_tests/cmfd_feed_expanding_window/test.py .
regression_tests/cmfd_feed_ng/test.py F
regression_tests/cmfd_feed_ref_d/test.py .
regression_tests/cmfd_feed_rolling_window/test.py .
regression_tests/cmfd_nofeed/test.py .
regression_tests/cmfd_restart/test.py .
regression_tests/complex_cell/test.py .
regression_tests/confidence_intervals/test.py .
regression_tests/create_fission_neutrons/test.py .
regression_tests/dagmc/legacy/test.py s
regression_tests/dagmc/refl/test.py s
regression_tests/dagmc/uwuw/test.py s
regression_tests/density/test.py .
regression_tests/deplete/test.py F
regression_tests/diff_tally/test.py F
regression_tests/distribmat/test.py .
regression_tests/eigenvalue_genperbatch/test.py .
regression_tests/eigenvalue_no_inactive/test.py .
regression_tests/energy_cutoff/test.py .
regression_tests/energy_grid/test.py .
regression_tests/energy_laws/test.py .
regression_tests/enrichment/test.py .
regression_tests/entropy/test.py .
regression_tests/filter_distribcell/test.py F
regression_tests/filter_energyfun/test.py .
regression_tests/filter_mesh/test.py F
regression_tests/fixed_source/test.py .
regression_tests/infinite_cell/test.py .
regression_tests/iso_in_lab/test.py .
regression_tests/lattice/test.py .
regression_tests/lattice_hex/test.py F
regression_tests/lattice_hex_coincident/test.py .
regression_tests/lattice_hex_x/test.py F
regression_tests/lattice_multiple/test.py .
regression_tests/lattice_rotated/test.py .
regression_tests/mg_basic/test.py .
regression_tests/mg_basic_delayed/test.py .
regression_tests/mg_convert/test.py .
regression_tests/mg_legendre/test.py .
regression_tests/mg_max_order/test.py .
regression_tests/mg_survival_biasing/test.py .
regression_tests/mg_tallies/test.py .
regression_tests/mgxs_library_ce_to_mg/test.py .
regression_tests/mgxs_library_condense/test.py F
regression_tests/mgxs_library_correction/test.py .
regression_tests/mgxs_library_distribcell/test.py F
regression_tests/mgxs_library_hdf5/test.py F
regression_tests/mgxs_library_histogram/test.py .
regression_tests/mgxs_library_mesh/test.py F
regression_tests/mgxs_library_no_nuclides/test.py F
regression_tests/mgxs_library_nuclides/test.py .
regression_tests/multipole/test.py .
regression_tests/output/test.py .
regression_tests/particle_restart_eigval/test.py .
regression_tests/particle_restart_fixed/test.py .
regression_tests/periodic/test.py .
regression_tests/photon_production/test.py .
regression_tests/photon_source/test.py .
regression_tests/plot/test.py .
regression_tests/plot_overlaps/test.py .
regression_tests/plot_voxel/test.py .
regression_tests/ptables_off/test.py .
regression_tests/quadric_surfaces/test.py F
regression_tests/reflective_plane/test.py .
regression_tests/resonance_scattering/test.py .
regression_tests/rotation/test.py .
regression_tests/salphabeta/test.py .
regression_tests/score_current/test.py .
regression_tests/seed/test.py .
regression_tests/source/test.py .
regression_tests/source_file/test.py .
regression_tests/sourcepoint_batch/test.py .
regression_tests/sourcepoint_latest/test.py .
regression_tests/sourcepoint_restart/test.py .
regression_tests/statepoint_batch/test.py .
regression_tests/statepoint_restart/test.py .
regression_tests/statepoint_sourcesep/test.py .
regression_tests/surface_tally/test.py .
regression_tests/survival_biasing/test.py .
regression_tests/tallies/test.py F
regression_tests/tally_aggregation/test.py F
regression_tests/tally_arithmetic/test.py .
regression_tests/tally_assumesep/test.py .
regression_tests/tally_nuclides/test.py .
regression_tests/tally_slice_merge/test.py .
regression_tests/trace/test.py .
regression_tests/track_output/test.py .
regression_tests/translation/test.py .
regression_tests/trigger_batch_interval/test.py .
regression_tests/trigger_no_batch_interval/test.py .
regression_tests/trigger_no_status/test.py .
regression_tests/trigger_tallies/test.py .
regression_tests/triso/test.py F
regression_tests/uniform_fs/test.py .
regression_tests/universe/test.py .
regression_tests/void/test.py .
regression_tests/volume_calc/test.py .
unit_tests/test_capi.py …
unit_tests/test_cell.py …
unit_tests/test_complex_cell_capi.py
At this point, the process fails abruptly without an error message. We attempted to run test_complex_cell_capi.py by itself, and get the error:
*** The MPI_Type_free() function was called before MPI_INIT was invoked.
*** This is disallowed by the MPI standard.
*** Your MPI job will now abort.
Local abort before MPI_INIT completed completed successfully, but am not able to aggregate error messages, and not able to guarantee that all other processes were killed!
So the theory is that the first finalize() in the final lines of the complex_cell function (below) is causing the error.
model.export_to_xml()
openmc.capi.finalize()
openmc.capi.init()
openmc.capi.finalize()
Any insights from others who’ve recently run the tests?
Side question: we have quite a few test fails in the regression tests, but since the results are hashed, it’s difficult to know the magnitude of the failure. Is it possible these are just rounding errors?