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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin594
RA = 122.453, Dec = 5.1313
tmin = 393292801, tmax = 393552001
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='251617', job_status='RUN', time_executed='2021-08-29 08:59:09.751798', time_epoch_executed='1630252749.75' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251617

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251617/ft1_4FGL_J0809.8+0507_daily_bin594.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251617/ft2_4FGL_J0809.8+0507_daily_bin594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251617/ft1_4FGL_J0809.8+0507_daily_bin594.fits outfile=/scratch/kocevski/251617/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin594.fits ra=122.453 dec=5.1313 rad=12.0 tmin=393292801.0 tmax=393552001.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.00
user 4.54
sys 1.43

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251617/ft1_filtered_4FGL_J0809.8+0507_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/251617/ft2_4FGL_J0809.8+0507_daily_bin594.fits sctable="SC_DATA" expcube=/scratch/kocevski/251617/ltcube_393292801_393552001_4FGL_J0809.8+0507_daily_bin594.fits outfile=/scratch/kocevski/251617/expmap_393292801_393552001_4FGL_J0809.8+0507_daily_bin594.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/251617/ltcube_393292801_393552001_4FGL_J0809.8+0507_daily_bin594.fits
.....................!
real 191.97
user 184.95
sys 6.63

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/251617/ft1_filtered_4FGL_J0809.8+0507_daily_bin594.fits scfile=/scratch/kocevski/251617/ft2_4FGL_J0809.8+0507_daily_bin594.fits outfile=/scratch/kocevski/251617/cmap_393292801_393552001_4FGL_J0809.8+0507_daily_bin594.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.75
user 0.38
sys 1.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251617/ft1_filtered_4FGL_J0809.8+0507_daily_bin594.fits scfile=/scratch/kocevski/251617/ft2_4FGL_J0809.8+0507_daily_bin594.fits outfile=/scratch/kocevski/251617/cmap_HighResolution_393292801_393552001_4FGL_J0809.8+0507_daily_bin594.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.80
user 0.37
sys 1.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    9.8229       1.0000         .10000E-03   10000.    
     3 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.184       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2240       1.0000         .10000E-03   10000.    
     6 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.125       1.0000         .10000E-03   10000.    
     8 'Prefactor '    247.15       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7189       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.1004       1.0000         .10000E-03   10000.    
    13 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.5109       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4984       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.126       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1295       1.0000         .10000E-03   10000.    
    18 'norm      '    5.2108       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.846       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .88663       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92793       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=   5482.204     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2272 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.728       -.18037E-05** at limit **
   2  Prefactor     9.8128        38.693       -.25879E-04   -.14351E-04
   3  norm          .10000E-03    1.0737        .21735E-06** at limit **
   4  Prefactor     10.072        30.715       -.16608E-05   -.13879E-04
   5  Prefactor     2.2236        2.8997       -.70416E-06   -.48064E-03
   6  norm          .10000E-03    15.136        .41951E-06** at limit **
   7  Prefactor     33.118        16.730        .95274E-05    .10302E-03
   8  Prefactor     247.12        160.41       -.19600E-04    .99358E-05
   9  Prefactor     .10000E-03    2.5142       -.14455E-07** at limit **
  10  Prefactor     5.7169        17.965        .85345E-05   -.84444E-06
  11  norm          .10000E-03    3.6704       -.18581E-07** at limit **
  12  norm          3.1007        2.6741       -.17095E-06   -.19909E-03
  13  norm          .10000E-03    8.1832        .23516E-07** at limit **
  14  norm          4.5106        4.7879        .27434E-05   -.26275E-03
  15  Prefactor     3.4583        97.183       -.59210E-04   -.38566E-04
  16  Prefactor     11.123        10.788        .51427E-05    .15016E-03
  17  norm          1.1289        1.2096       -.12500E-06   -.50371E-03
  18  norm          5.2114        7.0415       -.18313E-05   -.17171E-03
  19  Prefactor     26.831        35.596       -.12076E-04    .12897E-04
  20  Normalizat    .88717        .20686        .36702E-05    .28795E-04
  21  Prefactor     .92760        .13668        .23384E-06    .15707E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.81278
  norm       = 0.0001
  Prefactor  = 10.0721
  Prefactor  = 2.22364
  norm       = 0.000100002
  Prefactor  = 33.1177
  Prefactor  = 247.12
  Prefactor  = 0.0001
  Prefactor  = 5.71693
  norm       = 0.0001
  norm       = 3.10072
  norm       = 0.0001
  norm       = 4.51056
  Prefactor  = 3.45835
  Prefactor  = 11.1226
  norm       = 1.12894
  norm       = 5.21142
  Prefactor  = 26.8314
  Normalizat = 0.887175
  Prefactor  = 0.9276
 **********
 **   18 **HESSE 
 **********

 FCN=   5482.204     FROM HESSE     STATUS=OK           325 CALLS     2597 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.8128        38.678        .12786E-03   -1.5081    
   3  norm          .10000E-03    1.9462        .14712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.072        30.838        .12556E-03   -1.5073    
   5  Prefactor     2.2236        2.8834        .13527E-03   -1.5410    
   6  norm          .10000E-03    15.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.118        16.751        .69623E-04   -1.4556    
   8  Prefactor     247.12        160.03        .12882E-03   -1.2551    
   9  Prefactor     .10000E-03    2.5171        .11465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.7169        17.928        .16796E-03   -1.5230    
  11  norm          .10000E-03    3.6757        .13853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1007        2.6697        .10890E-03   -1.5356    
  13  norm          .10000E-03    8.1936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.5106        4.7660        .15863E-03   -1.5283    
  15  Prefactor     3.4583        99.187        .21616E-03   -1.5336    
  16  Prefactor     11.123        10.825        .12011E-03   -1.5041    
  17  norm          1.1289        1.1820        .78515E-04   -1.5495    
  18  norm          5.2114        7.0370        .17610E-03   -1.5251    
  19  Prefactor     26.831        35.733        .77318E-04   -1.4672    
  20  Normalizat    .88717        .24121        .28727E-03   -.96912    
  21  Prefactor     .92760        .15993        .19785E-03   -.95183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.59393e-10
