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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin794
RA = 122.33, Dec = 40.8954
tmin = 445132801, tmax = 445392001
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='230850', job_status='RUN', time_executed='2021-08-29 07:53:15.535137', time_epoch_executed='1630248795.54' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='794'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230850

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230850/ft1_4FGL_J0809.3+4053_daily_bin794.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230850/ft2_4FGL_J0809.3+4053_daily_bin794.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230850/ft1_4FGL_J0809.3+4053_daily_bin794.fits outfile=/scratch/kocevski/230850/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin794.fits ra=122.33 dec=40.8954 rad=12.0 tmin=445132801.0 tmax=445392001.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 4.19
user 3.34
sys 0.80

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/230850/ft2_4FGL_J0809.3+4053_daily_bin794.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/230850/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin794.fits evtable="EVENTS" outfile="/scratch/kocevski/230850/ft1_filtered_4FGL_J0809.3+4053_daily_bin794.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.08
user 0.32
sys 0.74

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230850/ft1_filtered_4FGL_J0809.3+4053_daily_bin794.fits evtable="EVENTS" scfile=/scratch/kocevski/230850/ft2_4FGL_J0809.3+4053_daily_bin794.fits sctable="SC_DATA" expcube=/scratch/kocevski/230850/ltcube_445132801_445392001_4FGL_J0809.3+4053_daily_bin794.fits outfile=/scratch/kocevski/230850/expmap_445132801_445392001_4FGL_J0809.3+4053_daily_bin794.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/230850/ltcube_445132801_445392001_4FGL_J0809.3+4053_daily_bin794.fits
.....................!
real 192.01
user 185.43
sys 6.03

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/230850/ft1_filtered_4FGL_J0809.3+4053_daily_bin794.fits scfile=/scratch/kocevski/230850/ft2_4FGL_J0809.3+4053_daily_bin794.fits outfile=/scratch/kocevski/230850/cmap_445132801_445392001_4FGL_J0809.3+4053_daily_bin794.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 1.10
user 0.37
sys 0.70

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230850/ft1_filtered_4FGL_J0809.3+4053_daily_bin794.fits scfile=/scratch/kocevski/230850/ft2_4FGL_J0809.3+4053_daily_bin794.fits outfile=/scratch/kocevski/230850/cmap_HighResolution_445132801_445392001_4FGL_J0809.3+4053_daily_bin794.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 1.12
user 0.38
sys 0.73

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/230850/ft1_filtered_4FGL_J0809.3+4053_daily_bin794.fits', '/scratch/kocevski/230850/ft2_4FGL_J0809.3+4053_daily_bin794.fits', expMap='/scratch/kocevski/230850/expmap_445132801_445392001_4FGL_J0809.3+4053_daily_bin794.fits', expCube='/scratch/kocevski/230850/ltcube_445132801_445392001_4FGL_J0809.3+4053_daily_bin794.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/230850/Model_4FGL_J0809.3+4053_daily_bin794.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/230850/ft1_filtered_4FGL_J0809.3+4053_daily_bin794.fits
Spacecraft file(s): /scratch/kocevski/230850/ft2_4FGL_J0809.3+4053_daily_bin794.fits
Exposure map: /scratch/kocevski/230850/expmap_445132801_445392001_4FGL_J0809.3+4053_daily_bin794.fits
Exposure cube: /scratch/kocevski/230850/ltcube_445132801_445392001_4FGL_J0809.3+4053_daily_bin794.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/230850/Model_4FGL_J0809.3+4053_daily_bin794.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) = 7119.46659323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.115       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10597E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.4921       1.0000         .10000E-03   10000.    
     7 'norm      '    4.0431       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9036       1.0000         .10000E-03   10000.    
     9 'Prefactor '    83.198       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31608       1.0000         .10000E-03   10000.    
    11 'norm      '    4.1740       1.0000         .10000E-03   10000.    
    12 'norm      '    .73875       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.388       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.085       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4541       1.0000         .10000E-03   10000.    
    20 'Prefactor '    61.229       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.8543       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .83262       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0477       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=   7119.456     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2540 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.115        7.6849        .40709E-07   -.12892E-05
   2  Prefactor     .10000E-03    31.444       -.80032E-06** at limit **
   3  Prefactor     .10000E-03    23.513        .25449E-05** at limit **
   4  Prefactor     .10000E-03    8.6823        .93866E-06** at limit **
   5  Prefactor     .10000E-03    21.950       -.16456E-05** at limit **
   6  norm          3.4922        10.486        .48800E-05   -.87763E-03
   7  norm          4.0439        3.0765        .21341E-07   -.18654E-03
   8  Prefactor     6.9028        8.6908        .12859E-05   -.84153E-03
   9  Prefactor     83.197        50.832       -.10914E-05   -.80418E-04
  10  Prefactor     .32208        2.5664        .48942E-06   -.40569E-03
  11  norm          4.1741        2.1470        .10618E-07   -.55896E-04
  12  norm          .73890        .53924        .11008E-06   -.17933E-03
  13  Prefactor     .10000E-03    9.4362       -.83109E-06** at limit **
  14  Prefactor     .10000E-03    6.5209       -.11300E-06** at limit **
  15  Prefactor     .10000E-03    .66669        .75190E-08** at limit **
  16  Prefactor     19.374        27.444       -.74880E-05   -.45884E-03
  17  Prefactor     .10000E-03    3.1847       -.23987E-07** at limit **
  18  norm          12.085        6.5516        .65165E-07    .16052E-04
  19  Prefactor     6.4549        3.3282        .64158E-07   -.14430E-04
  20  Prefactor     61.240        68.497        .54792E-05    .13663E-03
  21  Prefactor     3.8550        4.4440       -.14517E-05   -.73361E-03
  22  Normalizat    .83229        .18804        .10927E-05   -.16544E-03
  23  Prefactor     1.0479        .13320       -.81387E-06   -.15242E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.1148
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.49221
  norm       = 4.04394
  Prefactor  = 6.90277
  Prefactor  = 83.1973
  Prefactor  = 0.322082
  norm       = 4.17414
  norm       = 0.738898
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.3745
  Prefactor  = 0.0001
  norm       = 12.0855
  Prefactor  = 6.4549
  Prefactor  = 61.2398
  Prefactor  = 3.85503
  Normalizat = 0.832295
  Prefactor  = 1.04787
 **********
 **   18 **HESSE 
 **********

 FCN=   7119.456     FROM HESSE     STATUS=OK           372 CALLS     2912 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.115        7.6937        .99772E-04   -1.4905    
   2  Prefactor     .10000E-03    32.206        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.7453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.4922        12.969        .10818E-02   -1.5334    
   7  norm          4.0439        3.0739        .12363E-03   -1.5306    
   8  Prefactor     6.9028        8.9840        .76347E-03   -1.5182    
   9  Prefactor     83.197        50.841        .44038E-04   -1.3881    
  10  Prefactor     .32208        16.947        .24493E-02   -1.5594    
  11  norm          4.1741        2.1465        .86055E-04   -1.5299    
  12  norm          .73890        .54503        .49251E-04   -1.5536    
  13  Prefactor     .10000E-03    9.4559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.5407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .66871        .67257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.374        28.680        .90961E-04   -1.4827    
  17  Prefactor     .10000E-03    3.1879        .14703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.085        6.5538        .11523E-03   -1.5013    
  19  Prefactor     6.4549        3.3334        .10612E-03   -1.5200    
  20  Prefactor     61.240        69.136        .51278E-04   -1.4141    
  21  Prefactor     3.8550        4.5218        .18268E-03   -1.5315    
  22  Normalizat    .83229        .21780        .30388E-03   -.98882    
  23  Prefactor     1.0479        .15369        .20533E-03   -.91150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67182e-09
