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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin142
RA = 122.33, Dec = 40.8954
tmin = 276134401, tmax = 276393601
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='226496', job_status='RUN', time_executed='2021-08-29 07:36:09.716470', time_epoch_executed='1630247769.72' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='142'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226496

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226496/ft1_4FGL_J0809.3+4053_daily_bin142.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226496/ft2_4FGL_J0809.3+4053_daily_bin142.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226496/ft1_4FGL_J0809.3+4053_daily_bin142.fits outfile=/scratch/kocevski/226496/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin142.fits ra=122.33 dec=40.8954 rad=12.0 tmin=276134401.0 tmax=276393601.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.36
user 4.58
sys 1.75

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226496/ft1_filtered_4FGL_J0809.3+4053_daily_bin142.fits" evtable="EVENTS" scfile=/scratch/kocevski/226496/ft2_4FGL_J0809.3+4053_daily_bin142.fits sctable="SC_DATA" outfile=/scratch/kocevski/226496/ltcube_276134401_276393601_4FGL_J0809.3+4053_daily_bin142.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/226496/ft2_4FGL_J0809.3+4053_daily_bin142.fits
.....................!
real 13.50
user 11.43
sys 2.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226496/ft1_filtered_4FGL_J0809.3+4053_daily_bin142.fits evtable="EVENTS" scfile=/scratch/kocevski/226496/ft2_4FGL_J0809.3+4053_daily_bin142.fits sctable="SC_DATA" expcube=/scratch/kocevski/226496/ltcube_276134401_276393601_4FGL_J0809.3+4053_daily_bin142.fits outfile=/scratch/kocevski/226496/expmap_276134401_276393601_4FGL_J0809.3+4053_daily_bin142.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/226496/ltcube_276134401_276393601_4FGL_J0809.3+4053_daily_bin142.fits
.....................!
real 193.34
user 186.76
sys 6.16

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/226496/ft1_filtered_4FGL_J0809.3+4053_daily_bin142.fits scfile=/scratch/kocevski/226496/ft2_4FGL_J0809.3+4053_daily_bin142.fits outfile=/scratch/kocevski/226496/cmap_276134401_276393601_4FGL_J0809.3+4053_daily_bin142.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 2.03
user 0.37
sys 1.63

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226496/ft1_filtered_4FGL_J0809.3+4053_daily_bin142.fits scfile=/scratch/kocevski/226496/ft2_4FGL_J0809.3+4053_daily_bin142.fits outfile=/scratch/kocevski/226496/cmap_HighResolution_276134401_276393601_4FGL_J0809.3+4053_daily_bin142.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 2.06
user 0.37
sys 1.67

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1737       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .49318E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.8226       1.0000         .10000E-03   10000.    
     7 'norm      '    5.1925       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7250       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2898       1.0000         .10000E-03   10000.    
    12 'norm      '    2.0960       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10546E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1933       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.216       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.254       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .99797       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88072       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=   6521.119     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2187 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1705        8.3262        .58406E-07   -.37862E-04
   2  Prefactor     .10000E-03    4.6352        .27340E-08** at limit **
   3  Prefactor     .10000E-03    115.15       -.14772E-04** at limit **
   4  Prefactor     .10000E-03    9.3664       -.35447E-06** at limit **
   5  Prefactor     .10000E-03    7.3399        .77152E-07** at limit **
   6  norm          2.8174        14.699        .30649E-05    .17212E-04
   7  norm          5.1911        3.0675        .10246E-06   -.58065E-03
   8  Prefactor     .10000E-03    1.9808       -.14943E-07** at limit **
   9  Prefactor     .10000E-03    10.056        .41460E-06** at limit **
  10  Prefactor     5.7263        2.8013        .33294E-06   -.23807E-02
  11  norm          1.2898        1.3789        .20968E-07   -.25664E-04
  12  norm          2.0963        .72206       -.30224E-07   -.33628E-04
  13  Prefactor     .10000E-03    10.408        .16869E-07** at limit **
  14  Prefactor     .10000E-03    19.141       -.11887E-06** at limit **
  15  Prefactor     2.1949        2.4186       -.37645E-07   -.15197E-03
  16  Prefactor     23.224        23.494        .22918E-05    .11077E-03
  17  Prefactor     .10000E-03    4.3211       -.14930E-07** at limit **
  18  norm          13.255        6.8180        .72752E-07   -.28248E-03
  19  Prefactor     .10000E-03    1.0693        .61684E-08** at limit **
  20  Prefactor     .10000E-03    75.141        .20486E-05** at limit **
  21  Prefactor     .10000E-03    1.6515        .40328E-08** at limit **
  22  Normalizat    .99776        .18003       -.61137E-06    .67696E-04
  23  Prefactor     .88080        .13251       -.92942E-07    .50970E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.17045
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.8174
  norm       = 5.19106
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.7263
  norm       = 1.28975
  norm       = 2.09627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.19492
  Prefactor  = 23.2244
  Prefactor  = 0.0001
  norm       = 13.2548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.997763
  Prefactor  = 0.880797
 **********
 **   18 **HESSE 
 **********

 FCN=   6521.119     FROM HESSE     STATUS=OK           366 CALLS     2553 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1705        8.3406        .17674E-03   -1.5253    
   2  Prefactor     .10000E-03    4.6470        .16979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    117.57        .42328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.4162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.3686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.8174        14.660        .24208E-03   -1.5372    
   7  norm          5.1911        3.1130        .53009E-03   -1.5252    
   8  Prefactor     .10000E-03    1.9857        .11099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.7263        4.7405        .75026E-03   -1.5229    
  11  norm          1.2898        1.3675        .95343E-04   -1.5481    
  12  norm          2.0963        .72837        .38224E-04   -1.5418    
  13  Prefactor     .10000E-03    10.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.583        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.1949        2.4018        .12599E-03   -1.5412    
  16  Prefactor     23.224        23.638        .83133E-04   -1.4744    
  17  Prefactor     .10000E-03    4.3327        .16390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.255        6.8630        .55012E-03   -1.4980    
  19  Prefactor     .10000E-03    1.0863        .81501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    75.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.6660        .10132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .99776        .20793        .26752E-03   -.93105    
  23  Prefactor     .88080        .15326        .21113E-03   -.96815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42269e-09
