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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin504
RA = 122.33, Dec = 40.8954
tmin = 369964801, tmax = 370224001
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='228145', job_status='RUN', time_executed='2021-08-29 07:42:17.188533', time_epoch_executed='1630248137.19' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228145

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228145/ft1_4FGL_J0809.3+4053_daily_bin504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228145/ft2_4FGL_J0809.3+4053_daily_bin504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228145/ft1_4FGL_J0809.3+4053_daily_bin504.fits outfile=/scratch/kocevski/228145/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin504.fits ra=122.33 dec=40.8954 rad=12.0 tmin=369964801.0 tmax=370224001.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 13.22
user 7.58
sys 5.58

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/228145/ft2_4FGL_J0809.3+4053_daily_bin504.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/228145/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin504.fits evtable="EVENTS" outfile="/scratch/kocevski/228145/ft1_filtered_4FGL_J0809.3+4053_daily_bin504.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 4.42
user 0.34
sys 4.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228145/ft1_filtered_4FGL_J0809.3+4053_daily_bin504.fits" evtable="EVENTS" scfile=/scratch/kocevski/228145/ft2_4FGL_J0809.3+4053_daily_bin504.fits sctable="SC_DATA" outfile=/scratch/kocevski/228145/ltcube_369964801_370224001_4FGL_J0809.3+4053_daily_bin504.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/228145/ft2_4FGL_J0809.3+4053_daily_bin504.fits
.....................!
real 16.06
user 11.28
sys 4.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228145/ft1_filtered_4FGL_J0809.3+4053_daily_bin504.fits evtable="EVENTS" scfile=/scratch/kocevski/228145/ft2_4FGL_J0809.3+4053_daily_bin504.fits sctable="SC_DATA" expcube=/scratch/kocevski/228145/ltcube_369964801_370224001_4FGL_J0809.3+4053_daily_bin504.fits outfile=/scratch/kocevski/228145/expmap_369964801_370224001_4FGL_J0809.3+4053_daily_bin504.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/228145/ltcube_369964801_370224001_4FGL_J0809.3+4053_daily_bin504.fits
.....................!
real 196.87
user 185.69
sys 10.49

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/228145/ft1_filtered_4FGL_J0809.3+4053_daily_bin504.fits scfile=/scratch/kocevski/228145/ft2_4FGL_J0809.3+4053_daily_bin504.fits outfile=/scratch/kocevski/228145/cmap_369964801_370224001_4FGL_J0809.3+4053_daily_bin504.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 4.79
user 0.38
sys 4.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228145/ft1_filtered_4FGL_J0809.3+4053_daily_bin504.fits scfile=/scratch/kocevski/228145/ft2_4FGL_J0809.3+4053_daily_bin504.fits outfile=/scratch/kocevski/228145/cmap_HighResolution_369964801_370224001_4FGL_J0809.3+4053_daily_bin504.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 4.87
user 0.37
sys 4.45

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0101       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .49613E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.385       1.0000         .10000E-03   10000.    
     7 'norm      '    .19651       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.671       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12069E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3840       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0480       1.0000         .10000E-03   10000.    
    12 'norm      '    .12629E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2681       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .74619       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .32949       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.165       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15162E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .74389E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .98192       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0547       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=   7744.216     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     2707 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0075        5.8483        .44914E-02    .37478E-03
   2  Prefactor     .10000E-03    5.5468        .78860E-01** at limit **
   3  Prefactor     .10000E-03    16.242        .90712E-02** at limit **
   4  Prefactor     .10002E-03    12.772        .90712E-02** at limit **
   5  Prefactor     .10000E-03    12.474        .90712E-02** at limit **
   6  norm          10.384        14.267        .31083E-02    .42402E-03
   7  norm          .20108        1.3358        .58210E-01    .67958E-03
   8  Prefactor     11.671        7.7616        .29315E-02    .28537E-02
   9  Prefactor     .10000E-03    50.612        .90712E-02** at limit **
  10  Prefactor     1.3849        3.7376        .92443E-02    .11625E-02
  11  norm          1.0480        .87053        .18302E-01   -.35481E-03
  12  norm          .10000E-03    .26931        .24931E-01** at limit **
  13  Prefactor     4.2408        32.739        .48756E-02   -.39687E-04
  14  Prefactor     .76893        16.384        .91135E-01    .46706E-03
  15  Prefactor     .32644        2.6413        .36153E-01    .14279E-02
  16  Prefactor     .10001E-03    12.858        .90712E-02** at limit **
  17  Prefactor     .10000E-03    8.1225        .90712E-02** at limit **
  18  norm          13.162        6.4473        .27599E-02   -.22289E-04
  19  Prefactor     .10000E-03    .78960        .90712E-02** at limit **
  20  Prefactor     .10002E-03    42.099        .16919    ** at limit **
  21  Prefactor     .10000E-03    1.9238        .71388E-01** at limit **
  22  Normalizat    .98195        .16872        .45940E-01    .60849E-04
  23  Prefactor     1.0547        .12315        .39643E-01    .32472E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.00754
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  norm       = 10.3838
  norm       = 0.201082
  Prefactor  = 11.6708
  Prefactor  = 0.0001
  Prefactor  = 1.38494
  norm       = 1.04796
  norm       = 0.0001
  Prefactor  = 4.24077
  Prefactor  = 0.768934
  Prefactor  = 0.326444
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 13.1616
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Normalizat = 0.981946
  Prefactor  = 1.05475
 **********
 **   18 **HESSE 
 **********

 FCN=   7744.216     FROM HESSE     STATUS=OK           398 CALLS     3105 TOTAL
                     EDM=   .81E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0075        5.8489        .17966E-03   -1.5260    
   2  Prefactor     .10000E-03    44.665        .40038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    12.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.384        14.261        .12433E-03   -1.5063    
   7  norm          .20108        7.0368        .19300E-02   -1.5618    
   8  Prefactor     11.671        7.7426        .11726E-03   -1.5025    
   9  Prefactor     .10000E-03    50.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3849        3.6349        .25447E-03   -1.5473    
  11  norm          1.0480        1.0113        .72969E-03   -1.5503    
  12  norm          .10000E-03    3.1273        .81744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.2408        32.695        .19502E-03   -1.5296    
  14  Prefactor     .76893        71.581        .48847E-02   -1.5533    
  15  Prefactor     .32644        4.3149        .21173E-02   -1.5594    
  16  Prefactor     .10001E-03    12.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.2217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.162        6.4511        .11040E-03   -1.4982    
  19  Prefactor     .10000E-03    .79614        .76343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    39.040        .17825       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.976        .23246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .98195        .18624        .27344E-03   -.93638    
  23  Prefactor     1.0547        .13858        .20360E-03   -.90926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.091e-08
