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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin779
RA = 122.453, Dec = 5.1313
tmin = 441244801, tmax = 441504001
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='253019', job_status='RUN', time_executed='2021-08-29 09:04:43.083889', time_epoch_executed='1630253083.08' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='779'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253019

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253019/ft1_4FGL_J0809.8+0507_daily_bin779.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253019/ft2_4FGL_J0809.8+0507_daily_bin779.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253019/ft1_4FGL_J0809.8+0507_daily_bin779.fits outfile=/scratch/kocevski/253019/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin779.fits ra=122.453 dec=5.1313 rad=12.0 tmin=441244801.0 tmax=441504001.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 5.91
user 3.17
sys 2.70

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253019/ft1_filtered_4FGL_J0809.8+0507_daily_bin779.fits" evtable="EVENTS" scfile=/scratch/kocevski/253019/ft2_4FGL_J0809.8+0507_daily_bin779.fits sctable="SC_DATA" outfile=/scratch/kocevski/253019/ltcube_441244801_441504001_4FGL_J0809.8+0507_daily_bin779.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/253019/ft2_4FGL_J0809.8+0507_daily_bin779.fits
.....................!
real 14.81
user 11.60
sys 3.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253019/ft1_filtered_4FGL_J0809.8+0507_daily_bin779.fits evtable="EVENTS" scfile=/scratch/kocevski/253019/ft2_4FGL_J0809.8+0507_daily_bin779.fits sctable="SC_DATA" expcube=/scratch/kocevski/253019/ltcube_441244801_441504001_4FGL_J0809.8+0507_daily_bin779.fits outfile=/scratch/kocevski/253019/expmap_441244801_441504001_4FGL_J0809.8+0507_daily_bin779.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/253019/ltcube_441244801_441504001_4FGL_J0809.8+0507_daily_bin779.fits
.....................!
real 195.72
user 186.89
sys 8.43

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/253019/ft1_filtered_4FGL_J0809.8+0507_daily_bin779.fits scfile=/scratch/kocevski/253019/ft2_4FGL_J0809.8+0507_daily_bin779.fits outfile=/scratch/kocevski/253019/cmap_441244801_441504001_4FGL_J0809.8+0507_daily_bin779.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 3.24
user 0.38
sys 2.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253019/ft1_filtered_4FGL_J0809.8+0507_daily_bin779.fits scfile=/scratch/kocevski/253019/ft2_4FGL_J0809.8+0507_daily_bin779.fits outfile=/scratch/kocevski/253019/cmap_HighResolution_441244801_441504001_4FGL_J0809.8+0507_daily_bin779.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 3.36
user 0.37
sys 2.85

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/253019/ft1_filtered_4FGL_J0809.8+0507_daily_bin779.fits', '/scratch/kocevski/253019/ft2_4FGL_J0809.8+0507_daily_bin779.fits', expMap='/scratch/kocevski/253019/expmap_441244801_441504001_4FGL_J0809.8+0507_daily_bin779.fits', expCube='/scratch/kocevski/253019/ltcube_441244801_441504001_4FGL_J0809.8+0507_daily_bin779.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/253019/Model_4FGL_J0809.8+0507_daily_bin779.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/253019/ft1_filtered_4FGL_J0809.8+0507_daily_bin779.fits
Spacecraft file(s): /scratch/kocevski/253019/ft2_4FGL_J0809.8+0507_daily_bin779.fits
Exposure map: /scratch/kocevski/253019/expmap_441244801_441504001_4FGL_J0809.8+0507_daily_bin779.fits
Exposure cube: /scratch/kocevski/253019/ltcube_441244801_441504001_4FGL_J0809.8+0507_daily_bin779.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/253019/Model_4FGL_J0809.8+0507_daily_bin779.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) = 7931.18321715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.682       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5148       1.0000         .10000E-03   10000.    
     3 'norm      '    20.621       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5134       1.0000         .10000E-03   10000.    
     6 'norm      '    .10297E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3923       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.280       1.0000         .10000E-03   10000.    
    11 'norm      '    8.6834       1.0000         .10000E-03   10000.    
    12 'norm      '    4.2213       1.0000         .10000E-03   10000.    
    13 'norm      '    32.027       1.0000         .10000E-03   10000.    
    14 'norm      '    9.8408       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9442       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.191       1.0000         .10000E-03   10000.    
    17 'norm      '    .99912       1.0000         .10000E-03   10000.    
    18 'norm      '    11.643       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.044       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .66992       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0624       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=   7931.133     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     2209 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.667        40.875       -.33833E-04    .74424E-05
   2  Prefactor     1.4782        55.438       -.24597E-04   -.76507E-04
   3  norm          20.621        2.9223        .24261E-06    .63292E-03
   4  Prefactor     .10000E-03    31.821       -.47259E-05** at limit **
   5  Prefactor     1.5129        2.8196       -.82587E-06   -.10369E-02
   6  norm          .10000E-03    12.871        .27198E-06** at limit **
   7  Prefactor     8.3815        11.326       -.20848E-05    .30831E-04
   8  Prefactor     .10000E-03    43.339        .11273E-04** at limit **
   9  Prefactor     .10000E-03    5.2910       -.13088E-06** at limit **
  10  Prefactor     23.244        34.894       -.47034E-04    .55214E-04
  11  norm          8.6844        8.0834        .43226E-06   -.21235E-04
  12  norm          4.2212        2.4910       -.34912E-06   -.26398E-03
  13  norm          32.035        25.435        .18350E-04    .24428E-03
  14  norm          9.8411        4.0828        .25830E-06    .14548E-03
  15  Prefactor     1.9304        79.418       -.39456E-04   -.63881E-04
  16  Prefactor     18.193        14.730       -.64677E-06    .14012E-03
  17  norm          .99929        .78753       -.15791E-06   -.27165E-03
  18  norm          11.643        7.2018       -.15153E-05   -.67137E-05
  19  Prefactor     13.046        27.264        .49942E-06    .10615E-04
  20  Normalizat    .66963        .19221        .68752E-05    .24392E-03
  21  Prefactor     1.0627        .12944        .98564E-06    .50499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6667
  Prefactor  = 1.47817
  norm       = 20.6208
  Prefactor  = 0.0001
  Prefactor  = 1.51286
  norm       = 0.0001
  Prefactor  = 8.38153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.2442
  norm       = 8.68442
  norm       = 4.22123
  norm       = 32.0348
  norm       = 9.8411
  Prefactor  = 1.93039
  Prefactor  = 18.1925
  norm       = 0.999286
  norm       = 11.6431
  Prefactor  = 13.0458
  Normalizat = 0.669632
  Prefactor  = 1.06267
 **********
 **   18 **HESSE 
 **********

 FCN=   7931.133     FROM HESSE     STATUS=OK           323 CALLS     2532 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.667        41.007        .12259E-03   -1.5055    
   2  Prefactor     1.4782        56.729        .34736E-03   -1.5465    
   3  norm          20.621        2.9224        .54455E-04   -1.4799    
   4  Prefactor     .10000E-03    32.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5129        2.7876        .19019E-03   -1.5462    
   6  norm          .10000E-03    12.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.3815        11.250        .13838E-03   -1.5129    
   8  Prefactor     .10000E-03    43.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.3590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.244        34.824        .83018E-04   -1.4743    
  11  norm          8.6844        8.0754        .13603E-03   -1.5118    
  12  norm          4.2212        2.4888        .10384E-03   -1.5297    
  13  norm          32.035        25.390        .70803E-04   -1.4575    
  14  norm          9.8411        4.0810        .11135E-03   -1.5080    
  15  Prefactor     1.9304        79.726        .29770E-03   -1.5430    
  16  Prefactor     18.193        14.770        .93906E-04   -1.4855    
  17  norm          .99929        .77093        .67069E-04   -1.5508    
  18  norm          11.643        7.2018        .11740E-03   -1.5025    
  19  Prefactor     13.046        27.297        .11091E-03   -1.4985    
  20  Normalizat    .66963        .21583        .35383E-03   -1.0510    
  21  Prefactor     1.0627        .14697        .20262E-03   -.90669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35492e-09
