Thermally induced skeletal rearrangement in a triazepine