/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 40 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).

Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540000926_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540006880_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540012830_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540018700_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540024126_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540029891_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540035597_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540041303_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540047008_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540052714_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540056129_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540062528_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540068608_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540074625_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540080598_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540086557_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540092509_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540098460_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540104286_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540109620_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540115477_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540121183_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540126889_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540132595_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540138300_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540141928_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540148189_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540154253_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540160261_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540166230_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540172187_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540178139_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540184085_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540189854_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540195110_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540201063_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540206769_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540212475_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540218181_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540223887_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540227662_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540233846_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540239897_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540245895_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540251862_v305.fit
Last server error 3011 ('No servers are available to read the file.')
Error accessing path/file for root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Reprocess/P305/ft1/gll_ph_p305_r0540257818_v305.fit
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/988761': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.


Performing analysis on: 4FGL_J1604.5-4441_daily_bin1160
RA = 241.128, Dec = -44.6903
tmin = 540000001, tmax = 540259201
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='988761', job_status='RUN', time_executed='2021-09-13 05:59:55.663587', time_epoch_executed='1631537995.66' WHERE source_name='4FGL J1604.5-4441' and cadence='daily' and bin_id='1160'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/988761

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

[Errno 2] No such file or directory: '/scratch/kocevski/988761/gll_ph_p305_r0540000926_v305.fit'
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py", line 2835, in sourceAnalysis
    dataAvailibility_ft1 = dataCatalogQuery(FT1_options, verbose=verbose)
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py", line 1938, in dataCatalogQuery
    FTmerge.ft1merge(dataCatalogFiles_local, mergedFile, verbose=verbose)
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/FTmerge.py", line 59, in ft1merge
    tstart, tstop = _getTimeKeywords(infiles)
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/FTmerge.py", line 36, in _getTimeKeywords
    header = pyfits.open(infiles[0])[extnum].header
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/io/fits/hdu/hdulist.py", line 148, in fitsopen
    lazy_load_hdus, **kwargs)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/io/fits/hdu/hdulist.py", line 402, in fromfile
    lazy_load_hdus=lazy_load_hdus, **kwargs)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/io/fits/hdu/hdulist.py", line 1006, in _readfrom
    fileobj = _File(fileobj, mode=mode, memmap=memmap, cache=cache)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/utils/decorators.py", line 508, in wrapper
    return function(*args, **kwargs)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/io/fits/file.py", line 150, in __init__
    self._open_filename(fileobj, mode, overwrite)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/io/fits/file.py", line 506, in _open_filename
    self._file = fileobj_open(self.name, IO_FITS_MODES[mode])
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/io/fits/util.py", line 395, in fileobj_open
    return open(filename, mode)
IOError: [Errno 2] No such file or directory: '/scratch/kocevski/988761/gll_ph_p305_r0540000926_v305.fit'


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/988761/ft2_4FGL_J1604.5-4441_daily_bin1160.fits


UPDATE lightcurve_data_v2 SET job_status='DONE', comment='No available data', time_epoch_completed='1631538257.15', time_completed='2021-09-13 06:04:17.152925', job_id='988761' WHERE bin_id='1160' AND source_name='4FGL J1604.5-4441' AND cadence='daily';

Database successfully updated.

Error: could not find cmap file: /scratch/kocevski/988761/cmap_HighResolution_540000001_540259201_4FGL_J1604.5-4441_daily_bin1160.fits
Continuing... 

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/988761


Analysis Complete.


Mon Sep 13 06:04:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 988761: <4FGL_J1604.5-4441_daily_bin1160> in cluster <slac> Done

Job <4FGL_J1604.5-4441_daily_bin1160> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 13 05:55:16 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 05:59:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 05:59:04 2021
Terminated at Mon Sep 13 06:04:17 2021
Results reported at Mon Sep 13 06:04:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1604.5-4441_daily_bin1160 241.128 -44.6903 540000001 540259201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1604.5-4441 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   14.28 sec.
    Max Memory :                                 108 MB
    Average Memory :                             88.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              4
    Max Threads :                                9
    Run time :                                   313 sec.
    Turnaround time :                            541 sec.

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

