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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin292
RA = 122.33, Dec = 40.8954
tmin = 315014401, tmax = 315273601
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='226710', job_status='RUN', time_executed='2021-08-29 07:39:29.975022', time_epoch_executed='1630247969.98' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226710

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226710/ft1_4FGL_J0809.3+4053_daily_bin292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226710/ft2_4FGL_J0809.3+4053_daily_bin292.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226710/ft1_4FGL_J0809.3+4053_daily_bin292.fits outfile=/scratch/kocevski/226710/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin292.fits ra=122.33 dec=40.8954 rad=12.0 tmin=315014401.0 tmax=315273601.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.18
user 3.32
sys 0.82

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226710/ft1_filtered_4FGL_J0809.3+4053_daily_bin292.fits" evtable="EVENTS" scfile=/scratch/kocevski/226710/ft2_4FGL_J0809.3+4053_daily_bin292.fits sctable="SC_DATA" outfile=/scratch/kocevski/226710/ltcube_315014401_315273601_4FGL_J0809.3+4053_daily_bin292.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/226710/ft2_4FGL_J0809.3+4053_daily_bin292.fits
.....................!
real 14.17
user 13.11
sys 1.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226710/ft1_filtered_4FGL_J0809.3+4053_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/226710/ft2_4FGL_J0809.3+4053_daily_bin292.fits sctable="SC_DATA" expcube=/scratch/kocevski/226710/ltcube_315014401_315273601_4FGL_J0809.3+4053_daily_bin292.fits outfile=/scratch/kocevski/226710/expmap_315014401_315273601_4FGL_J0809.3+4053_daily_bin292.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/226710/ltcube_315014401_315273601_4FGL_J0809.3+4053_daily_bin292.fits
.....................!
real 192.01
user 185.40
sys 6.19

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/226710/ft1_filtered_4FGL_J0809.3+4053_daily_bin292.fits scfile=/scratch/kocevski/226710/ft2_4FGL_J0809.3+4053_daily_bin292.fits outfile=/scratch/kocevski/226710/cmap_315014401_315273601_4FGL_J0809.3+4053_daily_bin292.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.12
user 0.40
sys 0.70

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226710/ft1_filtered_4FGL_J0809.3+4053_daily_bin292.fits scfile=/scratch/kocevski/226710/ft2_4FGL_J0809.3+4053_daily_bin292.fits outfile=/scratch/kocevski/226710/cmap_HighResolution_315014401_315273601_4FGL_J0809.3+4053_daily_bin292.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.13
user 0.38
sys 0.72

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.423       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1595       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8099       1.0000         .10000E-03   10000.    
     6 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .12551E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10626E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7203       1.0000         .10000E-03   10000.    
    11 'norm      '    4.4678       1.0000         .10000E-03   10000.    
    12 'norm      '    .69186       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.555       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.188       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.972       1.0000         .10000E-03   10000.    
    18 'norm      '    14.964       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    75.372       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0983       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .77464       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=   5851.061     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2538 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8105       -.18619E-06** at limit **
   2  Prefactor     .10000E-03    5.4414        .16288E-05** at limit **
   3  Prefactor     25.403        30.838       -.29260E-04   -.33553E-04
   4  Prefactor     5.1496        14.337       -.88441E-06   -.27043E-03
   5  Prefactor     4.8082        12.194       -.41248E-06   -.82625E-04
   6  norm          .10000E-03    8.2167       -.11395E-05** at limit **
   7  norm          .10000E-03    2.2803        .11304E-05** at limit **
   8  Prefactor     .10000E-03    2.6122        .10377E-06** at limit **
   9  Prefactor     .10000E-03    20.118       -.42374E-05** at limit **
  10  Prefactor     4.7208        4.6971       -.95838E-06    .27778E-03
  11  norm          4.4674        2.3385       -.13979E-07   -.69903E-04
  12  norm          .69180        .51143       -.24132E-06    .23993E-03
  13  Prefactor     15.555        18.984       -.97210E-06    .26388E-04
  14  Prefactor     10.196        15.736        .83463E-05    .77388E-03
  15  Prefactor     .10000E-03    2.4036       -.28130E-05** at limit **
  16  Prefactor     .10000E-03    19.453        .56483E-05** at limit **
  17  Prefactor     10.976        11.270       -.25576E-06    .36137E-04
  18  norm          14.963        7.9482       -.15174E-06   -.29027E-05
  19  Prefactor     .10000E-03    .91759       -.11564E-06** at limit **
  20  Prefactor     75.370        68.040       -.18290E-05    .94473E-05
  21  Prefactor     .10000E-03    3.6624        .18996E-06** at limit **
  22  Normalizat    1.0984        .17945       -.22356E-06    .50777E-03
  23  Prefactor     .77460        .13038        .22381E-05    .18751E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.4029
  Prefactor  = 5.14963
  Prefactor  = 4.80823
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.72081
  norm       = 4.46736
  norm       = 0.691803
  Prefactor  = 15.5549
  Prefactor  = 10.1962
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 10.9757
  norm       = 14.9631
  Prefactor  = 0.0001
  Prefactor  = 75.3702
  Prefactor  = 0.0001
  Normalizat = 1.09838
  Prefactor  = 0.774603
 **********
 **   18 **HESSE 
 **********

 FCN=   5851.061     FROM HESSE     STATUS=OK           374 CALLS     2912 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8196        .12523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.4948        .17421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.403        30.270        .79448E-04   -1.4700    
   4  Prefactor     5.1496        13.420        .17699E-03   -1.5254    
   5  Prefactor     4.8082        12.177        .18344E-03   -1.5269    
   6  norm          .10000E-03    8.4457        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.7313        .20914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.6181        .12072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.7208        4.6787        .15220E-03   -1.5273    
  11  norm          4.4674        2.3384        .82128E-04   -1.5285    
  12  norm          .69180        .50095        .43744E-04   -1.5542    
  13  Prefactor     15.555        18.996        .10155E-03   -1.4919    
  14  Prefactor     10.196        15.184        .12553E-03   -1.5069    
  15  Prefactor     .10000E-03    4.4394        .21640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.976        11.270        .12095E-03   -1.5045    
  18  norm          14.963        7.9449        .10354E-03   -1.4934    
  19  Prefactor     .10000E-03    1.4825        .14237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     75.370        68.140        .46250E-04   -1.3969    
  21  Prefactor     .10000E-03    3.7756        .28520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0984        .20693        .24541E-03   -.89804    
  23  Prefactor     .77460        .15001        .21641E-03   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64359e-09
