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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin203
RA = 122.453, Dec = 5.1313
tmin = 291945601, tmax = 292204801
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='248890', job_status='RUN', time_executed='2021-08-29 08:46:12.226980', time_epoch_executed='1630251972.23' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='203'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248890

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248890/ft1_4FGL_J0809.8+0507_daily_bin203.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248890/ft2_4FGL_J0809.8+0507_daily_bin203.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248890/ft1_4FGL_J0809.8+0507_daily_bin203.fits outfile=/scratch/kocevski/248890/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin203.fits ra=122.453 dec=5.1313 rad=12.0 tmin=291945601.0 tmax=292204801.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 4.07
user 3.55
sys 0.48

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/248890/ft2_4FGL_J0809.8+0507_daily_bin203.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/248890/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin203.fits evtable="EVENTS" outfile="/scratch/kocevski/248890/ft1_filtered_4FGL_J0809.8+0507_daily_bin203.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.80
user 0.35
sys 0.41

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248890/ft1_filtered_4FGL_J0809.8+0507_daily_bin203.fits" evtable="EVENTS" scfile=/scratch/kocevski/248890/ft2_4FGL_J0809.8+0507_daily_bin203.fits sctable="SC_DATA" outfile=/scratch/kocevski/248890/ltcube_291945601_292204801_4FGL_J0809.8+0507_daily_bin203.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/248890/ft2_4FGL_J0809.8+0507_daily_bin203.fits
.....................!
real 12.34
user 11.67
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248890/ft1_filtered_4FGL_J0809.8+0507_daily_bin203.fits evtable="EVENTS" scfile=/scratch/kocevski/248890/ft2_4FGL_J0809.8+0507_daily_bin203.fits sctable="SC_DATA" expcube=/scratch/kocevski/248890/ltcube_291945601_292204801_4FGL_J0809.8+0507_daily_bin203.fits outfile=/scratch/kocevski/248890/expmap_291945601_292204801_4FGL_J0809.8+0507_daily_bin203.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/248890/ltcube_291945601_292204801_4FGL_J0809.8+0507_daily_bin203.fits
.....................!
real 190.25
user 185.47
sys 4.42

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/248890/ft1_filtered_4FGL_J0809.8+0507_daily_bin203.fits scfile=/scratch/kocevski/248890/ft2_4FGL_J0809.8+0507_daily_bin203.fits outfile=/scratch/kocevski/248890/cmap_291945601_292204801_4FGL_J0809.8+0507_daily_bin203.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.84
user 0.37
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248890/ft1_filtered_4FGL_J0809.8+0507_daily_bin203.fits scfile=/scratch/kocevski/248890/ft2_4FGL_J0809.8+0507_daily_bin203.fits outfile=/scratch/kocevski/248890/cmap_HighResolution_291945601_292204801_4FGL_J0809.8+0507_daily_bin203.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.85
user 0.39
sys 0.45

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.008       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.129       1.0000         .10000E-03   10000.    
     3 'norm      '    11.012       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.137       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2185       1.0000         .10000E-03   10000.    
     8 'Prefactor '    136.67       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6859       1.0000         .10000E-03   10000.    
    10 'Prefactor '    58.186       1.0000         .10000E-03   10000.    
    11 'norm      '    .28269       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.8802       1.0000         .10000E-03   10000.    
    18 'norm      '    5.8638       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.078       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2342       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .62702       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=   5523.822     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2200 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.003        46.445       -.33681E-05   -.46555E-04
   2  Prefactor     20.125        29.825       -.54089E-05   -.64382E-04
   3  norm          11.012        2.8814        .39840E-07    .10456E-03
   4  Prefactor     13.136        29.282        .79822E-06    .19657E-04
   5  Prefactor     .10000E-03    2.4068        .16236E-06** at limit **
   6  norm          .10000E-03    12.258       -.33185E-07** at limit **
   7  Prefactor     4.2223        11.041       -.29834E-05   -.84650E-04
   8  Prefactor     136.65        140.93       -.11902E-04   -.44962E-04
   9  Prefactor     2.6873        2.6611        .82008E-06   -.22825E-02
  10  Prefactor     58.188        36.959        .22923E-05    .98128E-04
  11  norm          .22045        7.2497       -.86347E-06    .10007E-04
  12  norm          .10000E-03    1.0170       -.47889E-07** at limit **
  13  norm          .10000E-03    4.9191       -.13518E-07** at limit **
  14  norm          .10000E-03    1.5405       -.23391E-07** at limit **
  15  Prefactor     .10000E-03    14.110        .53063E-06** at limit **
  16  Prefactor     .10000E-03    17.724       -.58815E-06** at limit **
  17  norm          2.8802        1.0829       -.37377E-07    .65162E-04
  18  norm          5.8634        6.0935       -.62533E-07    .83577E-05
  19  Prefactor     19.074        24.871       -.47508E-05   -.76604E-04
  20  Normalizat    1.2342        .19622        .10209E-05    .80251E-04
  21  Prefactor     .62708        .13168        .56753E-06    .11574E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.0034
  Prefactor  = 20.125
  norm       = 11.0117
  Prefactor  = 13.136
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.22229
  Prefactor  = 136.647
  Prefactor  = 2.6873
  Prefactor  = 58.1879
  norm       = 0.220455
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.8802
  norm       = 5.86338
  Prefactor  = 19.0736
  Normalizat = 1.23421
  Prefactor  = 0.627085
 **********
 **   18 **HESSE 
 **********

 FCN=   5523.822     FROM HESSE     STATUS=OK           319 CALLS     2519 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.003        46.566        .54579E-04   -1.4237    
   2  Prefactor     20.125        29.900        .89273E-04   -1.4810    
   3  norm          11.012        2.8821        .60757E-04   -1.5044    
   4  Prefactor     13.136        29.324        .11051E-03   -1.4983    
   5  Prefactor     .10000E-03    2.5052        .22482E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    12.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.2223        11.064        .19620E-03   -1.5297    
   8  Prefactor     136.65        141.40        .17226E-03   -1.3365    
   9  Prefactor     2.6873        5.5828        .12185E-02   -1.5380    
  10  Prefactor     58.188        37.114        .52594E-04   -1.4181    
  11  norm          .22045        151.94        .37624E-02   -1.5614    
  12  norm          .10000E-03    1.0418        .73186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.9199        .16099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.5484        .90060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.8802        1.0846        .45786E-04   -1.5369    
  18  norm          5.8634        6.0968        .16584E-03   -1.5224    
  19  Prefactor     19.074        24.941        .91697E-04   -1.4834    
  20  Normalizat    1.2342        .22752        .24892E-03   -.85552    
  21  Prefactor     .62708        .15126        .23076E-03   -1.0646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.4428e-09