Minuit parameter uncertainties:
  1  8.3425
  2  1.69205e-07
  3  0.0012043
  4  1.1576e-06
  5  5.48186e-06
  6  12.8584
  7  3.11315
  8  2.37637e-07
  9  1.70131e-05
  10  4.74085
  11  1.36752
  12  0.728373
  13  7.05567e-07
  14  3.21672e-05
  15  2.40191
  16  23.6478
  17  9.56065e-06
  18  6.86336
  19  3.26586e-07
  20  0.000223907
  21  3.2148e-07
  22  0.208095
  23  0.153337
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  5.726e+00  4.741e+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.808e-01  1.533e-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:  9.978e-01  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.13
Ra Dec: 122.330 40.895
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 4.75e-08 +/- 3.93e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.04e-05

TS (Fixed Index): 2.13
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/226496/likelihoodResults_276134401_276393601_4FGL_J0809.3+4053_daily_bin142.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) = 6521.11170508
delta logL = 0.00701070836294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6521.10682427
delta logL = 0.0118915258236

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1754       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7055       1.0000          .0000       10.000    
     3 'Normalizat'    .99449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88269       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=   6521.107     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1706        112.71        .44177E-02    .46012E-03
   2  Index         2.7076        6.3127        .16830        .11724E-03
   3  Normalizat    .99458        .71081E-01    .46098E-01   -.19029E-04
   4  Prefactor     .88265        .52005E-01    .44784E-01    .76575E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.17063
  Index      = 2.70759
  Normalizat = 0.994584
  Prefactor  = 0.882653
 **********
 **   18 **HESSE 
 **********

 FCN=   6521.107     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1706        6.1097        .14122E-03   -1.5253    
   2  Index         2.7076        .84730        .84607E-02   -.47629    
   3  Normalizat    .99458        .20438        .26787E-03   -.93212    
   4  Prefactor     .88265        .15222        .21094E-03   -.96750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25496e-11
Minuit parameter uncertainties:
  1  6.11047
  2  0.85252
  3  0.204537
  4  0.152292
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226496': 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) = 6521.10681945
delta logL = 0.0118963441782

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  5.171e+00  6.110e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.708e+00  8.525e-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.827e-01  1.523e-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:  9.946e-01  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 122.330 40.895
Photon Index (Free Index): 2.71 +/- 0.85
Photon Flux (Free Index): 5.00e-08 +/- 4.18e-08
Energy Flux (Free Index): 1.20e-05 +/- 1.08e-05

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/226496/cmap_HighResolution_276134401_276393601_4FGL_J0809.3+4053_daily_bin142.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='4.75e-08', energy_flux2='1.20e-05', photon_flux_error='3.93e-08', dlogl='1.19e-02', energy_flux='1.26e-05', photon_flux2='5.00e-08', job_status='DONE', time_completed='2021-08-29 07:47:59.556281', photon_index_error2='0.85', photon_index2='2.71', ts='2.13', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.08e-05', EG='1.00', time_epoch_completed='1630248479.56', return_code='0', job_id='226496', GAL2='0.88', EG2='0.99', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='4.18e-08', ts2='2.17', photon_index='2.59' WHERE bin_id='142' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:47:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 226496: <4FGL_J0809.3+4053_daily_bin142> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin142 122.33 40.8954 276134401 276393601 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 :                                   729.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            749 sec.

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

