/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 3 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7399
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1420.3-6046e_daily_bin1356
RA = 215.082, Dec = -60.782
tmin = 590803201, tmax = 591062401
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='279951', job_status='RUN', time_executed='2021-09-11 12:51:14.092967', time_epoch_executed='1631389874.09' WHERE source_name='4FGL J1420.3-6046e' and cadence='daily' and bin_id='1356'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279951

Creating custom pfile directory:
/scratch/kocevski/279951/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=590803201.0 && nMetStart<591062401.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=590803201.0 && nMetStart<591062401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279951/ft1_4FGL_J1420.3-6046e_daily_bin1356.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=590803201.0 && nMetStart<591062401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279951/ft2_4FGL_J1420.3-6046e_daily_bin1356.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279951/ft1_4FGL_J1420.3-6046e_daily_bin1356.fits outfile=/scratch/kocevski/279951/ft1_filteredMKT_4FGL_J1420.3-6046e_daily_bin1356.fits ra=215.082 dec=-60.782 rad=12.0 tmin=590803201.0 tmax=591062401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.56
user 5.29
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/279951/ft2_4FGL_J1420.3-6046e_daily_bin1356.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279951/ft2_4FGL_J1420.3-6046e_daily_bin1356.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/279951/ft1_filteredMKT_4FGL_J1420.3-6046e_daily_bin1356.fits evtable="EVENTS" outfile="/scratch/kocevski/279951/ft1_filtered_4FGL_J1420.3-6046e_daily_bin1356.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279951/ft1_filtered_4FGL_J1420.3-6046e_daily_bin1356.fits" evtable="EVENTS" scfile=/scratch/kocevski/279951/ft2_4FGL_J1420.3-6046e_daily_bin1356.fits sctable="SC_DATA" outfile=/scratch/kocevski/279951/ltcube_590803201_591062401_4FGL_J1420.3-6046e_daily_bin1356.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/279951/ft2_4FGL_J1420.3-6046e_daily_bin1356.fits
.....................!
real 12.36
user 11.98
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279951/ft1_filtered_4FGL_J1420.3-6046e_daily_bin1356.fits evtable="EVENTS" scfile=/scratch/kocevski/279951/ft2_4FGL_J1420.3-6046e_daily_bin1356.fits sctable="SC_DATA" expcube=/scratch/kocevski/279951/ltcube_590803201_591062401_4FGL_J1420.3-6046e_daily_bin1356.fits outfile=/scratch/kocevski/279951/expmap_590803201_591062401_4FGL_J1420.3-6046e_daily_bin1356.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/279951/ltcube_590803201_591062401_4FGL_J1420.3-6046e_daily_bin1356.fits
.....................!
real 191.70
user 185.24
sys 4.94

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Extended source RCW 86 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RCW86.fits is the correct path to the extended template.
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Extended source MSH 15-52 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source HESS J1534-571 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Extended source FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source FGES J1553.8-5325 in ROI with RadialDisk spatial model.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Added 376 point sources and 18 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1420.3-6046e @ None None

Could not locate 4FGL J1420.3-6046e in the xml model.

------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 279951: <4FGL_J1420.3-6046e_daily_bin1356> in cluster <slac> Done

Job <4FGL_J1420.3-6046e_daily_bin1356> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 12:51:00 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 12:51:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 12:51:02 2021
Terminated at Sat Sep 11 12:55:27 2021
Results reported at Sat Sep 11 12:55:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1420.3-6046e_daily_bin1356 215.082 -60.782 590803201 591062401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1420.3-6046e fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   243.04 sec.
    Max Memory :                                 309 MB
    Average Memory :                             253.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   265 sec.
    Turnaround time :                            267 sec.

The output (if any) is above this job summary.

