/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 211 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.3+4053_daily_bin303
RA = 122.33, Dec = 40.8954
tmin = 317865601, tmax = 318124801
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='226726', job_status='RUN', time_executed='2021-08-29 07:39:33.468406', time_epoch_executed='1630247973.47' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='303'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226726

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226726/ft1_4FGL_J0809.3+4053_daily_bin303.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226726/ft2_4FGL_J0809.3+4053_daily_bin303.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226726/ft1_4FGL_J0809.3+4053_daily_bin303.fits outfile=/scratch/kocevski/226726/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin303.fits ra=122.33 dec=40.8954 rad=12.0 tmin=317865601.0 tmax=318124801.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 3.31
user 3.09
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/226726/ft2_4FGL_J0809.3+4053_daily_bin303.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/226726/ft2_4FGL_J0809.3+4053_daily_bin303.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/226726/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin303.fits evtable="EVENTS" outfile="/scratch/kocevski/226726/ft1_filtered_4FGL_J0809.3+4053_daily_bin303.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226726/ft1_filtered_4FGL_J0809.3+4053_daily_bin303.fits" evtable="EVENTS" scfile=/scratch/kocevski/226726/ft2_4FGL_J0809.3+4053_daily_bin303.fits sctable="SC_DATA" outfile=/scratch/kocevski/226726/ltcube_317865601_318124801_4FGL_J0809.3+4053_daily_bin303.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/226726/ft2_4FGL_J0809.3+4053_daily_bin303.fits
.....................!
real 12.00
user 11.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226726/ft1_filtered_4FGL_J0809.3+4053_daily_bin303.fits evtable="EVENTS" scfile=/scratch/kocevski/226726/ft2_4FGL_J0809.3+4053_daily_bin303.fits sctable="SC_DATA" expcube=/scratch/kocevski/226726/ltcube_317865601_318124801_4FGL_J0809.3+4053_daily_bin303.fits outfile=/scratch/kocevski/226726/expmap_317865601_318124801_4FGL_J0809.3+4053_daily_bin303.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/226726/ltcube_317865601_318124801_4FGL_J0809.3+4053_daily_bin303.fits
.....................!
real 190.78
user 185.45
sys 4.95

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 188 point sources and 0 extended sources

Setting source of interest to:
4FGL J0809.3+4053 @ 122.33 40.8954

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/226726/ft1_filtered_4FGL_J0809.3+4053_daily_bin303.fits scfile=/scratch/kocevski/226726/ft2_4FGL_J0809.3+4053_daily_bin303.fits outfile=/scratch/kocevski/226726/cmap_317865601_318124801_4FGL_J0809.3+4053_daily_bin303.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.33 yref=40.8954 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 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226726/ft1_filtered_4FGL_J0809.3+4053_daily_bin303.fits scfile=/scratch/kocevski/226726/ft2_4FGL_J0809.3+4053_daily_bin303.fits outfile=/scratch/kocevski/226726/cmap_HighResolution_317865601_318124801_4FGL_J0809.3+4053_daily_bin303.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.33 yref=40.8954 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 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/226726/ft1_filtered_4FGL_J0809.3+4053_daily_bin303.fits evtable="EVENTS" scfile=/scratch/kocevski/226726/ft2_4FGL_J0809.3+4053_daily_bin303.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/226726/Model_4FGL_J0809.3+4053_daily_bin303.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/226726/ft1_filtered_4FGL_J0809.3+4053_daily_bin303.fits.....................!
real 67.01
user 65.57
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/226726/ft1_filtered_4FGL_J0809.3+4053_daily_bin303.fits', '/scratch/kocevski/226726/ft2_4FGL_J0809.3+4053_daily_bin303.fits', expMap='/scratch/kocevski/226726/expmap_317865601_318124801_4FGL_J0809.3+4053_daily_bin303.fits', expCube='/scratch/kocevski/226726/ltcube_317865601_318124801_4FGL_J0809.3+4053_daily_bin303.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/226726/Model_4FGL_J0809.3+4053_daily_bin303.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.3+4053'

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.019e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/226726/ft1_filtered_4FGL_J0809.3+4053_daily_bin303.fits
Spacecraft file(s): /scratch/kocevski/226726/ft2_4FGL_J0809.3+4053_daily_bin303.fits
Exposure map: /scratch/kocevski/226726/expmap_317865601_318124801_4FGL_J0809.3+4053_daily_bin303.fits
Exposure cube: /scratch/kocevski/226726/ltcube_317865601_318124801_4FGL_J0809.3+4053_daily_bin303.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/226726/Model_4FGL_J0809.3+4053_daily_bin303.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) = 7162.11318726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1138       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .80703E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9582       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.804       1.0000         .10000E-03   10000.    
     6 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.4130       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.6422       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11568E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1434       1.0000         .10000E-03   10000.    
    12 'norm      '    .30396       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5216       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1114       1.0000         .10000E-03   10000.    
    18 'norm      '    5.7746       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3244       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2087       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .63625       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2165       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7162.048     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2597 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8424       -.22515E-07** at limit **
   2  Prefactor     8.1072        12.255       -.48993E-05    .22990E-03
   3  Prefactor     .10018E-03    21.191       -.92276E-06** at limit **
   4  Prefactor     7.9562        9.3287        .14870E-06   -.34675E-04
   5  Prefactor     11.784        17.402       -.76123E-05    .32675E-03
   6  norm          .10000E-03    5.3013       -.23327E-07** at limit **
   7  norm          5.4123        2.7953        .43000E-07    .11130E-03
   8  Prefactor     5.6439        6.2338        .64667E-06   -.33436E-04
   9  Prefactor     .10000E-03    48.566        .11861E-05** at limit **
  10  Prefactor     .10000E-03    1.9843        .24458E-08** at limit **
  11  norm          1.1433        1.0461       -.10069E-07    .18876E-03
  12  norm          .30417        .35707       -.50034E-07   -.85000E-03
  13  Prefactor     .10000E-03    6.0565       -.81735E-08** at limit **
  14  Prefactor     .10000E-03    4.9084       -.52666E-09** at limit **
  15  Prefactor     1.5226        1.9521       -.28388E-06   -.62920E-03
  16  Prefactor     .10005E-03    14.269        .13530E-06** at limit **
  17  Prefactor     4.1191        6.0745       -.35574E-06   -.14709E-03
  18  norm          5.7749        6.3661       -.10275E-05   -.84261E-04
  19  Prefactor     1.3235        2.1237       -.24114E-06   -.60030E-03
  20  Prefactor     .10000E-03    35.437        .33453E-06** at limit **
  21  Prefactor     1.2081        3.1019       -.10994E-05   -.10289E-02
  22  Normalizat    .63641        .17035        .19237E-05    .61582E-04
  23  Prefactor     1.2165        .13053        .61159E-06    .10454E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 8.10718
  Prefactor  = 0.000100176
  Prefactor  = 7.95616
  Prefactor  = 11.7843
  norm       = 0.0001
  norm       = 5.41225
  Prefactor  = 5.64391
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.14332
  norm       = 0.304168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.52256
  Prefactor  = 0.000100046
  Prefactor  = 4.11908
  norm       = 5.77495
  Prefactor  = 1.32355
  Prefactor  = 0.0001
  Prefactor  = 1.20805
  Normalizat = 0.636411
  Prefactor  = 1.21652
 **********
 **   18 **HESSE 
 **********

 FCN=   7162.048     FROM HESSE     STATUS=OK           388 CALLS     2985 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8572        .13933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.1072        12.239        .14075E-03   -1.5138    
   3  Prefactor     .10018E-03    23.693        .11276       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.9562        9.3129        .14213E-03   -1.5144    
   5  Prefactor     11.784        17.118        .11660E-03   -1.5021    
   6  norm          .10000E-03    5.3240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.4123        2.7934        .96883E-04   -1.5243    
   8  Prefactor     5.6439        6.2155        .16912E-03   -1.5233    
   9  Prefactor     .10000E-03    48.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0034        .11632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1433        1.0676        .80714E-04   -1.5494    
  12  norm          .30417        .31980        .52875E-03   -1.5598    
  13  Prefactor     .10000E-03    6.0585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5226        1.9340        .12932E-03   -1.5461    
  16  Prefactor     .10005E-03    127.63        .60831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.1191        6.0289        .19881E-03   -1.5302    
  18  norm          5.7749        6.3726        .16714E-03   -1.5227    
  19  Prefactor     1.3235        2.0957        .15020E-03   -1.5478    
  20  Prefactor     .10000E-03    35.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.2081        3.1994        .23885E-03   -1.5488    
  22  Normalizat    .63641        .18792        .32059E-03   -1.0646    
  23  Prefactor     1.2165        .14567        .18791E-03   -.85825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83821e-09
