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 20 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.3+4053_daily_bin1772
RA = 122.33, Dec = 40.8954
tmin = 698630401, tmax = 698889601
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='620849', job_status='RUN', time_executed='2023-02-24 00:55:45.183756', time_epoch_executed='1677228945.18' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/620849

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/620849/ft1_4FGL_J0809.3+4053_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/620849/ft2_4FGL_J0809.3+4053_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/620849/ft1_4FGL_J0809.3+4053_daily_bin1772.fits outfile=/scratch/kocevski/620849/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin1772.fits ra=122.33 dec=40.8954 rad=12.0 tmin=698630401.0 tmax=698889601.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.29
user 2.10
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/620849/ft2_4FGL_J0809.3+4053_daily_bin1772.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/620849/ft2_4FGL_J0809.3+4053_daily_bin1772.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/620849/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin1772.fits evtable="EVENTS" outfile="/scratch/kocevski/620849/ft1_filtered_4FGL_J0809.3+4053_daily_bin1772.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.41
user 0.26
sys 0.13

Number of photons that the gtmktime cut: 278

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/620849/ft1_filtered_4FGL_J0809.3+4053_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/620849/ft2_4FGL_J0809.3+4053_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/620849/ltcube_698630401_698889601_4FGL_J0809.3+4053_daily_bin1772.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/620849/ft2_4FGL_J0809.3+4053_daily_bin1772.fits
.....................!
real 9.20
user 8.91
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/620849/ft1_filtered_4FGL_J0809.3+4053_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/620849/ft2_4FGL_J0809.3+4053_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/620849/ltcube_698630401_698889601_4FGL_J0809.3+4053_daily_bin1772.fits outfile=/scratch/kocevski/620849/expmap_698630401_698889601_4FGL_J0809.3+4053_daily_bin1772.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/620849/ltcube_698630401_698889601_4FGL_J0809.3+4053_daily_bin1772.fits
.....................!
real 141.77
user 137.91
sys 3.60

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

