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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin56
RA = 122.453, Dec = 5.1313
tmin = 253843201, tmax = 254102401
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='248675', job_status='RUN', time_executed='2021-08-29 08:46:37.297223', time_epoch_executed='1630251997.3' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248675

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248675/ft1_4FGL_J0809.8+0507_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248675/ft2_4FGL_J0809.8+0507_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248675/ft1_4FGL_J0809.8+0507_daily_bin56.fits outfile=/scratch/kocevski/248675/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin56.fits ra=122.453 dec=5.1313 rad=12.0 tmin=253843201.0 tmax=254102401.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.65
user 1.28
sys 3.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248675/ft1_filtered_4FGL_J0809.8+0507_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/248675/ft2_4FGL_J0809.8+0507_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/248675/ltcube_253843201_254102401_4FGL_J0809.8+0507_daily_bin56.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/248675/ft2_4FGL_J0809.8+0507_daily_bin56.fits
.....................!
real 16.21
user 12.33
sys 3.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248675/ft1_filtered_4FGL_J0809.8+0507_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/248675/ft2_4FGL_J0809.8+0507_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/248675/ltcube_253843201_254102401_4FGL_J0809.8+0507_daily_bin56.fits outfile=/scratch/kocevski/248675/expmap_253843201_254102401_4FGL_J0809.8+0507_daily_bin56.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/248675/ltcube_253843201_254102401_4FGL_J0809.8+0507_daily_bin56.fits
.....................!
real 194.13
user 185.24
sys 8.26

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/248675/ft1_filtered_4FGL_J0809.8+0507_daily_bin56.fits scfile=/scratch/kocevski/248675/ft2_4FGL_J0809.8+0507_daily_bin56.fits outfile=/scratch/kocevski/248675/cmap_253843201_254102401_4FGL_J0809.8+0507_daily_bin56.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 3.62
user 0.37
sys 3.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248675/ft1_filtered_4FGL_J0809.8+0507_daily_bin56.fits scfile=/scratch/kocevski/248675/ft2_4FGL_J0809.8+0507_daily_bin56.fits outfile=/scratch/kocevski/248675/cmap_HighResolution_253843201_254102401_4FGL_J0809.8+0507_daily_bin56.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 3.62
user 0.38
sys 3.22

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.138       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .71835E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.0458       1.0000         .10000E-03   10000.    
     6 'norm      '    14.539       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7564       1.0000         .10000E-03   10000.    
     8 'Prefactor '    53.051       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1584       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.0071       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.0471       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2481       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.915       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .99279       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0378       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=   7870.357     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2225 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.145        34.318        .90516E-05   -.42844E-05
   2  Prefactor     .10000E-03    49.637        .12346E-05** at limit **
   3  norm          .10003E-03    .52359       -.76497E-07** at limit **
   4  Prefactor     .10000E-03    5.5326        .12677E-05** at limit **
   5  Prefactor     7.0455        3.5001       -.23947E-06   -.21693E-03
   6  norm          14.538        16.450        .59453E-06   -.18556E-04
   7  Prefactor     5.7556        13.070       -.21379E-06   -.99989E-04
   8  Prefactor     53.063        88.526        .12189E-04   -.13846E-06
   9  Prefactor     6.1580        4.8145       -.18843E-05    .88815E-04
  10  Prefactor     .10000E-03    10.808        .55122E-06** at limit **
  11  norm          .10000E-03    6.7684       -.51839E-05** at limit **
  12  norm          .10000E-03    .59648        .35234E-08** at limit **
  13  norm          .10000E-03    6.5623        .65530E-05** at limit **
  14  norm          5.0069        3.0057        .25865E-07    .99122E-04
  15  Prefactor     .10000E-03    15.418       -.44495E-06** at limit **
  16  Prefactor     9.0461        9.9984        .52257E-06   -.41317E-04
  17  norm          2.2480        1.0353        .22625E-08    .38337E-04
  18  norm          .10000E-03    5.7417       -.25918E-05** at limit **
  19  Prefactor     19.912        37.946       -.48412E-05   -.44395E-05
  20  Normalizat    .99273        .17758        .58035E-06    .30954E-04
  21  Prefactor     1.0380        .11832       -.59490E-06    .19444E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1453
  Prefactor  = 0.0001
  norm       = 0.00010003
  Prefactor  = 0.0001
  Prefactor  = 7.04553
  norm       = 14.5377
  Prefactor  = 5.75563
  Prefactor  = 53.0627
  Prefactor  = 6.15799
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.0069
  Prefactor  = 0.0001
  Prefactor  = 9.04611
  norm       = 2.24796
  norm       = 0.0001
  Prefactor  = 19.9125
  Normalizat = 0.992732
  Prefactor  = 1.03796
 **********
 **   18 **HESSE 
 **********

 FCN=   7870.357     FROM HESSE     STATUS=OK           325 CALLS     2550 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.145        34.361        .12585E-03   -1.5071    
   2  Prefactor     .10000E-03    50.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10003E-03    2.9531        .20643E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.5345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.0455        3.5092        .10920E-03   -1.5177    
   6  norm          14.538        16.432        .10504E-03   -1.4945    
   7  Prefactor     5.7556        13.038        .16741E-03   -1.5228    
   8  Prefactor     53.063        88.621        .55066E-04   -1.4250    
   9  Prefactor     6.1580        4.8085        .16177E-03   -1.5212    
  10  Prefactor     .10000E-03    10.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.7951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .60598        .66900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.5907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.0069        3.0080        .11551E-03   -1.5260    
  15  Prefactor     .10000E-03    15.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.0461        10.006        .13325E-03   -1.5106    
  17  norm          2.2480        1.0376        .27406E-04   -1.5408    
  18  norm          .10000E-03    5.8127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.912        38.126        .89752E-04   -1.4815    
  20  Normalizat    .99273        .20421        .29705E-03   -.93274    
  21  Prefactor     1.0380        .13621        .19994E-03   -.91475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.23769e-11
