/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 219 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 = 7392
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.8+0507_daily_bin244
RA = 122.453, Dec = 5.1313
tmin = 302572801, tmax = 302832001
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='250005', job_status='RUN', time_executed='2021-08-29 08:54:19.588490', time_epoch_executed='1630252459.59' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='244'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250005

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250005/ft1_4FGL_J0809.8+0507_daily_bin244.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250005/ft2_4FGL_J0809.8+0507_daily_bin244.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250005/ft1_4FGL_J0809.8+0507_daily_bin244.fits outfile=/scratch/kocevski/250005/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin244.fits ra=122.453 dec=5.1313 rad=12.0 tmin=302572801.0 tmax=302832001.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.91
user 3.24
sys 0.65

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250005/ft1_filtered_4FGL_J0809.8+0507_daily_bin244.fits" evtable="EVENTS" scfile=/scratch/kocevski/250005/ft2_4FGL_J0809.8+0507_daily_bin244.fits sctable="SC_DATA" outfile=/scratch/kocevski/250005/ltcube_302572801_302832001_4FGL_J0809.8+0507_daily_bin244.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/250005/ft2_4FGL_J0809.8+0507_daily_bin244.fits
.....................!
real 12.26
user 11.40
sys 0.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250005/ft1_filtered_4FGL_J0809.8+0507_daily_bin244.fits evtable="EVENTS" scfile=/scratch/kocevski/250005/ft2_4FGL_J0809.8+0507_daily_bin244.fits sctable="SC_DATA" expcube=/scratch/kocevski/250005/ltcube_302572801_302832001_4FGL_J0809.8+0507_daily_bin244.fits outfile=/scratch/kocevski/250005/expmap_302572801_302832001_4FGL_J0809.8+0507_daily_bin244.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/250005/ltcube_302572801_302832001_4FGL_J0809.8+0507_daily_bin244.fits
.....................!
real 192.27
user 186.32
sys 5.58

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/250005/ft1_filtered_4FGL_J0809.8+0507_daily_bin244.fits scfile=/scratch/kocevski/250005/ft2_4FGL_J0809.8+0507_daily_bin244.fits outfile=/scratch/kocevski/250005/cmap_302572801_302832001_4FGL_J0809.8+0507_daily_bin244.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.98
user 0.37
sys 0.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250005/ft1_filtered_4FGL_J0809.8+0507_daily_bin244.fits scfile=/scratch/kocevski/250005/ft2_4FGL_J0809.8+0507_daily_bin244.fits outfile=/scratch/kocevski/250005/cmap_HighResolution_302572801_302832001_4FGL_J0809.8+0507_daily_bin244.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.98
user 0.36
sys 0.60

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13244E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.1308       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5479       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.079       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0532       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1104       1.0000         .10000E-03   10000.    
    11 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.2687       1.0000         .10000E-03   10000.    
    13 'norm      '    5.1186       1.0000         .10000E-03   10000.    
    14 'norm      '    5.8187       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.053       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.999       1.0000         .10000E-03   10000.    
    17 'norm      '    2.3512       1.0000         .10000E-03   10000.    
    18 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.007       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .85831       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1122       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=   7222.205     FROM MIGRAD    STATUS=CONVERGED    813 CALLS     2889 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.115        .14881    ** at limit **
   2  Prefactor     .10000E-03    8.0541        .18142E-02** at limit **
   3  norm          3.1310        1.6984        .78012E-04    .65433E-04
   4  Prefactor     .10000E-03    8.5386        .18142E-02** at limit **
   5  Prefactor     1.5475        2.7908        .18208E-03    .27160E-04
   6  norm          .10000E-03    14.743        .18142E-02** at limit **
   7  Prefactor     .10000E-03    14.245        .18142E-02** at limit **
   8  Prefactor     48.118        109.17        .57830E-04    .15727E-06
   9  Prefactor     3.0531        6.2831        .23218E-03   -.16158E-04
  10  Prefactor     9.1510        27.309        .13278E-03   -.78169E-04
  11  norm          .10000E-03    3.4272        .15333E-02** at limit **
  12  norm          1.2687        1.4630        .10927E-03    .14358E-04
  13  norm          5.0548        33.394        .17771E-03    .58153E-04
  14  norm          5.8198        4.0387        .67948E-03   -.17029E-03
  15  Prefactor     17.119        42.737        .96989E-04   -.73846E-05
  16  Prefactor     13.998        15.725        .10705E-03    .10832E-04
  17  norm          2.3512        .95295        .50839E-04    .27058E-04
  18  norm          .10000E-03    5.6237        .26567E-02** at limit **
  19  Prefactor     9.9973        39.339        .12667E-03    .16155E-05
  20  Normalizat    .85848        .22015        .31746E-03    .61918E-04
  21  Prefactor     1.1121        .14645        .19639E-03   -.30282E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.13101
  Prefactor  = 0.0001
  Prefactor  = 1.54753
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.1178
  Prefactor  = 3.05312
  Prefactor  = 9.15101
  norm       = 0.0001
  norm       = 1.26873
  norm       = 5.0548
  norm       = 5.8198
  Prefactor  = 17.119
  Prefactor  = 13.9978
  norm       = 2.35124
  norm       = 0.000100001
  Prefactor  = 9.99734
  Normalizat = 0.858481
  Prefactor  = 1.11206
 **********
 **   18 **HESSE 
 **********

 FCN=   7222.205     FROM HESSE     STATUS=OK           305 CALLS     3194 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.052        .14913       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.0542        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1310        1.6983        .31205E-05   -1.5354    
   4  Prefactor     .10000E-03    8.5390        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5475        2.7904        .72834E-05   -1.5459    
   6  norm          .10000E-03    14.748        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.253        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     48.118        109.17        .11566E-04   -1.4320    
   9  Prefactor     3.0531        6.2826        .92873E-05   -1.5358    
  10  Prefactor     9.1510        27.295        .53114E-05   -1.5103    
  11  norm          .10000E-03    3.4276        .30667E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2687        1.4630        .43708E-05   -1.5483    
  13  norm          5.0548        33.352        .71082E-05   -1.5258    
  14  norm          5.8198        4.0380        .27179E-04   -1.5225    
  15  Prefactor     17.119        42.719        .38796E-05   -1.4880    
  16  Prefactor     13.998        15.725        .42821E-05   -1.4960    
  17  norm          2.3512        .95294        .20336E-05   -1.5401    
  18  norm          .10000E-03    5.6559        .53134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.9973        39.350        .50667E-05   -1.5075    
  20  Normalizat    .85848        .22028        .12698E-04   -.97935    
  21  Prefactor     1.1121        .14656        .39277E-04   -.89082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.42279e-10
