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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin330
RA = 122.33, Dec = 40.8954
tmin = 324864001, tmax = 325123201
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='226764', job_status='RUN', time_executed='2021-08-29 07:36:18.914450', time_epoch_executed='1630247778.91' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226764

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226764/ft1_4FGL_J0809.3+4053_daily_bin330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226764/ft2_4FGL_J0809.3+4053_daily_bin330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226764/ft1_4FGL_J0809.3+4053_daily_bin330.fits outfile=/scratch/kocevski/226764/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin330.fits ra=122.33 dec=40.8954 rad=12.0 tmin=324864001.0 tmax=325123201.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.98
user 5.40
sys 0.52

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226764/ft1_filtered_4FGL_J0809.3+4053_daily_bin330.fits" evtable="EVENTS" scfile=/scratch/kocevski/226764/ft2_4FGL_J0809.3+4053_daily_bin330.fits sctable="SC_DATA" outfile=/scratch/kocevski/226764/ltcube_324864001_325123201_4FGL_J0809.3+4053_daily_bin330.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/226764/ft2_4FGL_J0809.3+4053_daily_bin330.fits
.....................!
real 11.77
user 11.03
sys 0.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226764/ft1_filtered_4FGL_J0809.3+4053_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/226764/ft2_4FGL_J0809.3+4053_daily_bin330.fits sctable="SC_DATA" expcube=/scratch/kocevski/226764/ltcube_324864001_325123201_4FGL_J0809.3+4053_daily_bin330.fits outfile=/scratch/kocevski/226764/expmap_324864001_325123201_4FGL_J0809.3+4053_daily_bin330.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/226764/ltcube_324864001_325123201_4FGL_J0809.3+4053_daily_bin330.fits
.....................!
real 190.81
user 185.33
sys 4.23

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/226764/ft1_filtered_4FGL_J0809.3+4053_daily_bin330.fits scfile=/scratch/kocevski/226764/ft2_4FGL_J0809.3+4053_daily_bin330.fits outfile=/scratch/kocevski/226764/cmap_324864001_325123201_4FGL_J0809.3+4053_daily_bin330.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.87
user 0.36
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226764/ft1_filtered_4FGL_J0809.3+4053_daily_bin330.fits scfile=/scratch/kocevski/226764/ft2_4FGL_J0809.3+4053_daily_bin330.fits outfile=/scratch/kocevski/226764/cmap_HighResolution_324864001_325123201_4FGL_J0809.3+4053_daily_bin330.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.80
user 0.39
sys 0.41

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.9783       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.2051       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.7089       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2649       1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.089       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1318       1.0000         .10000E-03   10000.    
    11 'norm      '    4.5507       1.0000         .10000E-03   10000.    
    12 'norm      '    .99177       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2388       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.901       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5788       1.0000         .10000E-03   10000.    
    18 'norm      '    2.4368       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1905       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86929       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=   9019.958     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2200 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.0227        .23302E-07** at limit **
   2  Prefactor     .10000E-03    6.4959        .59469E-07** at limit **
   3  Prefactor     9.9794        17.353        .30162E-06    .29888E-05
   4  Prefactor     .10000E-03    4.2053       -.45206E-07** at limit **
   5  Prefactor     9.1962        13.906       -.93721E-06    .49565E-04
   6  norm          .10000E-03    4.5134        .12813E-07** at limit **
   7  norm          3.7091        2.2958        .19189E-07    .21276E-04
   8  Prefactor     1.2774        10.061       -.19009E-05   -.40511E-03
   9  Prefactor     41.036        35.154        .38929E-05    .62198E-04
  10  Prefactor     4.1295        3.8347        .86716E-06   -.24958E-05
  11  norm          4.5509        2.1882        .73882E-08   -.11911E-04
  12  norm          .99160        .50909       -.54667E-07   -.50683E-03
  13  Prefactor     .10000E-03    20.801        .13077E-06** at limit **
  14  Prefactor     .10000E-03    17.237        .63756E-07** at limit **
  15  Prefactor     1.2375        1.8411        .13331E-06    .78631E-04
  16  Prefactor     14.890        23.265       -.32018E-06    .60113E-05
  17  Prefactor     4.5798        6.7712        .47260E-07    .27774E-05
  18  norm          2.4378        5.5610        .65552E-05   -.12664E-03
  19  Prefactor     .10000E-03    .83550        .12176E-07** at limit **
  20  Prefactor     .10000E-03    132.90       -.76036E-06** at limit **
  21  Prefactor     .10000E-03    1.1117        .15125E-07** at limit **
  22  Normalizat    1.1903        .15500       -.74309E-06    .18816E-03
  23  Prefactor     .86938        .11186       -.17400E-06    .48388E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.97936
  Prefactor  = 0.0001
  Prefactor  = 9.19615
  norm       = 0.0001
  norm       = 3.70906
  Prefactor  = 1.27743
  Prefactor  = 41.0358
  Prefactor  = 4.1295
  norm       = 4.55086
  norm       = 0.991596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.2375
  Prefactor  = 14.8901
  Prefactor  = 4.5798
  norm       = 2.43782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.19031
  Prefactor  = 0.869376
 **********
 **   18 **HESSE 
 **********

 FCN=   9019.958     FROM HESSE     STATUS=OK           372 CALLS     2572 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0369        .13190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.5490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.9794        17.348        .12685E-03   -1.5076    
   4  Prefactor     .10000E-03    4.2187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.1962        13.787        .13210E-03   -1.5101    
   6  norm          .10000E-03    4.5370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.7091        2.2923        .10943E-03   -1.5323    
   8  Prefactor     1.2774        9.8855        .39615E-03   -1.5482    
   9  Prefactor     41.036        35.093        .62535E-04   -1.4426    
  10  Prefactor     4.1295        3.8232        .84337E-03   -1.5302    
  11  norm          4.5509        2.1885        .94509E-04   -1.5281    
  12  norm          .99160        .50204        .45957E-04   -1.5509    
  13  Prefactor     .10000E-03    21.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.598        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2375        1.7990        .15028E-03   -1.5485    
  16  Prefactor     14.890        23.216        .10376E-03   -1.4936    
  17  Prefactor     4.5798        6.7509        .18812E-03   -1.5280    
  18  norm          2.4378        5.5611        .13106E-02   -1.5396    
  19  Prefactor     .10000E-03    .83948        .84769E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    134.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.1153        .97786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1903        .17926        .25903E-03   -.86903    
  23  Prefactor     .86938        .12936        .22008E-03   -.97220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.80677e-10
