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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin731
RA = 122.453, Dec = 5.1313
tmin = 428803201, tmax = 429062401
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='252942', job_status='RUN', time_executed='2021-08-29 09:02:53.557581', time_epoch_executed='1630252973.56' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/252942

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/252942/ft1_4FGL_J0809.8+0507_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/252942/ft2_4FGL_J0809.8+0507_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/252942/ft1_4FGL_J0809.8+0507_daily_bin731.fits outfile=/scratch/kocevski/252942/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin731.fits ra=122.453 dec=5.1313 rad=12.0 tmin=428803201.0 tmax=429062401.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.95
user 6.17
sys 2.63

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/252942/ft1_filtered_4FGL_J0809.8+0507_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/252942/ft2_4FGL_J0809.8+0507_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/252942/ltcube_428803201_429062401_4FGL_J0809.8+0507_daily_bin731.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/252942/ft2_4FGL_J0809.8+0507_daily_bin731.fits
.....................!
real 14.61
user 11.47
sys 3.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/252942/ft1_filtered_4FGL_J0809.8+0507_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/252942/ft2_4FGL_J0809.8+0507_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/252942/ltcube_428803201_429062401_4FGL_J0809.8+0507_daily_bin731.fits outfile=/scratch/kocevski/252942/expmap_428803201_429062401_4FGL_J0809.8+0507_daily_bin731.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/252942/ltcube_428803201_429062401_4FGL_J0809.8+0507_daily_bin731.fits
.....................!
real 195.39
user 186.86
sys 7.97

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/252942/ft1_filtered_4FGL_J0809.8+0507_daily_bin731.fits scfile=/scratch/kocevski/252942/ft2_4FGL_J0809.8+0507_daily_bin731.fits outfile=/scratch/kocevski/252942/cmap_428803201_429062401_4FGL_J0809.8+0507_daily_bin731.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 2.94
user 0.36
sys 2.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/252942/ft1_filtered_4FGL_J0809.8+0507_daily_bin731.fits scfile=/scratch/kocevski/252942/ft2_4FGL_J0809.8+0507_daily_bin731.fits outfile=/scratch/kocevski/252942/cmap_HighResolution_428803201_429062401_4FGL_J0809.8+0507_daily_bin731.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 2.87
user 0.37
sys 2.33

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.5254       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.122       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7233       1.0000         .10000E-03   10000.    
     6 'norm      '    4.9280       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .39784E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    56.312       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3792       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.8114       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.671       1.0000         .10000E-03   10000.    
    14 'norm      '    10.538       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .21726       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11163E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.164       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .89061       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0310       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=   5415.647     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2227 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.790        .16262E-06** at limit **
   2  Prefactor     .10000E-03    84.293       -.31040E-05** at limit **
   3  norm          7.5235        2.6927       -.65580E-07    .17516E-03
   4  Prefactor     29.119        26.637        .11984E-07    .62055E-05
   5  Prefactor     3.7236        2.8033        .20434E-06    .57947E-04
   6  norm          4.9669        17.927        .37706E-05    .11111E-04
   7  Prefactor     .10000E-03    27.581        .45408E-05** at limit **
   8  Prefactor     56.312        83.055        .84912E-06    .20018E-05
   9  Prefactor     4.3762        9.6209       -.79583E-06    .87500E-04
  10  Prefactor     .10000E-03    10.653       -.21487E-07** at limit **
  11  norm          3.8105        7.7480       -.21067E-05    .65545E-04
  12  norm          .10000E-03    .90236        .21061E-07** at limit **
  13  norm          12.672        14.399       -.17310E-07    .16703E-04
  14  norm          10.536        5.3578        .95646E-08    .80032E-04
  15  Prefactor     .10000E-03    22.785        .15588E-05** at limit **
  16  Prefactor     .10092E-03    15.964       -.17798E-05** at limit **
  17  norm          .10000E-03    .33537        .29723E-07** at limit **
  18  norm          .10000E-03    6.5549        .70633E-06** at limit **
  19  Prefactor     25.151        35.980       -.51122E-06    .22810E-04
  20  Normalizat    .89104        .21321        .15469E-05    .21306E-03
  21  Prefactor     1.0309        .14506       -.18095E-07    .31236E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.52354
  Prefactor  = 29.1186
  Prefactor  = 3.7236
  norm       = 4.96686
  Prefactor  = 0.0001
  Prefactor  = 56.312
  Prefactor  = 4.3762
  Prefactor  = 0.0001
  norm       = 3.81052
  norm       = 0.0001
  norm       = 12.6719
  norm       = 10.536
  Prefactor  = 0.0001
  Prefactor  = 0.000100916
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 25.1515
  Normalizat = 0.89104
  Prefactor  = 1.03085
 **********
 **   18 **HESSE 
 **********

 FCN=   5415.647     FROM HESSE     STATUS=OK           329 CALLS     2556 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    85.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.5235        2.6991        .68272E-04   -1.5159    
   4  Prefactor     29.119        26.666        .74241E-04   -1.4628    
   5  Prefactor     3.7236        2.7977        .10250E-03   -1.5322    
   6  norm          4.9669        17.858        .18118E-03   -1.5262    
   7  Prefactor     .10000E-03    27.864        .40653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     56.312        83.021        .53457E-04   -1.4206    
   9  Prefactor     4.3762        9.5683        .19246E-03   -1.5290    
  10  Prefactor     .10000E-03    10.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.8105        7.6849        .20675E-03   -1.5318    
  12  norm          .10000E-03    .90873        .68236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.672        14.398        .11253E-03   -1.4996    
  14  norm          10.536        5.3575        .11675E-03   -1.5059    
  15  Prefactor     .10000E-03    22.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10092E-03    23.854        .76625E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .33806        .41551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    26.008        .34451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.151        36.011        .79856E-04   -1.4705    
  20  Normalizat    .89104        .24231        .30622E-03   -.96776    
  21  Prefactor     1.0309        .16707        .19992E-03   -.91708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87089e-10
