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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin508
RA = 122.33, Dec = 40.8954
tmin = 371001601, tmax = 371260801
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='228150', job_status='RUN', time_executed='2021-08-29 07:43:11.841236', time_epoch_executed='1630248191.84' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228150

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228150/ft1_4FGL_J0809.3+4053_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228150/ft2_4FGL_J0809.3+4053_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228150/ft1_4FGL_J0809.3+4053_daily_bin508.fits outfile=/scratch/kocevski/228150/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin508.fits ra=122.33 dec=40.8954 rad=12.0 tmin=371001601.0 tmax=371260801.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 6.81
user 6.08
sys 0.66

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/228150/ft2_4FGL_J0809.3+4053_daily_bin508.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/228150/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin508.fits evtable="EVENTS" outfile="/scratch/kocevski/228150/ft1_filtered_4FGL_J0809.3+4053_daily_bin508.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.96
user 0.35
sys 0.55

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228150/ft1_filtered_4FGL_J0809.3+4053_daily_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/228150/ft2_4FGL_J0809.3+4053_daily_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/228150/ltcube_371001601_371260801_4FGL_J0809.3+4053_daily_bin508.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/228150/ft2_4FGL_J0809.3+4053_daily_bin508.fits
.....................!
real 11.89
user 11.06
sys 0.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228150/ft1_filtered_4FGL_J0809.3+4053_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/228150/ft2_4FGL_J0809.3+4053_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/228150/ltcube_371001601_371260801_4FGL_J0809.3+4053_daily_bin508.fits outfile=/scratch/kocevski/228150/expmap_371001601_371260801_4FGL_J0809.3+4053_daily_bin508.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/228150/ltcube_371001601_371260801_4FGL_J0809.3+4053_daily_bin508.fits
.....................!
real 190.98
user 185.45
sys 5.13

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/228150/ft1_filtered_4FGL_J0809.3+4053_daily_bin508.fits scfile=/scratch/kocevski/228150/ft2_4FGL_J0809.3+4053_daily_bin508.fits outfile=/scratch/kocevski/228150/cmap_371001601_371260801_4FGL_J0809.3+4053_daily_bin508.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.90
user 0.37
sys 0.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228150/ft1_filtered_4FGL_J0809.3+4053_daily_bin508.fits scfile=/scratch/kocevski/228150/ft2_4FGL_J0809.3+4053_daily_bin508.fits outfile=/scratch/kocevski/228150/cmap_HighResolution_371001601_371260801_4FGL_J0809.3+4053_daily_bin508.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.94
user 0.36
sys 0.55

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1148       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.590       1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.038       1.0000         .10000E-03   10000.    
     6 'norm      '    .88308       1.0000         .10000E-03   10000.    
     7 'norm      '    .11063E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .59768       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.603       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .89368       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8805       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.6355       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5941       1.0000         .10000E-03   10000.    
    18 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1288       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .79854       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0724       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=   7415.462     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2564 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6673        .19792E-07** at limit **
   2  Prefactor     1.1014        7.2639        .72239E-06   -.41394E-04
   3  Prefactor     .10000E-03    12.361        .33552E-06** at limit **
   4  Prefactor     15.600        11.071       -.48552E-07    .22349E-03
   5  Prefactor     34.018        16.739       -.46820E-05    .13004E-02
   6  norm          .88049        1.0938        .35900E-06   -.15027E-02
   7  norm          .10000E-03    1.3723       -.25844E-06** at limit **
   8  Prefactor     .58923        7.9693       -.94119E-05    .80557E-03
   9  Prefactor     16.625        42.544        .42997E-04    .36627E-03
  10  Prefactor     .10000E-03    2.2665        .55485E-08** at limit **
  11  norm          .10000E-03    .57684        .82240E-09** at limit **
  12  norm          .89367        .55629       -.14617E-06    .12497E-02
  13  Prefactor     .10000E-03    22.070       -.28658E-05** at limit **
  14  Prefactor     .10000E-03    7.3924       -.80141E-07** at limit **
  15  Prefactor     2.8800        2.6302        .95345E-07    .23373E-03
  16  Prefactor     8.6352        13.110       -.18312E-06    .50427E-04
  17  Prefactor     6.5940        7.0084       -.19018E-06    .90598E-04
  18  norm          .10000E-03    5.2965        .67602E-07** at limit **
  19  Prefactor     2.1293        2.7693        .12206E-06   -.23126E-05
  20  Prefactor     .10000E-03    29.143        .42678E-05** at limit **
  21  Prefactor     .10000E-03    1.4060        .23284E-07** at limit **
  22  Normalizat    .79837        .16847       -.18945E-05    .70172E-03
  23  Prefactor     1.0726        .12492        .22293E-06    .88172E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.10143
  Prefactor  = 0.0001
  Prefactor  = 15.6001
  Prefactor  = 34.0176
  norm       = 0.88049
  norm       = 0.0001
  Prefactor  = 0.589226
  Prefactor  = 16.6252
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.893668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.88002
  Prefactor  = 8.63516
  Prefactor  = 6.59402
  norm       = 0.0001
  Prefactor  = 2.1293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.798371
  Prefactor  = 1.07256
 **********
 **   18 **HESSE 
 **********

 FCN=   7415.462     FROM HESSE     STATUS=OK           372 CALLS     2936 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6750        .10859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1014        40.325        .42875E-02   -1.5498    
   3  Prefactor     .10000E-03    12.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.600        10.880        .50719E-03   -1.4918    
   5  Prefactor     34.018        16.418        .68686E-04   -1.4541    
   6  norm          .88049        9.7701        .25492E-02   -1.5520    
   7  norm          .10000E-03    2.4487        .19197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .58923        25.806        .39220E-02   -1.5554    
   9  Prefactor     16.625        44.233        .98293E-04   -1.4892    
  10  Prefactor     .10000E-03    2.3097        .12642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .58591        .63859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .89367        .53755        .48136E-03   -1.5519    
  13  Prefactor     .10000E-03    22.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.4266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8800        2.6176        .12649E-03   -1.5369    
  16  Prefactor     8.6352        13.100        .13641E-03   -1.5120    
  17  Prefactor     6.5940        7.0050        .15627E-03   -1.5194    
  18  norm          .10000E-03    5.3907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.1293        2.7625        .15609E-03   -1.5416    
  20  Prefactor     .10000E-03    29.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.4135        .99695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .79837        .19337        .28918E-03   -1.0013    
  23  Prefactor     1.0726        .14436        .19560E-03   -.90348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48588e-08
