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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin713
RA = 122.453, Dec = 5.1313
tmin = 424137601, tmax = 424396801
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='252914', job_status='RUN', time_executed='2021-08-29 09:04:21.278109', time_epoch_executed='1630253061.28' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/252914

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/252914/ft1_4FGL_J0809.8+0507_daily_bin713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/252914/ft2_4FGL_J0809.8+0507_daily_bin713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/252914/ft1_4FGL_J0809.8+0507_daily_bin713.fits outfile=/scratch/kocevski/252914/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin713.fits ra=122.453 dec=5.1313 rad=12.0 tmin=424137601.0 tmax=424396801.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 5.59
user 4.86
sys 0.70

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/252914/ft1_filtered_4FGL_J0809.8+0507_daily_bin713.fits" evtable="EVENTS" scfile=/scratch/kocevski/252914/ft2_4FGL_J0809.8+0507_daily_bin713.fits sctable="SC_DATA" outfile=/scratch/kocevski/252914/ltcube_424137601_424396801_4FGL_J0809.8+0507_daily_bin713.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/252914/ft2_4FGL_J0809.8+0507_daily_bin713.fits
.....................!
real 12.23
user 11.35
sys 0.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/252914/ft1_filtered_4FGL_J0809.8+0507_daily_bin713.fits evtable="EVENTS" scfile=/scratch/kocevski/252914/ft2_4FGL_J0809.8+0507_daily_bin713.fits sctable="SC_DATA" expcube=/scratch/kocevski/252914/ltcube_424137601_424396801_4FGL_J0809.8+0507_daily_bin713.fits outfile=/scratch/kocevski/252914/expmap_424137601_424396801_4FGL_J0809.8+0507_daily_bin713.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/252914/ltcube_424137601_424396801_4FGL_J0809.8+0507_daily_bin713.fits
.....................!
real 191.44
user 185.77
sys 5.27

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/252914/ft1_filtered_4FGL_J0809.8+0507_daily_bin713.fits scfile=/scratch/kocevski/252914/ft2_4FGL_J0809.8+0507_daily_bin713.fits outfile=/scratch/kocevski/252914/cmap_424137601_424396801_4FGL_J0809.8+0507_daily_bin713.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.00
user 0.37
sys 0.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/252914/ft1_filtered_4FGL_J0809.8+0507_daily_bin713.fits scfile=/scratch/kocevski/252914/ft2_4FGL_J0809.8+0507_daily_bin713.fits outfile=/scratch/kocevski/252914/cmap_HighResolution_424137601_424396801_4FGL_J0809.8+0507_daily_bin713.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.60
user 0.38
sys 0.62

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.2177       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13282E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    44.467       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.931       1.0000         .10000E-03   10000.    
     8 'Prefactor '    117.62       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13486E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.218       1.0000         .10000E-03   10000.    
    12 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    58.258       1.0000         .10000E-03   10000.    
    14 'norm      '    .10214E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.661       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8452       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .90523       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0395       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=   4320.143     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2296 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.943       -.83426E-05** at limit **
   2  Prefactor     .10000E-03    26.770        .52240E-05** at limit **
   3  norm          3.2178        2.4764       -.11737E-06   -.15778E-03
   4  Prefactor     .10000E-03    14.398        .48778E-05** at limit **
   5  Prefactor     .10000E-03    2.7812       -.14766E-05** at limit **
   6  norm          44.423        41.627       -.42790E-04    .83435E-04
   7  Prefactor     29.933        30.955        .18087E-04    .19175E-03
   8  Prefactor     117.67        155.43        .42426E-04    .33628E-04
   9  Prefactor     .10000E-03    3.6423        .74562E-07** at limit **
  10  Prefactor     .10000E-03    30.665        .23404E-04** at limit **
  11  norm          11.219        14.587        .46687E-07   -.18835E-04
  12  norm          .10000E-03    1.8527       -.42196E-06** at limit **
  13  norm          58.226        41.014       -.29240E-04   -.96406E-04
  14  norm          .10000E-03    2.7789        .30960E-06** at limit **
  15  Prefactor     16.672        54.030        .28905E-04    .14552E-04
  16  Prefactor     .10000E-03    5.3304        .52926E-06** at limit **
  17  norm          1.8452        1.3739       -.15983E-07   -.82905E-04
  18  norm          .10000E-03    3.3864       -.71032E-07** at limit **
  19  Prefactor     .10000E-03    22.142       -.20953E-04** at limit **
  20  Normalizat    .90559        .25125        .24391E-05    .16643E-03
  21  Prefactor     1.0393        .16654        .17489E-05    .17720E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.21776
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 44.4225
  Prefactor  = 29.9325
  Prefactor  = 117.671
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 11.2185
  norm       = 0.000100001
  norm       = 58.2261
  norm       = 0.0001
  Prefactor  = 16.6724
  Prefactor  = 0.0001
  norm       = 1.8452
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.905588
  Prefactor  = 1.0393
 **********
 **   18 **HESSE 
 **********

 FCN=   4320.143     FROM HESSE     STATUS=OK           309 CALLS     2605 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2178        2.4742        .86165E-04   -1.5349    
   4  Prefactor     .10000E-03    14.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.8294        .20779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          44.423        41.580        .60123E-04   -1.4374    
   7  Prefactor     29.933        30.839        .73234E-04   -1.4613    
   8  Prefactor     117.67        155.12        .18550E-03   -1.3534    
   9  Prefactor     .10000E-03    3.6452        .12250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.219        14.584        .11961E-03   -1.5038    
  12  norm          .10000E-03    8.3882        .17319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          58.226        41.065        .52561E-04   -1.4180    
  14  norm          .10000E-03    2.8077        .10698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.672        54.004        .98122E-04   -1.4891    
  16  Prefactor     .10000E-03    5.3326        .14821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8452        1.3658        .63822E-04   -1.5436    
  18  norm          .10000E-03    3.3917        .11813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .90559        .28732        .31872E-03   -.96264    
  21  Prefactor     1.0393        .19096        .20380E-03   -.91431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.68136e-10
