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


Waiting 131 seconds before starting...
Proceeding.

Importing modules...
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py", line 21, in <module>
    import astropy.io.fits as astro_fits
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/__init__.py", line 155, in <module>
    from .tests.runner import TestRunner
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/tests/__init__.py", line 28, in <module>
    from ..extern.plugins.pytest_remotedata import disable_internet
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/extern/plugins/pytest_remotedata/disable_internet.py", line 5, in <module>
    from ...bundled.six.moves import urllib
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/extern/bundled/__init__.py", line 1, in <module>
    
KeyboardInterrupt
klevel=1)

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

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/903080': 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_J0343.2-6444_daily_bin1381
RA = 55.8163, Dec = -64.7349
tmin = 597283201, tmax = 597542401
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='903080', job_status='RUN', time_executed='2021-08-19 08:36:24.457066', time_epoch_executed='1629387384.46' WHERE source_name='4FGL J0343.2-6444' and cadence='daily' and bin_id='1381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/903080

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

/bin/sh: fmerge: command not found
/bin/sh: fmerge: command not found
[Errno 2] No such file or directory: '/scratch/kocevski/903080/ft1_4FGL_J0343.2-6444_daily_bin1381.fits'
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 73, in ft1merge
    foo = pyfits.open(outfile)
  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/903080/ft1_4FGL_J0343.2-6444_daily_bin1381.fits'


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fcopy: command not found
/bin/sh: fmerge: command not found
[Errno 2] No such file or directory: '/scratch/kocevski/903080/ft2_4FGL_J0343.2-6444_daily_bin1381.fits'
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py", line 2861, in sourceAnalysis
    dataAvailibility_ft2 = dataCatalogQuery(FT2_options, verbose=verbose)
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py", line 1943, in dataCatalogQuery
    FTmerge.ft2merge(dataCatalogFiles_local, mergedFile, verbose=verbose)
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/FTmerge.py", line 153, in ft2merge
    updateTimeKeywords(outfile, tstart, tstop)
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/FTmerge.py", line 48, in updateTimeKeywords
    foo = pyfits.open(fitsfile)
  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/903080/ft2_4FGL_J0343.2-6444_daily_bin1381.fits'


UPDATE lightcurve_data_v2 SET job_status='DONE', comment='No available data', time_epoch_completed='1629387413.4', time_completed='2021-08-19 08:36:53.399937', job_id='903080' WHERE bin_id='1381' AND source_name='4FGL J0343.2-6444' AND cadence='daily';

Database successfully updated.

Error: could not find cmap file: /scratch/kocevski/903080/cmap_HighResolution_597283201_597542401_4FGL_J0343.2-6444_daily_bin1381.fits
Continuing... 

Cleaning up...

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


Analysis Complete.


Thu Aug 19 08:36:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 903080: <4FGL_J0343.2-6444_daily_bin1381> in cluster <slac> Done

Job <4FGL_J0343.2-6444_daily_bin1381> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Aug 19 08:32:48 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 08:33:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 08:33:01 2021
Terminated at Thu Aug 19 08:36:54 2021
Results reported at Thu Aug 19 08:36:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0343.2-6444_daily_bin1381 55.8163 -64.7349 597283201 597542401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0343.2-6444 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   60.54 sec.
    Max Memory :                                 104 MB
    Average Memory :                             45.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                19
    Run time :                                   232 sec.
    Turnaround time :                            246 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 902277: <4FGL_J0343.2-6444_daily_bin1381> in cluster <slac> Exited

Job <4FGL_J0343.2-6444_daily_bin1381> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Aug 19 08:32:21 2021
Job was executed on host(s) <bullet0053>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 08:32:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 08:32:24 2021
Terminated at Thu Aug 19 08:38:29 2021
Results reported at Thu Aug 19 08:38:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0343.2-6444_daily_bin1381 55.8163 -64.7349 597283201 597542401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0343.2-6444 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

TERM_ADMIN: job killed by root or an administrator.
Exited with exit code 1.

Resource usage summary:

    CPU time :                                   2.55 sec.
    Max Memory :                                 22 MB
    Average Memory :                             15.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              3
    Max Threads :                                19
    Run time :                                   364 sec.
    Turnaround time :                            368 sec.

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

