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


Performing analysis on: 4FGL_J0809.8+5218_daily_bin1692
RA = 122.462, Dec = 52.3143
tmin = 677894401, tmax = 678153601
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='404604', job_status='RUN', time_executed='2022-06-29 04:20:27.163076', time_epoch_executed='1656501627.16' WHERE source_name='4FGL J0809.8+5218' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404604

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404604/ft1_4FGL_J0809.8+5218_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404604/ft2_4FGL_J0809.8+5218_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404604/ft1_4FGL_J0809.8+5218_daily_bin1692.fits outfile=/scratch/kocevski/404604/ft1_filteredMKT_4FGL_J0809.8+5218_daily_bin1692.fits ra=122.462 dec=52.3143 rad=12.0 tmin=677894401.0 tmax=678153601.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 4.52
user 4.22
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/404604/ft2_4FGL_J0809.8+5218_daily_bin1692.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/404604/ft2_4FGL_J0809.8+5218_daily_bin1692.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/404604/ft1_filteredMKT_4FGL_J0809.8+5218_daily_bin1692.fits evtable="EVENTS" outfile="/scratch/kocevski/404604/ft1_filtered_4FGL_J0809.8+5218_daily_bin1692.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.32
sys 0.17

Number of photons that the gtmktime cut: 607

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404604/ft1_filtered_4FGL_J0809.8+5218_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/404604/ft2_4FGL_J0809.8+5218_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/404604/ltcube_677894401_678153601_4FGL_J0809.8+5218_daily_bin1692.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/404604/ft2_4FGL_J0809.8+5218_daily_bin1692.fits
.....................!
real 14.28
user 13.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404604/ft1_filtered_4FGL_J0809.8+5218_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/404604/ft2_4FGL_J0809.8+5218_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/404604/ltcube_677894401_678153601_4FGL_J0809.8+5218_daily_bin1692.fits outfile=/scratch/kocevski/404604/expmap_677894401_678153601_4FGL_J0809.8+5218_daily_bin1692.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/404604/ltcube_677894401_678153601_4FGL_J0809.8+5218_daily_bin1692.fits
.....................!
real 191.63
user 186.23
sys 4.89

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

