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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin773
RA = 122.33, Dec = 40.8954
tmin = 439689601, tmax = 439948801
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='229572', job_status='RUN', time_executed='2021-08-29 07:48:07.093116', time_epoch_executed='1630248487.09' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229572

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229572/ft1_4FGL_J0809.3+4053_daily_bin773.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229572/ft2_4FGL_J0809.3+4053_daily_bin773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229572/ft1_4FGL_J0809.3+4053_daily_bin773.fits outfile=/scratch/kocevski/229572/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin773.fits ra=122.33 dec=40.8954 rad=12.0 tmin=439689601.0 tmax=439948801.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.40
user 4.12
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/229572/ft2_4FGL_J0809.3+4053_daily_bin773.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/229572/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin773.fits evtable="EVENTS" outfile="/scratch/kocevski/229572/ft1_filtered_4FGL_J0809.3+4053_daily_bin773.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.50
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229572/ft1_filtered_4FGL_J0809.3+4053_daily_bin773.fits" evtable="EVENTS" scfile=/scratch/kocevski/229572/ft2_4FGL_J0809.3+4053_daily_bin773.fits sctable="SC_DATA" outfile=/scratch/kocevski/229572/ltcube_439689601_439948801_4FGL_J0809.3+4053_daily_bin773.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/229572/ft2_4FGL_J0809.3+4053_daily_bin773.fits
.....................!
real 11.36
user 10.98
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229572/ft1_filtered_4FGL_J0809.3+4053_daily_bin773.fits evtable="EVENTS" scfile=/scratch/kocevski/229572/ft2_4FGL_J0809.3+4053_daily_bin773.fits sctable="SC_DATA" expcube=/scratch/kocevski/229572/ltcube_439689601_439948801_4FGL_J0809.3+4053_daily_bin773.fits outfile=/scratch/kocevski/229572/expmap_439689601_439948801_4FGL_J0809.3+4053_daily_bin773.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/229572/ltcube_439689601_439948801_4FGL_J0809.3+4053_daily_bin773.fits
.....................!
real 190.72
user 185.34
sys 4.98

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/229572/ft1_filtered_4FGL_J0809.3+4053_daily_bin773.fits scfile=/scratch/kocevski/229572/ft2_4FGL_J0809.3+4053_daily_bin773.fits outfile=/scratch/kocevski/229572/cmap_439689601_439948801_4FGL_J0809.3+4053_daily_bin773.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.56
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229572/ft1_filtered_4FGL_J0809.3+4053_daily_bin773.fits scfile=/scratch/kocevski/229572/ft2_4FGL_J0809.3+4053_daily_bin773.fits outfile=/scratch/kocevski/229572/cmap_HighResolution_439689601_439948801_4FGL_J0809.3+4053_daily_bin773.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.849       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14253E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32607E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22895E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1119       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .78317       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7194       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1372       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1418       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5975       1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.323       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1926       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83581       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=   7727.112     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2209 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.844        8.2583        .76394E-06   -.17832E-04
   2  Prefactor     .10000E-03    6.8001        .28126E-06** at limit **
   3  Prefactor     .10000E-03    56.229        .13470E-04** at limit **
   4  Prefactor     .10001E-03    5.6595        .46313E-07** at limit **
   5  Prefactor     .10006E-03    6.0393       -.19799E-05** at limit **
   6  norm          .10000E-03    3.5173       -.78339E-07** at limit **
   7  norm          .10000E-03    1.5986       -.23998E-07** at limit **
   8  Prefactor     .10000E-03    3.0310       -.86694E-08** at limit **
   9  Prefactor     .10000E-03    19.800        .40449E-05** at limit **
  10  Prefactor     5.1122        3.8999        .22992E-07   -.18938E-03
  11  norm          .10000E-03    .88726        .55406E-08** at limit **
  12  norm          .78316        .41405       -.28332E-07   -.40315E-04
  13  Prefactor     .10000E-03    59.066       -.15683E-05** at limit **
  14  Prefactor     .10000E-03    7.3196        .18664E-05** at limit **
  15  Prefactor     3.7182        2.8258       -.41932E-07   -.57709E-03
  16  Prefactor     .10000E-03    7.2033       -.23204E-05** at limit **
  17  Prefactor     4.1346        4.7110        .32768E-05    .94172E-04
  18  norm          1.1419        3.6020       -.26728E-05   -.12823E-02
  19  Prefactor     3.5974        2.5699        .13531E-06   -.61459E-04
  20  Prefactor     29.273        29.825       -.39392E-04    .24657E-06
  21  Prefactor     .10000E-03    1.3658        .16032E-06** at limit **
  22  Normalizat    1.1927        .15935        .69631E-06    .41690E-04
  23  Prefactor     .83583        .11750       -.44990E-07    .12581E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.8444
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100007
  Prefactor  = 0.000100056
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.11224
  norm       = 0.0001
  norm       = 0.783158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.71817
  Prefactor  = 0.0001
  Prefactor  = 4.13462
  norm       = 1.14185
  Prefactor  = 3.59736
  Prefactor  = 29.2735
  Prefactor  = 0.0001
  Normalizat = 1.19271
  Prefactor  = 0.83583
 **********
 **   18 **HESSE 
 **********

 FCN=   7727.112     FROM HESSE     STATUS=OK           372 CALLS     2581 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.844        8.2689        .10394E-03   -1.4937    
   2  Prefactor     .10000E-03    6.8842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    57.902        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    29.702        .40021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10006E-03    22.124        .41820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.5283        .16099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.6539        .21629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.0499        .14943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.1122        3.8921        .14420E-03   -1.5256    
  11  norm          .10000E-03    .92980        .16166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .78316        .41671        .39561E-04   -1.5531    
  13  Prefactor     .10000E-03    60.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.3737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.7182        2.8186        .12168E-03   -1.5322    
  16  Prefactor     .10000E-03    7.2105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.1346        4.7136        .19817E-03   -1.5301    
  18  norm          1.1419        3.5794        .28881E-03   -1.5494    
  19  Prefactor     3.5974        2.5703        .11468E-03   -1.5329    
  20  Prefactor     29.273        29.707        .73988E-04   -1.4625    
  21  Prefactor     .10000E-03    1.3845        .10031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1927        .18300        .24780E-03   -.86828    
  23  Prefactor     .83583        .13557        .21807E-03   -.98421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.724e-09
