Repository: ESMCI/cime

Issue:
PR #2759 has caused DAE.f19_f19.A to fail during phase RUN
The errors can be reproduced on anlworkstation by running the following cime_developer test:
`./create_test DAE.f19_f19.A --machine=anlworkstation --test-root=****`

Errors were:
```
Exception during run:
ERROR: ERROR: Expected 1 Initial run message(s), 0 found in DAE.f19_f19.A.anlworkstation_gnu.xxxx/run/case2run/da.log.xxxx.gz
Traceback (most recent call last):
  File "scripts/lib/CIME/SystemTests/system_tests_common.py", line 145, in run
    self.run_phase()
  File "scripts/lib/CIME/SystemTests/dae.py", line 155, in run_phase
    "ERROR: Expected {} Initial run message(s), {} found in {}".format(expected_init, found_init, fname))
  File "scripts/lib/CIME/utils.py", line 130, in expect
    raise exc_type(msg)
SystemExit: ERROR: ERROR: Expected 1 Initial run message(s), 0 found in DAE.f19_f19.A.anlworkstation_gnu.xxxx/run/case2run/da.log.xxxx.gz
```
Do we need some settings on anlworkstation to make it work?


Discussion:

Resolving patch:
diff --git a/scripts/lib/CIME/SystemTests/dae.py b/scripts/lib/CIME/SystemTests/dae.py
--- a/scripts/lib/CIME/SystemTests/dae.py
+++ b/scripts/lib/CIME/SystemTests/dae.py
@@ -84,6 +84,12 @@ def run_phase(self): # pylint: disable=arguments-differ
 
         # CONTINUE_RUN ends up TRUE, set it back in case this is a re-run.
         self._case.set_value("CONTINUE_RUN", False)
+        # Turn off post DA in case this is a re-run
+        for comp in self._case.get_values("COMP_CLASSES"):
+            if comp == "ESP":
+                continue
+            else:
+                self._case.set_value("DATA_ASSIMILATION_{}".format(comp), False)
         # Start normal run here
         self._activate_case1()
         SystemTestsCompareTwo.run_phase(self)
@@ -115,7 +121,9 @@ def run_phase(self): # pylint: disable=arguments-differ
                 # Expect a signal from every instance of every DA component
                 expected_init = 0
                 for comp in self._case.get_values("COMP_CLASSES"):
-                    if self._case.get_value("DATA_ASSIMILATION_{}".format(comp)):
+                    if comp == "ESP":
+                        continue
+                    elif self._case.get_value("DATA_ASSIMILATION_{}".format(comp)):
                         expected_init = expected_init + self._case.get_value("NINST_{}".format(comp))
 
             # Adjust expected initial run and post-DA numbers
@@ -146,12 +154,13 @@ def run_phase(self): # pylint: disable=arguments-differ
                     else:
                         expect(False, "ERROR: Unrecognized line ('{}') found in {}".format(line, fname))
 
-                # End of for loop
+                # End for
                 expect(found_caseroot, "ERROR: No caseroot found in {}".format(fname))
                 expect(found_cycle, "ERROR: No cycle found in {}".format(fname))
                 expect(found_signal == expected_signal,
                        "ERROR: Expected {} post-DA resume signal message(s), {} found in {}".format(expected_signal, found_signal, fname))
                 expect(found_init == expected_init,
                        "ERROR: Expected {} Initial run message(s), {} found in {}".format(expected_init, found_init, fname))
-            # End of with
+            # End with
             cycle_num = cycle_num + 1
+        # End for


Test patch:
diff --git a/scripts/lib/get_tests.py b/scripts/lib/get_tests.py
--- a/scripts/lib/get_tests.py
+++ b/scripts/lib/get_tests.py
@@ -65,7 +65,7 @@
                              "ERR.f45_g37_rx1.A",
                              "ERP.f45_g37_rx1.A",
                              "SMS_D_Ln9.f19_g16_rx1.A",
-                             "DAE.f19_f19.A",
+                             "DAE.f19_f19.ADWAV",
                              "PET_P4.f19_f19.A",
                              "PEM_P4.f19_f19.A",
                              "SMS.T42_T42.S",