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 30 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 = 7478
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0806.5+4503_daily_bin1694
RA = 121.628, Dec = 45.0605
tmin = 678412801, tmax = 678672001
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='639336', job_status='RUN', time_executed='2022-07-05 03:11:27.950202', time_epoch_executed='1657015887.95' WHERE source_name='4FGL J0806.5+4503' and cadence='daily' and bin_id='1694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639336

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639336/ft1_4FGL_J0806.5+4503_daily_bin1694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639336/ft2_4FGL_J0806.5+4503_daily_bin1694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639336/ft1_4FGL_J0806.5+4503_daily_bin1694.fits outfile=/scratch/kocevski/639336/ft1_filteredMKT_4FGL_J0806.5+4503_daily_bin1694.fits ra=121.628 dec=45.0605 rad=12.0 tmin=678412801.0 tmax=678672001.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.75
user 3.39
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/639336/ft2_4FGL_J0806.5+4503_daily_bin1694.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/639336/ft2_4FGL_J0806.5+4503_daily_bin1694.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/639336/ft1_filteredMKT_4FGL_J0806.5+4503_daily_bin1694.fits evtable="EVENTS" outfile="/scratch/kocevski/639336/ft1_filtered_4FGL_J0806.5+4503_daily_bin1694.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.52
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 739

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639336/ft1_filtered_4FGL_J0806.5+4503_daily_bin1694.fits" evtable="EVENTS" scfile=/scratch/kocevski/639336/ft2_4FGL_J0806.5+4503_daily_bin1694.fits sctable="SC_DATA" outfile=/scratch/kocevski/639336/ltcube_678412801_678672001_4FGL_J0806.5+4503_daily_bin1694.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/639336/ft2_4FGL_J0806.5+4503_daily_bin1694.fits
.....................!
real 15.37
user 14.93
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639336/ft1_filtered_4FGL_J0806.5+4503_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/639336/ft2_4FGL_J0806.5+4503_daily_bin1694.fits sctable="SC_DATA" expcube=/scratch/kocevski/639336/ltcube_678412801_678672001_4FGL_J0806.5+4503_daily_bin1694.fits outfile=/scratch/kocevski/639336/expmap_678412801_678672001_4FGL_J0806.5+4503_daily_bin1694.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/639336/ltcube_678412801_678672001_4FGL_J0806.5+4503_daily_bin1694.fits
.....................!
real 194.93
user 189.01
sys 5.18

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
Added 207 point sources and 0 extended sources