Minuit parameter uncertainties:
  1  5.84956
  2  0.000486731
  3  1.27651e-05
  4  0.000966083
  5  0.000154221
  6  14.2657
  7  2.37876
  8  7.74327
  9  0.000142807
  10  3.6355
  11  1.01129
  12  7.56462e-07
  13  23.5677
  14  14.8553
  15  2.37352
  16  0.000810846
  17  2.52341e-06
  18  6.45141
  19  1.77145e-07
  20  0.00160061
  21  0.00020427
  22  0.186362
  23  0.13863
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.385e+00  3.635e+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:  1.055e+00  1.386e-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.819e-01  1.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 8.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228145/likelihoodResults_369964801_370224001_4FGL_J0809.3+4053_daily_bin504.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) = 7744.20516772
delta logL = 0.0105280636444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7744.20170696
delta logL = 0.0139888199838

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7270       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3725       1.0000          .0000       10.000    
     3 'Normalizat'    .98350       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0535       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7744.202     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      262 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7303        4.5063        .13329E-02   -.29823E-03
   2  Index         2.3722        1.2360        .12734E-01    .57673E-05
   3  Normalizat    .98338        .17730        .27326E-03    .11815E-04
   4  Prefactor     1.0536        .13682        .20369E-03   -.95441E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.73027
  Index      = 2.37224
  Normalizat = 0.983379
  Prefactor  = 1.05358
 **********
 **   18 **HESSE 
 **********

 FCN=   7744.202     FROM HESSE     STATUS=OK            27 CALLS      289 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7303        4.3236        .53314E-04   -1.5445    
   2  Index         2.3722        1.1883        .50936E-03   -.55336    
   3  Normalizat    .98338        .17745        .10930E-04   -.93589    
   4  Prefactor     1.0536        .13688        .81476E-05   -.90964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32409e-10
Minuit parameter uncertainties:
  1  4.32441
  2  1.20435
  3  0.177552
  4  0.136928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228145': 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) = 7744.20170647
delta logL = 0.0139893122978

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.730e+00  4.324e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.372e+00  1.204e+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:  1.054e+00  1.369e-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.834e-01  1.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
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/228145/cmap_HighResolution_369964801_370224001_4FGL_J0809.3+4053_daily_bin504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.68e-03', job_status='DONE', photon_flux_upper_limit='8.54e-08', time_completed='2021-08-29 07:57:11.071903', job_id='228145', GAL2='1.05', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630249031.07', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.40e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='504' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:57:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 228145: <4FGL_J0809.3+4053_daily_bin504> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin504 122.33 40.8954 369964801 370224001 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 :                                   957.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            982 sec.

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

