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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin838
RA = 122.453, Dec = 5.1313
tmin = 456537601, tmax = 456796801
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='253113', job_status='RUN', time_executed='2021-08-29 09:04:06.332245', time_epoch_executed='1630253046.33' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='838'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253113

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253113/ft1_4FGL_J0809.8+0507_daily_bin838.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253113/ft2_4FGL_J0809.8+0507_daily_bin838.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253113/ft1_4FGL_J0809.8+0507_daily_bin838.fits outfile=/scratch/kocevski/253113/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin838.fits ra=122.453 dec=5.1313 rad=12.0 tmin=456537601.0 tmax=456796801.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 6.38
user 5.01
sys 1.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253113/ft1_filtered_4FGL_J0809.8+0507_daily_bin838.fits" evtable="EVENTS" scfile=/scratch/kocevski/253113/ft2_4FGL_J0809.8+0507_daily_bin838.fits sctable="SC_DATA" outfile=/scratch/kocevski/253113/ltcube_456537601_456796801_4FGL_J0809.8+0507_daily_bin838.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/253113/ft2_4FGL_J0809.8+0507_daily_bin838.fits
.....................!
real 13.39
user 11.78
sys 1.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253113/ft1_filtered_4FGL_J0809.8+0507_daily_bin838.fits evtable="EVENTS" scfile=/scratch/kocevski/253113/ft2_4FGL_J0809.8+0507_daily_bin838.fits sctable="SC_DATA" expcube=/scratch/kocevski/253113/ltcube_456537601_456796801_4FGL_J0809.8+0507_daily_bin838.fits outfile=/scratch/kocevski/253113/expmap_456537601_456796801_4FGL_J0809.8+0507_daily_bin838.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/253113/ltcube_456537601_456796801_4FGL_J0809.8+0507_daily_bin838.fits
.....................!
real 191.47
user 185.51
sys 5.62

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/253113/ft1_filtered_4FGL_J0809.8+0507_daily_bin838.fits scfile=/scratch/kocevski/253113/ft2_4FGL_J0809.8+0507_daily_bin838.fits outfile=/scratch/kocevski/253113/cmap_456537601_456796801_4FGL_J0809.8+0507_daily_bin838.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.63
user 0.38
sys 1.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253113/ft1_filtered_4FGL_J0809.8+0507_daily_bin838.fits scfile=/scratch/kocevski/253113/ft2_4FGL_J0809.8+0507_daily_bin838.fits outfile=/scratch/kocevski/253113/cmap_HighResolution_456537601_456796801_4FGL_J0809.8+0507_daily_bin838.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.70
user 0.37
sys 1.27

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.508       1.0000         .10000E-03   10000.    
     2 'Prefactor '    71.691       1.0000         .10000E-03   10000.    
     3 'norm      '    8.8744       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5614       1.0000         .10000E-03   10000.    
     6 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.643       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26185E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.170       1.0000         .10000E-03   10000.    
    11 'norm      '    22.139       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6582       1.0000         .10000E-03   10000.    
    13 'norm      '    12.297       1.0000         .10000E-03   10000.    
    14 'norm      '    6.3228       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19630E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1408       1.0000         .10000E-03   10000.    
    17 'norm      '    .94390       1.0000         .10000E-03   10000.    
    18 'norm      '    29.985       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0269       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .84384       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=   4375.574     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2255 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.501        65.306        .61387E-07    .41299E-05
   2  Prefactor     71.626        56.374        .72290E-06    .42158E-04
   3  norm          8.8745        3.9585       -.88408E-07    .36528E-04
   4  Prefactor     .10000E-03    19.985       -.11893E-06** at limit **
   5  Prefactor     1.5615        3.9420       -.88438E-06    .47279E-04
   6  norm          .10000E-03    25.350        .17413E-06** at limit **
   7  Prefactor     24.639        20.329        .14948E-06    .14966E-04
   8  Prefactor     .10000E-03    64.207       -.14059E-07** at limit **
   9  Prefactor     .10000E-03    39.357       -.91501E-05** at limit **
  10  Prefactor     13.240        70.207        .31264E-05   -.18905E-04
  11  norm          22.164        17.724        .41050E-07    .45950E-04
  12  norm          1.6590        2.3348       -.82056E-07    .47288E-04
  13  norm          12.260        39.983       -.37324E-05   -.77006E-05
  14  norm          6.3223        5.6233       -.12704E-06    .36861E-04
  15  Prefactor     .10000E-03    308.93        .95789E-05** at limit **
  16  Prefactor     3.1385        21.671       -.12159E-05    .90210E-05
  17  norm          .94376        1.2898       -.16127E-06   -.30275E-04
  18  norm          29.982        12.798        .32138E-07    .40198E-04
  19  Prefactor     .10000E-03    30.039       -.45824E-06** at limit **
  20  Normalizat    1.0267        .25540        .36848E-06    .22365E-04
  21  Prefactor     .84407        .16614        .13153E-06    .57074E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.5009
  Prefactor  = 71.6259
  norm       = 8.87452
  Prefactor  = 0.0001
  Prefactor  = 1.56146
  norm       = 0.0001
  Prefactor  = 24.6385
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2404
  norm       = 22.1642
  norm       = 1.65897
  norm       = 12.2602
  norm       = 6.32229
  Prefactor  = 0.000100001
  Prefactor  = 3.13855
  norm       = 0.943759
  norm       = 29.9824
  Prefactor  = 0.0001
  Normalizat = 1.02668
  Prefactor  = 0.844066
 **********
 **   18 **HESSE 
 **********

 FCN=   4375.574     FROM HESSE     STATUS=OK           327 CALLS     2582 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.501        65.337        .53840E-04   -1.4217    
   2  Prefactor     71.626        56.279        .23707E-03   -1.4013    
   3  norm          8.8745        3.9582        .81460E-04   -1.5112    
   4  Prefactor     .10000E-03    19.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5615        3.9037        .19557E-03   -1.5458    
   6  norm          .10000E-03    25.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.639        20.316        .80693E-04   -1.4715    
   8  Prefactor     .10000E-03    64.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    38.777        .37695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.240        68.824        .11037E-03   -1.4980    
  11  norm          22.164        17.250        .85128E-04   -1.4766    
  12  norm          1.6590        2.3075        .11590E-03   -1.5450    
  13  norm          12.260        39.976        .11423E-03   -1.5008    
  14  norm          6.3223        5.6129        .14064E-03   -1.5205    
  15  Prefactor     .10000E-03    318.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1385        21.808        .22874E-03   -1.5354    
  17  norm          .94376        1.2455        .81732E-03   -1.5514    
  18  norm          29.982        12.783        .73168E-04   -1.4612    
  19  Prefactor     .10000E-03    30.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0267        .29550        .29753E-03   -.92142    
  21  Prefactor     .84407        .19226        .22244E-03   -.98124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29656e-09