Setting source of interest to:
4FGL J0806.5+4503 @ 121.628 45.0605

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/639336/ft1_filtered_4FGL_J0806.5+4503_daily_bin1694.fits scfile=/scratch/kocevski/639336/ft2_4FGL_J0806.5+4503_daily_bin1694.fits outfile=/scratch/kocevski/639336/cmap_678412801_678672001_4FGL_J0806.5+4503_daily_bin1694.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=121.628 yref=45.0605 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/639336/ft1_filtered_4FGL_J0806.5+4503_daily_bin1694.fits scfile=/scratch/kocevski/639336/ft2_4FGL_J0806.5+4503_daily_bin1694.fits outfile=/scratch/kocevski/639336/cmap_HighResolution_678412801_678672001_4FGL_J0806.5+4503_daily_bin1694.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=121.628 yref=45.0605 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/639336/ft1_filtered_4FGL_J0806.5+4503_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/639336/ft2_4FGL_J0806.5+4503_daily_bin1694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/639336/Model_4FGL_J0806.5+4503_daily_bin1694.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 GAL_V02
Working on...
/scratch/kocevski/639336/ft1_filtered_4FGL_J0806.5+4503_daily_bin1694.fits.....................!
real 80.11
user 77.47
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/639336/ft1_filtered_4FGL_J0806.5+4503_daily_bin1694.fits', '/scratch/kocevski/639336/ft2_4FGL_J0806.5+4503_daily_bin1694.fits', expMap='/scratch/kocevski/639336/expmap_678412801_678672001_4FGL_J0806.5+4503_daily_bin1694.fits', expCube='/scratch/kocevski/639336/ltcube_678412801_678672001_4FGL_J0806.5+4503_daily_bin1694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/639336/Model_4FGL_J0806.5+4503_daily_bin1694.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0806.5+4503'

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  6.264e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.607e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  6.910e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/639336/ft1_filtered_4FGL_J0806.5+4503_daily_bin1694.fits
Spacecraft file(s): /scratch/kocevski/639336/ft2_4FGL_J0806.5+4503_daily_bin1694.fits
Exposure map: /scratch/kocevski/639336/expmap_678412801_678672001_4FGL_J0806.5+4503_daily_bin1694.fits
Exposure cube: /scratch/kocevski/639336/ltcube_678412801_678672001_4FGL_J0806.5+4503_daily_bin1694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/639336/Model_4FGL_J0806.5+4503_daily_bin1694.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) = 8070.96172439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10690E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .28002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.808       1.0000         .10000E-03   10000.    
     4 'norm      '    8.9460       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.930       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3226       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .59454       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3861       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8866       1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .94858       1.0000         .10000E-03   10000.    
    16 'norm      '    .85547       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6820       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    69.809       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    10.326       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2884       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .94670       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8070.890     FROM MIGRAD    STATUS=CONVERGED    704 CALLS     3188 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.0694        .28840E-06** at limit **
   2  Prefactor     .10009E-03    3.0891       -.54081E-06** at limit **
   3  Prefactor     37.815        20.920        .63508E-06    .33082E-03
   4  norm          8.9522        7.9031       -.62000E-07    .12494E-03
   5  Prefactor     .10000E-03    11.726        .75171E-06** at limit **
   6  Prefactor     10.929        23.810       -.31380E-06   -.33101E-05
   7  norm          .10000E-03    .17745        .93070E-08** at limit **
   8  Prefactor     5.3199        10.207       -.35680E-06   -.47664E-04
   9  Prefactor     .10000E-03    7.1030       -.96892E-07** at limit **
  10  norm          .59481        1.9101        .11211E-05   -.46785E-04
  11  Prefactor     2.3858        3.7632        .11506E-06   -.19315E-04
  12  Prefactor     .10000E-03    18.050       -.49011E-07** at limit **
  13  Prefactor     2.8860        4.6989        .48888E-06   -.23859E-04
  14  norm          .10000E-03    2.3648       -.59063E-07** at limit **
  15  norm          .94856        .93401       -.17988E-07    .15195E-04
  16  norm          .85523        .60462       -.14243E-07    .31491E-04
  17  Prefactor     .10000E-03    7.9970       -.86418E-06** at limit **
  18  Prefactor     5.6804        6.1426        .22330E-06   -.21530E-04
  19  Prefactor     .10000E-03    .75243       -.19150E-07** at limit **
  20  Prefactor     69.804        35.075       -.56645E-06   -.11448E-03
  21  Prefactor     .10000E-03    4.7049       -.37119E-06** at limit **
  22  Prefactor     .10000E-03    2.2005        .39003E-07** at limit **
  23  norm          10.325        5.9587        .43820E-06   -.94093E-04
  24  norm          .10000E-03    1.2997       -.47981E-08** at limit **
  25  Prefactor     .10000E-03    1.9127       -.15459E-07** at limit **
  26  Prefactor     .10000E-03    5.8884        .69599E-06** at limit **
  27  Prefactor     .10000E-03    18.214       -.18832E-06** at limit **
  28  Normalizat    1.2886        .18844       -.11148E-06    .43271E-04
  29  Prefactor     .94661        .13383       -.48943E-06    .87127E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100091
  Prefactor  = 37.8153
  norm       = 8.95224
  Prefactor  = 0.0001
  Prefactor  = 10.9292
  norm       = 0.0001
  Prefactor  = 5.31989
  Prefactor  = 0.0001
  norm       = 0.59481
  Prefactor  = 2.38577
  Prefactor  = 0.0001
  Prefactor  = 2.88599
  norm       = 0.0001
  norm       = 0.948557
  norm       = 0.855229
  Prefactor  = 0.0001
  Prefactor  = 5.68043
  Prefactor  = 0.0001
  Prefactor  = 69.8045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3254
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.28864
  Prefactor  = 0.946613
 **********
 **   18 **HESSE 
 **********

 FCN=   8070.890     FROM HESSE     STATUS=OK           549 CALLS     3737 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0837        .15330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10009E-03    31.295        .28222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.815        21.201        .65182E-04   -1.4477    
   4  norm          8.9522        7.7793        .13401E-03   -1.5109    
   5  Prefactor     .10000E-03    11.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.929        23.791        .12118E-03   -1.5047    
   7  norm          .10000E-03    .18072        .36943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.3199        10.128        .17420E-03   -1.5247    
   9  Prefactor     .10000E-03    7.1328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .59481        1.9314        .21511E-03   -1.5554    
  11  Prefactor     2.3858        3.7434        .21305E-03   -1.5399    
  12  Prefactor     .10000E-03    18.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8860        4.6788        .23245E-03   -1.5368    
  14  norm          .10000E-03    2.4740        .26940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .94856        .94833        .83801E-04   -1.5513    
  16  norm          .85523        .60334        .54593E-04   -1.5523    
  17  Prefactor     .10000E-03    8.1402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.6804        6.1484        .16851E-03   -1.5231    
  19  Prefactor     .10000E-03    .75477        .76073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     69.804        35.271        .48044E-04   -1.4035    
  21  Prefactor     .10000E-03    4.7176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.2101        .13016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          10.325        5.9930        .62344E-03   -1.5065    
  24  norm          .10000E-03    1.3012        .10002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.9758        .24233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.0106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    18.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2886        .22057        .28082E-03   -.83906    
  29  Prefactor     .94661        .15625        .23098E-03   -.94531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00736e-09
