aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 61 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 = 7488
number of fields = 31
RA_SUN column already exists. File will not be modified.
DDone.


Performing analysis on: 4FGL_J1807.9-6412_daily_bin1668
RA = 271.993, Dec = -64.209
tmin = 671673601, tmax = 671932801
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='555764', job_status='RUN', time_executed='2022-04-18 03:07:52.613702', time_epoch_executed='1650276472.61' WHERE source_name='4FGL J1807.9-6412' and cadence='daily' and bin_id='1668'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555764

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555764/ft1_4FGL_J1807.9-6412_daily_bin1668.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555764/ft2_4FGL_J1807.9-6412_daily_bin1668.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555764/ft1_4FGL_J1807.9-6412_daily_bin1668.fits outfile=/scratch/kocevski/555764/ft1_filteredMKT_4FGL_J1807.9-6412_daily_bin1668.fits ra=271.993 dec=-64.209 rad=12.0 tmin=671673601.0 tmax=671932801.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 3.60
user 3.35
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/555764/ft2_4FGL_J1807.9-6412_daily_bin1668.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/555764/ft2_4FGL_J1807.9-6412_daily_bin1668.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/555764/ft1_filteredMKT_4FGL_J1807.9-6412_daily_bin1668.fits evtable="EVENTS" outfile="/scratch/kocevski/555764/ft1_filtered_4FGL_J1807.9-6412_daily_bin1668.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 1388

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555764/ft1_filtered_4FGL_J1807.9-6412_daily_bin1668.fits" evtable="EVENTS" scfile=/scratch/kocevski/555764/ft2_4FGL_J1807.9-6412_daily_bin1668.fits sctable="SC_DATA" outfile=/scratch/kocevski/555764/ltcube_671673601_671932801_4FGL_J1807.9-6412_daily_bin1668.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/555764/ft2_4FGL_J1807.9-6412_daily_bin1668.fits
.....................!
real 14.60
user 14.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555764/ft1_filtered_4FGL_J1807.9-6412_daily_bin1668.fits evtable="EVENTS" scfile=/scratch/kocevski/555764/ft2_4FGL_J1807.9-6412_daily_bin1668.fits sctable="SC_DATA" expcube=/scratch/kocevski/555764/ltcube_671673601_671932801_4FGL_J1807.9-6412_daily_bin1668.fits outfile=/scratch/kocevski/555764/expmap_671673601_671932801_4FGL_J1807.9-6412_daily_bin1668.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/555764/ltcube_671673601_671932801_4FGL_J1807.9-6412_daily_bin1668.fits
.....................!
real 193.77
user 186.71
sys 5.38

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 FHES J1642.1-5428 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 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 J1553.8-5325 in ROI with RadialDisk spatial model.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Added 305 point sources and 15 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 J1807.9-6412 @ 271.993 -64.209

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/555764/ft1_filtered_4FGL_J1807.9-6412_daily_bin1668.fits scfile=/scratch/kocevski/555764/ft2_4FGL_J1807.9-6412_daily_bin1668.fits outfile=/scratch/kocevski/555764/cmap_671673601_671932801_4FGL_J1807.9-6412_daily_bin1668.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=271.993 yref=-64.209 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555764/ft1_filtered_4FGL_J1807.9-6412_daily_bin1668.fits scfile=/scratch/kocevski/555764/ft2_4FGL_J1807.9-6412_daily_bin1668.fits outfile=/scratch/kocevski/555764/cmap_HighResolution_671673601_671932801_4FGL_J1807.9-6412_daily_bin1668.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=271.993 yref=-64.209 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/555764/ft1_filtered_4FGL_J1807.9-6412_daily_bin1668.fits evtable="EVENTS" scfile=/scratch/kocevski/555764/ft2_4FGL_J1807.9-6412_daily_bin1668.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/555764/Model_4FGL_J1807.9-6412_daily_bin1668.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source FGES J1553.8-5325
adding source FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FHES J1501.0-6310
adding source FHES J1642.1-5428
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1507-622
adding source HESS J1534-571
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-52
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
Working on...
/scratch/kocevski/555764/ft1_filtered_4FGL_J1807.9-6412_daily_bin1668.fits.....................!
real 545.55
user 542.41
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/555764/ft1_filtered_4FGL_J1807.9-6412_daily_bin1668.fits', '/scratch/kocevski/555764/ft2_4FGL_J1807.9-6412_daily_bin1668.fits', expMap='/scratch/kocevski/555764/expmap_671673601_671932801_4FGL_J1807.9-6412_daily_bin1668.fits', expCube='/scratch/kocevski/555764/ltcube_671673601_671932801_4FGL_J1807.9-6412_daily_bin1668.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/555764/Model_4FGL_J1807.9-6412_daily_bin1668.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1807.9-6412'

4FGL J1807.9-6412
   Spectrum: PowerLaw