Minuit parameter uncertainties:
  1  1.8814e-05
  2  8.72607e-05
  3  2.69914
  4  26.6768
  5  2.79777
  6  17.8769
  7  5.42732e-05
  8  83.1926
  9  9.57167
  10  5.02201e-06
  11  7.68692
  12  1.66474e-06
  13  14.4018
  14  5.35778
  15  4.09948e-05
  16  0.00935065
  17  1.36259e-06
  18  0.000426165
  19  36.0422
  20  0.242609
  21  0.167157
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.031e+00  1.672e-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.910e-01  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 122.453 5.131
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 2.03e-08 +/- 2.31e-08
Energy Flux (Fixed Index): 5.35e-06 +/- 6.08e-06

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

Saving results to:
/scratch/kocevski/252942/likelihoodResults_428803201_429062401_4FGL_J0809.8+0507_daily_bin731.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) = 5415.14615665
delta logL = 0.500838327353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5415.13797625
delta logL = 0.509018725837

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.613       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2684       1.0000          .0000       5.0000    
     3 'Normalizat'    .90295       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0246       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=   5415.138     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.621        16.881        .34881E-05   -.92808E-04
   2  alpha         1.2688        1.4359        .13638E-03    .20002E-05
   3  Normalizat    .90293        .20199       -.63446E-06   -.10792E-03
   4  Prefactor     1.0246        .14152        .10526E-06   -.15790E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.6208
  alpha      = 1.26877
  Normalizat = 0.902931
  Prefactor  = 1.02463
 **********
 **   18 **HESSE 
 **********

 FCN=   5415.138     FROM HESSE     STATUS=OK            27 CALLS      233 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.621        16.857        .10477E-03   -1.4943    
   2  alpha         1.2688        1.4336        .46564E-02   -.51495    
   3  Normalizat    .90293        .23129        .30431E-03   -.96357    
   4  Prefactor     1.0246        .16232        .20039E-03   -.91913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32997e-11
Minuit parameter uncertainties:
  1  16.863
  2  1.56515
  3  0.231548
  4  0.162395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/252942': 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) = 5415.13797614
delta logL = 0.509018835008

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.025e+00  1.624e-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.029e-01  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.60
Ra Dec: 122.453 5.131
Photon Index (Free Index): 1.27 +/- 1.57
Photon Flux (Free Index): 1.23e-08 +/- 1.50e-08
Energy Flux (Free Index): 6.50e-06 +/- 6.81e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/252942/cmap_HighResolution_428803201_429062401_4FGL_J0809.8+0507_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-05', comment='SUCCESS', photon_flux='2.03e-08', energy_flux2='6.50e-06', photon_flux_error='2.31e-08', dlogl='5.09e-01', energy_flux='5.35e-06', photon_flux2='1.23e-08', job_status='DONE', time_completed='2021-08-29 09:13:28.230238', photon_index_error2='1.57', photon_index2='1.27', ts='1.58', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='8.73e-08', energy_flux_error2='6.81e-06', EG='0.89', time_epoch_completed='1630253608.23', return_code='0', job_id='252942', GAL2='1.02', EG2='0.90', return_code2='0', energy_flux_error='6.08e-06', photon_flux_error2='1.50e-08', ts2='2.60', photon_index='2.82' WHERE bin_id='731' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:13:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 252942: <4FGL_J0809.8+0507_daily_bin731> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin731 122.453 5.1313 428803201 429062401 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 :                                   666.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            775 sec.

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

