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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin184
RA = 122.453, Dec = 5.1313
tmin = 287020801, tmax = 287280001
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='248862', job_status='RUN', time_executed='2021-08-29 08:46:21.218079', time_epoch_executed='1630251981.22' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248862

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248862/ft1_4FGL_J0809.8+0507_daily_bin184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248862/ft2_4FGL_J0809.8+0507_daily_bin184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248862/ft1_4FGL_J0809.8+0507_daily_bin184.fits outfile=/scratch/kocevski/248862/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin184.fits ra=122.453 dec=5.1313 rad=12.0 tmin=287020801.0 tmax=287280001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.72
user 4.34
sys 1.36

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/248862/ft2_4FGL_J0809.8+0507_daily_bin184.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/248862/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin184.fits evtable="EVENTS" outfile="/scratch/kocevski/248862/ft1_filtered_4FGL_J0809.8+0507_daily_bin184.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 1.64
user 0.33
sys 1.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248862/ft1_filtered_4FGL_J0809.8+0507_daily_bin184.fits" evtable="EVENTS" scfile=/scratch/kocevski/248862/ft2_4FGL_J0809.8+0507_daily_bin184.fits sctable="SC_DATA" outfile=/scratch/kocevski/248862/ltcube_287020801_287280001_4FGL_J0809.8+0507_daily_bin184.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/248862/ft2_4FGL_J0809.8+0507_daily_bin184.fits
.....................!
real 19.03
user 11.64
sys 1.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248862/ft1_filtered_4FGL_J0809.8+0507_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/248862/ft2_4FGL_J0809.8+0507_daily_bin184.fits sctable="SC_DATA" expcube=/scratch/kocevski/248862/ltcube_287020801_287280001_4FGL_J0809.8+0507_daily_bin184.fits outfile=/scratch/kocevski/248862/expmap_287020801_287280001_4FGL_J0809.8+0507_daily_bin184.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/248862/ltcube_287020801_287280001_4FGL_J0809.8+0507_daily_bin184.fits
.....................!
real 191.45
user 185.28
sys 5.75

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/248862/ft1_filtered_4FGL_J0809.8+0507_daily_bin184.fits scfile=/scratch/kocevski/248862/ft2_4FGL_J0809.8+0507_daily_bin184.fits outfile=/scratch/kocevski/248862/cmap_287020801_287280001_4FGL_J0809.8+0507_daily_bin184.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 1.66
user 0.37
sys 1.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248862/ft1_filtered_4FGL_J0809.8+0507_daily_bin184.fits scfile=/scratch/kocevski/248862/ft2_4FGL_J0809.8+0507_daily_bin184.fits outfile=/scratch/kocevski/248862/cmap_HighResolution_287020801_287280001_4FGL_J0809.8+0507_daily_bin184.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 1.66
user 0.39
sys 1.26

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .85208       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.455       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7485       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.133       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.4009       1.0000         .10000E-03   10000.    
    13 'norm      '    20.174       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    42.368       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.1146       1.0000         .10000E-03   10000.    
    18 'norm      '    .70008E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2091       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0097       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=   5641.520     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2209 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.980        .16352E-05** at limit **
   2  Prefactor     .10000E-03    12.058       -.20308E-06** at limit **
   3  norm          .85188        1.6147        .49977E-06    .21939E-02
   4  Prefactor     22.451        30.781       -.11646E-05   -.94020E-04
   5  Prefactor     .10000E-03    .79964        .29642E-06** at limit **
   6  norm          .10000E-03    4.4855       -.82568E-08** at limit **
   7  Prefactor     .10000E-03    5.4975        .32358E-06** at limit **
   8  Prefactor     7.7133        185.82       -.10148E-04    .32592E-04
   9  Prefactor     11.131        11.242       -.56004E-07   -.16251E-03
  10  Prefactor     .10001E-03    38.136        .25951E-05** at limit **
  11  norm          .10000E-03    4.9432        .21242E-06** at limit **
  12  norm          2.4008        3.5501       -.29619E-05   -.16687E-03
  13  norm          20.167        24.732       -.13898E-05   -.11938E-03
  14  norm          .10000E-03    2.1050        .11052E-06** at limit **
  15  Prefactor     42.370        38.053        .35869E-06    .73669E-04
  16  Prefactor     .10000E-03    5.2390       -.44613E-06** at limit **
  17  norm          4.1148        1.5288        .10531E-06    .64187E-03
  18  norm          .62230E-01    120.62       -.79991E-04    .44979E-04
  19  Prefactor     .10000E-03    23.074       -.15508E-05** at limit **
  20  Normalizat    1.2089        .21640        .12365E-05   -.14561E-03
  21  Prefactor     1.0098        .14910        .43144E-06   -.36689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.851881
  Prefactor  = 22.4509
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.71333
  Prefactor  = 11.1313
  Prefactor  = 0.000100009
  norm       = 0.0001
  norm       = 2.40084
  norm       = 20.1675
  norm       = 0.0001
  Prefactor  = 42.3704
  Prefactor  = 0.0001
  norm       = 4.11481
  norm       = 0.0622295
  Prefactor  = 0.0001
  Normalizat = 1.20889
  Prefactor  = 1.00985
 **********
 **   18 **HESSE 
 **********

 FCN=   5641.520     FROM HESSE     STATUS=OK           321 CALLS     2530 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .85188        1.5015        .12531E-02   -1.5523    
   4  Prefactor     22.451        30.832        .84529E-04   -1.4760    
   5  Prefactor     .10000E-03    .80351        .65625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.4864        .15536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.5365        .17200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.7133        185.61        .14406E-03   -1.5152    
   9  Prefactor     11.131        11.223        .60036E-03   -1.5041    
  10  Prefactor     .10001E-03    38.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.9558        .16307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.4008        3.5574        .81866E-03   -1.5398    
  13  norm          20.167        24.755        .89174E-04   -1.4809    
  14  norm          .10000E-03    2.1283        .10640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     42.370        38.209        .61588E-04   -1.4405    
  16  Prefactor     .10000E-03    5.2463        .16791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.1148        1.5307        .54023E-04   -1.5302    
  18  norm          .62230E-01    6.2678        .59928E-01   -1.5658    
  19  Prefactor     .10000E-03    23.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2089        .25139        .28502E-03   -.86328    
  21  Prefactor     1.0098        .17282        .21449E-03   -.92402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79864e-09
