We found that in your case you created in a python script a loop without any waiting time in your main program. The same in your test program. It is like an C++ or PLC while loop without an exit it will grab all system resources it can get until the system collapses. You mention this with data layer not reachable, licenses cannot be checked and system is rebooting. So please add a waiting time your programs like this:
graphical programming loop
... View more