/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 96 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 = 7473
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.8+0507_daily_bin83
RA = 122.453, Dec = 5.1313
tmin = 260841601, tmax = 261100801
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='248713', job_status='RUN', time_executed='2021-08-29 08:47:31.748706', time_epoch_executed='1630252051.75' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='83'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248713

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248713/ft1_4FGL_J0809.8+0507_daily_bin83.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248713/ft2_4FGL_J0809.8+0507_daily_bin83.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248713/ft1_4FGL_J0809.8+0507_daily_bin83.fits outfile=/scratch/kocevski/248713/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin83.fits ra=122.453 dec=5.1313 rad=12.0 tmin=260841601.0 tmax=261100801.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 2.00
user 1.42
sys 0.53

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/248713/ft2_4FGL_J0809.8+0507_daily_bin83.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/248713/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin83.fits evtable="EVENTS" outfile="/scratch/kocevski/248713/ft1_filtered_4FGL_J0809.8+0507_daily_bin83.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.88
user 0.34
sys 0.52

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248713/ft1_filtered_4FGL_J0809.8+0507_daily_bin83.fits" evtable="EVENTS" scfile=/scratch/kocevski/248713/ft2_4FGL_J0809.8+0507_daily_bin83.fits sctable="SC_DATA" outfile=/scratch/kocevski/248713/ltcube_260841601_261100801_4FGL_J0809.8+0507_daily_bin83.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/248713/ft2_4FGL_J0809.8+0507_daily_bin83.fits
.....................!
real 15.61
user 14.77
sys 0.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248713/ft1_filtered_4FGL_J0809.8+0507_daily_bin83.fits evtable="EVENTS" scfile=/scratch/kocevski/248713/ft2_4FGL_J0809.8+0507_daily_bin83.fits sctable="SC_DATA" expcube=/scratch/kocevski/248713/ltcube_260841601_261100801_4FGL_J0809.8+0507_daily_bin83.fits outfile=/scratch/kocevski/248713/expmap_260841601_261100801_4FGL_J0809.8+0507_daily_bin83.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/248713/ltcube_260841601_261100801_4FGL_J0809.8+0507_daily_bin83.fits
.....................!
real 195.70
user 188.21
sys 5.62

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/248713/ft1_filtered_4FGL_J0809.8+0507_daily_bin83.fits scfile=/scratch/kocevski/248713/ft2_4FGL_J0809.8+0507_daily_bin83.fits outfile=/scratch/kocevski/248713/cmap_260841601_261100801_4FGL_J0809.8+0507_daily_bin83.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.91
user 0.39
sys 0.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248713/ft1_filtered_4FGL_J0809.8+0507_daily_bin83.fits scfile=/scratch/kocevski/248713/ft2_4FGL_J0809.8+0507_daily_bin83.fits outfile=/scratch/kocevski/248713/cmap_HighResolution_260841601_261100801_4FGL_J0809.8+0507_daily_bin83.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.92
user 0.39
sys 0.52

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.6996       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3917       1.0000         .10000E-03   10000.    
     6 'norm      '    .55010E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9990       1.0000         .10000E-03   10000.    
     8 'Prefactor '    47.112       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9664       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.262       1.0000         .10000E-03   10000.    
    14 'norm      '    3.4938       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .55714E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3293       1.0000         .10000E-03   10000.    
    17 'norm      '    .31153       1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2065       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0178       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0322       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=   9803.140     FROM MIGRAD    STATUS=CONVERGED    827 CALLS     2617 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.706        .18142E-02** at limit **
   2  Prefactor     .10000E-03    9.9322        .18142E-02** at limit **
   3  norm          2.6995        1.4094        .81245E-04   -.20206E-03
   4  Prefactor     .10000E-03    18.480        .18142E-02** at limit **
   5  Prefactor     3.3919        2.6636        .13483E-03    .13070E-03
   6  norm          .10001E-03    9.9963        .92762E-01** at limit **
   7  Prefactor     6.9996        6.8861        .15164E-03    .19927E-03
   8  Prefactor     46.853        59.615        .58418E-04    .40712E-04
   9  Prefactor     .10000E-03    1.0842        .10066E-02** at limit **
  10  Prefactor     3.9625        18.031        .20253E-03   -.88242E-04
  11  norm          .10000E-03    3.2361        .17282E-02** at limit **
  12  norm          .10000E-03    .66612        .77934E-03** at limit **
  13  norm          10.286        15.974        .12508E-03   -.28794E-03
  14  norm          3.4935        2.5070        .12851E-03   -.12491E-03
  15  Prefactor     .10000E-03    112.11        .38099E-03** at limit **
  16  Prefactor     3.3335        8.1993        .11092E-02   -.65167E-04
  17  norm          .31119        .40304        .85542E-03    .75456E-02
  18  norm          .10000E-03    4.2667        .18142E-02** at limit **
  19  Prefactor     1.2012        31.305        .41245E-03   -.31478E-04
  20  Normalizat    1.0181        .17828        .28377E-03   -.48160E-03
  21  Prefactor     1.0320        .12284        .19903E-03    .27016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.69948
  Prefactor  = 0.0001
  Prefactor  = 3.3919
  norm       = 0.000100015
  Prefactor  = 6.99956
  Prefactor  = 46.8528
  Prefactor  = 0.0001
  Prefactor  = 3.96249
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.2859
  norm       = 3.49352
  Prefactor  = 0.000100001
  Prefactor  = 3.33355
  norm       = 0.311193
  norm       = 0.0001
  Prefactor  = 1.20119
  Normalizat = 1.01808
  Prefactor  = 1.032
 **********
 **   18 **HESSE 
 **********

 FCN=   9803.140     FROM HESSE     STATUS=OK           309 CALLS     2926 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.706        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.9327        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.6995        1.4094        .32498E-05   -1.5379    
   4  Prefactor     .10000E-03    18.487        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.3919        2.6634        .53931E-05   -1.5340    
   6  norm          .10001E-03    9.9214        .93302E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.9996        6.8855        .60656E-05   -1.5179    
   8  Prefactor     46.853        59.615        .11684E-04   -1.4338    
   9  Prefactor     .10000E-03    1.0842        .20131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.9625        18.024        .81012E-05   -1.5310    
  11  norm          .10000E-03    3.2376        .34564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .66624        .15587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.286        15.970        .50032E-05   -1.5066    
  14  norm          3.4935        2.5069        .51405E-05   -1.5334    
  15  Prefactor     .10000E-03    112.12        .76197E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.3335        8.1957        .44367E-04   -1.5343    
  17  norm          .31119        .40275        .17108E-03   -1.5596    
  18  norm          .10000E-03    4.2690        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2012        31.306        .16498E-04   -1.5489    
  20  Normalizat    1.0181        .17834        .56755E-04   -.92427    
  21  Prefactor     1.0320        .12293        .39805E-04   -.91670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61359e-09