Minuit parameter uncertainties:
  1  2.24686e-05
  2  38.777
  3  4.05434e-05
  4  30.887
  5  2.88359
  6  0.000380447
  7  16.7538
  8  160.312
  9  3.78915e-06
  10  17.9453
  11  1.54439e-05
  12  2.66983
  13  2.66771e-05
  14  4.76642
  15  37.1092
  16  10.8266
  17  1.18205
  18  7.0381
  19  35.7615
  20  0.241499
  21  0.16001
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  2.668e-05  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.276e-01  1.600e-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:  8.872e-01  2.415e-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: 5.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.54e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251617/likelihoodResults_393292801_393552001_4FGL_J0809.8+0507_daily_bin594.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) = 5482.2049407
delta logL = -0.000581176508604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5482.20435953
delta logL = -1.21826815302e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8092       1.0000          .0000       5.0000    
     3 'Normalizat'    .88714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92763       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=   5482.204     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      220 TOTAL
                     EDM=   .86E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    777.29        .18142E-01** at limit **
   2  alpha         2.1657        3.4619        .83113E-01    .54715E-10
   3  Normalizat    .88718        .53627E-01    .28727E-03    .25842E-04
   4  Prefactor     .92760        .37917E-01    .19785E-03    .39419E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.16573
  Normalizat = 0.887176
  Prefactor  = 0.927599
 **********
 **   18 **HESSE 
 **********

 FCN=   5482.204     FROM HESSE     STATUS=OK            23 CALLS      243 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.9627        .21501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1657        3.4376        .16623E-01   -.13411    
   3  Normalizat    .88718        .21689        .11491E-04   -.96912    
   4  Prefactor     .92760        .15351        .79139E-05   -.95183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30386e-12
Minuit parameter uncertainties:
  1  5.75039e-06
  2  671.73
  3  0.217102
  4  0.153578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251617': 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) = 5482.20435905
delta logL = 4.68141479359e-07

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  5.750e-06  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.166e+00  6.717e+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:  9.276e-01  1.536e-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:  8.872e-01  2.171e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/251617/cmap_HighResolution_393292801_393552001_4FGL_J0809.8+0507_daily_bin594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.54e-05', job_status='DONE', photon_flux_upper_limit='5.86e-08', time_completed='2021-08-29 09:09:06.201242', job_id='251617', GAL2='0.93', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630253346.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='4.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='594' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:09:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 251617: <4FGL_J0809.8+0507_daily_bin594> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin594 122.453 5.1313 393292801 393552001 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 :                                   613.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            809 sec.

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