Minuit parameter uncertainties:
  1  65.4214
  2  56.3211
  3  3.95835
  4  3.7996e-06
  5  3.90439
  6  6.834e-06
  7  20.322
  8  1.25552e-05
  9  9.92698e-06
  10  60.4838
  11  17.254
  12  2.30761
  13  40.0634
  14  5.61339
  15  0.00102714
  16  16.5548
  17  1.24551
  18  12.7844
  19  4.51108e-05
  20  0.295969
  21  0.192415
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.226e+01  4.006e+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:  8.441e-01  1.924e-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.027e+00  2.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/253113/likelihoodResults_456537601_456796801_4FGL_J0809.8+0507_daily_bin838.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) = 4375.01647339
delta logL = 0.557860237333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4374.96215073
delta logL = 0.612182894732

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8922       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .92062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88942       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=   4374.962     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      260 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8895        8.8142        .13441E-03    .47069E-03
   2  alpha         5.0000        3.6441        .77357E-01** at limit **
   3  Normalizat    .92064        .29357        .31196E-03    .18294E-03
   4  Prefactor     .88942        .19353        .21719E-03    .37318E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.88952
  alpha      = 5
  Normalizat = 0.920643
  Prefactor  = 0.889417
 **********
 **   18 **HESSE 
 **********

 FCN=   4374.962     FROM HESSE     STATUS=OK            23 CALLS      283 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8895        8.7609        .53765E-05   -1.5112    
   2  alpha         5.0000        3.6466        .15471E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .92064        .29373        .12478E-04   -.95739    
   4  Prefactor     .88942        .19366        .43439E-04   -.96512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23928e-09
Minuit parameter uncertainties:
  1  8.76218
  2  0.000168518
  3  0.294248
  4  0.19381
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253113': 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) = 4374.96215042
delta logL = 0.612183206887

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  8.890e+00  8.762e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  5.000e+00  1.685e-04  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:  8.894e-01  1.938e-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.206e-01  2.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.56
Ra Dec: 122.453 5.131
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.11e-07 +/- 1.09e-07
Energy Flux (Free Index): 1.74e-05 +/- 1.71e-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/253113/cmap_HighResolution_456537601_456796801_4FGL_J0809.8+0507_daily_bin838.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.87e-05', comment='SUCCESS', energy_flux2='1.74e-05', dlogl='6.12e-01', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-08-29 09:13:05.980955', photon_index_error2='0.00', photon_index2='5.00', ts='0.18', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.71e-05', EG='1.03', time_epoch_completed='1630253585.98', return_code='0', job_id='253113', GAL2='0.89', EG2='0.92', return_code2='0', photon_flux_error2='1.09e-07', ts2='1.56', photon_index='2.82' WHERE bin_id='838' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:13:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 253113: <4FGL_J0809.8+0507_daily_bin838> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin838> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 09:00:49 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 09:00: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 09:00:50 2021
Terminated at Sun Aug 29 09:13:06 2021
Results reported at Sun Aug 29 09:13:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin838 122.453 5.1313 456537601 456796801 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 :                                   557.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            737 sec.

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