Minuit parameter uncertainties:
  1  34.4282
  2  7.05552e-05
  3  0.000594593
  4  1.30502e-06
  5  3.50927
  6  16.4371
  7  13.0447
  8  88.8423
  9  4.80876
  10  2.20474e-06
  11  3.46121e-05
  12  1.75417e-06
  13  6.44759e-06
  14  3.00812
  15  6.60548e-06
  16  10.0077
  17  1.03765
  18  1.09189e-05
  19  38.173
  20  0.204371
  21  0.136254
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  6.448e-06  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.038e+00  1.363e-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.927e-01  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/248675/likelihoodResults_253843201_254102401_4FGL_J0809.8+0507_daily_bin56.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) = 7870.35773901
delta logL = -0.000722616514395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7870.3570164
delta logL = 1.80989445653e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8159       1.0000          .0000       5.0000    
     3 'Normalizat'    .99273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0380       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=   7870.357     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      231 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.8393        .18142E-02** at limit **
   2  alpha         3.0017        2.6940        .16630       -.17774E-08
   3  Normalizat    .99273        .19171        .29705E-03    .15236E-03
   4  Prefactor     1.0380        .13250        .19994E-03    .30862E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.00174
  Normalizat = 0.992732
  Prefactor  = 1.03796
 **********
 **   18 **HESSE 
 **********

 FCN=   7870.357     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.6121        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.0017        3.2570        .66519E-02    .20207    
   3  Normalizat    .99273        .19184        .11882E-04   -.93274    
   4  Prefactor     1.0380        .13259        .39988E-04   -.91475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43334e-11
Minuit parameter uncertainties:
  1  1.26898e-05
  2  878.652
  3  0.191976
  4  0.132627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248675': 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) = 7870.35701637
delta logL = 2.32003003475e-08

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.269e-05  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  3.002e+00  8.787e+02  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.038e+00  1.326e-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.927e-01  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.453 5.131

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/248675/cmap_HighResolution_253843201_254102401_4FGL_J0809.8+0507_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-05', job_status='DONE', photon_flux_upper_limit='4.24e-08', time_completed='2021-08-29 08:58:40.959905', job_id='248675', GAL2='1.04', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630252720.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.32e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='56' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:58:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 248675: <4FGL_J0809.8+0507_daily_bin56> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin56 122.453 5.1313 253843201 254102401 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 :                                   772.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            789 sec.

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

