So I wanted to test something in the training center with the old DB BR204 and have de-equipped the complete locomotive for this and I noticed that there is a constant knocking sound whether I don't run or the locomotive is in operation
That is normal, that's what you hear when the engine is cooling down. I am pretty sure more trains in TSW makes that sounds (and also in real life