And, again, the internal battery resistance value is measured in an instant of time, not over some period that allows for temperature changes to take place.
Measure battery resistance at different temperatures and fit to your equation...
Put in fridge, measure.
Lay in room, measure.
Put in pan with 60 degC water, measure...
Simulink is just a table of generally accepted constants.
I answered your double-post with how it was done in 1889... basically, interpretation by using various graphs.