Minuit parameter uncertainties:
  1  3.96801e-06
  2  1.32351e-05
  3  30.2885
  4  13.4277
  5  12.1836
  6  1.44891e-05
  7  8.17631e-05
  8  1.58309e-07
  9  6.0445e-07
  10  4.67904
  11  2.33844
  12  0.500953
  13  19.0031
  14  15.1902
  15  0.00021036
  16  0.000116753
  17  11.2727
  18  7.94543
  19  6.49235e-07
  20  68.2106
  21  8.79383e-07
  22  0.207087
  23  0.150091
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  4.721e+00  4.679e+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:  7.746e-01  1.501e-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.098e+00  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.60
Ra Dec: 122.330 40.895
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 3.92e-08 +/- 3.88e-08
Energy Flux (Fixed Index): 1.04e-05 +/- 1.03e-05

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

Saving results to:
/scratch/kocevski/226710/likelihoodResults_315014401_315273601_4FGL_J0809.3+4053_daily_bin292.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) = 5850.67792651
delta logL = 0.38304571994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5850.66829115
delta logL = 0.39268107471

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4108       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4873       1.0000          .0000       10.000    
     3 'Normalizat'    1.0602       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79197       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=   5850.668     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      242 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4151        37.237        .65916E-02    .39237E-03
   2  Index         3.4863        3.9824        .13599        .10465E-03
   3  Normalizat    1.0606        .64122E-01    .39918E-01    .16436E-04
   4  Prefactor     .79184        .45000E-01    .43613E-01    .23188E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.41511
  Index      = 3.48626
  Normalizat = 1.06056
  Prefactor  = 0.791844
 **********
 **   18 **HESSE 
 **********

 FCN=   5850.668     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4151        5.3304        .84404E-04   -1.5397    
   2  Index         3.4863        1.5803        .68221E-02   -.30758    
   3  Normalizat    1.0606        .20562        .24896E-03   -.91028    
   4  Prefactor     .79184        .15134        .21425E-03   -1.0003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40353e-08
Minuit parameter uncertainties:
  1  5.33145
  2  1.61075
  3  0.205779
  4  0.151419
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226710': 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) = 5850.66828827
delta logL = 0.392683951774

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  2.415e+00  5.331e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  3.486e+00  1.611e+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:  7.918e-01  1.514e-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.061e+00  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.45
Ra Dec: 122.330 40.895
Photon Index (Free Index): 3.49 +/- 1.61
Photon Flux (Free Index): 6.97e-08 +/- 5.71e-08
Energy Flux (Free Index): 1.16e-05 +/- 8.92e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/226710/cmap_HighResolution_315014401_315273601_4FGL_J0809.3+4053_daily_bin292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.62e-03', comment='SUCCESS', photon_flux='3.92e-08', energy_flux2='1.16e-05', photon_flux_error='3.88e-08', dlogl='3.93e-01', energy_flux='1.04e-05', photon_flux2='6.97e-08', job_status='DONE', time_completed='2021-08-29 07:50:54.237638', photon_index_error2='1.61', photon_index2='3.49', ts='1.60', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='8.92e-06', EG='1.10', time_epoch_completed='1630248654.24', return_code='0', job_id='226710', GAL2='0.79', EG2='1.06', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='5.71e-08', ts2='2.45', photon_index='2.59' WHERE bin_id='292' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:50:54 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin292 122.33 40.8954 315014401 315273601 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 :                                   692.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             244.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            908 sec.

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