Minuit parameter uncertainties:
  1  1.78712e-06
  2  5.92752e-06
  3  17.3571
  4  5.46644e-06
  5  13.7916
  6  4.01825e-06
  7  2.29234
  8  7.10855
  9  35.111
  10  3.82338
  11  2.18855
  12  0.502047
  13  3.5304e-06
  14  2.29371e-05
  15  1.79905
  16  23.2299
  17  6.75207
  18  5.56232
  19  5.61711e-07
  20  0.000242325
  21  7.20223e-07
  22  0.179357
  23  0.129406
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  4.129e+00  3.823e+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:  8.694e-01  1.294e-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:  1.190e+00  1.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.49
Ra Dec: 122.330 40.895
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 3.43e-08 +/- 3.17e-08
Energy Flux (Fixed Index): 9.08e-06 +/- 8.41e-06

TS (Fixed Index): 2.49
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/226764/likelihoodResults_324864001_325123201_4FGL_J0809.3+4053_daily_bin330.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) = 9019.61610951
delta logL = 0.342072641473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9019.61039627
delta logL = 0.347785881802

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4846       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8985       1.0000          .0000       10.000    
     3 'Normalizat'    1.2109       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86007       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=   9019.610     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4884        5.2344        .47532E-02    .61859E-04
   2  Index         1.8994        .60578        .26408       -.62205E-04
   3  Normalizat    1.2109        .15110        .58156E-01    .11730E-04
   4  Prefactor     .86010        .11171        .44494E-01    .16403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.48843
  Index      = 1.89943
  Normalizat = 1.2109
  Prefactor  = 0.860102
 **********
 **   18 **HESSE 
 **********

 FCN=   9019.610     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4884        4.5535        .18358E-03   -1.5284    
   2  Index         1.8994        .72555        .11474E-01   -.66889    
   3  Normalizat    1.2109        .17409        .25719E-03   -.86267    
   4  Prefactor     .86010        .12868        .22112E-03   -.97550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18794e-09
Minuit parameter uncertainties:
  1  4.55385
  2  0.729757
  3  0.174175
  4  0.128721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226764': 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) = 9019.61039506
delta logL = 0.347787096964

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  4.488e+00  4.554e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  1.899e+00  7.298e-01  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:  8.601e-01  1.287e-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:  1.211e+00  1.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.20
Ra Dec: 122.330 40.895
Photon Index (Free Index): 1.90 +/- 0.73
Photon Flux (Free Index): 1.79e-08 +/- 2.40e-08
Energy Flux (Free Index): 1.61e-05 +/- 2.27e-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/226764/cmap_HighResolution_324864001_325123201_4FGL_J0809.3+4053_daily_bin330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.29e-03', comment='SUCCESS', photon_flux='3.43e-08', energy_flux2='1.61e-05', photon_flux_error='3.17e-08', dlogl='3.48e-01', energy_flux='9.08e-06', photon_flux2='1.79e-08', job_status='DONE', time_completed='2021-08-29 07:50:10.649399', photon_index_error2='0.73', photon_index2='1.90', ts='2.49', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='2.27e-05', EG='1.19', time_epoch_completed='1630248610.65', return_code='0', job_id='226764', GAL2='0.86', EG2='1.21', return_code2='0', energy_flux_error='8.41e-06', photon_flux_error2='2.40e-08', ts2='3.20', photon_index='2.59' WHERE bin_id='330' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:50:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 226764: <4FGL_J0809.3+4053_daily_bin330> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin330> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 07:35:50 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:35:51 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:51 2021
Terminated at Sun Aug 29 07:50:11 2021
Results reported at Sun Aug 29 07:50:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin330 122.33 40.8954 324864001 325123201 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 :                                   830.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            861 sec.

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