Minuit parameter uncertainties:
  1  7.83455e-06
  2  1.78849e-06
  3  1.40941
  4  3.51853e-05
  5  2.66349
  6  0.000767989
  7  6.88631
  8  59.6907
  9  1.21607e-07
  10  16.9103
  11  2.82771e-06
  12  1.0183e-06
  13  15.9766
  14  2.50701
  15  0.000612158
  16  8.19849
  17  0.40275
  18  3.08877e-06
  19  12.2712
  20  0.178444
  21  0.12296
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.029e+01  1.598e+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.032e+00  1.230e-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.018e+00  1.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/248713/likelihoodResults_260841601_261100801_4FGL_J0809.8+0507_daily_bin83.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) = 9803.1391629
delta logL = 0.000433033925219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9803.13906352
delta logL = 0.000532408506842

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.181       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8819       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0324       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9803.139     FROM MIGRAD    STATUS=FAILED        89 CALLS      268 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.178        16.438        .12558E-03    .35669E-04
   2  alpha         2.8819        1.8883        .66442E-01    .20532E-03
   3  Normalizat    1.0171        .17455        .28389E-03    .42529E-04
   4  Prefactor     1.0324        .12200        .19899E-03    .29599E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9803.139     FROM SIMPLEX   STATUS=UNCHANGED     68 CALLS      336 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.178        16.438        .29862E-03   -1.5070    
   2  alpha         2.8819        1.8883        .49065E-02    .15336    
   3  Normalizat    1.0171        .17455        .28632E-03   -.92458    
   4  Prefactor     1.0324        .12200        .21730E-03   -.91657    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9803.139     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      364 TOTAL
                     EDM=   .47E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.178        15.650        .50231E-05   -.45265E-05
   2  alpha         2.8819        1.8214        .13288E-01    .70667E-06
   3  Normalizat    1.0171        .17466        .11356E-04   -.80092E-06
   4  Prefactor     1.0324        .12201        .39798E-04   -.34279E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 10.1777
  alpha      = 2.88189
  Normalizat = 1.01714
  Prefactor  = 1.03241
 **********
 **   18 **HESSE 
 **********

 FCN=   9803.139     FROM HESSE     STATUS=OK            25 CALLS      389 TOTAL
                     EDM=   .20E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.178        15.542        .10046E-05   -1.5070    
   2  alpha         2.8819        1.8093        .53154E-03    .15336    
   3  Normalizat    1.0171        .17466        .22711E-05   -.92458    
   4  Prefactor     1.0324        .12197        .79596E-05   -.91657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0389e-13
Minuit parameter uncertainties:
  1  15.5479
  2  2.03021
  3  0.17476
  4  0.122004
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248713': 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) = 9803.13906349
delta logL = 0.000532437732545

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.018e+01  1.555e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.882e+00  2.030e+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:  1.032e+00  1.220e-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.017e+00  1.748e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
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/248713/cmap_HighResolution_260841601_261100801_4FGL_J0809.8+0507_daily_bin83.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.90e-05', job_status='DONE', photon_flux_upper_limit='7.23e-08', time_completed='2021-08-29 09:01:26.189073', job_id='248713', GAL2='1.03', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630252886.19', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='5.32e-04', ts2='0.57', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='83' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:01:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 248713: <4FGL_J0809.8+0507_daily_bin83> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin83> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 08:45:36 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:45:39 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:45:39 2021
Terminated at Sun Aug 29 09:01:27 2021
Results reported at Sun Aug 29 09:01:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin83 122.453 5.1313 260841601 261100801 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 :                                   836.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            951 sec.

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

