Thermodynamic stability and flexibility analysis