752    Prefactor:  2.359e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
753        Index:  2.523e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
754        Scale:  1.207e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/555764/ft1_filtered_4FGL_J1807.9-6412_daily_bin1668.fits
Spacecraft file(s): /scratch/kocevski/555764/ft2_4FGL_J1807.9-6412_daily_bin1668.fits
Exposure map: /scratch/kocevski/555764/expmap_671673601_671932801_4FGL_J1807.9-6412_daily_bin1668.fits
Exposure cube: /scratch/kocevski/555764/ltcube_671673601_671932801_4FGL_J1807.9-6412_daily_bin1668.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/555764/Model_4FGL_J1807.9-6412_daily_bin1668.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 13755.6899981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 13755.6707145

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .43073E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .90223       1.0000         .10000E-03   10000.    
     5 'norm      '    12.363       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12150E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    20.014       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10668E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.062       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3708       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    16.639       1.0000         .10000E-03   10000.    
    18 'Prefactor '    80.390       1.0000         .10000E-03   10000.    
    19 'Prefactor '    91.201       1.0000         .10000E-03   10000.    
    20 'norm      '    39.846       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.983       1.0000         .10000E-03   10000.    
    22 'norm      '    .92084       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4395       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87682       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1126E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13755.67     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2763 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.8969       -.86665E-07** at limit **
   2  Prefactor     .10000E-03    3.9012       -.73696E-07** at limit **
   3  Prefactor     .10001E-03    322.04        .16062E-05** at limit **
   4  norm          .90199        3.3827        .32513E-05   -.19070E-03
   5  norm          12.423        86.714        .19546E-05    .65119E-04
   6  Prefactor     .10000E-03    23.472       -.22891E-06** at limit **
   7  Prefactor     .10000E-03    10.644       -.72064E-08** at limit **
   8  norm          20.010        23.958        .44820E-06   -.42521E-05
   9  Prefactor     .10000E-03    5.6675       -.12421E-07** at limit **
  10  Prefactor     .10000E-03    114.81        .51236E-06** at limit **
  11  Prefactor     .10000E-03    8.8276       -.11296E-07** at limit **
  12  Prefactor     15.063        11.786        .14777E-06   -.20134E-04
  13  norm          .10000E-03    1.7066       -.40587E-07** at limit **
  14  norm          1.3709        .87407        .77452E-07   -.36808E-04
  15  Prefactor     .10000E-03    47.371       -.95407E-07** at limit **
  16  Prefactor     .10000E-03    22.113       -.24562E-07** at limit **
  17  norm          16.644        21.534        .18260E-06   -.12751E-04
  18  Prefactor     80.378        46.088        .89453E-07   -.59340E-04
  19  Prefactor     91.210        78.172        .19793E-06    .17288E-04
  20  norm          39.847        12.538        .18830E-07   -.46840E-04
  21  Prefactor     12.984        12.560        .99084E-06   -.62684E-04
  22  norm          .92078        1.0975        .39509E-06    .56092E-03
  23  Normalizat    1.4393        .25254       -.75645E-06   -.11038E-03
  24  Prefactor     .87685        .65637E-01   -.26243E-06   -.28542E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 0.901989
  norm       = 12.4235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.0104
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0628
  norm       = 0.0001
  norm       = 1.37092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.6437
  Prefactor  = 80.378
  Prefactor  = 91.2098
  norm       = 39.8474
  Prefactor  = 12.9839
  norm       = 0.920785
  Normalizat = 1.43934
  Prefactor  = 0.876847
 **********
 **   18 **HESSE 
 **********

 FCN=   13755.67     FROM HESSE     STATUS=OK           395 CALLS     3158 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.9867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    324.45        .21229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .90199        3.3529        .39368E-03   -1.5518    
   5  norm          12.423        87.026        .11393E-03   -1.5003    
   6  Prefactor     .10000E-03    24.556        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          20.010        23.865        .89529E-04   -1.4813    
   9  Prefactor     .10000E-03    5.6995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    115.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.8536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.063        11.809        .10320E-03   -1.4932    
  13  norm          .10000E-03    1.7222        .14961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm         .3709        .86089        .82556E-04   -1.5474    
  15  Prefactor     .10000E-03    47.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          16.644        21.630        .98187E-04   -1.4892    
  18  Prefactor     80.378        46.071        .44794E-04   -1.3912    
  19  Prefactor     91.210        78.156        .21039E-03   -1.3795    
  20  norm          39.847        12.568        .31750E-03   -1.4445    
  21  Prefactor     12.984        12.556        .55585E-03   -1.4987    
  22  norm          .92078        1.0073        .13309E-02   -1.5516    
  23  Normalizat    1.4393        .29638        .44570E-03   -.79497    
  24  Prefactor     .87685        .76960E-01    .15013E-03   -.96955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6013e-10
Minuit parameter uncertainties:
  1  7.66059e-07
  2  2.73042e-06
  3  0.00332933
  4  3.35358
  5  65.899
  6  3.0397e-05
  7  6.70191e-06
  8  23.8764
  9  4.77917e-06
  10  0.000115581
  11  4.13254e-06
  12  11.8111
  13  1.24146e-06
  14  0.860893
  15  5.82358e-05
  16  1.28765e-05
  17  21.6406
  18  46.0917
  19  78.2446
  20  12.5691
  21  12.5587
  22  1.0073
  23  0.296735
  24  0.0769692
