I'm trying to run multiple SEM-models within a loop (i.e., for simulation purposes), but am experiencing some problems when a model does not run properly (i.e., objective function returns NaN). The default action is to abort and display an error message, which results in aborting the whole loop.
I am looking for a way to make it possible to make sure the loop will continue when one of the models is not returning a result (and of course, I would also like to save the non-result in some way).
I read about the omx_set_error_handler and omx_fatal_errors functions, but cannot seem to find them or how they might work.
Any suggestion on how to solve this problem is greatly appreciated!