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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin611
RA = 122.453, Dec = 5.1313
tmin = 397699201, tmax = 397958401
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='251644', job_status='RUN', time_executed='2021-08-29 08:58:02.942342', time_epoch_executed='1630252682.94' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251644

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251644/ft1_4FGL_J0809.8+0507_daily_bin611.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251644/ft2_4FGL_J0809.8+0507_daily_bin611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251644/ft1_4FGL_J0809.8+0507_daily_bin611.fits outfile=/scratch/kocevski/251644/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin611.fits ra=122.453 dec=5.1313 rad=12.0 tmin=397699201.0 tmax=397958401.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.16
user 3.34
sys 0.79

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251644/ft1_filtered_4FGL_J0809.8+0507_daily_bin611.fits" evtable="EVENTS" scfile=/scratch/kocevski/251644/ft2_4FGL_J0809.8+0507_daily_bin611.fits sctable="SC_DATA" outfile=/scratch/kocevski/251644/ltcube_397699201_397958401_4FGL_J0809.8+0507_daily_bin611.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/251644/ft2_4FGL_J0809.8+0507_daily_bin611.fits
.....................!
real 13.50
user 12.12
sys 1.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251644/ft1_filtered_4FGL_J0809.8+0507_daily_bin611.fits evtable="EVENTS" scfile=/scratch/kocevski/251644/ft2_4FGL_J0809.8+0507_daily_bin611.fits sctable="SC_DATA" expcube=/scratch/kocevski/251644/ltcube_397699201_397958401_4FGL_J0809.8+0507_daily_bin611.fits outfile=/scratch/kocevski/251644/expmap_397699201_397958401_4FGL_J0809.8+0507_daily_bin611.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/251644/ltcube_397699201_397958401_4FGL_J0809.8+0507_daily_bin611.fits
.....................!
real 193.74
user 186.59
sys 6.68

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/251644/ft1_filtered_4FGL_J0809.8+0507_daily_bin611.fits scfile=/scratch/kocevski/251644/ft2_4FGL_J0809.8+0507_daily_bin611.fits outfile=/scratch/kocevski/251644/cmap_397699201_397958401_4FGL_J0809.8+0507_daily_bin611.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.12
user 0.38
sys 0.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251644/ft1_filtered_4FGL_J0809.8+0507_daily_bin611.fits scfile=/scratch/kocevski/251644/ft2_4FGL_J0809.8+0507_daily_bin611.fits outfile=/scratch/kocevski/251644/cmap_HighResolution_397699201_397958401_4FGL_J0809.8+0507_daily_bin611.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.14
user 0.41
sys 0.70

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.215       1.0000         .10000E-03   10000.    
     2 'Prefactor '    62.728       1.0000         .10000E-03   10000.    
     3 'norm      '    6.3083       1.0000         .10000E-03   10000.    
     4 'Prefactor '    61.677       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.103       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .43113E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5647       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.463       1.0000         .10000E-03   10000.    
    11 'norm      '    .18098       1.0000         .10000E-03   10000.    
    12 'norm      '    .37474       1.0000         .10000E-03   10000.    
    13 'norm      '    9.5862       1.0000         .10000E-03   10000.    
    14 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4705       1.0000         .10000E-03   10000.    
    18 'norm      '    2.3602       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.775       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .68087       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1360       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=   5591.486     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     2252 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.217        46.680        .69508E-07    .45769E-05
   2  Prefactor     62.733        39.418        .61757E-07    .53502E-05
   3  norm          6.3087        2.4620        .31057E-07    .17846E-03
   4  Prefactor     61.677        39.897        .49638E-07    .46575E-04
   5  Prefactor     .10000E-03    1.0861        .12654E-06** at limit **
   6  norm          .10000E-03    10.738        .50170E-06** at limit **
   7  Prefactor     18.099        12.487        .25465E-06    .20395E-03
   8  Prefactor     .10002E-03    189.98        .33254E-05** at limit **
   9  Prefactor     4.5573        8.7211       -.10390E-06    .10488E-03
  10  Prefactor     18.454        34.489        .24872E-06    .65455E-04
  11  norm          .14373        17.977       -.33180E-05    .61224E-03
  12  norm          .37476        2.1708        .21056E-05    .83642E-03
  13  norm          9.5862        21.650        .37401E-06    .88839E-04
  14  norm          .10000E-03    4.0374        .16389E-06** at limit **
  15  Prefactor     .10000E-03    15.385        .26073E-06** at limit **
  16  Prefactor     .10000E-03    4.6596        .24204E-07** at limit **
  17  norm          3.4706        1.4107       -.36967E-08   -.26570E-05
  18  norm          2.3627        6.8268        .10055E-05    .74321E-04
  19  Prefactor     25.778        38.078        .74378E-07   -.24282E-04
  20  Normalizat    .68092        .21737       -.55668E-06    .11561E-03
  21  Prefactor     1.1358        .15363       -.19712E-07    .21170E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.2175
  Prefactor  = 62.7334
  norm       = 6.30869
  Prefactor  = 61.6774
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.099
  Prefactor  = 0.00010002
  Prefactor  = 4.55732
  Prefactor  = 18.4537
  norm       = 0.143729
  norm       = 0.374759
  norm       = 9.58616
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.47062
  norm       = 2.36272
  Prefactor  = 25.7781
  Normalizat = 0.680916
  Prefactor  = 1.13578
 **********
 **   18 **HESSE 
 **********

 FCN=   5591.486     FROM HESSE     STATUS=OK           327 CALLS     2579 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.217        46.819        .79775E-04   -1.4703    
   2  Prefactor     62.733        39.422        .50665E-04   -1.4122    
   3  norm          6.3087        2.4639        .69345E-04   -1.5206    
   4  Prefactor     61.677        39.951        .51092E-04   -1.4136    
   5  Prefactor     .10000E-03    1.0981        .76067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.099        12.506        .94133E-04   -1.4857    
   8  Prefactor     .10002E-03    190.98        .21229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.5573        8.7133        .18841E-03   -1.5281    
  10  Prefactor     18.454        34.383        .93213E-04   -1.4849    
  11  norm          .14373        18.034        .64383E-01   -1.5632    
  12  norm          .37476        2.2036        .21560E-03   -1.5586    
  13  norm          9.5862        21.559        .12943E-03   -1.5089    
  14  norm          .10000E-03    4.1366        .29305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.6645        .15763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4706        1.4111        .53728E-04   -1.5335    
  18  norm          2.3627        6.8209        .26676E-03   -1.5401    
  19  Prefactor     25.778        38.187        .78905E-04   -1.4692    
  20  Normalizat    .68092        .24533        .34009E-03   -1.0465    
  21  Prefactor     1.1358        .17434        .19504E-03   -.88331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49939e-09
