justIN           Dashboard       Workflows       Jobs       AWT       Sites       Storages       Docs       Login

21 July 2025: This instance at RAL is read-only. Please do not try submitting new workflows for now.

Workflow 7894, Stage 1

Priority50
Processors1
Wall seconds80000
Image/cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:latest
RSS bytes4194304000 (4000 MiB)
Max distance for inputs30.0
Enabled input RSEs CERN_PDUNE_EOS, DUNE_CA_SFU, DUNE_CERN_EOS, DUNE_ES_PIC, DUNE_FR_CCIN2P3_DISK, DUNE_IN_TIFR, DUNE_IT_INFN_CNAF, DUNE_UK_GLASGOW, DUNE_UK_LANCASTER_CEPH, DUNE_UK_MANCHESTER_CEPH, DUNE_US_BNL_SDCC, DUNE_US_FNAL_DISK_STAGE, FNAL_DCACHE, FNAL_DCACHE_STAGING, FNAL_DCACHE_TEST, MONTECARLO, NIKHEF, PRAGUE, QMUL, RAL-PP, RAL_ECHO, SURFSARA, T3_US_NERSC
Enabled output RSEs CERN_PDUNE_EOS, DUNE_CA_SFU, DUNE_CERN_EOS, DUNE_ES_PIC, DUNE_FR_CCIN2P3_DISK, DUNE_IN_TIFR, DUNE_IT_INFN_CNAF, DUNE_UK_GLASGOW, DUNE_UK_LANCASTER_CEPH, DUNE_UK_MANCHESTER_CEPH, DUNE_US_BNL_SDCC, DUNE_US_FNAL_DISK_STAGE, FNAL_DCACHE, FNAL_DCACHE_STAGING, FNAL_DCACHE_TEST, NIKHEF, PRAGUE, QMUL, RAL-PP, RAL_ECHO, SURFSARA, T3_US_NERSC
Enabled sites BR_CBPF, CA_Victoria, CERN, CH_UNIBE-LHEP, CZ_FZU, ES_CIEMAT, ES_PIC, FR_CCIN2P3, IN_TIFR, IT_CNAF, NL_NIKHEF, NL_SURFsara, UK_Bristol, UK_Brunel, UK_Durham, UK_Edinburgh, UK_Lancaster, UK_Manchester, UK_Oxford, UK_QMUL, UK_RAL-PPD, UK_RAL-Tier1, UK_Sheffield, US_Caltech, US_Colorado, US_FNAL-FermiGrid, US_FNAL-T1, US_Michigan, US_MIT, US_Nebraska, US_NotreDame, US_PuertoRico, US_SU-ITS, US_Swan, US_UChicago, US_UConn-HPC, US_UCSD, US_Wisconsin
Scopeusertests
Events for this stage

Output patterns

 DestinationPatternLifetimeFor next stageRSE expression
1https://fndcadoor.fnal.gov:2880/dune/scratch/users/higuera/07894/1*ana*.root

Environment variables

NameValue
INPUT_TAR_DIR_LOCAL/cvmfs/fifeuser4.opensciencegrid.org/sw/dune/ac3164fcb1e76377d6d1ee7523a1957713af7671/

File states

Total filesFindingUnallocatedAllocatedOutputtingProcessedNot foundFailed
100007030029700

Job states

TotalSubmittedStartedProcessingOutputtingFinishedNotusedAbortedStalledJobscript errorOutputting failedNone processed
145600002970691089010
Files processed002020404060608080100100120120140140160160180180Jun-24 16:00Jun-24 17:00Jun-24 18:00Jun-24 19:00Jun-24 20:00Files processedBin start timesNumber per binUK_RAL-PPDES_PICCZ_FZUUK_OxfordUK_LancasterUK_QMULUK_EdinburghUK_DurhamUK_Manchester
Replicas per RSE304464.8639277995537171.66057621029745201443.51075226700095317.9909182381026159333.02101961380555328.23940471943547131277.10800361850477256.39033453591907114289.74121215343064179.764944763852456328.99845459267766141.8754518813533754362.55022733265025130.15590804548478Replicas per RSEDUNE_UK_GLASGOW (29%)PRAGUE (19%)DUNE_UK_LANCASTER_CEPH (15%)RAL_ECHO (12%)RAL-PP (11%)QMUL (5%)DUNE_CERN_EOS (5%)

RSEs used

NameInputsOutputs
DUNE_UK_GLASGOW3140
PRAGUE2070
DUNE_UK_LANCASTER_CEPH1600
RAL_ECHO1460
RAL-PP1160
QMUL710
DUNE_CERN_EOS550
None0297