Setting source of interest to:
4FGL J0809.8+5218 @ 122.462 52.3143

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/404604/ft1_filtered_4FGL_J0809.8+5218_daily_bin1692.fits scfile=/scratch/kocevski/404604/ft2_4FGL_J0809.8+5218_daily_bin1692.fits outfile=/scratch/kocevski/404604/cmap_677894401_678153601_4FGL_J0809.8+5218_daily_bin1692.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=122.462 yref=52.3143 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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404604/ft1_filtered_4FGL_J0809.8+5218_daily_bin1692.fits scfile=/scratch/kocevski/404604/ft2_4FGL_J0809.8+5218_daily_bin1692.fits outfile=/scratch/kocevski/404604/cmap_HighResolution_677894401_678153601_4FGL_J0809.8+5218_daily_bin1692.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=122.462 yref=52.3143 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404604/ft1_filtered_4FGL_J0809.8+5218_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/404604/ft2_4FGL_J0809.8+5218_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404604/Model_4FGL_J0809.8+5218_daily_bin1692.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/404604/ft1_filtered_4FGL_J0809.8+5218_daily_bin1692.fits.....................!
real 67.79
user 66.23
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/404604/ft1_filtered_4FGL_J0809.8+5218_daily_bin1692.fits', '/scratch/kocevski/404604/ft2_4FGL_J0809.8+5218_daily_bin1692.fits', expMap='/scratch/kocevski/404604/expmap_677894401_678153601_4FGL_J0809.8+5218_daily_bin1692.fits', expCube='/scratch/kocevski/404604/ltcube_677894401_678153601_4FGL_J0809.8+5218_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/404604/Model_4FGL_J0809.8+5218_daily_bin1692.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.8+5218'

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  2.044e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
332         beta:  3.259e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  1.346e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/404604/ft1_filtered_4FGL_J0809.8+5218_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/404604/ft2_4FGL_J0809.8+5218_daily_bin1692.fits
Exposure map: /scratch/kocevski/404604/expmap_677894401_678153601_4FGL_J0809.8+5218_daily_bin1692.fits
Exposure cube: /scratch/kocevski/404604/ltcube_677894401_678153601_4FGL_J0809.8+5218_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/404604/Model_4FGL_J0809.8+5218_daily_bin1692.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) = 6572.51238932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9887       1.0000         .10000E-03   10000.    
     2 'norm      '    .10313E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12549E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.939       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.7689       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.573       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.839       1.0000         .10000E-03   10000.    
    10 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10631E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10648E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.958       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2527       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.134       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3555       1.0000         .10000E-03   10000.    
    19 'norm      '    .10163E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.0321       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .54020       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10506E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .17637E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.0712       1.0000         .10000E-03   10000.    
    28 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .80933E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    8.7697       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.2131       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .91224       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6572.402     FROM MIGRAD    STATUS=CONVERGED   1076 CALLS     4628 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9897        1.8387        .40622E-07   -.92373E-03
   2  norm          .10000E-03    2.1235       -.81019E-07** at limit **
   3  Prefactor     .10000E-03    5.0009       -.16371E-06** at limit **
   4  Prefactor     .10000E-03    7.2323        .29736E-06** at limit **
   5  Prefactor     21.969        18.722        .36430E-05   -.62882E-05
   6  Prefactor     .10000E-03    5.8257        .23422E-07** at limit **
   7  norm          3.7776        7.4615        .31294E-07   -.27609E-03
   8  Prefactor     12.569        18.986       -.29302E-06   -.39309E-04
   9  Prefactor     13.855        24.522       -.67947E-05   -.17690E-04
  10  norm          .10000E-03    .47634        .15286E-06** at limit **
  11  Prefactor     .10000E-03    18.405        .18919E-06** at limit **
  12  Prefactor     .10000E-03    13.762       -.18208E-06** at limit **
  13  norm          .10000E-03    1.5621       -.14994E-06** at limit **
  14  Prefactor     13.972        12.550       -.15221E-05    .18062E-04
  15  norm          3.2528        2.8503        .37309E-07   -.73891E-04
  16  Prefactor     19.008        59.894        .12180E-04    .19402E-04
  17  Prefactor     .10000E-03    8.3755        .26956E-06** at limit **
  18  Prefactor     4.3564        4.9130       -.86982E-07    .16149E-04
  19  norm          .10000E-03    3.9158        .31745E-07** at limit **
  20  norm          2.0342        2.3949        .48940E-07   -.83949E-04
  21  Prefactor     .10000E-03    6.2760        .47778E-07** at limit **
  22  norm          .54039        .46425       -.59513E-07    .54149E-04
  23  Prefactor     .10000E-03    7.9275       -.44450E-06** at limit **
  24  Prefactor     .10000E-03    2.6922        .12570E-06** at limit **
  25  Prefactor     .10000E-03    32.854       -.93820E-06** at limit **
  26  Prefactor     .42637E-03    6.4850       -.10045E-05** at limit **
  27  Prefactor     2.0704        5.8309       -.28728E-06   -.93616E-04
  28  norm          .10000E-03    2.3091        .89791E-07** at limit **
  29  norm          .10000E-03    2.1474       -.34034E-07** at limit **
  30  Prefactor     .10005E-03    11.642        .12607E-05** at limit **
  31  Prefactor     8.7680        16.316        .80886E-06   -.24510E-04
  32  Prefactor     .10000E-03    1.5967        .46764E-07** at limit **
  33  Prefactor     .10000E-03    7.8559        .43697E-06** at limit **
  34  Prefactor     .10000E-03    22.122        .73067E-06** at limit **
  35  Normalizat    1.2139        .19307       -.10040E-05   -.99896E-04
  36  Prefactor     .91147        .13885        .23732E-07   -.16594E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.98967
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.9689
  Prefactor  = 0.0001
  norm       = 3.77764
  Prefactor  = 12.5688
  Prefactor  = 13.8549
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 13.972
  norm       = 3.25281
  Prefactor  = 19.0079
  Prefactor  = 0.0001
  Prefactor  = 4.35638
  norm       = 0.0001
  norm       = 2.03416
  Prefactor  = 0.0001
  norm       = 0.540391
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000426375
  Prefactor  = 2.07037
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100053
  Prefactor  = 8.76801
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.21385
  Prefactor  = 0.91147
 **********
 **   18 **HESSE 
 **********

 FCN=   6572.402     FROM HESSE     STATUS=OK           821 CALLS     5449 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9897        5.1432        .14238E-02   -1.5426    
   2  norm          .10000E-03    2.1347        .11534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.0029        .17706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4602        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.969        18.812        .85515E-04   -1.4770    
   6  Prefactor     .10000E-03    5.8316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.7776        7.8597        .10398E-02   -1.5319    
   8  Prefactor     12.569        18.847        .11297E-03   -1.4999    
   9  Prefactor     13.855        24.477        .10767E-03   -1.4963    
  10  norm          .10000E-03    2.1530        .10571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    90.292        .56899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.5931        .98883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.972        12.448        .10721E-03   -1.4960    
  15  norm          3.2528        2.8432        .12161E-03   -1.5347    
  16  Prefactor     19.008        59.696        .91565E-04   -1.4836    
  17  Prefactor     .10000E-03    8.3793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.3564        4.9010        .18410E-03   -1.5290    
  19  norm          .10000E-03    3.9607        .15596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.0342        2.3721        .12914E-03   -1.5423    
  21  Prefactor     .10000E-03    6.3145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .54039        .45823        .49334E-04   -1.5561    
  23  Prefactor     .10000E-03    7.9349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.7117        .12986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    32.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .42637E-03    9.7870        .70477E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.0704        5.7739        .28703E-03   -1.5420    
  28  norm          .10000E-03    2.3325        .12030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.1537        .11600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10005E-03    73.633        .51736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     8.7680        16.320        .13535E-03   -1.5116    
  32  Prefactor     .10000E-03    1.6465        .19994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    7.8655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    22.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    1.2139        .21994        .26362E-03   -.86176    
  36  Prefactor     .91147        .16212        .22225E-03   -.95741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52596e-09
