I’m not entirely sure, if you are seeing a warning or are setting the OMP threads too late, but here 1 omp_num_threads will be set to 1.
Could you check, if this could the also the root cause for your observation?