To perform diagnosis of a completion system, at least one parameter of the
completion system in a wellbore is monitored using a sensor. A profile is
generated based on the monitored parameter, and a real-time diagnosis is
performed of an operation of the completion system based on a comparison
of the generated profile and an expected profile to identify an anomaly.