/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 185 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin656
RA = 122.453, Dec = 5.1313
tmin = 409363201, tmax = 409622401
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='252819', job_status='RUN', time_executed='2021-08-29 09:03:50.442763', time_epoch_executed='1630253030.44' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='656'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/252819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/252819/ft1_4FGL_J0809.8+0507_daily_bin656.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/252819/ft2_4FGL_J0809.8+0507_daily_bin656.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/252819/ft1_4FGL_J0809.8+0507_daily_bin656.fits outfile=/scratch/kocevski/252819/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin656.fits ra=122.453 dec=5.1313 rad=12.0 tmin=409363201.0 tmax=409622401.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.07
user 5.27
sys 0.77

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/252819/ft2_4FGL_J0809.8+0507_daily_bin656.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/252819/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin656.fits evtable="EVENTS" outfile="/scratch/kocevski/252819/ft1_filtered_4FGL_J0809.8+0507_daily_bin656.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 1.07
user 0.32
sys 0.72

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/252819/ft1_filtered_4FGL_J0809.8+0507_daily_bin656.fits" evtable="EVENTS" scfile=/scratch/kocevski/252819/ft2_4FGL_J0809.8+0507_daily_bin656.fits sctable="SC_DATA" outfile=/scratch/kocevski/252819/ltcube_409363201_409622401_4FGL_J0809.8+0507_daily_bin656.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/252819/ft2_4FGL_J0809.8+0507_daily_bin656.fits
.....................!
real 12.65
user 11.68
sys 0.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/252819/ft1_filtered_4FGL_J0809.8+0507_daily_bin656.fits evtable="EVENTS" scfile=/scratch/kocevski/252819/ft2_4FGL_J0809.8+0507_daily_bin656.fits sctable="SC_DATA" expcube=/scratch/kocevski/252819/ltcube_409363201_409622401_4FGL_J0809.8+0507_daily_bin656.fits outfile=/scratch/kocevski/252819/expmap_409363201_409622401_4FGL_J0809.8+0507_daily_bin656.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/252819/ltcube_409363201_409622401_4FGL_J0809.8+0507_daily_bin656.fits
.....................!
real 190.48
user 184.93
sys 5.12

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/252819/ft1_filtered_4FGL_J0809.8+0507_daily_bin656.fits scfile=/scratch/kocevski/252819/ft2_4FGL_J0809.8+0507_daily_bin656.fits outfile=/scratch/kocevski/252819/cmap_409363201_409622401_4FGL_J0809.8+0507_daily_bin656.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 1.08
user 0.35
sys 0.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/252819/ft1_filtered_4FGL_J0809.8+0507_daily_bin656.fits scfile=/scratch/kocevski/252819/ft2_4FGL_J0809.8+0507_daily_bin656.fits outfile=/scratch/kocevski/252819/cmap_HighResolution_409363201_409622401_4FGL_J0809.8+0507_daily_bin656.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 1.10
user 0.38
sys 0.71

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/252819/ft1_filtered_4FGL_J0809.8+0507_daily_bin656.fits', '/scratch/kocevski/252819/ft2_4FGL_J0809.8+0507_daily_bin656.fits', expMap='/scratch/kocevski/252819/expmap_409363201_409622401_4FGL_J0809.8+0507_daily_bin656.fits', expCube='/scratch/kocevski/252819/ltcube_409363201_409622401_4FGL_J0809.8+0507_daily_bin656.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/252819/Model_4FGL_J0809.8+0507_daily_bin656.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  1.000e-04  1.000e+04 ( 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  0.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/252819/ft1_filtered_4FGL_J0809.8+0507_daily_bin656.fits
Spacecraft file(s): /scratch/kocevski/252819/ft2_4FGL_J0809.8+0507_daily_bin656.fits
Exposure map: /scratch/kocevski/252819/expmap_409363201_409622401_4FGL_J0809.8+0507_daily_bin656.fits
Exposure cube: /scratch/kocevski/252819/ltcube_409363201_409622401_4FGL_J0809.8+0507_daily_bin656.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/252819/Model_4FGL_J0809.8+0507_daily_bin656.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) = 6790.01770106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.067       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12703E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.7844       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9977       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11133E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8703       1.0000         .10000E-03   10000.    
    13 'norm      '    18.151       1.0000         .10000E-03   10000.    
    14 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.501       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5203       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3244       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .71452       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6790.007     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2176 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.975        49.031       -.38525E-05   -.70837E-04
   2  Prefactor     .10000E-03    40.228       -.18395E-05** at limit **
   3  norm          7.7829        2.3064       -.39389E-07   -.21339E-03
   4  Prefactor     1.9714        71.222       -.88372E-07    .10486E-04
   5  Prefactor     .10000E-03    1.5213        .49218E-06** at limit **
   6  norm          .10000E-03    4.8115        .81945E-07** at limit **
   7  Prefactor     .10000E-03    4.1564        .13397E-06** at limit **
   8  Prefactor     .10000E-03    38.278       -.16511E-07** at limit **
   9  Prefactor     .10000E-03    3.9309        .77545E-07** at limit **
  10  Prefactor     .10000E-03    19.127        .18538E-06** at limit **
  11  norm          .10000E-03    3.9711        .90195E-07** at limit **
  12  norm          2.8708        2.5480        .11370E-06    .14963E-03
  13  norm          18.152        18.451        .35938E-06   -.21768E-04
  14  norm          .10000E-03    2.1193        .22993E-06** at limit **
  15  Prefactor     18.523        33.737        .13285E-05   -.50999E-05
  16  Prefactor     .10000E-03    4.9831        .25178E-06** at limit **
  17  norm          1.5207        .89214        .94579E-07    .11069E-03
  18  norm          .10000E-03    1.9470        .49405E-07** at limit **
  19  Prefactor     .10000E-03    57.403        .98392E-06** at limit **
  20  Normalizat    1.3236        .21884       -.68078E-05   -.12369E-03
  21  Prefactor     .71500        .14909        .56074E-05   -.22895E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9754
  Prefactor  = 0.0001
  norm       = 7.78291
  Prefactor  = 1.97142
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.87078
  norm       = 18.1516
  norm       = 0.0001
  Prefactor  = 18.5225
  Prefactor  = 0.0001
  norm       = 1.52072
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.32356
  Prefactor  = 0.714995
 **********
 **   18 **HESSE 
 **********

 FCN=   6790.007     FROM HESSE     STATUS=OK           311 CALLS     2487 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.975        49.425        .99921E-04   -1.4908    
   2  Prefactor     .10000E-03    40.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.7829        2.3053        .64163E-04   -1.5150    
   4  Prefactor     1.9714        72.161        .29305E-03   -1.5427    
   5  Prefactor     .10000E-03    2.7659        .19644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.8145        .17654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.1671        .16410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    38.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.9499        .15949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.9899        .16037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8708        2.5432        .11930E-03   -1.5369    
  13  norm          18.152        18.433        .94008E-04   -1.4856    
  14  norm          .10000E-03    2.1984        .23430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.523        33.715        .93115E-04   -1.4847    
  16  Prefactor     .10000E-03    4.9987        .17974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5207        .88886        .57363E-04   -1.5461    
  18  norm          .10000E-03    1.9499        .11229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    57.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3236        .22022        .25386E-03   -.82866    
  21  Prefactor     .71500        .14837        .22214E-03   -1.0294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59377e-10
