No output from SMOKE Example Case

Hi there,

I have compiled SMOKE V5.1, and trying to make sure it’s compiled successfully. I downloaded SMOKE-Example-Case from GitHub - CEMPD/SMOKE-ExampleCase: Scripts for the SMOKE Example Case, and followed the README file step-by-step. When I run np_oilgas script (step 4 of the README), the run ends with:

SCRIPT ERROR: timetracker script found multiple existing entries
for the following primary keys in the file already:
Sector = np_oilgas
Job Name = Annual_area
Program = smkreport
Run Date = inv
This should not happen, so script does not know how to
replace the entries for these keys
ERROR: Problem calling timetracker from qa_run script
ERROR: Running qa_run for inv
grep: /project/zhan248_1326/se_512/models/smoke/run_cases/example_case/SMOKE-TestCase/intermed/np_oilgas/logs: Is a directory
grep: /project/zhan248_1326/se_512/models/smoke/run_cases/example_case/SMOKE-TestCase/intermed/np_oilgas/logs: Is a directory
log analyzer
Getting message data (might take some time)…
Finished getting data
Classifying message types…
Total number of known messages: 11086
Total number of unknown messages: 0
Level 3 analysis…
Finished classifying message types
grep: /project/zhan248_1326/se_512/models/smoke/run_cases/example_case/SMOKE-TestCase/intermed/np_oilgas/logs: Is a directory
grep: /project/zhan248_1326/se_512/models/smoke/run_cases/example_case/SMOKE-TestCase/intermed/np_oilgas/logs: Is a directory
log analyzer
Getting message data (might take some time)…
Finished getting data
Classifying message types…
Total number of known messages: 11086
Total number of unknown messages: 0
Level 1 analysis…
Finished classifying message types
Testing for exit priority <= 1
All message priorities > 1

As I’ve seen in other posts in the forum, timetracker error could be ignored.
Some files are created in the intermediate folder (agmat, asmat, etc), but no files in premerged or smoke_out folders. Also, there’s no error in the log files, they ends with:

Normal Completion of program GRDMAT
Normal Completion of program SMKINVEN
Normal Completion of program SMKREPORT
Normal Completion of program SPCMAT

Does anyone know why SMOKE is not creating output files for np_oilgas?

Please let me know if you need more details.

Best,
Soroush

Hi Soroush,

I tested the Example Case and got the output files for np_oilgas. However, depending on how you made change to the directory_definitions.csh file, the premerged directory could be created under another sub-directory level. Please check if you have premerged directory under $INSTALL_DIR/SMOKE-TestCase/SMOKE-TestCase/premerged

Huy

Hi Huy,

Thanks for confirming the output files. I haven’t changed premerged directory in directory_definitions.csh. So, I have $INSTALL_DIR/SMOKE-TestCase/SMOKE-TestCase/premerged, and “np_oilgas” directory inside. But there’s no file in this folder.
Do you know what might be wrong with my case?

Thank you,
Soroush

Soroush,

Looks like smkmerge might had failed. Could you check in /project/zhan248_1326/se_512/models/smoke/run_cases/example_case/SMOKE-TestCase/intermed/np_oilgas/logs to see if there is any smkmerge_np_oilgas_SMOKE-TestCase_*_12US1_cmaq_cb6ae7.log log file. If the log file exist, was there any error?

It also would be helpful if you could upload the smkmerge log file if there is one.

Thanks Huy,

That’s right, after some debugging, I noticed that Temporal and Merge programs are not running. The problem is in $RUNSCRIPTS/emf/smk_ar_annual_emf.csh:

setenv QA_TYPE inv3 # Used to name the report inputs and outputs
setenv QA_LABEL $SUBSECT # Used to name the report inputs and outputs
setenv REPLABEL $SUBSECT # Used internally by Smkreport
source $qa_run
#Check status of QA run to see if it worked. Give error if failed
if ( $status != 0 ) then
echo “ERROR: Running qa_run for $QA_TYPE”
$EMF_CLIENT -k $EMF_JOBKEY -m “ERROR: Running qa_run for $QA_TYPE” -t “e” -x $qa_run -p $EMF_PERIOD
set exitstat = 1
goto end_of_script

Something goes wrong with qa_run and then it skips to the end of the script. I commented out that line (“goto end_of_script”) and now I have outputs (ran Temporal and Merge).

Do you know why that happens? qa_run fails only when QA_TYPE is inv3. There’s no problem for other QA_TYPE (inv2 and etc.).

P.S. I temporarily have no access to my server. So, I can’t get log files now. I’ll upload smkmerge log file as soon as possible.

Also, my smkmerge log file is attached.
smkmerge_np_oilgas_SMOKE-TestCase_20170711_12US1_cmaq_cb6ae7.txt (101.3 KB)