Sorry for the delay in answering this email but I think we have identified the problem with the hot start file and water quality. It involves the routine readRouting which was modified in SWMM 5.1.008 to read and write the link setting. If you use water quality the setting is not read correctly. See below for a code movement suggestion for the section called read link states. The target setting was being set after the reading of the water quality status.
// --- read link states
for (i = 0; i < Nobjects[LINK]; i++)
{
if (!readFloat(&x, f)) return;
Link[i].newFlow = x;
if (!readFloat(&x, f)) return;
Link[i].newDepth = x;
if (!readFloat(&x, f)) return;
Link[i].setting = x;
//// New code added to release 5.1.008. //// move these reads to before the pollutant reading - RED
// these have to be set after the reading of the setting from the hot start file - RED
// --- set link's target setting to saved setting
Link[i].targetSetting = x;
link_setTargetSetting(i);
link_setSetting(i, 0.0);
for (j = 0; j < Nobjects[POLLUT]; j++)
{
if (!readFloat(&x, f)) return;
Link[i].newQual[j] = x;
}
//// New code added to release 5.1.008. //// //(5.1.008)
// --- set link's target setting to saved setting - RED - delete or comment out the settting of the Target
//Link[i].targetSetting = x;
//link_setTargetSetting(i);
//link_setSetting(i, 0.0);
}