It is opt_level = 4 that causes the compilation to generate a wrong model

@comaniac @FrozenGene @tqchen @Wheest Can you give me some advice? Thanks.