Testing with NEML2 enabled #31214
-
Check these boxes if you have followed the posting rules.
Issue or question about MOOSEPreviously posted about EXODIFF errors whilst running the test script, and I have just tried to configure Moose to run with NEML2 (not sure if i need it but thought lets give it a try). Unfortunately I am getting an error NEML2TestModel is not a registered object. Did you forget to register it with register_NEML2_object? I consulted the forum particularly this thread #28106 but i have no idea what I am doing and what I need to do to resolve this error. (Optional) code in question / simulation log / errorseml2.neml2_error: Test spec: /opt/Moose/moose/test/tests/neml2/tests:5
neml2.neml2_error: Working directory: /opt/Moose/moose/test/tests/neml2
neml2.neml2_error: Running command: /opt/Moose/moose/test/moose_test-opt -i error.i --required-capabilities="neml2" --error --error-override --libtorch-device cpu
neml2.neml2_error:
neml2.neml2_error: ################################################################################
neml2.neml2_error: Begin runner_run output
neml2.neml2_error:
neml2.neml2_error:
neml2.neml2_error: *** ERROR ***
neml2.neml2_error: NEML2TestModel is not a registered object. Did you forget to register it with register_NEML2_object?
neml2.neml2_error:
neml2.neml2_error: Stack frames: 8
neml2.neml2_error: 0: libMesh::print_trace(std::ostream&)
neml2.neml2_error: 1: moose::internal::mooseErrorRaw(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)
neml2.neml2_error: 2: void mooseError<char const*>(char const*&&)
neml2.neml2_error: 3: /opt/Moose/moose/framework/libmoose-opt.so.0(+0x11138b6) [0x7c19abd138b6]
neml2.neml2_error: 4: /opt/Moose/moose/test/moose_test-opt(+0x66f0) [0x635e4a14f6f0]
neml2.neml2_error: 5: /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7c199ca29d90]
neml2.neml2_error: 6: __libc_start_main
neml2.neml2_error: 7: /opt/Moose/moose/test/moose_test-opt(+0x6995) [0x635e4a14f995]
neml2.neml2_error: --------------------------------------------------------------------------
neml2.neml2_error: MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
neml2.neml2_error: Proc: [[23504,0],0]
neml2.neml2_error: Errorcode: 1
neml2.neml2_error:
neml2.neml2_error: NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
neml2.neml2_error: You may or may not see output from other processes, depending on
neml2.neml2_error: exactly when Open MPI kills them.
neml2.neml2_error: --------------------------------------------------------------------------
neml2.neml2_error:
neml2.neml2_error: ################################################################################
neml2.neml2_error: End runner_run output
neml2.neml2_error:
neml2.neml2_error: ################################################################################
neml2.neml2_error: Begin tester output
neml2.neml2_error:
neml2.neml2_error: ################################################################################
neml2.neml2_error: Unable to match the following pattern against the program's output:
neml2.neml2_error:
neml2.neml2_error: NEML2 model execution failed on at least one processor
neml2.neml2_error:
neml2.neml2_error:
neml2.neml2_error: Tester failed, reason: EXPECTED ERROR MISSING
neml2.neml2_error:
neml2.neml2_error: ################################################################################
neml2.neml2_error: End tester output
neml2.neml2_error:
neml2.neml2_error .................... FAILED (EXPECTED ERROR MISSING)Encountering Errors? Please include diagnostic outputNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
|
hello did you follow these instructions? Guillaume |
Beta Was this translation helpful? Give feedback.
-
|
MOOSE built correctly with NEML2 because the test ran. It's guarded to only run if NEML2 is detected. @hugary1995 can you help with this? I don't know what's going on here. I don't know how this test works in the first place because Line 5 in bfa0ef9 allow_test_objects = true.
@KartikeyaSinghFreeman can you please try adding and then re-run? |
Beta Was this translation helpful? Give feedback.
@loganharbour The neml2 object is dynamically registered by libmoose_test-opt.so, so as long as that library is loaded that object should have been registered to the neml2 registry. It is independent of the allow_test_object parameter.
@KartikeyaSinghFreeman The only possibility I can think of is that you might have previously built the moose-test libraries without enabling neml2. You went back and enabled neml2, recompiled, but the libraries (specifically libmoose_test-opt.so) didn't get rebuilt. I suggest you try the following