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


Performing analysis on: 4FGL_J0809.8+5218_daily_bin1745
RA = 122.462, Dec = 52.3143
tmin = 691632001, tmax = 691891201
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='641553', job_status='RUN', time_executed='2022-12-05 00:20:56.924734', time_epoch_executed='1670228456.92' WHERE source_name='4FGL J0809.8+5218' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641553

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641553/ft1_4FGL_J0809.8+5218_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641553/ft2_4FGL_J0809.8+5218_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641553/ft1_4FGL_J0809.8+5218_daily_bin1745.fits outfile=/scratch/kocevski/641553/ft1_filteredMKT_4FGL_J0809.8+5218_daily_bin1745.fits ra=122.462 dec=52.3143 rad=12.0 tmin=691632001.0 tmax=691891201.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 2.36
user 2.17
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/641553/ft2_4FGL_J0809.8+5218_daily_bin1745.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/641553/ft1_filteredMKT_4FGL_J0809.8+5218_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/641553/ft1_filtered_4FGL_J0809.8+5218_daily_bin1745.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 339

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641553/ft1_filtered_4FGL_J0809.8+5218_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/641553/ft2_4FGL_J0809.8+5218_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/641553/ltcube_691632001_691891201_4FGL_J0809.8+5218_daily_bin1745.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/641553/ft2_4FGL_J0809.8+5218_daily_bin1745.fits
.....................!
real 12.37
user 12.02
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641553/ft1_filtered_4FGL_J0809.8+5218_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/641553/ft2_4FGL_J0809.8+5218_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/641553/ltcube_691632001_691891201_4FGL_J0809.8+5218_daily_bin1745.fits outfile=/scratch/kocevski/641553/expmap_691632001_691891201_4FGL_J0809.8+5218_daily_bin1745.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/641553/ltcube_691632001_691891201_4FGL_J0809.8+5218_daily_bin1745.fits
.....................!
real 190.82
user 185.65
sys 4.75

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/641553/ft1_filtered_4FGL_J0809.8+5218_daily_bin1745.fits scfile=/scratch/kocevski/641553/ft2_4FGL_J0809.8+5218_daily_bin1745.fits outfile=/scratch/kocevski/641553/cmap_691632001_691891201_4FGL_J0809.8+5218_daily_bin1745.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641553/ft1_filtered_4FGL_J0809.8+5218_daily_bin1745.fits scfile=/scratch/kocevski/641553/ft2_4FGL_J0809.8+5218_daily_bin1745.fits outfile=/scratch/kocevski/641553/cmap_HighResolution_691632001_691891201_4FGL_J0809.8+5218_daily_bin1745.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.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/641553/ft1_filtered_4FGL_J0809.8+5218_daily_bin1745.fits', '/scratch/kocevski/641553/ft2_4FGL_J0809.8+5218_daily_bin1745.fits', expMap='/scratch/kocevski/641553/expmap_691632001_691891201_4FGL_J0809.8+5218_daily_bin1745.fits', expCube='/scratch/kocevski/641553/ltcube_691632001_691891201_4FGL_J0809.8+5218_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/641553/Model_4FGL_J0809.8+5218_daily_bin1745.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/641553/ft1_filtered_4FGL_J0809.8+5218_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/641553/ft2_4FGL_J0809.8+5218_daily_bin1745.fits
Exposure map: /scratch/kocevski/641553/expmap_691632001_691891201_4FGL_J0809.8+5218_daily_bin1745.fits
Exposure cube: /scratch/kocevski/641553/ltcube_691632001_691891201_4FGL_J0809.8+5218_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/641553/Model_4FGL_J0809.8+5218_daily_bin1745.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) = 3870.47617322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.350       1.0000          .0000       .10000E+07
     2 'norm      '    .13042E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .42632E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    27.644       1.0000          .0000       .10000E+07
     5 'Prefactor '    .49013       1.0000          .0000       .10000E+07
     6 'Prefactor '    .12924E-01   1.0000          .0000       .10000E+07
     7 'norm      '    .17707E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    41.856       1.0000          .0000       .10000E+07
     9 'Prefactor '    .32948E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .44061       1.0000          .0000       .10000E+07
    11 'Prefactor '    .73766E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .26127E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .23591E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.3123       1.0000          .0000       .10000E+07
    15 'norm      '    .14226E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .87396E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    11.746       1.0000          .0000       .10000E+07
    18 'norm      '    .54132E-03   1.0000          .0000       .10000E+07
    19 'norm      '    .22998E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    .80970E-02   1.0000          .0000       .10000E+07
    21 'norm      '    .99411       1.0000          .0000       .10000E+07
    22 'Prefactor '    17.607       1.0000          .0000       .10000E+07
    23 'Prefactor '    .78749E-05   1.0000          .0000       .10000E+07
    24 'Prefactor '    .14131E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    .86496E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    15.868       1.0000          .0000       .10000E+07
    27 'norm      '    .25354E-02   1.0000          .0000       .10000E+07
    28 'norm      '    .23051E-02   1.0000          .0000       .10000E+07
    29 'Prefactor '    .16417E-02   1.0000          .0000       .10000E+07
    30 'Prefactor '    .40936E-02   1.0000          .0000       .10000E+07
    31 'Normalizat'    1.2728       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .82911       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=   3870.467     FROM MIGRAD    STATUS=CONVERGED    169 CALLS     3055 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.419        1.2917        .80001E-07    .25486E-02
   2  norm          .36876E-06    3.4551       -.10180E-05** at limit **
   3  Prefactor     .88818E-08    5.0390       -.20360E-05** at limit **
   4  Prefactor     27.729        1.6124       -.11872E-06   -.46650E-02
   5  Prefactor     .82198E-05    65.333        .13439E-04** at limit **
   6  Prefactor     .14435E-05    11.497       -.10466E-06** at limit **
   7  norm          .53124E-07    3.1282        .49929E-06** at limit **
   8  Prefactor     41.512        23.397       -.20149E-05    .13089    
   9  Prefactor     .11657E-08    28.094        .92866E-06** at limit **
  10  norm          .44230        1.6793       -.30749E-06   -.38323E-02
  11  Prefactor     .42460E-06    5.9670        .20309E-05** at limit **
  12  Prefactor     .25369E-07    8.4642        .21203E-05** at limit **
  13  norm          .95979E-07    2.2333       -.67760E-06** at limit **
  14  Prefactor     3.3598        1.4550        .31110E-06    .30924E-02
  15  norm          .97367E-07    5.1594        .29819E-05** at limit **
  16  Prefactor     .29721E-06    1.6632       -.11007E-06** at limit **
  17  Prefactor     11.724        4.4609        .10106E-05    .24392E-01
  18  norm          .75230E-05    51.403       -.76257E-06** at limit **
  19  norm          .55511E-10    1.5379       -.17119E-07** at limit **
  20  Prefactor     .96784E-06    7.9247        .13941E-06** at limit **
  21  norm          .99410        .77138       -.15867E-07   -.12885E-01
  22  Prefactor     17.602        1.0984        .82838E-07    .28624E-02
  23  Prefactor     .16653E-09    2.5738        .76972E-07** at limit **
  24  Prefactor     .20161E-05    12.964       -.38135E-05** at limit **
  25  Prefactor     .66613E-09    4.3286        .39410E-07** at limit **
  26  Prefactor     15.860        1.1745       -.15114E-06   -.61826E-02
  27  norm          .23370E-07    4.9404       -.18539E-05** at limit **
  28  norm          .44409E-09    3.8886        .34544E-06** at limit **
  29  Prefactor     .17375E-07    6.2061       -.10590E-05** at limit **
  30  Prefactor     .56760E-06    5.6126        .11826E-05** at limit **
  31  Normalizat    1.2730        .28448       -.10377E-06   -.16710E-03
  32  Prefactor     .82943        .21271       -.94746E-06   -.22320E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.4187
  norm       = 3.68761e-07
  Prefactor  = 8.88178e-09
  Prefactor  = 27.7286
  Prefactor  = 8.21976e-06
  Prefactor  = 1.44346e-06
  norm       = 5.31242e-08
  Prefactor  = 41.5115
  Prefactor  = 1.16573e-09
  norm       = 0.442297
  Prefactor  = 4.24605e-07
  Prefactor  = 2.53686e-08
  norm       = 9.59788e-08
  Prefactor  = 3.35977
  norm       = 9.73666e-08
  Prefactor  = 2.97207e-07
  Prefactor  = 11.7236
  norm       = 7.52298e-06
  norm       = 5.55112e-11
  Prefactor  = 9.67837e-07
  norm       = 0.994101
  Prefactor  = 17.6018
  Prefactor  = 1.66533e-10
  Prefactor  = 2.01605e-06
  Prefactor  = 6.66134e-10
  Prefactor  = 15.8602
  norm       = 2.33702e-08
  norm       = 4.44089e-10
  Prefactor  = 1.7375e-08
  Prefactor  = 5.67602e-07
  Normalizat = 1.273
  Prefactor  = 0.829432
 **********
 **   18 **HESSE 
 **********

 FCN=   3870.467     FROM HESSE     STATUS=OK           717 CALLS     3772 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.419        19.395        .26414E-03   -1.5632    
   2  norm          .36876E-06    9.6033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .88818E-08    10.781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.729        22.034        .19023E-03   -1.5603    
   5  Prefactor     .82198E-05    119.35        .79708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .14435E-05    23.960        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .53124E-07    9.0638        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     41.512        49.920        .15458E-03   -1.5579    
   9  Prefactor     .11657E-08    28.070        .16299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .44230        1.7306        .84925E-03   -1.5695    
  11  Prefactor     .42460E-06    8.5356        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .25369E-07    14.316        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .95979E-07    11.982        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.3598        22.931        .55598E-03   -1.5671    
  15  norm          .97367E-07    5.7929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .29721E-06    188.99        .14281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.724        11.678        .29205E-03   -1.5639    
  18  norm          .75230E-05    4.8920        .51495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .55511E-10    1.5351        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .96784E-06    24.751        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .99410        .78897        .43557E-03   -1.5688    
  22  Prefactor     17.602        19.208        .23841E-03   -1.5624    
  23  Prefactor     .16653E-09    2.5755        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .20161E-05    19.768        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .66613E-09    4.3428        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.860        12.664        .25116E-03   -1.5628    
  27  norm          .23370E-07    5.3230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .44409E-09    3.8929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .17375E-07    6.2825        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .56760E-06    12.777        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2730        .25105        .59885E-01   -.84376    
  32  Prefactor     .82943        .18574        .44095E-01   -.98652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47666e-06