Minuit parameter uncertainties:
  1  46.5974
  2  29.9222
  3  2.88215
  4  29.3564
  5  3.50337e-05
  6  8.51019e-05
  7  11.0693
  8  141.755
  9  5.58386
  10  37.1291
  11  11.6022
  12  1.88434e-06
  13  6.72689e-06
  14  4.57644e-06
  15  1.8867e-06
  16  2.53268e-05
  17  1.0846
  18  6.09744
  19  24.9551
  20  0.227699
  21  0.151359
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  6.727e-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:  6.271e-01  1.514e-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.234e+00  2.277e-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: 4.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248890/likelihoodResults_291945601_292204801_4FGL_J0809.8+0507_daily_bin203.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): 102
logL (Free Index) = 5523.82334375
delta logL = -0.000949565936025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5523.82239417
delta logL = 2.13185558096e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8067       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2342       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62710       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=   5523.822     FROM MIGRAD    STATUS=FAILED       109 CALLS      248 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    161.89        .60395E-01** at limit **
   2  alpha         .57418E-04    3.7911        .16620        .14142E-06
   3  Normalizat    1.2342        .26478E-01    .24892E-03   -.40514E-03
   4  Prefactor     .62708        .18205E-01    .23076E-03   -.48399E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5523.822     FROM SIMPLEX   STATUS=UNCHANGED    163 CALLS      411 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    161.89        .84083E-03** at limit **
   2  alpha         .57418E-04    3.7911        .20719E-02    .14142E-06
   3  Normalizat    1.2342        .26478E-01    .20341E-07   -.40514E-03
   4  Prefactor     .62708        .18205E-01    .13788E-08   -.48399E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5523.822     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      443 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    84.668        .36118E-02** at limit **
   2  alpha         .31861E-05    2.6523        .33240E-01    .33381E-07
   3  Normalizat    1.2342        .21341        .49785E-04   -.35633E-03
   4  Prefactor     .62708        .14648        .46152E-04   -.43118E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100006
  alpha      = 3.18605e-06
  Normalizat = 1.23421
  Prefactor  = 0.627083
 **********
 **   18 **HESSE 
 **********

 FCN=   5523.822     FROM HESSE     STATUS=OK            23 CALLS      466 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    30.417        .72236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .31861E-05    3.0742        .66479E-02   -1.5692    
   3  Normalizat    1.2342        .21340        .99570E-05   -.85552    
   4  Prefactor     .62708        .14643        .92303E-05   -1.0646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30452e-10
Minuit parameter uncertainties:
  1  0.000819492
  2  0.873743
  3  0.213551
  4  0.146519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248890': 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) = 5523.82238567
delta logL = 8.51728782436e-06

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  8.195e-04  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  3.186e-06  8.737e-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:  6.271e-01  1.465e-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.234e+00  2.136e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/248890/cmap_HighResolution_291945601_292204801_4FGL_J0809.8+0507_daily_bin203.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-05', job_status='DONE', photon_flux_upper_limit='4.46e-08', time_completed='2021-08-29 08:56:00.509067', job_id='248890', GAL2='0.63', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630252560.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='8.52e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='203' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:56:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 248890: <4FGL_J0809.8+0507_daily_bin203> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin203 122.453 5.1313 291945601 292204801 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 :                                   591.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             372.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            611 sec.

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

