Basic OpenMP Test Program Not Exiting

Maybe it is this issue

Can you try to use the modified program:

  !$OMP PARALLEL
    !$OMP CRITICAL
    PRINT *, "Hello from process: ", OMP_GET_THREAD_NUM()
    !$OMP END CRITICAL
  !$OMP END PARALLEL

Or maybe this other modification:

!$OMP PARALLEL
   id = omp_get_thread_num()
   print *, "Hello from process: ", id
!$OMP END PARALLEL

Just curious if it changes anything.