Minuit parameter uncertainties:
  1  19.3954
  2  0.00376377
  3  0.000619485
  4  22.0345
  5  0.0626438
  6  0.0117619
  7  0.00138774
  8  49.9209
  9  0.000359983
  10  1.73063
  11  0.00380743
  12  0.00120587
  13  0.00214488
  14  17.5548
  15  0.00150199
  16  0.0149894
  17  11.6784
  18  0.0121329
  19  1.59786e-05
  20  0.00978881
  21  0.788974
  22  19.2085
  23  4.40424e-05
  24  0.0126261
  25  0.000105706
  26  12.664
  27  0.000705735
  28  8.54073e-05
  29  0.000660724
  30  0.00538609
  31  0.251291
  32  0.185883
Done.

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

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  5.551e-11  1.598e-05  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:  8.294e-01  1.859e-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.273e+00  2.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/641553/likelihoodResults_691632001_691891201_4FGL_J0809.8+5218_daily_bin1745.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) = 3870.28372843
delta logL = 0.182824311937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3870.27755254
delta logL = 0.189000201119

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45342E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    4.0892       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84939       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=   3870.278     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      254 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45140E-01    1.2253        .48801E-03** at limit **
   2  alpha         4.0928        4.4987        .50000        .32453E-04
   3  Normalizat    1.2204        .41501E-01    .60952E-01   -.32685E-04
   4  Prefactor     .84947        .31056E-01    .44357E-01   -.31377E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0451401
  alpha      = 4.09279
  Normalizat = 1.22043
  Prefactor  = 0.849474
 **********
 **   18 **HESSE 
 **********

 FCN=   3870.278     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      287 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45140E-01    6.3397        .21890E-05   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.0928        2.9484        .19623E-01    .69075    
   3  Normalizat    1.2204        .23283        .26959E-03   -.85974    
   4  Prefactor     .84947        .17382        .23567E-03   -.97930    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.98056e-07