Minuit parameter uncertainties:
  1  46.8872
  2  39.4382
  3  2.46394
  4  39.9681
  5  4.41959e-06
  6  4.83019e-05
  7  12.5074
  8  0.00393999
  9  8.7157
  10  34.4195
  11  3.21981
  12  1.81734
  13  21.5765
  14  2.2065e-05
  15  3.82188e-05
  16  2.55775e-06
  17  1.41116
  18  6.82319
  19  38.2232
  20  0.245722
  21  0.174426
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  9.586e+00  2.158e+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.136e+00  1.744e-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:  6.809e-01  2.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/251644/likelihoodResults_397699201_397958401_4FGL_J0809.8+0507_daily_bin611.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) = 5591.16148384
delta logL = 0.324702250678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5591.14588164
delta logL = 0.340304447241

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1473       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3076       1.0000          .0000       5.0000    
     3 'Normalizat'    .64422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1516       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=   5591.146     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      267 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1410        13.376        .15004E-03   -.90923E-05
   2  alpha         4.3071        3.6581        .24798E-02   -.17192E-05
   3  Normalizat    .64450        .23720        .34878E-03   -.26598E-04
   4  Prefactor     1.1513        .16947        .19381E-03    .74589E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.14095
  alpha      = 4.30714
  Normalizat = 0.644504
  Prefactor  = 1.15129
 **********
 **   18 **HESSE 
 **********

 FCN=   5591.146     FROM HESSE     STATUS=OK            23 CALLS      290 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1410        13.177        .60017E-05   -1.5173    
   2  alpha         4.3071        1.4517        .99191E-04    .80793    
   3  Normalizat    .64450        .23736        .13951E-04   -1.0613    
   4  Prefactor     1.1513        .16957        .38763E-04   -.87844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00539e-11
Minuit parameter uncertainties:
  1  13.1826
  2  1.72393
  3  0.237736
  4  0.169655
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251644': 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) = 5591.14587858
delta logL = 0.340307508833

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  7.141e+00  1.318e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  4.307e+00  1.724e+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.151e+00  1.697e-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:  6.445e-01  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 122.453 5.131
Photon Index (Free Index): 4.31 +/- 1.72
Photon Flux (Free Index): 4.24e-08 +/- 5.24e-08
Energy Flux (Free Index): 7.47e-06 +/- 8.85e-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/251644/cmap_HighResolution_397699201_397958401_4FGL_J0809.8+0507_daily_bin611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-05', comment='SUCCESS', energy_flux2='7.47e-06', dlogl='3.40e-01', photon_flux2='4.24e-08', job_status='DONE', time_completed='2021-08-29 09:07:55.670938', photon_index_error2='1.72', photon_index2='4.31', ts='0.31', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='9.72e-08', energy_flux_error2='8.85e-06', EG='0.68', time_epoch_completed='1630253275.67', return_code='0', job_id='251644', GAL2='1.15', EG2='0.64', return_code2='0', photon_flux_error2='5.24e-08', ts2='1.03', photon_index='2.82' WHERE bin_id='611' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:07:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 251644: <4FGL_J0809.8+0507_daily_bin611> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin611> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 08:55:39 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:55:42 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:55:42 2021
Terminated at Sun Aug 29 09:07:56 2021
Results reported at Sun Aug 29 09:07:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin611 122.453 5.1313 397699201 397958401 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 :                                   602.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            737 sec.

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

