On estimating the error of local thermodynamic models—a general approach