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


Performing analysis on: 4FGL_J0809.3+4053_weekly_bin760
RA = 122.33, Dec = 40.8954
tmin = 698630401, tmax = 699235201
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='15820', job_status='RUN', time_executed='2023-02-28 00:46:43.311358', time_epoch_executed='1677574003.31' WHERE source_name='4FGL J0809.3+4053' and cadence='weekly' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15820

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

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=698630401.0 && nMetStart<699235201.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<699235201.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15820/ft1_4FGL_J0809.3+4053_weekly_bin760.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15820/ft2_4FGL_J0809.3+4053_weekly_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15820/ft1_4FGL_J0809.3+4053_weekly_bin760.fits outfile=/scratch/kocevski/15820/ft1_filteredMKT_4FGL_J0809.3+4053_weekly_bin760.fits ra=122.33 dec=40.8954 rad=12.0 tmin=698630401.0 tmax=699235201.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 6.32
user 6.00
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/15820/ft2_4FGL_J0809.3+4053_weekly_bin760.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/15820/ft1_filteredMKT_4FGL_J0809.3+4053_weekly_bin760.fits evtable="EVENTS" outfile="/scratch/kocevski/15820/ft1_filtered_4FGL_J0809.3+4053_weekly_bin760.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.56
user 0.39
sys 0.15

