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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin1777
RA = 122.453, Dec = 5.1313
tmin = 699926401, tmax = 700185601
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='906629', job_status='RUN', time_executed='2023-03-11 00:09:01.430595', time_epoch_executed='1678522141.43' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906629

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906629/ft1_4FGL_J0809.8+0507_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906629/ft2_4FGL_J0809.8+0507_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906629/ft1_4FGL_J0809.8+0507_daily_bin1777.fits outfile=/scratch/kocevski/906629/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin1777.fits ra=122.453 dec=5.1313 rad=12.0 tmin=699926401.0 tmax=700185601.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 3.66
user 3.44
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/906629/ft2_4FGL_J0809.8+0507_daily_bin1777.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/906629/ft2_4FGL_J0809.8+0507_daily_bin1777.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/906629/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin1777.fits evtable="EVENTS" outfile="/scratch/kocevski/906629/ft1_filtered_4FGL_J0809.8+0507_daily_bin1777.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.34
sys 0.14

Number of photons that the gtmktime cut: 541

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/906629/ft1_filtered_4FGL_J0809.8+0507_daily_bin1777.fits" evtable="EVENTS" scfile=/scratch/kocevski/906629/ft2_4FGL_J0809.8+0507_daily_bin1777.fits sctable="SC_DATA" outfile=/scratch/kocevski/906629/ltcube_699926401_700185601_4FGL_J0809.8+0507_daily_bin1777.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/906629/ft2_4FGL_J0809.8+0507_daily_bin1777.fits
.....................!
real 12.03
user 11.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906629/ft1_filtered_4FGL_J0809.8+0507_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/906629/ft2_4FGL_J0809.8+0507_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/906629/ltcube_699926401_700185601_4FGL_J0809.8+0507_daily_bin1777.fits outfile=/scratch/kocevski/906629/expmap_699926401_700185601_4FGL_J0809.8+0507_daily_bin1777.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/906629/ltcube_699926401_700185601_4FGL_J0809.8+0507_daily_bin1777.fits
.....................!
real 190.02
user 185.05
sys 4.66

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