Minuit parameter uncertainties:
  1  5.55761e-05
  2  7.41824e-05
  3  1.50153
  4  30.8543
  5  2.05052e-05
  6  4.49179e-06
  7  3.23667e-05
  8  75.94
  9  11.2255
  10  0.00120456
  11  4.6454e-06
  12  3.55767
  13  24.768
  14  1.64191e-05
  15  38.231
  16  2.91659e-05
  17  1.53074
  18  1.2482
  19  9.69195e-05
  20  0.251639
  21  0.172918
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.017e+01  2.477e+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.010e+00  1.729e-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.209e+00  2.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/248862/likelihoodResults_287020801_287280001_4FGL_J0809.8+0507_daily_bin184.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) = 5640.98387976
delta logL = 0.536416021214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5640.97936358
delta logL = 0.54093220233

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.507       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2149       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1577       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0313       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=   5640.979     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      297 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.510        20.856        .10899E-03    .12309E-04
   2  alpha         4.2144        1.3632        .35534E-01    .54851E-05
   3  Normalizat    1.1581        .24941        .29002E-03    .19571E-03
   4  Prefactor     1.0311        .17059        .21246E-03    .13853E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.5103
  alpha      = 4.21437
  Normalizat = 1.15814
  Prefactor  = 1.03105
 **********
 **   18 **HESSE 
 **********

 FCN=   5640.979     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.510        18.017        .43595E-05   -1.4973    
   2  alpha         4.2144        1.2141        .14213E-02    .75563    
   3  Normalizat    1.1581        .24970        .58004E-04   -.87906    
   4  Prefactor     1.0311        .17066        .42492E-04   -.91701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.97364e-11
Minuit parameter uncertainties:
  1  18.0245
  2  1.32917
  3  0.249957
  4  0.170749
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248862': 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) = 5640.97936221
delta logL = 0.540933573042

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.351e+01  1.802e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  4.214e+00  1.329e+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.031e+00  1.707e-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.158e+00  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 122.453 5.131
Photon Index (Free Index): 4.21 +/- 1.33
Photon Flux (Free Index): 7.31e-08 +/- 6.37e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.08e-05

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/248862/cmap_HighResolution_287020801_287280001_4FGL_J0809.8+0507_daily_bin184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-05', comment='SUCCESS', energy_flux2='1.31e-05', dlogl='5.41e-01', photon_flux2='7.31e-08', job_status='DONE', time_completed='2021-08-29 08:56:46.371763', photon_index_error2='1.33', photon_index2='4.21', ts='0.94', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.08e-05', EG='1.21', time_epoch_completed='1630252606.37', return_code='0', job_id='248862', GAL2='1.03', EG2='1.16', return_code2='0', photon_flux_error2='6.37e-08', ts2='2.10', photon_index='2.82' WHERE bin_id='184' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:56:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 248862: <4FGL_J0809.8+0507_daily_bin184> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin184 122.453 5.1313 287020801 287280001 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 :                                   634.61 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   656 sec.
    Turnaround time :                            658 sec.

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