Number of photons that the gtmktime cut: 636

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15820/ft1_filtered_4FGL_J0809.3+4053_weekly_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/15820/ft2_4FGL_J0809.3+4053_weekly_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/15820/ltcube_698630401_699235201_4FGL_J0809.3+4053_weekly_bin760.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/15820/ft2_4FGL_J0809.3+4053_weekly_bin760.fits
.....................!
real 31.89
user 31.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15820/ft1_filtered_4FGL_J0809.3+4053_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/15820/ft2_4FGL_J0809.3+4053_weekly_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/15820/ltcube_698630401_699235201_4FGL_J0809.3+4053_weekly_bin760.fits outfile=/scratch/kocevski/15820/expmap_698630401_699235201_4FGL_J0809.3+4053_weekly_bin760.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/15820/ltcube_698630401_699235201_4FGL_J0809.3+4053_weekly_bin760.fits
.....................!
real 191.57
user 185.81
sys 5.37

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/15820/ft1_filtered_4FGL_J0809.3+4053_weekly_bin760.fits scfile=/scratch/kocevski/15820/ft2_4FGL_J0809.3+4053_weekly_bin760.fits outfile=/scratch/kocevski/15820/cmap_698630401_699235201_4FGL_J0809.3+4053_weekly_bin760.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15820/ft1_filtered_4FGL_J0809.3+4053_weekly_bin760.fits scfile=/scratch/kocevski/15820/ft2_4FGL_J0809.3+4053_weekly_bin760.fits outfile=/scratch/kocevski/15820/cmap_HighResolution_698630401_699235201_4FGL_J0809.3+4053_weekly_bin760.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.58
user 0.43
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/15820/ft1_filtered_4FGL_J0809.3+4053_weekly_bin760.fits', '/scratch/kocevski/15820/ft2_4FGL_J0809.3+4053_weekly_bin760.fits', expMap='/scratch/kocevski/15820/expmap_698630401_699235201_4FGL_J0809.3+4053_weekly_bin760.fits', expCube='/scratch/kocevski/15820/ltcube_698630401_699235201_4FGL_J0809.3+4053_weekly_bin760.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/15820/Model_4FGL_J0809.3+4053_weekly_bin760.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/15820/ft1_filtered_4FGL_J0809.3+4053_weekly_bin760.fits
Spacecraft file(s): /scratch/kocevski/15820/ft2_4FGL_J0809.3+4053_weekly_bin760.fits
Exposure map: /scratch/kocevski/15820/expmap_698630401_699235201_4FGL_J0809.3+4053_weekly_bin760.fits
Exposure cube: /scratch/kocevski/15820/ltcube_698630401_699235201_4FGL_J0809.3+4053_weekly_bin760.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/15820/Model_4FGL_J0809.3+4053_weekly_bin760.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) = 7229.14647435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79488E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .27071E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .10147E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.4947       1.0000          .0000       .10000E+07
     5 'Prefactor '    10.925       1.0000          .0000       .10000E+07
     6 'norm      '    .70236E-02   1.0000          .0000       .10000E+07
     7 'norm      '    1.3702       1.0000          .0000       .10000E+07
     8 'Prefactor '    .26835E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10445E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    17.771       1.0000          .0000       .10000E+07
    11 'norm      '    2.6201       1.0000          .0000       .10000E+07
    12 'norm      '    .32706       1.0000          .0000       .10000E+07
    13 'Prefactor '    .66039E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .43250E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.8608       1.0000          .0000       .10000E+07
    16 'Prefactor '    .56043E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    33.214       1.0000          .0000       .10000E+07
    18 'norm      '    2.3533       1.0000          .0000       .10000E+07
    19 'Prefactor '    .27807E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .89052E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0798       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92526       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=   7229.121     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     1782 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83822E-08    9.9861        .23852E-05** at limit **
   2  Prefactor     .33307E-09    4.2867       -.56935E-06** at limit **
   3  Prefactor      .0000        7.9953        .93946E-06** at limit **
   4  Prefactor     2.5296        6.0365        .10295E-05    .44111E-01
   5  Prefactor     10.927        10.729        .26951E-05    .48754E-01
   6  norm          .11158E-07    12.565       -.92860E-05** at limit **
   7  norm          1.3652        2.6930        .49607E-06    .12580E-03
   8  Prefactor     .27905E-01    3.9059       -.25349E-05** at limit **
   9  Prefactor     .10397E-06    41.809        .16370E-04** at limit **
  10  Prefactor     17.756        7.7618       -.10840E-05   -.55673E-02
  11  norm          2.6199        1.6106       -.23490E-06    .10208E-01
  12  norm          .32704        .36878        .15139E-06   -.68442E-02
  13  Prefactor     .60674E-07    21.109        .11757E-04** at limit **
  14  Prefactor     .33307E-08    15.457       -.24970E-05** at limit **
  15  Prefactor     2.8816        5.2001        .12557E-05   -.51339E-03
  16  Prefactor     .18596E-07    15.757       -.10823E-04** at limit **
  17  Prefactor     33.197        1.5764        .31273E-06    .50384E-02
  18  norm          2.3059        6.1551       -.89248E-07   -.79367E-02
  19  Prefactor     .19429E-08    89.175       -.63270E-05** at limit **
  20  Prefactor     .44409E-08    6.1250        .38556E-06** at limit **
  21  Normalizat    1.0797        .22244        .98660E-05    .47150E-06
  22  Prefactor     .92534        .14303        .52070E-05    .52745E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 8.38218e-09
  Prefactor  = 3.33067e-10
  Prefactor  = 0
  Prefactor  = 2.52959
  Prefactor  = 10.9267
  norm       = 1.11577e-08
  norm       = 1.3652
  Prefactor  = 0.0279045
  Prefactor  = 1.03972e-07
  Prefactor  = 17.7564
  norm       = 2.61995
  norm       = 0.327041
  Prefactor  = 6.06737e-08
  Prefactor  = 3.33067e-09
  Prefactor  = 2.88158
  Prefactor  = 1.85962e-08
  Prefactor  = 33.1972
  norm       = 2.30594
  Prefactor  = 1.94289e-09
  Prefactor  = 4.44089e-09
  Normalizat = 1.07971
  Prefactor  = 0.925339
 **********
 **   18 **HESSE 
 **********

 FCN=   7229.121     FROM HESSE     STATUS=OK           392 CALLS     2174 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83822E-08    9.8979        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .33307E-09    4.2971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        7.9944        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.5296        18.915        .64683E-03   -1.5676    
   5  Prefactor     10.927        12.105        .30287E-03   -1.5642    
   6  norm          .11158E-07    28.822        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3652        3.3641        .93109E-03   -1.5685    
   8  Prefactor     .27905E-01    3.1147        .88296E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10397E-06    42.091        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.756        7.8202        .23731E-03   -1.5624    
  11  norm          2.6199        1.6073        .62983E-03   -1.5676    
  12  norm          .32704        .38862        .98476E-03   -1.5697    
  13  Prefactor     .60674E-07    21.489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .33307E-08    15.514        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8816        5.2425        .60079E-03   -1.5674    
  16  Prefactor     .18596E-07    28.116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     33.197        20.971        .17354E-03   -1.5593    
  18  norm          2.3059        6.1904        .66788E-03   -1.5678    
  19  Prefactor     .19429E-08    89.264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .44409E-08    6.1688        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0797        .19257        .66174E-01   -.90406    
  22  Prefactor     .92534        .12178        .45326E-01   -.95261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.65627e-07