Setting source of interest to:
4FGL J0809.8+0507 @ 122.453 5.1313

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/906629/ft1_filtered_4FGL_J0809.8+0507_daily_bin1777.fits scfile=/scratch/kocevski/906629/ft2_4FGL_J0809.8+0507_daily_bin1777.fits outfile=/scratch/kocevski/906629/cmap_699926401_700185601_4FGL_J0809.8+0507_daily_bin1777.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.453 yref=5.1313 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/906629/ft1_filtered_4FGL_J0809.8+0507_daily_bin1777.fits scfile=/scratch/kocevski/906629/ft2_4FGL_J0809.8+0507_daily_bin1777.fits outfile=/scratch/kocevski/906629/cmap_HighResolution_699926401_700185601_4FGL_J0809.8+0507_daily_bin1777.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.453 yref=5.1313 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/906629/ft1_filtered_4FGL_J0809.8+0507_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/906629/ft2_4FGL_J0809.8+0507_daily_bin1777.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/906629/Model_4FGL_J0809.8+0507_daily_bin1777.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/906629/ft1_filtered_4FGL_J0809.8+0507_daily_bin1777.fits.....................!
real 73.44
user 72.17
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/906629/ft1_filtered_4FGL_J0809.8+0507_daily_bin1777.fits', '/scratch/kocevski/906629/ft2_4FGL_J0809.8+0507_daily_bin1777.fits', expMap='/scratch/kocevski/906629/expmap_699926401_700185601_4FGL_J0809.8+0507_daily_bin1777.fits', expCube='/scratch/kocevski/906629/ltcube_699926401_700185601_4FGL_J0809.8+0507_daily_bin1777.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/906629/Model_4FGL_J0809.8+0507_daily_bin1777.xml', optimizer='MINUIT')

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

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  4.437e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/906629/ft1_filtered_4FGL_J0809.8+0507_daily_bin1777.fits
Spacecraft file(s): /scratch/kocevski/906629/ft2_4FGL_J0809.8+0507_daily_bin1777.fits
Exposure map: /scratch/kocevski/906629/expmap_699926401_700185601_4FGL_J0809.8+0507_daily_bin1777.fits
Exposure cube: /scratch/kocevski/906629/ltcube_699926401_700185601_4FGL_J0809.8+0507_daily_bin1777.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/906629/Model_4FGL_J0809.8+0507_daily_bin1777.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) = 5959.31327013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11357       1.0000          .0000       .10000E+07
     2 'Prefactor '    .14233E-02   1.0000          .0000       .10000E+07
     3 'norm      '    11.755       1.0000          .0000       .10000E+07
     4 'Prefactor '    54.916       1.0000          .0000       .10000E+07
     5 'Prefactor '    .13368E-05   1.0000          .0000       .10000E+07
     6 'norm      '    .14914E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    10.192       1.0000          .0000       .10000E+07
     8 'Prefactor '    .15042E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .31602E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .37874E-01   1.0000          .0000       .10000E+07
    11 'norm      '    .49960E-08   1.0000          .0000       .10000E+07
    12 'norm      '    11.094       1.0000          .0000       .10000E+07
    13 'norm      '    7.6334       1.0000          .0000       .10000E+07
    14 'Prefactor '    .10863E-01   1.0000          .0000       .10000E+07
    15 'norm      '     .0000       1.0000          .0000       .10000E+07
    16 'norm      '    1.6725       1.0000          .0000       .10000E+07
    17 'Prefactor '    14.956       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1771       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .87440       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5959.296     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     1414 TOTAL
                     EDM=   .78E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        37.172       -.18514E-06** at limit **
   2  Prefactor      .0000        18.587       -.69875E-07** at limit **
   3  norm          11.756        2.9747        .30439E-06   -.17737E-02
   4  Prefactor     55.307        37.997        .15999E-05   -.11789E-03
   5  Prefactor      .0000        2.4632       -.38843E-06** at limit **
   6  norm           .0000        15.889        .27014E-05** at limit **
   7  Prefactor     10.247        13.377       -.11289E-05   -.63663E-04
   8  Prefactor      .0000        4.7989       -.91839E-07** at limit **
   9  Prefactor      .0000        27.570        .32124E-05** at limit **
  10  norm           .0000        35.742       -.29077E-05** at limit **
  11  norm           .0000        1.2645        .10764E-05** at limit **
  12  norm          11.199        1.4350        .15041E-06   -.10909E-02
  13  norm          7.6237        4.9521        .24843E-06    .10470E-02
  14  Prefactor      .0000        16.898       -.36416E-05** at limit **
  15  norm           .0000        .50372        .61644E-07** at limit **
  16  norm          1.6854        6.0686       -.64937E-06   -.13060E-03
  17  Prefactor     14.997        1.1541        .48859E-08   -.67817E-02
  18  Normalizat    1.1770        .23256        .16649E-04    .30656E-04
  19  Prefactor     .87423        .16172       -.10037E-04    .30412E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  norm       = 11.7555
  Prefactor  = 55.3067
  Prefactor  = 0
  norm       = 0
  Prefactor  = 10.2467
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  norm       = 0
  norm       = 11.1992
  norm       = 7.62372
  Prefactor  = 0
  norm       = 0
  norm       = 1.68544
  Prefactor  = 14.9972
  Normalizat = 1.17698
  Prefactor  = 0.874233
 **********
 **   18 **HESSE 
 **********

 FCN=   5959.296     FROM HESSE     STATUS=OK           314 CALLS     1728 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        37.072        .13578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        18.589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.756        2.9772        .29194E-03   -1.5639    
   4  Prefactor     55.307        37.960        .13495E-03   -1.5559    
   5  Prefactor      .0000        2.4510        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        15.512        .17397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.247        13.394        .31361E-03   -1.5644    
   8  Prefactor      .0000        4.7939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        27.415        .16367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        6.4429        .10807E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.2607        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.199        20.299        .30054E-03   -1.5641    
  13  norm          7.6237        5.0037        .36273E-03   -1.5653    
  14  Prefactor      .0000        16.872        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        .49435        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6854        6.0971        .81471E-03   -1.5682    
  17  Prefactor     14.997        33.715        .25873E-03   -1.5631    
  18  Normalizat    1.1770        .20324        .62502E-01   -.87317    
  19  Prefactor     .87423        .13904        .44678E-01   -.97047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12091e-07