Minuit parameter uncertainties:
  1  7.69421
  2  0.00020701
  3  0.000262711
  4  5.60381e-05
  5  0.00019725
  6  12.979
  7  3.074
  8  8.98572
  9  50.8672
  10  4.67322
  11  2.14651
  12  0.545032
  13  6.32383e-05
  14  3.09158e-05
  15  2.3101e-06
  16  28.7008
  17  1.61736e-05
  18  6.55424
  19  3.33351
  20  69.2265
  21  4.52221
  22  0.218027
  23  0.15375
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  3.221e-01  4.673e+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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.048e+00  1.537e-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:  8.323e-01  2.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/230850/likelihoodResults_445132801_445392001_4FGL_J0809.3+4053_daily_bin794.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) = 7118.85751095
delta logL = 0.598225140681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7118.36329298
delta logL = 1.09244311131

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.4379       1.0000          .0000       10.000    
     3 'Normalizat'    .74991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0900       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7118.363     FROM MIGRAD    STATUS=FAILED       174 CALLS      453 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .18211E-01    .16718E-03** at limit **
   2  Index         9.4379        9.7136        .19235E-01    .22224E-03
   3  Normalizat    .74970        .10306        .31856E-03    .84223E-05
   4  Prefactor     1.0901        .76861E-01    .20180E-03   -.22422E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7118.363     FROM SIMPLEX   STATUS=UNCHANGED    190 CALLS      643 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .18211E-01    .62695E-05** at limit **
   2  Index         9.4379        9.7136        .18732E-04    .22224E-03
   3  Normalizat    .74970        .10306        .53826E-06    .84223E-05
   4  Prefactor     1.0901        .76861E-01    .22595E-06   -.22422E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7118.363     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      685 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .12615E-01    .20525E-03** at limit **
   2  Index         9.4379        9.6990        .38470E-02    .13239E-05
   3  Normalizat    .74970        .94452E-01    .12742E-04    .13383E-04
   4  Prefactor     1.0901        .70556E-01    .80719E-05   -.18873E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.43795
  Normalizat = 0.749702
  Prefactor  = 1.09009
 **********
 **   18 **HESSE 
 **********

 FCN=   7118.363     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      718 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .14578E-01    .19068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.4379        9.7096        .15388E-03    1.0921    
   3  Normalizat    .74970        .99948E-01    .25485E-05   -1.0196    
   4  Prefactor     1.0901        .74605E-01    .16144E-05   -.89784    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24112e-12