Minuit parameter uncertainties:
  1  0.000294574
  2  1.00912e-05
  3  1.69838
  4  5.29379e-06
  5  2.79063
  6  2.23498e-05
  7  1.62718e-05
  8  109.629
  9  6.28394
  10  27.3324
  11  1.40398e-06
  12  1.46302
  13  25.989
  14  4.03822
  15  42.7953
  16  15.7294
  17  0.95295
  18  0.000180773
  19  39.4525
  20  0.220508
  21  0.146611
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  5.055e+00  2.599e+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.112e+00  1.466e-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:  8.585e-01  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/250005/likelihoodResults_302572801_302832001_4FGL_J0809.8+0507_daily_bin244.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) = 7222.03550042
delta logL = 0.169055641306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7222.00670806
delta logL = 0.197848000536

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9830       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9954       1.0000          .0000       5.0000    
     3 'Normalizat'    .82216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1277       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7222.007     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      267 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9721        634.82         .0000        .74981E-03
   2  alpha         5.0000        3.8070         .0000    ** at limit **
   3  Normalizat    .82168        .19942         .0000        .14572E-04
   4  Prefactor     1.1278        .12961         .0000       -.95288E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.97207
  alpha      = 5
  Normalizat = 0.821681
  Prefactor  = 1.12783
 **********
 **   18 **HESSE 
 **********

 FCN=   7222.007     FROM HESSE     STATUS=OK            33 CALLS      300 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9721        6.0909        .21503E-03   -1.5363    
   2  alpha         5.0000        4.9408        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .82168        .21830        .32377E-03   -.99269    
   4  Prefactor     1.1278        .14705        .19516E-03   -.88582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5243e-11
Minuit parameter uncertainties:
  1  6.0922
  2  0.00069575
  3  0.218529
  4  0.147106
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250005': 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) = 7222.00669195
delta logL = 0.197864117054

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.972e+00  6.092e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  5.000e+00  6.958e-04  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.128e+00  1.471e-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:  8.217e-01  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 122.453 5.131

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/250005/cmap_HighResolution_302572801_302832001_4FGL_J0809.8+0507_daily_bin244.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.45e-05', job_status='DONE', photon_flux_upper_limit='9.30e-08', time_completed='2021-08-29 09:06:02.720258', job_id='250005', GAL2='1.13', fit_tolerance='1e-08', EG2='0.82', EG='0.86', time_epoch_completed='1630253162.72', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.98e-01', ts2='0.50', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='244' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:06:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0045>
Subject: Job 250005: <4FGL_J0809.8+0507_daily_bin244> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin244 122.453 5.1313 302572801 302832001 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 :                                   710.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             236.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            941 sec.

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

