Poor you Mary212,
Sorry to hear you feel so unwell.
You seem to have been having problems for the last month but previously suffered hypothyroidism for ten years. Has this been a gradual decline or suddenly happened. A TSH of 9.0 whilst medicated on thyroxine is high and would make you feel very unwell but usually someone would experience hypo symptoms.
Your stomach problems could be down to malabsorption issues which in turn would stop meds working.
Your insomnia could be down to adrenal problems.
Both of these problems can be resolved with supplements and correct thyroid meds.
Ask your doctor to test Vit B12, Vit D, Folate and Ferritin as deficiencies in these can stop make your thyroid meds from working.
Also, re a previous post, flax seed can impair thyroid function but if you don't have much thyroid left due to hashimotos or a thyroidectomy, then flaxseed is actually advocated as it is full of omega 3 which has an anti-inflammatory effect.
Hope you feel better soon,