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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin335
RA = 122.453, Dec = 5.1313
tmin = 326160001, tmax = 326419201
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='250147', job_status='RUN', time_executed='2021-08-29 08:54:53.323342', time_epoch_executed='1630252493.32' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='335'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250147

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250147/ft1_4FGL_J0809.8+0507_daily_bin335.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250147/ft2_4FGL_J0809.8+0507_daily_bin335.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250147/ft1_4FGL_J0809.8+0507_daily_bin335.fits outfile=/scratch/kocevski/250147/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin335.fits ra=122.453 dec=5.1313 rad=12.0 tmin=326160001.0 tmax=326419201.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 8.71
user 3.27
sys 5.40

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250147/ft1_filtered_4FGL_J0809.8+0507_daily_bin335.fits" evtable="EVENTS" scfile=/scratch/kocevski/250147/ft2_4FGL_J0809.8+0507_daily_bin335.fits sctable="SC_DATA" outfile=/scratch/kocevski/250147/ltcube_326160001_326419201_4FGL_J0809.8+0507_daily_bin335.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/250147/ft2_4FGL_J0809.8+0507_daily_bin335.fits
.....................!
real 17.54
user 11.33
sys 6.13

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250147/ft1_filtered_4FGL_J0809.8+0507_daily_bin335.fits evtable="EVENTS" scfile=/scratch/kocevski/250147/ft2_4FGL_J0809.8+0507_daily_bin335.fits sctable="SC_DATA" expcube=/scratch/kocevski/250147/ltcube_326160001_326419201_4FGL_J0809.8+0507_daily_bin335.fits outfile=/scratch/kocevski/250147/expmap_326160001_326419201_4FGL_J0809.8+0507_daily_bin335.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/250147/ltcube_326160001_326419201_4FGL_J0809.8+0507_daily_bin335.fits
.....................!
real 196.82
user 185.61
sys 10.85

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/250147/ft1_filtered_4FGL_J0809.8+0507_daily_bin335.fits scfile=/scratch/kocevski/250147/ft2_4FGL_J0809.8+0507_daily_bin335.fits outfile=/scratch/kocevski/250147/cmap_326160001_326419201_4FGL_J0809.8+0507_daily_bin335.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 5.64
user 0.37
sys 5.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250147/ft1_filtered_4FGL_J0809.8+0507_daily_bin335.fits scfile=/scratch/kocevski/250147/ft2_4FGL_J0809.8+0507_daily_bin335.fits outfile=/scratch/kocevski/250147/cmap_HighResolution_326160001_326419201_4FGL_J0809.8+0507_daily_bin335.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 5.61
user 0.39
sys 5.20

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.102       1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.184       1.0000         .10000E-03   10000.    
     3 'norm      '    .74599       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.323       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1464       1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.676       1.0000         .10000E-03   10000.    
    11 'norm      '    .69976E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    2.2255       1.0000         .10000E-03   10000.    
    13 'norm      '    5.4152       1.0000         .10000E-03   10000.    
    14 'norm      '    5.2715       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .25955       1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.708       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3766       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .66998       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=   7224.548     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2222 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.118        43.414        .22632E-06    .34234E-04
   2  Prefactor     43.177        34.439       -.26884E-06   -.82108E-04
   3  norm          .74357        1.2954        .63040E-06    .31884E-03
   4  Prefactor     20.326        18.121        .11380E-07   -.18835E-04
   5  Prefactor     .10000E-03    2.1805        .10277E-06** at limit **
   6  norm          .10000E-03    9.6227        .38735E-07** at limit **
   7  Prefactor     .10000E-03    6.8060        .59396E-07** at limit **
   8  Prefactor     .10000E-03    31.729       -.29127E-07** at limit **
   9  Prefactor     2.1517        6.2504        .97296E-06   -.96721E-04
  10  Prefactor     34.672        25.048       -.15466E-06   -.35303E-04
  11  norm          .10005E-03    4.2475        .24627E-06** at limit **
  12  norm          2.2253        2.0719        .70866E-07   -.11981E-03
  13  norm          5.4052        14.065        .23714E-06   -.14009E-04
  14  norm          5.2719        3.1465        .61764E-08   -.78075E-04
  15  Prefactor     .10000E-03    8.0219        .78485E-08** at limit **
  16  Prefactor     .10000E-03    11.168       -.16471E-07** at limit **
  17  norm          .25957        .66874        .44671E-06   -.15797E-03
  18  norm          .10000E-03    1.9987        .19937E-07** at limit **
  19  Prefactor     34.684        34.852       -.36769E-06   -.10488E-03
  20  Normalizat    1.3771        .18040        .63208E-06   -.27960E-03
  21  Prefactor     .66972        .12182       -.13309E-05   -.99958E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.1182
  Prefactor  = 43.1775
  norm       = 0.743569
  Prefactor  = 20.3258
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.15166
  Prefactor  = 34.6721
  norm       = 0.000100048
  norm       = 2.22534
  norm       = 5.40523
  norm       = 5.27193
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.259571
  norm       = 0.0001
  Prefactor  = 34.6843
  Normalizat = 1.37714
  Prefactor  = 0.669719
 **********
 **   18 **HESSE 
 **********

 FCN=   7224.548     FROM HESSE     STATUS=OK           315 CALLS     2537 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.118        43.400        .59051E-04   -1.4349    
   2  Prefactor     43.177        34.479        .61006E-04   -1.4393    
   3  norm          .74357        1.2627        .12769E-02   -1.5536    
   4  Prefactor     20.326        18.131        .88847E-04   -1.4806    
   5  Prefactor     .10000E-03    2.2747        .24500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.6668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.8639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1517        6.1291        .28128E-03   -1.5415    
  10  Prefactor     34.672        25.046        .68052E-04   -1.4530    
  11  norm          .10005E-03    47.544        .33055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.2253        2.0564        .11292E-03   -1.5410    
  13  norm          5.4052        14.037        .17268E-03   -1.5243    
  14  norm          5.2719        3.1408        .11250E-03   -1.5249    
  15  Prefactor     .10000E-03    8.0252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .25957        .65735        .10722E-03   -1.5606    
  18  norm          .10000E-03    2.0050        .11735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     34.684        35.009        .68021E-04   -1.4529    
  20  Normalizat    1.3771        .20306        .24694E-03   -.81292    
  21  Prefactor     .66972        .13560        .22597E-03   -1.0473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19088e-09