Minuit parameter uncertainties:
  1  8.26949
  2  6.89576e-06
  3  0.000397052
  4  0.000897675
  5  0.00222665
  6  1.87128e-06
  7  2.37295e-06
  8  1.36242e-06
  9  1.3242e-05
  10  3.89228
  11  1.15093e-06
  12  0.416716
  13  4.3608e-05
  14  1.23937e-05
  15  2.81867
  16  9.85753e-06
  17  4.71404
  18  3.58009
  19  2.57041
  20  29.7224
  21  1.76681e-05
  22  0.183096
  23  0.135627
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  5.112e+00  3.892e+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.358e-01  1.356e-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.193e+00  1.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.51
Ra Dec: 122.330 40.895
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 4.24e-08 +/- 3.23e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 8.56e-06

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

Saving results to:
/scratch/kocevski/229572/likelihoodResults_439689601_439948801_4FGL_J0809.3+4053_daily_bin773.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) = 7726.68225369
delta logL = 0.429284918763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7726.66245847
delta logL = 0.449080138028

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0077       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9969       1.0000          .0000       10.000    
     3 'Normalizat'    1.2133       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82631       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=   7726.662     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      212 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0095        9.9780        .40954E-02    .70841E-04
   2  Index         1.9970        .95059        .25807       -.31889E-04
   3  Normalizat    1.2133        .15846        .55633E-01    .98211E-05
   4  Prefactor     .82633        .11818        .44059E-01    .13399E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.00952
  Index      = 1.99699
  Normalizat = 1.21331
  Prefactor  = 0.826332
 **********
 **   18 **HESSE 
 **********

 FCN=   7726.662     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .58E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0095        4.6365        .15837E-03   -1.5218    
   2  Index         1.9970        .56757        .92546E-02   -.64425    
   3  Normalizat    1.2133        .17840        .24601E-03   -.86193    
   4  Prefactor     .82633        .13400        .21915E-03   -.98765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76621e-13
Minuit parameter uncertainties:
  1  4.6368
  2  0.569499
  3  0.178491
  4  0.13405
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229572': 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) = 7726.66245839
delta logL = 0.449080221793

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  6.010e+00  4.637e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  1.997e+00  5.695e-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.263e-01  1.341e-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.213e+00  1.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.42
Ra Dec: 122.330 40.895
Photon Index (Free Index): 2.00 +/- 0.57
Photon Flux (Free Index): 2.60e-08 +/- 2.60e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.93e-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/229572/cmap_HighResolution_439689601_439948801_4FGL_J0809.3+4053_daily_bin773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.96e-03', comment='SUCCESS', photon_flux='4.24e-08', energy_flux2='1.81e-05', photon_flux_error='3.23e-08', dlogl='4.49e-01', energy_flux='1.12e-05', photon_flux2='2.60e-08', job_status='DONE', time_completed='2021-08-29 08:00:46.035394', photon_index_error2='0.57', photon_index2='2.00', ts='3.51', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.93e-05', EG='1.19', time_epoch_completed='1630249246.04', return_code='0', job_id='229572', GAL2='0.83', EG2='1.21', return_code2='0', energy_flux_error='8.56e-06', photon_flux_error2='2.60e-08', ts2='4.42', photon_index='2.59' WHERE bin_id='773' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:00:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 229572: <4FGL_J0809.3+4053_daily_bin773> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin773> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sun Aug 29 07:45:37 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:45:38 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:45:38 2021
Terminated at Sun Aug 29 08:00:46 2021
Results reported at Sun Aug 29 08:00:46 2021

Your job looked like:

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

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

