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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin128
RA = 122.453, Dec = 5.1313
tmin = 272505601, tmax = 272764801
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='248781', job_status='RUN', time_executed='2021-08-29 08:48:47.871280', time_epoch_executed='1630252127.87' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248781

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248781/ft1_4FGL_J0809.8+0507_daily_bin128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248781/ft2_4FGL_J0809.8+0507_daily_bin128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248781/ft1_4FGL_J0809.8+0507_daily_bin128.fits outfile=/scratch/kocevski/248781/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin128.fits ra=122.453 dec=5.1313 rad=12.0 tmin=272505601.0 tmax=272764801.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 11.02
user 1.59
sys 9.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248781/ft1_filtered_4FGL_J0809.8+0507_daily_bin128.fits" evtable="EVENTS" scfile=/scratch/kocevski/248781/ft2_4FGL_J0809.8+0507_daily_bin128.fits sctable="SC_DATA" outfile=/scratch/kocevski/248781/ltcube_272505601_272764801_4FGL_J0809.8+0507_daily_bin128.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/248781/ft2_4FGL_J0809.8+0507_daily_bin128.fits
.....................!
real 23.32
user 11.91
sys 11.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248781/ft1_filtered_4FGL_J0809.8+0507_daily_bin128.fits evtable="EVENTS" scfile=/scratch/kocevski/248781/ft2_4FGL_J0809.8+0507_daily_bin128.fits sctable="SC_DATA" expcube=/scratch/kocevski/248781/ltcube_272505601_272764801_4FGL_J0809.8+0507_daily_bin128.fits outfile=/scratch/kocevski/248781/expmap_272505601_272764801_4FGL_J0809.8+0507_daily_bin128.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/248781/ltcube_272505601_272764801_4FGL_J0809.8+0507_daily_bin128.fits
.....................!
real 202.43
user 185.18
sys 16.76

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/248781/ft1_filtered_4FGL_J0809.8+0507_daily_bin128.fits scfile=/scratch/kocevski/248781/ft2_4FGL_J0809.8+0507_daily_bin128.fits outfile=/scratch/kocevski/248781/cmap_272505601_272764801_4FGL_J0809.8+0507_daily_bin128.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 8.64
user 0.38
sys 8.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248781/ft1_filtered_4FGL_J0809.8+0507_daily_bin128.fits scfile=/scratch/kocevski/248781/ft2_4FGL_J0809.8+0507_daily_bin128.fits outfile=/scratch/kocevski/248781/cmap_HighResolution_272505601_272764801_4FGL_J0809.8+0507_daily_bin128.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 9.59
user 0.36
sys 9.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .80668       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7944       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9646       1.0000         .10000E-03   10000.    
     6 'norm      '    4.8686       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5969       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8156       1.0000         .10000E-03   10000.    
    11 'norm      '    15.849       1.0000         .10000E-03   10000.    
    12 'norm      '    2.9282       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.504       1.0000         .10000E-03   10000.    
    17 'norm      '    4.0787       1.0000         .10000E-03   10000.    
    18 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .93673       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0960       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=   7018.771     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     1900 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.210        .36743E-06** at limit **
   2  Prefactor     .10000E-03    39.776       -.15317E-05** at limit **
   3  norm          .80606        1.5244        .48726E-06    .33086E-06
   4  Prefactor     5.8524        36.939        .74649E-06    .30044E-04
   5  Prefactor     1.9646        3.0072        .46703E-06   -.40942E-04
   6  norm          4.8742        11.990        .25501E-06   -.15558E-04
   7  Prefactor     .10000E-03    3.1691       -.26045E-07** at limit **
   8  Prefactor     .10000E-03    55.938        .72068E-06** at limit **
   9  Prefactor     9.5930        12.881        .23788E-05   -.96730E-04
  10  Prefactor     1.7536        123.36        .16633E-05   -.17348E-04
  11  norm          15.851        13.836       -.52532E-06   -.17634E-04
  12  norm          2.9282        4.0535       -.32436E-07   -.10365E-03
  13  norm          .10000E-03    15.033       -.53764E-06** at limit **
  14  norm          .10000E-03    3.6912       -.24104E-06** at limit **
  15  Prefactor     .10000E-03    13.980       -.56246E-07** at limit **
  16  Prefactor     17.509        14.922        .14459E-06   -.47340E-05
  17  norm          4.0787        1.2880        .22706E-07   -.19933E-04
  18  norm          .10000E-03    3.1628        .32895E-07** at limit **
  19  Prefactor     .10000E-03    7.1607        .13177E-07** at limit **
  20  Normalizat    .93673        .20162       -.10098E-06   -.64409E-04
  21  Prefactor     1.0960        .13916       -.91847E-06   -.41272E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.806059
  Prefactor  = 5.85238
  Prefactor  = 1.96458
  norm       = 4.87418
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.59301
  Prefactor  = 1.75359
  norm       = 15.8513
  norm       = 2.92816
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.5088
  norm       = 4.07871
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.936727
  Prefactor  = 1.09599
 **********
 **   18 **HESSE 
 **********

 FCN=   7018.771     FROM HESSE     STATUS=OK           319 CALLS     2219 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    40.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .80606        1.5056        .13487E-03   -1.5528    
   4  Prefactor     5.8524        36.914        .16685E-03   -1.5224    
   5  Prefactor     1.9646        3.0022        .17003E-03   -1.5428    
   6  norm          4.8742        11.971        .18230E-03   -1.5266    
   7  Prefactor     .10000E-03    3.1708        .14562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    55.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.5930        12.794        .64680E-03   -1.5088    
  10  Prefactor     1.7536        124.41        .30998E-03   -1.5443    
  11  norm          15.851        13.829        .10061E-03   -1.4911    
  12  norm          2.9282        4.0131        .17513E-03   -1.5366    
  13  norm          .10000E-03    15.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.7618        .31334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.509        14.981        .95729E-04   -1.4871    
  17  norm          4.0787        1.2897        .51116E-04   -1.5304    
  18  norm          .10000E-03    3.1730        .14550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.1620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .93673        .23229        .31208E-03   -.95181    
  21  Prefactor     1.0960        .15903        .20250E-03   -.89595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21004e-10