Minuit parameter uncertainties:
  1  41.1157
  2  18.3326
  3  2.92237
  4  0.000128266
  5  2.78786
  6  6.43075e-05
  7  11.2533
  8  1.20069e-05
  9  3.00037e-05
  10  34.8548
  11  8.07644
  12  2.48889
  13  25.3982
  14  4.08111
  15  24.8464
  16  14.7727
  17  0.770936
  18  7.20231
  19  27.3228
  20  0.216098
  21  0.147025
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  3.203e+01  2.540e+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:  1.063e+00  1.470e-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:  6.696e-01  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.82
Ra Dec: 122.453 5.131
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 5.14e-08 +/- 4.07e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.07e-05

TS (Fixed Index): 3.82
Ra Dec: 122.453 5.131
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253019/likelihoodResults_441244801_441504001_4FGL_J0809.8+0507_daily_bin779.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) = 7931.09348174
delta logL = 0.0394850681896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7931.09002686
delta logL = 0.0429399483155

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    35.191       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5348       1.0000          .0000       5.0000    
     3 'Normalizat'    .67645       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0588       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7931.090     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      294 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          35.191        28.712        .67555E-04   -.33476E-03
   2  alpha         2.5347        1.0357        .14533       -.14661E-04
   3  Normalizat    .67630        .20128        .35222E-03   -.98995E-04
   4  Prefactor     1.0589        .14253        .20293E-03    .15687E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 35.1908
  alpha      = 2.53469
  Normalizat = 0.676304
  Prefactor  = 1.05892
 **********
 **   18 **HESSE 
 **********

 FCN=   7931.090     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          35.191        25.440        .13511E-04   -1.4521    
   2  alpha         2.5347        .92740        .30684E-02    .13877E-01
   3  Normalizat    .67630        .20108        .14089E-04   -1.0484    
   4  Prefactor     1.0589        .14231        .81170E-05   -.90791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41517e-10