Minuit parameter uncertainties:
  1  1.0699
  2  10.2363
  3  0.233033
  4  0.173931
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641553': 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) = 3870.2775496
delta logL = 0.189003146451

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  4.514e-02  1.070e+00  0.000e+00  1.000e+06 ( 1.000e-12)
331        alpha:  4.093e+00  1.024e+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:  8.495e-01  1.739e-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.220e+00  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.462 52.314

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/641553/cmap_HighResolution_691632001_691891201_4FGL_J0809.8+5218_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.73e-05', job_status='DONE', photon_flux_upper_limit='7.24e-08', time_completed='2022-12-05 00:31:48.980436', job_id='641553', GAL2='0.85', fit_tolerance='1e-08', EG2='1.22', EG='1.27', time_epoch_completed='1670229108.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.89e-01', ts2='0.40', photon_index_error='0.00', photon_index='1.81' WHERE bin_id='1745' AND source_name='4FGL J0809.8+5218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:31:49 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 641553: <4FGL_J0809.8+5218_daily_bin1745> in cluster <slac> Done

Job <4FGL_J0809.8+5218_daily_bin1745> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Dec  5 00:20:16 2022
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:20:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:20:17 2022
Terminated at Mon Dec  5 00:31:49 2022
Results reported at Mon Dec  5 00:31:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+5218_daily_bin1745 122.462 52.3143 691632001 691891201 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 :                                   654.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            693 sec.

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