Minuit parameter uncertainties:
  1  43.4299
  2  34.4946
  3  1.26278
  4  18.136
  5  1.12275e-06
  6  1.76861e-07
  7  1.99525e-06
  8  2.31781e-05
  9  6.13091
  10  25.0533
  11  0.00301608
  12  2.05644
  13  14.0459
  14  3.14094
  15  3.24959e-07
  16  9.8501e-06
  17  0.657366
  18  2.01118e-07
  19  35.03
  20  0.203175
  21  0.135666
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  5.405e+00  1.405e+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:  6.697e-01  1.357e-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.377e+00  2.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/250147/likelihoodResults_326160001_326419201_4FGL_J0809.8+0507_daily_bin335.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) = 7224.51231846
delta logL = 0.0356737040756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7224.50903585
delta logL = 0.0389563085309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5368       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0917       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3804       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66792       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=   7224.509     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      235 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5332        14.423        .15697E-03   -.14486E-05
   2  alpha         2.0876        3.4449        .81857E-02    .84997E-06
   3  Normalizat    1.3803        .19535        .24670E-03    .16137E-03
   4  Prefactor     .66803        .12986        .22621E-03    .17072E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.53322
  alpha      = 2.08756
  Normalizat = 1.38025
  Prefactor  = 0.66803
 **********
 **   18 **HESSE 
 **********

 FCN=   7224.509     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5332        14.440        .62786E-05   -1.5197    
   2  alpha         2.0876        3.4455        .32743E-03   -.16573    
   3  Normalizat    1.3803        .19549        .49340E-04   -.81202    
   4  Prefactor     .66803        .12995        .90485E-05   -1.0479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47899e-11
Minuit parameter uncertainties:
  1  14.4477
  2  2.48013
  3  0.195597
  4  0.130014
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250147': 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) = 7224.50903402
delta logL = 0.0389581450308

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  6.533e+00  1.445e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.088e+00  2.480e+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:  6.680e-01  1.300e-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.380e+00  1.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/250147/cmap_HighResolution_326160001_326419201_4FGL_J0809.8+0507_daily_bin335.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-05', job_status='DONE', photon_flux_upper_limit='6.65e-08', time_completed='2021-08-29 09:07:05.248157', job_id='250147', GAL2='0.67', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1630253225.25', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='3.90e-02', ts2='0.26', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='335' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:07:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 250147: <4FGL_J0809.8+0507_daily_bin335> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin335 122.453 5.1313 326160001 326419201 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 :                                   813.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

