Runtime error Unsupported operand type


I am trying to develop a tool to perform the energy calculations together with another bunch of analyses and at the moment I am stuck with this error using energy plus. I found an old thread (2015?) suggesting the issue was the HVAC (although the issue has been checked and fixed) so not sure if this is the case.

thanks for the support