Stats of processed input files as CSV or JSON, and of uploaded output files as CSV or JSON (up to 10000 files included)

File reset events, by site

SiteAllocatedOutputting
CZ_FZU1600
UK_Manchester1201
UK_QMUL1140
UK_RAL-PPD1120
ES_PIC1070
UK_Edinburgh540
UK_Lancaster470
UK_Oxford250
CERN170
UK_Durham150

Jobscript

#!/bin/bash
#
FCL_FILE=/cvmfs/fifeuser4.opensciencegrid.org/sw/dune/ac3164fcb1e76377d6d1ee7523a1957713af7671/atmo_test/srcs/duneana/duneana/AtmoAnalysis/jobAtmoAnalysis.fcl
source /cvmfs/dune.opensciencegrid.org/products/dune/setup_dune.sh
setup metacat
export METACAT_SERVER_URL=https://metacat.fnal.gov:9443/dune_meta_prod/app
export METACAT_AUTH_SERVER_URL=https://metacat.fnal.gov:8143/auth/dune
echo $INPUT_TAR_DIR_LOCAL
#Setup recent lar software suite
setup dunesw \
   "${DUNE_VERSION:-v09_91_02d01}" \
   -q "${DUNE_QUALIFIER:-e26:prof}"
echo "printing env"
export PRODUCTS="${INPUT_TAR_DIR_LOCAL}/atmo_test/localProducts_larsoft_v09_91_02_e26_prof/:$PRODUCTS"
setup duneana v09_91_02d01 -q e26:prof

if [ -z ${JUSTIN_PROCESSORS} ]; then
  JUSTIN_PROCESSORS=1
fi

echo "Justin processors: ${JUSTIN_PROCESSORS}"

echo $FCL_FILE

export TF_NUM_THREADS=${JUSTIN_PROCESSORS}   
export OPENBLAS_NUM_THREADS=${JUSTIN_PROCESSORS} 
export JULIA_NUM_THREADS=${JUSTIN_PROCESSORS} 
export MKL_NUM_THREADS=${JUSTIN_PROCESSORS} 
export NUMEXPR_NUM_THREADS=${JUSTIN_PROCESSORS} 
export OMP_NUM_THREADS=${JUSTIN_PROCESSORS}  

# number of events to process from the input file
if [ "$NUM_EVENTS" != "" ] ; then
 events_option="-n $NUM_EVENTS"
fi

# First get an unprocessed file from this stage
did_pfn_rse=`$JUSTIN_PATH/justin-get-file`

if [ "$did_pfn_rse" = "" ] ; then
  echo "Nothing to process - exit jobscript"
  exit 0
fi

# Keep a record of all input DIDs, for pdjson2meta file -> DID mapping
echo "$did_pfn_rse" | cut -f1 -d' ' >>all-input-dids.txt

# pfn is also needed when creating justin-processed-pfns.txt
pfn=`echo $did_pfn_rse | cut -f2 -d' '`
echo "Input PFN = $pfn"

# Construct outFile from input $pfn 
now=$(date -u +"%Y-%m-%dT_%H%M%SZ")
Ffname=`echo $pfn | awk -F/ '{print $NF}'`
fname=`echo $Ffname | awk -F. '{print $1}'`

campaign="justIN.w${JUSTIN_WORKFLOW_ID}s${JUSTIN_STAGE_ID}"

# Here is where the LArSoft command is call it 
(
# Do the scary preload stuff in a subshell!
export LD_PRELOAD=${XROOTD_LIB}/libXrdPosixPreload.so
echo "$LD_PRELOAD"

lar -c $FCL_FILE $events_option -n -1 "$pfn" > ${fname}_${now}.log 2>&1
mv atmo_ana_wreco2_lbl_model.root atmo_ana_${now}.root
)

echo '=== Start last 100 lines of lar log file ==='
tail -100 ${fname}_${now}.log
echo '=== End last 100 lines of lar log file ==='

# Subshell exits with exit code of last command
larExit=$?
echo "lar exit code $larExit"

if [ $larExit -eq 0 ] ; then
  # Success !
  echo "$pfn" > justin-processed-pfns.txt
  jobscriptExit=0
else
  # Oh :(
  jobscriptExit=1
fi

# Create compressed tar file with all log files 
tar zcf `echo "$JUSTIN_JOBSUB_ID.logs.tgz" | sed 's/@/_/g'` *.log
exit $jobscriptExit
justIN time: 2025-08-14 16:31:47 UTC       justIN version: 01.03.02