Minuit parameter uncertainties:
  1  1.82565e-06
  2  13.338
  3  4.02152e-06
  4  10.8816
  5  16.4198
  6  5.86689
  7  4.52703e-05
  8  7.80182
  9  44.3208
  10  1.03746e-06
  11  1.14594e-07
  12  0.537554
  13  0.00014586
  14  3.32655e-06
  15  2.61769
  16  13.1041
  17  7.00583
  18  5.36086e-06
  19  2.76264
  20  0.000175647
  21  1.79013e-06
  22  0.193534
  23  0.144415
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.037e-06  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.073e+00  1.444e-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:  7.984e-01  1.935e-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.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228150/likelihoodResults_371001601_371260801_4FGL_J0809.3+4053_daily_bin508.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) = 7415.46412985
delta logL = -0.00206287928086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7415.46206704
delta logL = -7.49259925215e-08

Fit tolerance = 1e-08

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

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

 FCN=   7415.462     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      253 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9279        .12733E-01** at limit **
   2  Index         2.2828        5.2980        .50000        .48794E-07
   3  Normalizat    .79837        .69706E-02    .28918E-03   -.24760E-03
   4  Prefactor     1.0726        .54246E-02    .19560E-03   -.34412E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.28283
  Normalizat = 0.798368
  Prefactor  = 1.07256
 **********
 **   18 **HESSE 
 **********

 FCN=   7415.462     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    386.32        .26315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2828        8.2459        .50000       -.57452    
   3  Normalizat    .79837        .67259E-01    .11567E-04   -1.0013    
   4  Prefactor     1.0726        .52330E-01    .39120E-04   -.90348    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.31685e-10
Minuit parameter uncertainties:
  1  0.000161017
  2  1042.88
  3  0.0672656
  4  0.0523326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228150': 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) = 7415.46206517
delta logL = 1.79788276e-06

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.610e-04  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.283e+00  1.043e+03  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.073e+00  5.233e-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.984e-01  6.727e-02  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/228150/cmap_HighResolution_371001601_371260801_4FGL_J0809.3+4053_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', job_status='DONE', photon_flux_upper_limit='6.13e-08', time_completed='2021-08-29 07:56:22.527999', job_id='228150', GAL2='1.07', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630248982.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.80e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='508' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:56:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 228150: <4FGL_J0809.3+4053_daily_bin508> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin508> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Aug 29 07:40:51 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:40:53 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:40:53 2021
Terminated at Sun Aug 29 07:56:23 2021
Results reported at Sun Aug 29 07:56:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin508 122.33 40.8954 371001601 371260801 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 :                                   792.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            932 sec.

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

