/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 118 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 = 7462
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0809.8+0507_daily_bin703
RA = 122.453, Dec = 5.1313
tmin = 421545601, tmax = 421804801
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='252899', job_status='RUN', time_executed='2021-08-29 09:03:03.417545', time_epoch_executed='1630252983.42' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/252899

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/252899/ft1_4FGL_J0809.8+0507_daily_bin703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/252899/ft2_4FGL_J0809.8+0507_daily_bin703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/252899/ft1_4FGL_J0809.8+0507_daily_bin703.fits outfile=/scratch/kocevski/252899/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin703.fits ra=122.453 dec=5.1313 rad=12.0 tmin=421545601.0 tmax=421804801.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.09
user 3.39
sys 1.61

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/252899/ft1_filtered_4FGL_J0809.8+0507_daily_bin703.fits" evtable="EVENTS" scfile=/scratch/kocevski/252899/ft2_4FGL_J0809.8+0507_daily_bin703.fits sctable="SC_DATA" outfile=/scratch/kocevski/252899/ltcube_421545601_421804801_4FGL_J0809.8+0507_daily_bin703.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/252899/ft2_4FGL_J0809.8+0507_daily_bin703.fits
.....................!
real 13.78
user 11.69
sys 2.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/252899/ft1_filtered_4FGL_J0809.8+0507_daily_bin703.fits evtable="EVENTS" scfile=/scratch/kocevski/252899/ft2_4FGL_J0809.8+0507_daily_bin703.fits sctable="SC_DATA" expcube=/scratch/kocevski/252899/ltcube_421545601_421804801_4FGL_J0809.8+0507_daily_bin703.fits outfile=/scratch/kocevski/252899/expmap_421545601_421804801_4FGL_J0809.8+0507_daily_bin703.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/252899/ltcube_421545601_421804801_4FGL_J0809.8+0507_daily_bin703.fits
.....................!
real 196.36
user 187.42
sys 8.51

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/252899/ft1_filtered_4FGL_J0809.8+0507_daily_bin703.fits scfile=/scratch/kocevski/252899/ft2_4FGL_J0809.8+0507_daily_bin703.fits outfile=/scratch/kocevski/252899/cmap_421545601_421804801_4FGL_J0809.8+0507_daily_bin703.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 2.01
user 0.38
sys 1.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/252899/ft1_filtered_4FGL_J0809.8+0507_daily_bin703.fits scfile=/scratch/kocevski/252899/ft2_4FGL_J0809.8+0507_daily_bin703.fits outfile=/scratch/kocevski/252899/cmap_HighResolution_421545601_421804801_4FGL_J0809.8+0507_daily_bin703.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.91
user 0.38
sys 1.50

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.5014       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1717       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7990       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.273       1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.865       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2477       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.889       1.0000         .10000E-03   10000.    
    11 'norm      '    11.990       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3334       1.0000         .10000E-03   10000.    
    13 'norm      '    32.822       1.0000         .10000E-03   10000.    
    14 'norm      '    6.2450       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.6905       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1502       1.0000         .10000E-03   10000.    
    18 'norm      '    5.2353       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .92103       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95058       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=   6178.213     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     2516 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.185       -.33483E-05** at limit **
   2  Prefactor     .10000E-03    13.655       -.47709E-09** at limit **
   3  norm          5.5014        2.5471        .98234E-07    .82828E-04
   4  Prefactor     8.1652        36.300        .20367E-05    .40827E-05
   5  Prefactor     4.7982        4.2582        .51170E-06    .71348E-04
   6  norm          .10000E-03    5.9318       -.51451E-07** at limit **
   7  Prefactor     32.273        15.283        .54565E-07   -.35538E-04
   8  Prefactor     44.898        147.41       -.53211E-05   -.10019E-04
   9  Prefactor     2.2476        5.3692        .48050E-05   -.50632E-04
  10  Prefactor     25.887        36.064        .52718E-06   -.12009E-04
  11  norm          11.990        13.565       -.49295E-06   -.31604E-04
  12  norm          2.3334        2.3108       -.54813E-07   -.18247E-04
  13  norm          32.823        25.310       -.24633E-07   -.23899E-04
  14  norm          6.2450        3.9604        .35389E-06    .35955E-04
  15  Prefactor     .10000E-03    12.975        .36489E-07** at limit **
  16  Prefactor     7.6907        15.625        .27936E-06   -.37656E-04
  17  norm          1.1502        .90215       -.98624E-08   -.98192E-04
  18  norm          5.2351        9.7017        .21955E-05   -.21056E-04
  19  Prefactor     .10000E-03    45.982        .35455E-05** at limit **
  20  Normalizat    .92101        .20733       -.11854E-05   -.10103E-03
  21  Prefactor     .95060        .13486       -.33593E-06   -.10243E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.50138
  Prefactor  = 8.16521
  Prefactor  = 4.79825
  norm       = 0.0001
  Prefactor  = 32.2733
  Prefactor  = 44.8975
  Prefactor  = 2.24763
  Prefactor  = 25.8867
  norm       = 11.9897
  norm       = 2.33339
  norm       = 32.8228
  norm       = 6.24505
  Prefactor  = 0.0001
  Prefactor  = 7.69067
  norm       = 1.15017
  norm       = 5.23514
  Prefactor  = 0.0001
  Normalizat = 0.921006
  Prefactor  = 0.950601
 **********
 **   18 **HESSE 
 **********

 FCN=   6178.213     FROM HESSE     STATUS=OK           323 CALLS     2839 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.5014        2.5501        .80143E-04   -1.5239    
   4  Prefactor     8.1652        36.690        .14025E-03   -1.5136    
   5  Prefactor     4.7982        4.2648        .13723E-03   -1.5270    
   6  norm          .10000E-03    5.9333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.273        15.303        .70533E-04   -1.4571    
   8  Prefactor     44.898        147.41        .59856E-04   -1.4367    
   9  Prefactor     2.2476        5.3734        .13636E-02   -1.5408    
  10  Prefactor     25.887        36.059        .78732E-04   -1.4690    
  11  norm          11.990        13.573        .11569E-03   -1.5015    
  12  norm          2.3334        2.3007        .11500E-03   -1.5402    
  13  norm          32.823        25.300        .69943E-04   -1.4562    
  14  norm          6.2450        3.9597        .11974E-03   -1.5208    
  15  Prefactor     .10000E-03    12.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.6907        15.672        .14460E-03   -1.5153    
  17  norm          1.1502        .90540        .63187E-04   -1.5493    
  18  norm          5.2351        9.6955        .87839E-03   -1.5250    
  19  Prefactor     .10000E-03    46.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .92101        .23756        .30996E-03   -.95726    
  21  Prefactor     .95060        .15517        .20784E-03   -.94395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66185e-11
