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 58 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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.
Done.


Performing analysis on: 4FGL_J0809.8+5218_daily_bin1746
RA = 122.462, Dec = 52.3143
tmin = 691891201, tmax = 692150401
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='717837', job_status='RUN', time_executed='2022-12-08 00:26:31.125964', time_epoch_executed='1670487991.13' WHERE source_name='4FGL J0809.8+5218' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/717837

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/717837/ft1_4FGL_J0809.8+5218_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/717837/ft2_4FGL_J0809.8+5218_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/717837/ft1_4FGL_J0809.8+5218_daily_bin1746.fits outfile=/scratch/kocevski/717837/ft1_filteredMKT_4FGL_J0809.8+5218_daily_bin1746.fits ra=122.462 dec=52.3143 rad=12.0 tmin=691891201.0 tmax=692150401.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.70
user 4.49
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/717837/ft2_4FGL_J0809.8+5218_daily_bin1746.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/717837/ft1_filteredMKT_4FGL_J0809.8+5218_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/717837/ft1_filtered_4FGL_J0809.8+5218_daily_bin1746.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.51
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 661

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/717837/ft1_filtered_4FGL_J0809.8+5218_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/717837/ft2_4FGL_J0809.8+5218_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/717837/ltcube_691891201_692150401_4FGL_J0809.8+5218_daily_bin1746.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/717837/ft2_4FGL_J0809.8+5218_daily_bin1746.fits
.....................!
real 11.81
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/717837/ft1_filtered_4FGL_J0809.8+5218_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/717837/ft2_4FGL_J0809.8+5218_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/717837/ltcube_691891201_692150401_4FGL_J0809.8+5218_daily_bin1746.fits outfile=/scratch/kocevski/717837/expmap_691891201_692150401_4FGL_J0809.8+5218_daily_bin1746.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/717837/ltcube_691891201_692150401_4FGL_J0809.8+5218_daily_bin1746.fits
.....................!
real 191.09
user 186.02
sys 4.73

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/717837/ft1_filtered_4FGL_J0809.8+5218_daily_bin1746.fits scfile=/scratch/kocevski/717837/ft2_4FGL_J0809.8+5218_daily_bin1746.fits outfile=/scratch/kocevski/717837/cmap_691891201_692150401_4FGL_J0809.8+5218_daily_bin1746.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/717837/ft1_filtered_4FGL_J0809.8+5218_daily_bin1746.fits scfile=/scratch/kocevski/717837/ft2_4FGL_J0809.8+5218_daily_bin1746.fits outfile=/scratch/kocevski/717837/cmap_HighResolution_691891201_692150401_4FGL_J0809.8+5218_daily_bin1746.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/717837/ft1_filtered_4FGL_J0809.8+5218_daily_bin1746.fits', '/scratch/kocevski/717837/ft2_4FGL_J0809.8+5218_daily_bin1746.fits', expMap='/scratch/kocevski/717837/expmap_691891201_692150401_4FGL_J0809.8+5218_daily_bin1746.fits', expCube='/scratch/kocevski/717837/ltcube_691891201_692150401_4FGL_J0809.8+5218_daily_bin1746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/717837/Model_4FGL_J0809.8+5218_daily_bin1746.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  0.000e+00  1.000e+06 ( 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 -5.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/717837/ft1_filtered_4FGL_J0809.8+5218_daily_bin1746.fits
Spacecraft file(s): /scratch/kocevski/717837/ft2_4FGL_J0809.8+5218_daily_bin1746.fits
Exposure map: /scratch/kocevski/717837/expmap_691891201_692150401_4FGL_J0809.8+5218_daily_bin1746.fits
Exposure cube: /scratch/kocevski/717837/ltcube_691891201_692150401_4FGL_J0809.8+5218_daily_bin1746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/717837/Model_4FGL_J0809.8+5218_daily_bin1746.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) = 7134.80950704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7935       1.0000          .0000       .10000E+07
     2 'norm      '    1.3775       1.0000          .0000       .10000E+07
     3 'Prefactor '    .32626E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .40770E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    8.2606       1.0000          .0000       .10000E+07
     6 'Prefactor '    .92591E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .23364E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .40819E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    11.361       1.0000          .0000       .10000E+07
    10 'norm      '    .12079E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .24639E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    17.870       1.0000          .0000       .10000E+07
    13 'norm      '    .85290E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    7.6104       1.0000          .0000       .10000E+07
    15 'norm      '    .13289E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    25.806       1.0000          .0000       .10000E+07
    17 'Prefactor '    34.649       1.0000          .0000       .10000E+07
    18 'norm      '    .62432E-03   1.0000          .0000       .10000E+07
    19 'norm      '    2.3498       1.0000          .0000       .10000E+07
    20 'Prefactor '    .62536E-03   1.0000          .0000       .10000E+07
    21 'norm      '    .51387E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .11348E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    6.3045       1.0000          .0000       .10000E+07
    24 'Prefactor '    .13599E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    2.8804       1.0000          .0000       .10000E+07
    26 'Prefactor '    7.9087       1.0000          .0000       .10000E+07
    27 'norm      '    .75295E-04   1.0000          .0000       .10000E+07
    28 'norm      '    .31126E-03   1.0000          .0000       .10000E+07
    29 'Prefactor '    .32525E-03   1.0000          .0000       .10000E+07
    30 'Prefactor '    .20747E-04   1.0000          .0000       .10000E+07
    31 'Normalizat'    1.0581       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .96575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7134.798     FROM MIGRAD    STATUS=CONVERGED    277 CALLS     3258 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7875        3.0721        .14456E-08   -.33120E-03
   2  norm          1.3797        3.1613        .66214E-07   -.36333E-03
   3  Prefactor     .77716E-09    6.3056        .69915E-07** at limit **
   4  Prefactor     .75495E-08    2.0086        .10487E-06** at limit **
   5  Prefactor     8.2496        2.3739        .18532E-07    .14282E-01
   6  Prefactor     .42744E-08    2.4819        .13087E-06** at limit **
   7  norm           .0000        1.8167        .38044E-07** at limit **
   8  Prefactor     .42411E-07    4.8796        .79887E-07** at limit **
   9  Prefactor     11.556        2.2033       -.62512E-08    .16417E-01
  10  norm           .0000        .27949       -.16205E-07** at limit **
  11  Prefactor      .0000        28.246        .29985E-06** at limit **
  12  Prefactor     17.937        4.8747        .15124E-07   -.20852E-01
  13  norm           .0000        3.5562       -.98745E-08** at limit **
  14  Prefactor     7.9192        8.9213        .71309E-07   -.68369E-02
  15  norm          .66613E-08    84.507        .87546E-06** at limit **
  16  Prefactor     22.864        63.260       -.50834E-06   -.14362E-02
  17  Prefactor     34.675        6.1935       -.11258E-07    .98157E-02
  18  norm           .0000        2.4279        .54065E-07** at limit **
  19  norm          2.3494        1.7079        .30378E-07   -.80266E-03
  20  Prefactor     .30809E-07    6.8893        .93063E-07** at limit **
  21  norm          .77270E-02    5.0323       -.14860E-06** at limit **
  22  Prefactor     .10159E-07    8.5841       -.77318E-07** at limit **
  23  Prefactor     6.3127        5.1586        .40349E-07    .17499E-03
  24  Prefactor     .55511E-10    11.103       -.12385E-06** at limit **
  25  Prefactor     2.8895        3.4905        .81655E-08    .59313E-02
  26  Prefactor     7.9115        6.5387       -.81837E-08    .28746E-03
  27  norm          .77716E-09    23.486        .32965E-06** at limit **
  28  norm          .11102E-09    4.6865       -.66302E-07** at limit **
  29  Prefactor     .16653E-09    3.5040       -.32825E-07** at limit **
  30  Prefactor     .20983E-07    5.4680        .16250E-07** at limit **
  31  Normalizat    1.0590        .20340        .18236E-05   -.74447E-05
  32  Prefactor     .96550        .14922       -.34043E-06   -.16974E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.78755
  norm       = 1.37974
  Prefactor  = 7.77156e-10
  Prefactor  = 7.54952e-09
  Prefactor  = 8.24955
  Prefactor  = 4.27436e-09
  norm       = 0
  Prefactor  = 4.24105e-08
  Prefactor  = 11.5563
  norm       = 0
  Prefactor  = 0
  Prefactor  = 17.937
  norm       = 0
  Prefactor  = 7.91924
  norm       = 6.66134e-09
  Prefactor  = 22.8636
  Prefactor  = 34.6748
  norm       = 0
  norm       = 2.34942
  Prefactor  = 3.08087e-08
  norm       = 0.00772699
  Prefactor  = 1.01585e-08
  Prefactor  = 6.31272
  Prefactor  = 5.55112e-11
  Prefactor  = 2.88952
  Prefactor  = 7.91149
  norm       = 7.77156e-10
  norm       = 1.11022e-10
  Prefactor  = 1.66533e-10
  Prefactor  = 2.09832e-08
  Normalizat = 1.05902
  Prefactor  = 0.965504
 **********
 **   18 **HESSE 
 **********

 FCN=   7134.798     FROM HESSE     STATUS=OK           735 CALLS     3993 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7875        3.0909        .60847E-03   -1.5675    
   2  norm          1.3797        3.2150        .92752E-03   -1.5684    
   3  Prefactor     .77716E-09    6.4367        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .75495E-08    4.4338        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.2496        9.3354        .34857E-03   -1.5651    
   6  Prefactor     .42744E-08    4.3630        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        1.8288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .42411E-07    7.8478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.556        33.052        .29697E-03   -1.5640    
  10  norm           .0000        .27388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        7.3886        .11929E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.937        16.979        .23666E-03   -1.5623    
  13  norm           .0000        3.5326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.9192        12.104        .36328E-03   -1.5652    
  15  norm          .66613E-08    2.6243        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.864        63.959        .19689E-03   -1.5612    
  17  Prefactor     34.675        9.9972        .16991E-03   -1.5590    
  18  norm           .0000        2.4246        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.3494        1.7075        .66844E-03   -1.5677    
  20  Prefactor     .30809E-07    9.1829        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .77270E-02    .25439        .24400E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10159E-07    10.487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.3127        5.1817        .39953E-03   -1.5658    
  24  Prefactor     .55511E-10    11.609        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.8895        9.5582        .59860E-03   -1.5674    
  26  Prefactor     7.9115        6.5488        .35631E-03   -1.5652    
  27  norm          .77716E-09    23.074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .11102E-09    4.8100        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .16653E-09    3.5386        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .20983E-07    7.2374        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0590        .17959        .62076E-01   -.91079    
  32  Prefactor     .96550        .12901        .45838E-01   -.93888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29827e-08
