Abnormal value on Te Measured
im using the dargreybox package to simulate the power input of an A.C. In order to simulate the power heat i use a PRBS code, as shown ahead.

But when df model its executes, the Envelope Temperature (Te) have inusual values in the first step of the execution.

Any clues of why this is happening?
Hey - thanks for reaching out and sorry for the late response!
Firstly, the model is not perfect and it may found solutions that are not necessarily valid in real life. If you have multiple solutions you could try and look at the other ones and see if this problem persists.
Secondly, if you know the expected range for the Envelope Temperature (e.g. in a normal building you may expect it to be between the Ambient Temeperature min() and max() values) you can constrain your problem to only solve for Te0 within that range by adding min and max to the parameter in your train_params:
'Te0': {'value': X_train.iloc[0]['Te0'], 'vary': True, 'min': 10, 'max': 25}
Leaving this open for future references.