Minuit parameter uncertainties:
  1  6.59715e-05
  2  4.26045e-06
  3  2.55011
  4  34.6521
  5  4.26508
  6  4.32372e-06
  7  15.3053
  8  148.629
  9  5.37454
  10  36.0896
  11  13.5763
  12  2.30082
  13  25.3079
  14  3.95987
  15  1.51619e-06
  16  15.6807
  17  0.905412
  18  9.69845
  19  8.16428e-06
  20  0.237829
  21  0.155244
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  3.282e+01  2.531e+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:  9.506e-01  1.552e-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.210e-01  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.91
Ra Dec: 122.453 5.131
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 5.26e-08 +/- 4.06e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.07e-05

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

Saving results to:
/scratch/kocevski/252899/likelihoodResults_421545601_421804801_4FGL_J0809.8+0507_daily_bin703.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) = 6177.76055482
delta logL = 0.452547362243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6177.74155967
delta logL = 0.471542507754

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.598       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7453       1.0000          .0000       5.0000    
     3 'Normalizat'    .94717       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93746       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.

 FCN=   6177.742     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      203 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.598        26.383        .16341E-02    .66978E-03
   2  alpha         1.7453        .96789        .43815        .34003E-05
   3  Normalizat    .94717        .19149        .69181E-01    .56130E-04
   4  Prefactor     .93746        .13041        .45481E-01   -.28709E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 37.598
  alpha      = 1.74531
  Normalizat = 0.94717
  Prefactor  = 0.93746
 **********
 **   18 **HESSE 
 **********

 FCN=   6177.742     FROM HESSE     STATUS=OK            29 CALLS      232 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.598        26.765        .65363E-04   -1.4481    
   2  alpha         1.7453        .98974        .31117E-02   -.30666    
   3  Normalizat    .94717        .21709        .30606E-03   -.94822    
   4  Prefactor     .93746        .14808        .20899E-03   -.94844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.84243e-10
Minuit parameter uncertainties:
  1  26.7736
  2  1.02065
  3  0.217291
  4  0.148144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/252899': 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) = 6177.74155967
delta logL = 0.471542508116

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  3.760e+01  2.677e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  1.745e+00  1.021e+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:  9.375e-01  1.481e-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.472e-01  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.85
Ra Dec: 122.453 5.131
Photon Index (Free Index): 1.75 +/- 1.02
Photon Flux (Free Index): 3.47e-08 +/- 2.96e-08
Energy Flux (Free Index): 1.44e-05 +/- 9.90e-06

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/252899/cmap_HighResolution_421545601_421804801_4FGL_J0809.8+0507_daily_bin703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-05', comment='SUCCESS', photon_flux='5.26e-08', energy_flux2='1.44e-05', photon_flux_error='4.06e-08', dlogl='4.72e-01', energy_flux='1.39e-05', photon_flux2='3.47e-08', job_status='DONE', time_completed='2021-08-29 09:13:57.827602', photon_index_error2='1.02', photon_index2='1.75', ts='2.91', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='9.90e-06', EG='0.92', time_epoch_completed='1630253637.83', return_code='0', job_id='252899', GAL2='0.94', EG2='0.95', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='2.96e-08', ts2='3.85', photon_index='2.82' WHERE bin_id='703' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:13:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0139>
Subject: Job 252899: <4FGL_J0809.8+0507_daily_bin703> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin703> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 09:00:30 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 09:00:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 09:00:32 2021
Terminated at Sun Aug 29 09:13:58 2021
Results reported at Sun Aug 29 09:13:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin703 122.453 5.1313 421545601 421804801 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 :                                   675.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            808 sec.

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

