Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

I suggest running the API in Library Mode, that way you have a script that calls a function that runs the simulation, and after that function call you can call whatever other function to dispose resources. You could call delete_state, which frees the memory, after your simulation completes, but I think this may happen automatically (?) at the end of a simulation.

    import EnergyPlusAPI as eplus_api
    eplus_api.runtime.run_energyplus(state)
    clear_resources()