Hi,
I am currently using EnergyPlusToFMU to produce FMUs which will be simulated using pyFMI. The simulation is controlled by inputs received from an API. This leads to the problem of model state persistence.
I have found that it is possible to serialize and deserialize a models state using get_fmu_state and set_fmu_state. I tried this method but I get the error AttributeError: 'pyfmi.fmi.FMUModelCS1' object has no attribute 'get_fmu_state'.
I understand the error and see that pyfmi.fmi.FMUModelCS2 has get_fmu_state and set_fmu_state methods, my problem is that I cannot find how to instantiate an FMUModelCS2 instance using my fmu file.
Currently I am using pyfmi.fmi.load_fmu() to load my model which seems to always default to FMUModelCS1.
I would really appreciate some help with this. Thank you in advance.