Setting source of interest to:
4FGL J0809.3+4053 @ 122.33 40.8954

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/620849/ft1_filtered_4FGL_J0809.3+4053_daily_bin1772.fits scfile=/scratch/kocevski/620849/ft2_4FGL_J0809.3+4053_daily_bin1772.fits outfile=/scratch/kocevski/620849/cmap_698630401_698889601_4FGL_J0809.3+4053_daily_bin1772.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.33 yref=40.8954 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.45
user 0.29
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/620849/ft1_filtered_4FGL_J0809.3+4053_daily_bin1772.fits scfile=/scratch/kocevski/620849/ft2_4FGL_J0809.3+4053_daily_bin1772.fits outfile=/scratch/kocevski/620849/cmap_HighResolution_698630401_698889601_4FGL_J0809.3+4053_daily_bin1772.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.33 yref=40.8954 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.45
user 0.30
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/620849/ft1_filtered_4FGL_J0809.3+4053_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/620849/ft2_4FGL_J0809.3+4053_daily_bin1772.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/620849/Model_4FGL_J0809.3+4053_daily_bin1772.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/620849/ft1_filtered_4FGL_J0809.3+4053_daily_bin1772.fits......................!
real 30.65
user 29.58
sys 0.96

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/620849/ft1_filtered_4FGL_J0809.3+4053_daily_bin1772.fits', '/scratch/kocevski/620849/ft2_4FGL_J0809.3+4053_daily_bin1772.fits', expMap='/scratch/kocevski/620849/expmap_698630401_698889601_4FGL_J0809.3+4053_daily_bin1772.fits', expCube='/scratch/kocevski/620849/ltcube_698630401_698889601_4FGL_J0809.3+4053_daily_bin1772.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/620849/Model_4FGL_J0809.3+4053_daily_bin1772.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.3+4053'

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.019e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/620849/ft1_filtered_4FGL_J0809.3+4053_daily_bin1772.fits
Spacecraft file(s): /scratch/kocevski/620849/ft2_4FGL_J0809.3+4053_daily_bin1772.fits
Exposure map: /scratch/kocevski/620849/expmap_698630401_698889601_4FGL_J0809.3+4053_daily_bin1772.fits
Exposure cube: /scratch/kocevski/620849/ltcube_698630401_698889601_4FGL_J0809.3+4053_daily_bin1772.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/620849/Model_4FGL_J0809.3+4053_daily_bin1772.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) = 3144.01372993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26807E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .21433E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .15975E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .91950E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .11905E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .18507E-02   1.0000          .0000       .10000E+07
     7 'norm      '    1.5195       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.7917       1.0000          .0000       .10000E+07
     9 'Prefactor '    .67384E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    18.275       1.0000          .0000       .10000E+07
    11 'norm      '    5.8659       1.0000          .0000       .10000E+07
    12 'norm      '    .84820       1.0000          .0000       .10000E+07
    13 'Prefactor '    .18557       1.0000          .0000       .10000E+07
    14 'Prefactor '    .31852E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .33877E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    30.420       1.0000          .0000       .10000E+07
    17 'Prefactor '    5.2248       1.0000          .0000       .10000E+07
    18 'norm      '    .27184E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .99309E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .49075E-02   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.3287       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77928       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3143.985     FROM MIGRAD    STATUS=CONVERGED    204 CALLS     1848 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30398E-06    130.84        .38430E-05** at limit **
   2  Prefactor     .55511E-10    15.139        .99200E-06** at limit **
   3  Prefactor     .87763E-07    9.6274        .71947E-06** at limit **
   4  Prefactor     .11102E-09    51.858        .87527E-06** at limit **
   5  Prefactor     .12768E-08    23.425       -.72046E-06** at limit **
   6  norm          .81046E-07    9.6120       -.70758E-06** at limit **
   7  norm          1.5289        4.0694       -.11425E-06    .67555E-03
   8  Prefactor     2.7654        7.7183        .76407E-07    .14884E-02
   9  Prefactor     .22204E-09    41.293       -.77875E-06** at limit **
  10  Prefactor     18.257        11.958        .10845E-06    .34524E-02
  11  norm          5.8662        3.2796        .96595E-09    .11431E-02
  12  norm          .85150        .83973        .12842E-08    .17650E-01
  13  Prefactor     .17264E-07    58.861       -.40902E-05** at limit **
  14  Prefactor     .55511E-08    22.274       -.72564E-06** at limit **
  15  Prefactor     .55511E-10    12.913        .25040E-05** at limit **
  16  Prefactor     24.017        252.44       -.15092E-04    .46029E-01
  17  Prefactor     7.1739        100.47        .93529E-05    .72334E-01
  18  norm           .0000        7.3115       -.39139E-06** at limit **
  19  Prefactor     .17919E-06    153.44       -.28666E-05** at limit **
  20  Prefactor     .22204E-09    11.255       -.69917E-07** at limit **
  21  Normalizat    1.3304        .33059       -.11148E-05    .60455E-03
  22  Prefactor     .77894        .21253        .11354E-04    .52910E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.03979e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 8.77631e-08
  Prefactor  = 1.11022e-10
  Prefactor  = 1.27676e-09
  norm       = 8.10463e-08
  norm       = 1.52888
  Prefactor  = 2.7654
  Prefactor  = 2.22045e-10
  Prefactor  = 18.2566
  norm       = 5.86618
  norm       = 0.851496
  Prefactor  = 1.7264e-08
  Prefactor  = 5.55112e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 24.0171
  Prefactor  = 7.17395
  norm       = 0
  Prefactor  = 1.7919e-07
  Prefactor  = 2.22045e-10
  Normalizat = 1.33036
  Prefactor  = 0.778938
 **********
 **   18 **HESSE 
 **********

 FCN=   3143.985     FROM HESSE     STATUS=OK           396 CALLS     2244 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30398E-06    9.8236        .53382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    14.936        .16944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .87763E-07    9.7952        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11102E-09    12.857        .10204E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .12768E-08    23.441        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .81046E-07    9.7676        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5289        4.4624        .86652E-03   -1.5683    
   8  Prefactor     2.7654        7.7582        .60869E-03   -1.5675    
   9  Prefactor     .22204E-09    41.315        .14905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.257        11.952        .23401E-03   -1.5623    
  11  norm          5.8662        3.2859        .41441E-03   -1.5660    
  12  norm          .85150        .84276        .49409E-03   -1.5690    
  13  Prefactor     .17264E-07    59.018        .12038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-08    22.596        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    13.067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.017        320.94        .18134E-03   -1.5610    
  17  Prefactor     7.1739        130.74        .43952E-03   -1.5654    
  18  norm           .0000        7.3044        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .17919E-06    154.87        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .22204E-09    11.267        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3304        .28906        .61218E-01   -.82665    
  22  Prefactor     .77894        .18399        .43447E-01   -1.0051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32484e-07