Minuit parameter uncertainties:
  1  3.46255e-05
  2  2.67603e-06
  3  2.47428
  4  9.37582e-06
  5  0.000216827
  6  41.6068
  7  30.8554
  8  155.657
  9  2.35753e-06
  10  0.000669934
  11  14.589
  12  0.000129949
  13  41.0848
  14  5.05851e-05
  15  54.1626
  16  1.40003e-05
  17  1.36578
  18  3.47443e-06
  19  2.76823e-05
  20  0.287808
  21  0.19108
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  5.823e+01  4.108e+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.039e+00  1.911e-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.056e-01  2.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.98
Ra Dec: 122.453 5.131
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 9.34e-08 +/- 6.59e-08
Energy Flux (Fixed Index): 2.46e-05 +/- 1.74e-05

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

Saving results to:
/scratch/kocevski/252914/likelihoodResults_424137601_424396801_4FGL_J0809.8+0507_daily_bin713.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) = 4318.06144353
delta logL = 2.08150958021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4317.54336221
delta logL = 2.59959089345

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.955       1.0000         .10000E-03   10000.    
     2 'alpha     '    .39278E-05   1.0000          .0000       5.0000    
     3 'Normalizat'    1.0003       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0003       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.

 FCN=   4317.543     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      234 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.977        18.204        .21371E-02   -.92670E-05
   2  alpha         .74649E-11    3.1879        .46285    ** at limit **
   3  Normalizat    1.0006        .23629        .68988E-01    .28066E-04
   4  Prefactor     1.0000        .16127        .45799E-01    .15229E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.9767
  alpha      = 7.46486e-12
  Normalizat = 1.0006
  Prefactor  = 1.00001
 **********
 **   18 **HESSE 
 **********

 FCN=   4317.543     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.977        14.549        .85483E-04   -1.4770    
   2  alpha         .74649E-11    3.5501        .56003E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0006        .27348        .30518E-03   -.93010    
   4  Prefactor     1.0000        .18694        .20706E-03   -.92729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18352e-12
Minuit parameter uncertainties:
  1  14.5515
  2  8.61509e-06
  3  0.273865
  4  0.18706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/252914': 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) = 4317.54335899
delta logL = 2.5995941173

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.198e+01  1.455e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  7.465e-12  8.615e-06  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.000e+00  1.871e-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.001e+00  2.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.19
Ra Dec: 122.453 5.131
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 2.51e-08 +/- 1.66e-08
Energy Flux (Free Index): 2.70e-05 +/- 1.79e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-05', comment='SUCCESS', photon_flux='9.34e-08', energy_flux2='2.70e-05', photon_flux_error='6.59e-08', dlogl='2.60e+00', energy_flux='2.46e-05', photon_flux2='2.51e-08', job_status='DONE', time_completed='2021-08-29 09:13:09.644937', photon_index_error2='0.00', photon_index2='0.00', ts='3.98', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='2.22e-07', energy_flux_error2='1.79e-05', EG='0.91', time_epoch_completed='1630253589.64', return_code='0', job_id='252914', GAL2='1.00', EG2='1.00', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='1.66e-08', ts2='9.19', photon_index='2.82' WHERE bin_id='713' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:13:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 252914: <4FGL_J0809.8+0507_daily_bin713> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin713 122.453 5.1313 424137601 424396801 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 :                                   534.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             224.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            759 sec.

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