Minuit parameter uncertainties:
  1  2.35047e-05
  2  1.63375e-05
  3  2.97724
  4  37.9605
  5  4.51899e-06
  6  1.70107e-05
  7  13.3937
  8  1.18717e-05
  9  3.2986e-05
  10  1.02252e-05
  11  1.46031e-06
  12  20.2995
  13  5.00369
  14  2.93817e-05
  15  1.34423e-08
  16  6.09716
  17  33.7159
  18  0.203377
  19  0.1391
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.120e+01  2.030e+01  0.000e+00  1.000e+06 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  8.742e-01  1.391e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.177e+00  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 122.453 5.131
Photon Flux Upper Limit: 9.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/906629/likelihoodResults_699926401_700185601_4FGL_J0809.8+0507_daily_bin1777.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) = 5958.92455461
delta logL = 0.371562175844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5958.91277177
delta logL = 0.383345009606

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4601       1.0000          .0000       .10000E+07
     2 'alpha     '    .86757       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1935       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86669       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5958.913     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      216 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4166        12.465        .34441E-03   -.19917E-02
   2  alpha         .86295        1.4851        .50000        .53414E-05
   3  Normalizat    1.1934        .19680        .62123E-01   -.54846E-03
   4  Prefactor     .86681        .13689        .44579E-01    .59008E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.41663
  alpha      = 0.86295
  Normalizat = 1.19342
  Prefactor  = 0.866807
 **********
 **   18 **HESSE 
 **********

 FCN=   5958.913     FROM HESSE     STATUS=OK            29 CALLS      245 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4166        17.541        .13776E-04   -1.5650    
   2  alpha         .86295        2.8775        .61737E-01   -.71394    
   3  Normalizat    1.1934        .22817        .27477E-03   -.86807    
   4  Prefactor     .86681        .15878        .21929E-03   -.97311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83297e-09
Minuit parameter uncertainties:
  1  17.5406
  2  2.17601
  3  0.228359
  4  0.158864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906629': 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) = 5958.91276915
delta logL = 0.383347636821

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  8.417e+00  1.754e+01  0.000e+00  1.000e+06 ( 1.000e-12)
281        alpha:  8.629e-01  2.176e+00  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  8.580e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  8.668e-01  1.589e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.193e+00  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 122.453 5.131
Photon Index (Free Index): 0.86 +/- 2.18
Photon Flux (Free Index): 7.10e-09 +/- 1.35e-08
Energy Flux (Free Index): 4.68e-06 +/- 6.32e-06

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/906629/cmap_HighResolution_699926401_700185601_4FGL_J0809.8+0507_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.57e-05', comment='SUCCESS', energy_flux2='4.68e-06', dlogl='3.83e-01', photon_flux2='7.10e-09', job_status='DONE', time_completed='2023-03-11 00:17:41.393916', photon_index_error2='2.18', photon_index2='0.86', ts='0.38', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='9.76e-08', energy_flux_error2='6.32e-06', EG='1.18', time_epoch_completed='1678522661.39', return_code='0', job_id='906629', GAL2='0.87', EG2='1.19', return_code2='0', photon_flux_error2='1.35e-08', ts2='1.15', photon_index='2.82' WHERE bin_id='1777' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 00:17:41 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 906629: <4FGL_J0809.8+0507_daily_bin1777> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin1777> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Mar 11 00:05:58 2023
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 00:07:28 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 00:07:28 2023
Terminated at Sat Mar 11 00:17:41 2023
Results reported at Sat Mar 11 00:17:41 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin1777 122.453 5.1313 699926401 700185601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.8+0507 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   522.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            703 sec.

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

