aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 160 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 = 17134
number of fields = 30
RA_SUN column already exists. File will not be modified.
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/106184': 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_J0533.0-8446_weekly_bin523
RA = 83.2677, Dec = -84.7783
tmin = 555292801, tmax = 555897601
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='106184', job_status='RUN', time_executed='2021-07-08 16:06:30.016305', time_epoch_executed='1625785590.02' WHERE source_name='4FGL J0533.0-8446' and cadence='weekly' and bin_id='523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/106184

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/106184/ft1_4FGL_J0533.0-8446_weekly_bin523.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/106184/ft2_4FGL_J0533.0-8446_weekly_bin523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/106184/ft1_4FGL_J0533.0-8446_weekly_bin523.fits outfile=/scratch/kocevski/106184/ft1_filteredMKT_4FGL_J0533.0-8446_weekly_bin523.fits ra=83.2677 dec=-84.7783 rad=12.0 tmin=555292801.0 tmax=555897601.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 7.75
user 7.35
sys 0.30
No photons survived the gtmktime cut

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='No photons survived the gtselect cut', time_epoch_completed='1625785723.57', time_completed='2021-07-08 16:08:43.565352', job_id='106184' WHERE bin_id='523' AND source_name='4FGL J0533.0-8446' AND cadence='weekly';

Database successfully updated.

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/106184/ft2_4FGL_J0533.0-8446_weekly_bin523.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/106184/ft2_4FGL_J0533.0-8446_weekly_bin523.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/106184/ft1_filteredMKT_4FGL_J0533.0-8446_weekly_bin523.fits evtable="EVENTS" outfile="/scratch/kocevski/106184/ft1_filtered_4FGL_J0533.0-8446_weekly_bin523.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.58
user 0.38
sys 0.16
No photons survived the gtmktime cut

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='No photons survived the gtmktime cut', time_epoch_completed='1625785724.23', time_completed='2021-07-08 16:08:44.225364', job_id='106184' WHERE bin_id='523' AND source_name='4FGL J0533.0-8446' AND cadence='weekly';

Database successfully updated.

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/106184/ft1_filtered_4FGL_J0533.0-8446_weekly_bin523.fits" evtable="EVENTS" scfile=/scratch/kocevski/106184/ft2_4FGL_J0533.0-8446_weekly_bin523.fits sctable="SC_DATA" outfile=/scratch/kocevski/106184/ltcube_555292801_555897601_4FGL_J0533.0-8446_weekly_bin523.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/106184/ft2_4FGL_J0533.0-8446_weekly_bin523.fits
.....................!
real 27.10
user 26.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/106184/ft1_filtered_4FGL_J0533.0-8446_weekly_bin523.fits evtable="EVENTS" scfile=/scratch/kocevski/106184/ft2_4FGL_J0533.0-8446_weekly_bin523.fits sctable="SC_DATA" expcube=/scratch/kocevski/106184/ltcube_555292801_555897601_4FGL_J0533.0-8446_weekly_bin523.fits outfile=/scratch/kocevski/106184/expmap_555292801_555897601_4FGL_J0533.0-8446_weekly_bin523.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/106184/ltcube_555292801_555897601_4FGL_J0533.0-8446_weekly_bin523.fits
.....................!
real 190.90
user 186.04
sys 4.43

Error: could not find cmap file: /scratch/kocevski/106184/cmap_HighResolution_555292801_555897601_4FGL_J0533.0-8446_weekly_bin523.fits
Continuing... 

Cleaning up...

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


Analysis Complete.


Thu Jul  8 16:12:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0113>
Subject: Job 106184: <4FGL_J0533.0-8446_weekly_bin523> in cluster <slac> Done

Job <4FGL_J0533.0-8446_weekly_bin523> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Jul  8 15:58:27 2021
Job was executed on host(s) <bullet0113>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul  8 16:02:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jul  8 16:02:39 2021
Terminated at Thu Jul  8 16:12:22 2021
Results reported at Thu Jul  8 16:12:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0533.0-8446_weekly_bin523 83.2677 -84.7783 555292801 555897601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0533.0-8446 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   278.55 sec.
    Max Memory :                                 323 MB
    Average Memory :                             160.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2622 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   583 sec.
    Turnaround time :                            835 sec.

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