Minuit parameter uncertainties:
  1  0.000189965
  2  0.000420054
  3  1.5057
  4  29.4227
  5  3.00239
  6  11.9765
  7  1.54507e-07
  8  0.000537037
  9  12.7981
  10  29.6038
  11  13.8322
  12  4.01351
  13  4.75154e-06
  14  9.95972e-06
  15  1.23037e-05
  16  14.9846
  17  1.28969
  18  2.26275e-06
  19  1.85314e-06
  20  0.232542
  21  0.159095
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  4.752e-06  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.096e+00  1.591e-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:  9.367e-01  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/248781/likelihoodResults_272505601_272764801_4FGL_J0809.8+0507_daily_bin128.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) = 7018.77146348
delta logL = -0.00031571528325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7018.77114786
delta logL = -1.02387275547e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8140       1.0000          .0000       5.0000    
     3 'Normalizat'    .93665       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0960       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=   7018.771     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      225 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10007E-03    6582.6        .18142E-02** at limit **
   2  alpha         2.7524        3.2347        .16628        .18071E-06
   3  Normalizat    .93673        .16281        .31207E-03   -.34244E-05
   4  Prefactor     1.0960        .11406        .20250E-03   -.43790E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100069
  alpha      = 2.75241
  Normalizat = 0.936728
  Prefactor  = 1.09598
 **********
 **   18 **HESSE 
 **********

 FCN=   7018.771     FROM HESSE     STATUS=OK            23 CALLS      248 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10007E-03    15.175        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7524        2.9576        .66511E-02    .10114    
   3  Normalizat    .93673        .21887        .12483E-04   -.95181    
   4  Prefactor     1.0960        .15340        .81001E-05   -.89595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67711e-09
Minuit parameter uncertainties:
  1  0.00204199
  2  936.705
  3  0.219076
  4  0.153464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248781': 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) = 7018.77114776
delta logL = 4.57475834992e-09

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.001e-04  2.042e-03  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.752e+00  9.367e+02  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.096e+00  1.535e-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:  9.367e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/248781/cmap_HighResolution_272505601_272764801_4FGL_J0809.8+0507_daily_bin128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.72e-05', job_status='DONE', photon_flux_upper_limit='6.55e-08', time_completed='2021-08-29 09:01:07.989887', job_id='248781', GAL2='1.10', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630252867.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='4.57e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='128' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:01:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 248781: <4FGL_J0809.8+0507_daily_bin128> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin128 122.453 5.1313 272505601 272764801 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 :                                   884.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             272.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            927 sec.

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