Minuit parameter uncertainties:
  1  4.96381e-06
  2  0.00336893
  3  21.2048
  4  7.78021
  5  9.5377e-05
  6  23.8114
  7  1.43352e-07
  8  10.1309
  9  8.65598e-06
  10  1.93162
  11  3.74376
  12  4.25357e-06
  13  4.67943
  14  1.22122e-06
  15  0.948341
  16  0.603341
  17  7.85835e-05
  18  6.14909
  19  4.92744e-07
  20  35.2816
  21  1.94096e-05
  22  2.33791e-06
  23  5.99334
  24  2.62633e-07
  25  3.61128e-08
  26  6.6038e-05
  27  3.15193e-05
  28  0.220734
  29  0.156329
Done.

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

Extracting fit parameters...

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  4.254e-06  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.607e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  6.910e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  9.466e-01  1.563e-01  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.289e+00  2.207e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.628 45.060
Photon Flux Upper Limit: 6.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/639336/likelihoodResults_678412801_678672001_4FGL_J0806.5+4503_daily_bin1694.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): 102
logL (Free Index) = 8070.89014179
delta logL = -0.000263580878709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8070.88987917
delta logL = -9.61365003604e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1864       1.0000          .0000       10.000    
     3 'Normalizat'    1.2886       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94661       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .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=   8070.890     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      275 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10278E-03    10.789        .18142E-01** at limit **
   2  Index         3.0959        6.2502        .50000        .12486E-04
   3  Normalizat    1.2886        .41622E-02    .28082E-03    .29999E-04
   4  Prefactor     .94661        .30044E-02    .23098E-03    .17473E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102775
  Index      = 3.09589
  Normalizat = 1.28864
  Prefactor  = 0.946612
 **********
 **   18 **HESSE 
 **********

 FCN=   8070.890     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10278E-03    82.148        .33043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0959        6.4205        .50000       -.39068    
   3  Normalizat    1.2886        .11453E-01    .11233E-04   -.83906    
   4  Prefactor     .94661        .82676E-02    .92394E-05   -.94531    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.33845e-09
Minuit parameter uncertainties:
  1  0.0302392
  2  391.223
  3  0.0114535
  4  0.00826757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639336': 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): 102
logL (Free Index) = 8070.889879
delta logL = -7.91737875261e-07

Extracting fit parameters...

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  1.028e-04  3.024e-02  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  3.096e+00  3.912e+02  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  6.910e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  9.466e-01  8.268e-03  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.289e+00  1.145e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.628 45.060

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/639336/cmap_HighResolution_678412801_678672001_4FGL_J0806.5+4503_daily_bin1694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.16e-03', job_status='DONE', photon_flux_upper_limit='6.59e-08', time_completed='2022-07-05 03:28:48.407608', job_id='639336', GAL2='0.95', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1657016928.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='-7.92e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1694' AND source_name='4FGL J0806.5+4503' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  5 03:28:48 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 639299: <4FGL_J0806.5+4503_daily_bin1694> in cluster <slac> Done

Job <4FGL_J0806.5+4503_daily_bin1694> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Jul  5 00:05:49 2022
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:09:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 03:09:39 2022
Terminated at Tue Jul  5 03:27:36 2022
Results reported at Tue Jul  5 03:27:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0806.5+4503_daily_bin1694 121.628 45.0605 678412801 678672001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0806.5+4503 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1033.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             337.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1078 sec.
    Turnaround time :                            12107 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 639336: <4FGL_J0806.5+4503_daily_bin1694> in cluster <slac> Done

Job <4FGL_J0806.5+4503_daily_bin1694> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Jul  5 00:05:52 2022
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:10:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 03:10:43 2022
Terminated at Tue Jul  5 03:28:49 2022
Results reported at Tue Jul  5 03:28:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0806.5+4503_daily_bin1694 121.628 45.0605 678412801 678672001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0806.5+4503 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1040.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             333.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1085 sec.
    Turnaround time :                            12177 sec.

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