Minuit parameter uncertainties:
  1  0.00345623
  2  5.74759e-05
  3  0.00185425
  4  8.304e-05
  5  0.00034838
  6  0.00177923
  7  4.4624
  8  7.75825
  9  0.000194902
  10  11.9517
  11  3.28589
  12  0.842763
  13  0.00201859
  14  0.000706633
  15  5.74491e-05
  16  175.604
  17  61.2526
  18  9.59915e-06
  19  0.0105359
  20  0.000104772
  21  0.289408
  22  0.184131
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.826e+01  1.195e+01  0.000e+00  1.000e+06 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  7.789e-01  1.841e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.330e+00  2.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.97
Ra Dec: 122.330 40.895
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.51e-07 +/- 9.90e-08
Energy Flux (Fixed Index): 4.02e-05 +/- 2.63e-05

TS (Fixed Index): 3.97
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 3.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.73e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/620849/likelihoodResults_698630401_698889601_4FGL_J0809.3+4053_daily_bin1772.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) = 3143.98473234
delta logL = 0.000184112293482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3143.98466249
delta logL = 0.000253962019542

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.145       1.0000          .0000       .10000E+07
     2 'Index     '    2.6063       1.0000          .0000       10.000    
     3 'Normalizat'    1.3277       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77992       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3143.985     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      229 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.129        270.72        .23485E-03    .30766E-03
   2  Index         2.6046        6.1637        .16651        .36826E-04
   3  Normalizat    1.3280        .22889        .61262E-01    .52464E-05
   4  Prefactor     .77994        .92776E-01    .43455E-01    .11714E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.1286
  Index      = 2.60455
  Normalizat = 1.328
  Prefactor  = 0.779942
 **********
 **   18 **HESSE 
 **********

 FCN=   3143.985     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.129        13.228        .93939E-05   -1.5623    
   2  Index         2.6046        .73452        .60211E-02   -.49962    
   3  Normalizat    1.3280        .34504        .27095E-03   -.82735    
   4  Prefactor     .77994        .21395        .22153E-03   -1.0047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72992e-12
Minuit parameter uncertainties:
  1  13.2281
  2  0.737989
  3  0.345638
  4  0.214179
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/620849': 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) = 3143.98465535
delta logL = 0.000261105114532

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.813e+01  1.323e+01  0.000e+00  1.000e+06 ( 1.000e-12)
270        Index:  2.605e+00  7.380e-01  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  7.799e-01  2.142e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.328e+00  3.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.99
Ra Dec: 122.330 40.895
Photon Index (Free Index): 2.60 +/- 0.74
Photon Flux (Free Index): 1.54e-07 +/- 1.33e-07
Energy Flux (Free Index): 4.01e-05 +/- 2.60e-05

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/620849/cmap_HighResolution_698630401_698889601_4FGL_J0809.3+4053_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-02', comment='SUCCESS', photon_flux='1.51e-07', energy_flux2='4.01e-05', photon_flux_error='9.90e-08', dlogl='2.61e-04', energy_flux='4.02e-05', photon_flux2='1.54e-07', job_status='DONE', time_completed='2023-02-24 01:01:32.770579', photon_index_error2='0.74', photon_index2='2.60', ts='3.97', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='3.49e-07', energy_flux_error2='2.60e-05', EG='1.33', time_epoch_completed='1677229292.77', return_code='0', job_id='620849', GAL2='0.78', EG2='1.33', return_code2='0', energy_flux_error='2.63e-05', photon_flux_error2='1.33e-07', ts2='3.99', photon_index='2.59' WHERE bin_id='1772' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 01:01:32 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 620849: <4FGL_J0809.3+4053_daily_bin1772> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin1772> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb 24 00:55:14 2023
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 00:55:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 00:55:15 2023
Terminated at Fri Feb 24 01:01:33 2023
Results reported at Fri Feb 24 01:01:33 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin1772 122.33 40.8954 698630401 698889601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.3+4053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   348.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             364.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   378 sec.
    Turnaround time :                            379 sec.

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