Minuit parameter uncertainties:
  1  25.4482
  2  0.950113
  3  0.201296
  4  0.142356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253019': 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) = 7931.09002653
delta logL = 0.0429402774189

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  3.519e+01  2.545e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.535e+00  9.501e-01  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:  1.059e+00  1.424e-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:  6.763e-01  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.91
Ra Dec: 122.453 5.131
Photon Index (Free Index): 2.53 +/- 0.95
Photon Flux (Free Index): 4.70e-08 +/- 3.62e-08
Energy Flux (Free Index): 1.37e-05 +/- 9.44e-06

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/253019/cmap_HighResolution_441244801_441504001_4FGL_J0809.8+0507_daily_bin779.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.34e-05', comment='SUCCESS', photon_flux='5.14e-08', energy_flux2='1.37e-05', photon_flux_error='4.07e-08', dlogl='4.29e-02', energy_flux='1.35e-05', photon_flux2='4.70e-08', job_status='DONE', time_completed='2021-08-29 09:16:56.846419', photon_index_error2='0.95', photon_index2='2.53', ts='3.82', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='9.44e-06', EG='0.67', time_epoch_completed='1630253816.85', return_code='0', job_id='253019', GAL2='1.06', EG2='0.68', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='3.62e-08', ts2='3.91', photon_index='2.82' WHERE bin_id='779' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:16:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 253019: <4FGL_J0809.8+0507_daily_bin779> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin779> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 09:00:41 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 09:00:43 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:43 2021
Terminated at Sun Aug 29 09:16:58 2021
Results reported at Sun Aug 29 09:16:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin779 122.453 5.1313 441244801 441504001 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 :                                   777.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            977 sec.

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

