CoTRE: Complexity Twin for Resilient Ecosystems