Minuit parameter uncertainties:
  1  2.16072e-06
  2  12.2426
  3  0.0040898
  4  9.31464
  5  17.1247
  6  6.77786e-06
  7  2.79345
  8  6.21626
  9  6.94303e-06
  10  1.49487e-07
  11  1.06766
  12  0.319803
  13  3.57682e-06
  14  1.91927e-06
  15  1.93411
  16  0.00485798
  17  6.02978
  18  6.37338
  19  2.09577
  20  2.4031e-05
  21  3.1999
  22  0.188113
  23  0.145722
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.495e-07  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.217e+00  1.457e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  6.364e-01  1.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 6.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/226726/likelihoodResults_317865601_318124801_4FGL_J0809.3+4053_daily_bin303.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): 102
logL (Free Index) = 7162.05072356
delta logL = -0.00237332183406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7162.04835032
delta logL = -8.40882421471e-08

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 'Index     '    2.5898       1.0000          .0000       10.000    
     3 'Normalizat'    .63642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2165       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7162.048     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    335.70        .90712E-02** at limit **
   2  Index         2.5915        5.9400        .50000       -.79157E-05
   3  Normalizat    .63641        .76998E-01    .72424E-01   -.28791E-04
   4  Prefactor     1.2165        .59609E-01    .34251E-01   -.65913E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.5915
  Normalizat = 0.63641
  Prefactor  = 1.21652
 **********
 **   18 **HESSE 
 **********

 FCN=   7162.048     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4952        .11633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5915        6.2929        .50000       -.50259    
   3  Normalizat    .63641        .18108        .32059E-03   -1.0646    
   4  Prefactor     1.2165        .14373        .18791E-03   -.85825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.23908e-11
Minuit parameter uncertainties:
  1  9.77611e-06
  2  4.89136
  3  0.181251
  4  0.143771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226726': 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) = 7162.04835023
delta logL = 5.98265614826e-09

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  9.776e-06  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.592e+00  4.891e+00  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.217e+00  1.438e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  6.364e-01  1.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.330 40.895

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/226726/cmap_HighResolution_317865601_318124801_4FGL_J0809.3+4053_daily_bin303.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.02e-03', job_status='DONE', photon_flux_upper_limit='6.42e-08', time_completed='2021-08-29 07:51:57.977233', job_id='226726', GAL2='1.22', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1630248717.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='5.98e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='303' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:51:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 226726: <4FGL_J0809.3+4053_daily_bin303> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin303> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 07:35:47 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:35:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 07:35:49 2021
Terminated at Sun Aug 29 07:51:58 2021
Results reported at Sun Aug 29 07:51:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin303 122.33 40.8954 317865601 318124801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.3+4053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   742.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