Minuit parameter uncertainties:
  1  5.14437
  2  9.66644e-06
  3  9.73065e-07
  4  1.71453e-05
  5  18.8172
  6  2.24078e-06
  7  7.86188
  8  18.856
  9  24.4949
  10  4.23505e-06
  11  7.31839e-05
  12  0.000708321
  13  1.01979e-06
  14  12.4501
  15  2.84335
  16  59.8842
  17  1.84723e-06
  18  4.90145
  19  5.5404e-06
  20  2.37218
  21  4.24908e-06
  22  0.458234
  23  1.59614e-06
  24  1.97932e-06
  25  4.68066e-05
  26  0.113053
  27  5.77545
  28  1.74741e-06
  29  1.41535e-06
  30  0.00395369
  31  16.3288
  32  3.07556e-06
  33  2.98494e-06
  34  4.69053e-06
  35  0.220105
  36  0.162208
Done.

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

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  2.034e+00  2.372e+00  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
332         beta:  3.259e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  1.346e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
721    Prefactor:  9.115e-01  1.622e-01  0.000e+00  1.000e+01 ( 1.000e+00)
722        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
723        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
720   Normalization:  1.214e+00  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.97
Ra Dec: 122.462 52.314
Photon Flux Upper Limit: 9.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/404604/likelihoodResults_677894401_678153601_4FGL_J0809.8+5218_daily_bin1692.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) = 6570.64009329
delta logL = 1.76169611831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6570.63545779
delta logL = 1.76633161462

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5182       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7879       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1390       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93163       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6570.635     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      240 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5192        12.451        .86712E-02    .18726E-02
   2  alpha         2.7880        3.6386        .19310        .17718E-03
   3  Normalizat    1.1389        .63916E-01    .61140E-01   -.31119E-04
   4  Prefactor     .93163        .46437E-01    .45407E-01   -.12505E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.51924
  alpha      = 2.788
  Normalizat = 1.13894
  Prefactor  = 0.931629
 **********
 **   18 **HESSE 
 **********

 FCN=   6570.635     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5192        1.7795        .52091E-04   -1.5461    
   2  alpha         2.7880        .59328        .76345E-02    .11546    
   3  Normalizat    1.1389        .21647        .27042E-03   -.88511    
   4  Prefactor     .93163        .15878        .21965E-03   -.95044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74022e-10
Minuit parameter uncertainties:
  1  1.77954
  2  0.599073
  3  0.216642
  4  0.158855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404604': 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) = 6570.63545636
delta logL = 1.76633304876

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  1.519e+00  1.780e+00  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  2.788e+00  5.991e-01  0.000e+00  5.000e+00 ( 1.000e+00)
332         beta:  3.259e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  1.346e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
721    Prefactor:  9.316e-01  1.589e-01  0.000e+00  1.000e+01 ( 1.000e+00)
722        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
723        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
720   Normalization:  1.139e+00  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.55
Ra Dec: 122.462 52.314
Photon Index (Free Index): 2.79 +/- 0.60
Photon Flux (Free Index): 1.03e-07 +/- 5.96e-08
Energy Flux (Free Index): 2.43e-05 +/- 1.46e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/404604/cmap_HighResolution_677894401_678153601_4FGL_J0809.8+5218_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.61e-05', comment='SUCCESS', energy_flux2='2.43e-05', dlogl='1.77e+00', photon_flux2='1.03e-07', job_status='DONE', time_completed='2022-06-29 04:41:29.995401', photon_index_error2='0.60', photon_index2='2.79', ts='0.97', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='9.00e-08', energy_flux_error2='1.46e-05', EG='1.21', time_epoch_completed='1656502890.0', return_code='0', job_id='404604', GAL2='0.93', EG2='1.14', return_code2='0', photon_flux_error2='5.96e-08', ts2='4.55', photon_index='1.81' WHERE bin_id='1692' AND source_name='4FGL J0809.8+5218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 04:41:30 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 404557: <4FGL_J0809.8+5218_daily_bin1692> in cluster <slac> Done

Job <4FGL_J0809.8+5218_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:06:02 2022
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:18:11 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:18:11 2022
Terminated at Wed Jun 29 04:39:56 2022
Results reported at Wed Jun 29 04:39:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+5218_daily_bin1692 122.462 52.3143 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.8+5218 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1257.32 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             327.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1305 sec.
    Turnaround time :                            16434 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 404604: <4FGL_J0809.8+5218_daily_bin1692> in cluster <slac> Done

Job <4FGL_J0809.8+5218_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:06:04 2022
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:18:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:18:42 2022
Terminated at Wed Jun 29 04:41:30 2022
Results reported at Wed Jun 29 04:41:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+5218_daily_bin1692 122.462 52.3143 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.8+5218 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1254.16 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             285.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1368 sec.
    Turnaround time :                            16526 sec.

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

