We changed threaded mode to serial mode. The following files were edited base.cpp,sim.cpp,types.hpp. The original code is commented for reverting if needed