Inspector 2018 update 1 is stopping at libiomp5md.dll!_kmpc_atomic_end with an application exception that stops the run.
Outside of Inspector the code runs fine. This exception happens in a very 'benign' OpenMP loop that is looping over array elements. Inspector 2017 has no such issues.
For more complete information about compiler optimizations, see our Optimization Notice.