Minuit parameter uncertainties:
  1  0.000575709
  2  7.7492e-05
  3  2.45032e-05
  4  13.8344
  5  12.1052
  6  0.00113457
  7  3.36411
  8  0.589621
  9  0.00418437
  10  7.82019
  11  1.60726
  12  0.388623
  13  0.00228376
  14  0.000454923
  15  5.24251
  16  0.00144588
  17  20.9708
  18  6.19044
  19  0.000831086
  20  0.000331514
  21  0.192693
  22  0.121817
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.776e+01  7.820e+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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.253e-01  1.218e-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.080e+00  1.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.02
Ra Dec: 122.330 40.895
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.47e-07 +/- 6.48e-08
Energy Flux (Fixed Index): 3.91e-05 +/- 1.72e-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) = 7229.11476634
delta logL = 0.00669222325178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7229.11161215
delta logL = 0.00984641299692

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.411       1.0000          .0000       .10000E+07
     2 'Index     '    2.5253       1.0000          .0000       10.000    
     3 'Normalizat'    1.0868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92192       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7229.112     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      251 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.409        9.1828        .93258E-05    .76069E-03
   2  Index         2.5255        .45089        .60038E-02    .31581E-03
   3  Normalizat    1.0867        .22403        .29193E-03   -.32206E-04
   4  Prefactor     .92204        .14382        .20602E-03    .74883E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.4091
  Index      = 2.52553
  Normalizat = 1.08673
  Prefactor  = 0.922038
 **********
 **   18 **HESSE 
 **********

 FCN=   7229.112     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.409        9.0214        .37303E-06   -1.5622    
   2  Index         2.5255        .44251        .12008E-02   -.51771    
   3  Normalizat    1.0867        .22409        .11677E-04   -.90179    
   4  Prefactor     .92204        .14386        .82408E-05   -.95375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6745e-11
Minuit parameter uncertainties:
  1  9.02139
  2  0.443276
  3  0.224281
  4  0.143917
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15820': 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) = 7229.11161128
delta logL = 0.00984727702416

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.841e+01  9.021e+00  0.000e+00  1.000e+06 ( 1.000e-12)
270        Index:  2.526e+00  4.433e-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:  9.220e-01  1.439e-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.087e+00  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.06
Ra Dec: 122.330 40.895
Photon Index (Free Index): 2.53 +/- 0.44
Photon Flux (Free Index): 1.41e-07 +/- 7.45e-08
Energy Flux (Free Index): 3.99e-05 +/- 1.83e-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/15820/cmap_HighResolution_698630401_699235201_4FGL_J0809.3+4053_weekly_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.47e-07', energy_flux2='3.99e-05', photon_flux_error='6.48e-08', dlogl='9.85e-03', energy_flux='3.91e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2023-02-28 00:57:34.772590', photon_index_error2='0.44', photon_index2='2.53', ts='9.02', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.83e-05', EG='1.08', time_epoch_completed='1677574654.77', return_code='0', job_id='15820', GAL2='0.92', EG2='1.09', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='7.45e-08', ts2='9.06', photon_index='2.59' WHERE bin_id='760' AND source_name='4FGL J0809.3+4053' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 28 00:57:34 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 15820: <4FGL_J0809.3+4053_weekly_bin760> in cluster <slac> Done

Job <4FGL_J0809.3+4053_weekly_bin760> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Feb 28 00:45:25 2023
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 28 00:45:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 28 00:45:27 2023
Terminated at Tue Feb 28 00:57:35 2023
Results reported at Tue Feb 28 00:57:35 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_weekly_bin760 122.33 40.8954 698630401 699235201 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 :                                   652.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            730 sec.

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

