I am working in automate Aspen Plus simulation and post-processing of the results with Python. In order to do scale-up analysis, sensitivity studies and solving optimization problems; I have to iterate several times running the aspen simulation.
This way, I am using win32com.client to manage it. It works great, but sometimes aspen shows a pop-up windows telling that all licenses are in use, interrupting the program flow:
If I close it manually the program continues working. So I am thinking in writing a script to automate this, but I do not have any clue of how to do it.
I tried to kill, terminate, send a signal, to the process. But nothing works because kill the AspenPlus.exe process, stops the program.