Minuit parameter uncertainties:
  1  3.09089
  2  3.21499
  3  0.000139813
  4  0.000365265
  5  9.33542
  6  0.000272618
  7  3.86213e-06
  8  0.00115414
  9  33.0526
  10  1.34532e-07
  11  2.30518e-05
  12  16.9792
  13  1.4304e-05
  14  12.1042
  15  0.000264348
  16  63.9614
  17  9.99722
  18  2.92311e-06
  19  1.70747
  20  0.0010635
  21  0.0886718
  22  0.000653633
  23  5.18166
  24  4.31417e-05
  25  9.55821
  26  6.54884
  27  0.000269304
  28  4.06828e-05
  29  4.83273e-05
  30  0.000779346
  31  0.179688
  32  0.12905
Done.

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

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  2.349e+00  1.707e+00  0.000e+00  1.000e+06 ( 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 -5.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.655e-01  1.291e-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.059e+00  1.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.27
Ra Dec: 122.462 52.314
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 2.88e-08 +/- 2.10e-08
Energy Flux (Fixed Index): 3.08e-05 +/- 2.24e-05

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) = 7134.33493728
delta logL = 0.462761536729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7134.32473782
delta logL = 0.472960994518

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8206       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4411       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0204       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97919       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7134.325     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      272 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8206        1.8111        .30944E-05   -.46953E-02
   2  alpha         2.4411        .70521        .11110E-01   -.15500E-04
   3  Normalizat    1.0204        .20415        .27887E-03    .17742E-03
   4  Prefactor     .97920        .14948        .21175E-03    .52124E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.8206
  alpha      = 2.44108
  Normalizat = 1.02044
  Prefactor  = 0.979204
 **********
 **   18 **HESSE 
 **********

 FCN=   7134.325     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8206        1.6364        .12378E-06   -1.5681    
   2  alpha         2.4411        .63795        .44441E-03   -.23569E-01
   3  Normalizat    1.0204        .20333        .11155E-04   -.92349    
   4  Prefactor     .97920        .14924        .42349E-04   -.93426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18355e-10
