Thanks for the reply. I was going through that topic, and, killall python solved the issue
But I still find it weird as I am not using multithreading (I don’t have child processes) in my model.
In fact, I was terminating exactly the same code and restarting it normally before, and then suddenly this issue started to happen