Minuit parameter uncertainties:
  1  5.82166e-09
  2  5.93351
  3  0.0999725
  4  0.0746119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230850': 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): 102
logL (Free Index) = 7118.36328943
delta logL = 1.09244665886

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  5.822e-09  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  9.438e+00  5.934e+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.090e+00  7.461e-02  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:  7.497e-01  9.997e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.34
Ra Dec: 122.330 40.895
Photon Index (Free Index): 9.44 +/- 5.93
Photon Flux (Free Index): 6.52e-08 +/- 6.65e-07
Energy Flux (Free Index): 7.35e-06 +/- 7.47e-05

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/230850/cmap_HighResolution_445132801_445392001_4FGL_J0809.3+4053_daily_bin794.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.51e-03', comment='SUCCESS', energy_flux2='7.35e-06', dlogl='1.09e+00', photon_flux2='6.52e-08', job_status='DONE', time_completed='2021-08-29 08:06:13.893552', photon_index_error2='5.93', photon_index2='9.44', ts='0.01', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='9.61e-08', energy_flux_error2='7.47e-05', EG='0.83', time_epoch_completed='1630249573.89', return_code='0', job_id='230850', GAL2='1.09', EG2='0.75', return_code2='102', photon_flux_error2='6.65e-07', ts2='2.34', photon_index='2.59' WHERE bin_id='794' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:06:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 230850: <4FGL_J0809.3+4053_daily_bin794> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin794> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 07:50:24 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:50:25 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:50:25 2021
Terminated at Sun Aug 29 08:06:14 2021
Results reported at Sun Aug 29 08:06:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin794 122.33 40.8954 445132801 445392001 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 :                                   784.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            950 sec.

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