Minuit parameter uncertainties:
  1  49.552
  2  0.000272382
  3  2.30532
  4  23.885
  5  1.61674e-05
  6  8.07718e-06
  7  1.05231e-05
  8  3.99979e-05
  9  5.87174e-06
  10  4.14235e-05
  11  8.55949e-06
  12  2.54334
  13  18.4391
  14  7.61766e-06
  15  33.7493
  16  1.88214e-05
  17  0.888863
  18  3.34292e-06
  19  0.000367558
  20  0.220377
  21  0.148457
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.815e+01  1.844e+01  1.000e-04  1.000e+04 ( 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  0.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:  7.150e-01  1.485e-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.324e+00  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 122.453 5.131
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 2.91e-08 +/- 2.96e-08
Energy Flux (Fixed Index): 7.67e-06 +/- 7.79e-06

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

Saving results to:
/scratch/kocevski/252819/likelihoodResults_409363201_409622401_4FGL_J0809.8+0507_daily_bin656.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) = 6789.91968944
delta logL = 0.0868893729867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6789.91511945
delta logL = 0.0914593549178

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.002       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3937       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72052       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=   6789.915     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      224 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.163        19.989        .25852E-02    .32464E-04
   2  alpha         3.3880        1.4147        .45099E-01    .84845E-05
   3  Normalizat    1.3112        .18393        .57631E-01    .73586E-05
   4  Prefactor     .72064        .12146        .42674E-01    .17796E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.1629
  alpha      = 3.38798
  Normalizat = 1.31125
  Prefactor  = 0.720641
 **********
 **   18 **HESSE 
 **********

 FCN=   6789.915     FROM HESSE     STATUS=OK            31 CALLS      255 TOTAL
                     EDM=   .35E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.163        17.651        .10341E-03   -1.4929    
   2  alpha         3.3880        1.2708        .18040E-02    .36312    
   3  Normalizat    1.3112        .21545        .25485E-03   -.83231    
   4  Prefactor     .72064        .14195        .22134E-03   -1.0272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50645e-13
Minuit parameter uncertainties:
  1  17.6573
  2  1.34356
  3  0.215597
  4  0.142022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/252819': 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) = 6789.91507655
delta logL = 0.0915022608842

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.516e+01  1.766e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  3.388e+00  1.344e+00  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  8.580e-01  0.000e+00  0.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:  7.206e-01  1.420e-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.311e+00  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.81
Ra Dec: 122.453 5.131
Photon Index (Free Index): 3.39 +/- 1.34
Photon Flux (Free Index): 3.79e-08 +/- 3.96e-08
Energy Flux (Free Index): 8.30e-06 +/- 7.83e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/252819/cmap_HighResolution_409363201_409622401_4FGL_J0809.8+0507_daily_bin656.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.58e-05', comment='SUCCESS', photon_flux='2.91e-08', energy_flux2='8.30e-06', photon_flux_error='2.96e-08', dlogl='9.15e-02', energy_flux='7.67e-06', photon_flux2='3.79e-08', job_status='DONE', time_completed='2021-08-29 09:14:48.986331', photon_index_error2='1.34', photon_index2='3.39', ts='1.62', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='9.78e-08', energy_flux_error2='7.83e-06', EG='1.32', time_epoch_completed='1630253688.99', return_code='0', job_id='252819', GAL2='0.72', EG2='1.31', return_code2='0', energy_flux_error='7.79e-06', photon_flux_error2='3.96e-08', ts2='1.81', photon_index='2.82' WHERE bin_id='656' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:14:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 252819: <4FGL_J0809.8+0507_daily_bin656> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin656> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 09:00:22 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 09:00:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 09:00:24 2021
Terminated at Sun Aug 29 09:14:49 2021
Results reported at Sun Aug 29 09:14:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin656 122.453 5.1313 409363201 409622401 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 :                                   665.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            867 sec.

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