DoDone.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 13755.6707129

Extracting fit parameters...

4FGL J1807.9-6412
   Spectrum: PowerLaw
752    Prefactor:  1.506e+01  1.181e+01  1.000e-04  1.000e+04 ( 1.000e-13)
753        Index:  2.523e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
754        Scale:  1.207e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1099    Prefactor:  8.768e-01  7.697e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1100        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1101        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1070   Normalization:  1.439e+00  2.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.87
Ra Dec: 271.993 -64.209
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 5.31e-08 +/- 4.16e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.18e-05

TS (Fixed Index): 3.87
Ra Dec: 271.993 -64.209
Photon Flux Upper Limit: 1.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/555764/likelihoodResults_671673601_671932801_4FGL_J1807.9-6412_daily_bin1668.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13755.6604463
delta logL = 0.0102665434333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13755.6546106
delta logL = 0.0161023349247

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.551       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3717       1.0000          .0000       10.000    
     3 'Normalizat'    1.4503       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87529       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1126E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13755.65     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      246 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.554        15.788        .98447E-04    .99544E-04
   2  Index         2.3722        .88271        .90774E-02    .31140E-04
   3  Normalizat    1.4503        .28291        .44429E-03    .39089E-03
   4  Prefactor     .87533        .75316E-01    .15025E-03    .11319E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.5536
  Index      = 2.37218
  Normalizat = 1.45033
  Prefactor  = 0.875326
 **********
 **   18 **HESSE 
 **********

 FCN=   13755.65     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.554        15.172        .39379E-05   -1.4894    
   2  Index         2.3722        .84664        .36310E-03   -.55338    
   3  Normalizat    1.4503        .28239        .17772E-04   -.79184    
   4  Prefactor     .87533        .75310E-01    .30051E-04   -.97009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43772e-10
Minuit parameter uncertainties:
  1  15.1752
  2  0.852329
  3  0.282693
  4  0.0753185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555764': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13755.6546098
delta logL = 0.016103082653

Extracting fit parameters...

4FGL J1807.9-6412
   Spectrum: PowerLaw
752    Prefactor:  1.655e+01  1.518e+01  1.000e-04  1.000e+04 ( 1.000e-13)
753        Index:  2.372e+00  8.523e-01  0.000e+00  1.000e+01 (-1.000e+00)
754        Scale:  1.207e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1099    Prefactor:  8.753e-01  7.532e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1100        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1101        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1070   Normalization:  1.450e+00  2.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.89
Ra Dec: 271.993 -64.209
Photon Index (Free Index): 2.37 +/- 0.85
Photon Flux (Free Index): 4.44e-08 +/- 6.08e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.25e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/555764/cmap_HighResolution_671673601_671932801_4FGL_J1807.9-6412_daily_bin1668.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='5.31e-08', energy_flux2='1.51e-05', photon_flux_error='4.16e-08', dlogl='1.61e-02', energy_flux='1.50e-05', photon_flux2='4.44e-08', job_status='DONE', time_completed='2022-04-18 03:48:50.962532', photon_index_error2='0.85', photon_index2='2.37', ts='3.87', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='1.25e-05', EG='1.44', time_epoch_completed='1650278930.96', return_code='0', job_id='555764', GAL2='0.88', EG2='1.45', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='6.08e-08', ts2='3.89', photon_index='2.52' WHERE bin_id='1668' AND source_name='4FGL J1807.9-6412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Apr 18 03:48:50 PDT 2022

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 555934: <4FGL_J1807.9-6412_daily_bin1668> in cluster <slac> Done

Job <4FGL_J1807.9-6412_daily_bin1668> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Apr 18 00:08:00 2022
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Apr 18 03:08:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Apr 18 03:08:51 2022
Terminated at Mon Apr 18 03:43:17 2022
Results reported at Mon Apr 18 03:43:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1807.9-6412_daily_bin1668 271.993 -64.209 671673601 671932801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1807.9-6412 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1992.00 sec.
    Max Memory :                                 789 MB
    Average Memory :                             390.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2066 sec.
    Turnaround time :                            12917 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 555764: <4FGL_J1807.9-6412_daily_bin1668> in cluster <slac> Done

Job <4FGL_J1807.9-6412_daily_bin1668> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Apr 18 00:07:44 2022
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Apr 18 03:04:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Apr 18 03:04:24 2022
Terminated at Mon Apr 18 03:48:51 2022
Results reported at Mon Apr 18 03:48:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1807.9-6412_daily_bin1668 271.993 -64.209 671673601 671932801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1807.9-6412 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2455.00 sec.
    Max Memory :                                 1263 MB
    Average Memory :                             387.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2667 sec.
    Turnaround time :                            13267 sec.

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