Minuit parameter uncertainties:
  1  1.63639
  2  0.645087
  3  0.203488
  4  0.149301
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/717837': 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) = 7134.32473781
delta logL = 0.472961003198

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  1.821e+00  1.636e+00  0.000e+00  1.000e+06 ( 1.000e-12)
331        alpha:  2.441e+00  6.451e-01  0.000e+00  5.000e+00 ( 1.000e+00)
332         beta:  3.259e-02  0.000e+00 -5.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.792e-01  1.493e-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.020e+00  2.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.21
Ra Dec: 122.462 52.314
Photon Index (Free Index): 2.44 +/- 0.65
Photon Flux (Free Index): 6.32e-08 +/- 5.02e-08
Energy Flux (Free Index): 2.04e-05 +/- 1.29e-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/717837/cmap_HighResolution_691891201_692150401_4FGL_J0809.8+5218_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.88e-08', energy_flux2='2.04e-05', photon_flux_error='2.10e-08', dlogl='4.73e-01', energy_flux='3.08e-05', photon_flux2='6.32e-08', job_status='DONE', time_completed='2022-12-08 00:41:46.438339', photon_index_error2='0.65', photon_index2='2.44', ts='6.27', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.29e-05', EG='1.06', time_epoch_completed='1670488906.44', return_code='0', job_id='717837', GAL2='0.98', EG2='1.02', return_code2='0', energy_flux_error='2.24e-05', photon_flux_error2='5.02e-08', ts2='7.21', photon_index='1.81' WHERE bin_id='1746' AND source_name='4FGL J0809.8+5218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 00:41:46 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 717837: <4FGL_J0809.8+5218_daily_bin1746> in cluster <slac> Done

Job <4FGL_J0809.8+5218_daily_bin1746> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Dec  8 00:25:19 2022
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 00:25:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 00:25:20 2022
Terminated at Thu Dec  8 00:41:47 2022
Results reported at Thu Dec  8 00:41:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+5218_daily_bin1746 122.462 52.3143 691891201 692150401 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 :                                   917.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            988 sec.

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

