Functionality of a complex controlled systems, composed of sub-systems