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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin519
RA = 122.33, Dec = 40.8954
tmin = 373852801, tmax = 374112001
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='228167', job_status='RUN', time_executed='2021-08-29 07:43:51.174571', time_epoch_executed='1630248231.17' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='519'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228167

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228167/ft1_4FGL_J0809.3+4053_daily_bin519.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228167/ft2_4FGL_J0809.3+4053_daily_bin519.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228167/ft1_4FGL_J0809.3+4053_daily_bin519.fits outfile=/scratch/kocevski/228167/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin519.fits ra=122.33 dec=40.8954 rad=12.0 tmin=373852801.0 tmax=374112001.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.86
user 4.20
sys 0.64

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/228167/ft2_4FGL_J0809.3+4053_daily_bin519.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/228167/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin519.fits evtable="EVENTS" outfile="/scratch/kocevski/228167/ft1_filtered_4FGL_J0809.3+4053_daily_bin519.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.93
user 0.32
sys 0.59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228167/ft1_filtered_4FGL_J0809.3+4053_daily_bin519.fits" evtable="EVENTS" scfile=/scratch/kocevski/228167/ft2_4FGL_J0809.3+4053_daily_bin519.fits sctable="SC_DATA" outfile=/scratch/kocevski/228167/ltcube_373852801_374112001_4FGL_J0809.3+4053_daily_bin519.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/228167/ft2_4FGL_J0809.3+4053_daily_bin519.fits
.....................!
real 12.40
user 11.61
sys 0.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228167/ft1_filtered_4FGL_J0809.3+4053_daily_bin519.fits evtable="EVENTS" scfile=/scratch/kocevski/228167/ft2_4FGL_J0809.3+4053_daily_bin519.fits sctable="SC_DATA" expcube=/scratch/kocevski/228167/ltcube_373852801_374112001_4FGL_J0809.3+4053_daily_bin519.fits outfile=/scratch/kocevski/228167/expmap_373852801_374112001_4FGL_J0809.3+4053_daily_bin519.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/228167/ltcube_373852801_374112001_4FGL_J0809.3+4053_daily_bin519.fits
.....................!
real 190.82
user 184.73
sys 5.63

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/228167/ft1_filtered_4FGL_J0809.3+4053_daily_bin519.fits scfile=/scratch/kocevski/228167/ft2_4FGL_J0809.3+4053_daily_bin519.fits outfile=/scratch/kocevski/228167/cmap_373852801_374112001_4FGL_J0809.3+4053_daily_bin519.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.94
user 0.37
sys 0.54

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228167/ft1_filtered_4FGL_J0809.3+4053_daily_bin519.fits scfile=/scratch/kocevski/228167/ft2_4FGL_J0809.3+4053_daily_bin519.fits outfile=/scratch/kocevski/228167/cmap_HighResolution_373852801_374112001_4FGL_J0809.3+4053_daily_bin519.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.96
user 0.37
sys 0.58

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8887       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0798       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17033E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.393       1.0000         .10000E-03   10000.    
     6 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1761       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.2498       1.0000         .10000E-03   10000.    
    12 'norm      '    .36644       1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.427       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.9446       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .31907E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.059       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.3198       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.880       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17888       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .99765       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91512       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=   7414.782     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2639 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8885        5.2016       -.47794E-06   -.38594E-03
   2  Prefactor     .10000E-03    5.3282        .67988E-06** at limit **
   3  Prefactor     6.1096        30.905        .68069E-04   -.11194E-04
   4  Prefactor     .10008E-03    37.722       -.16370E-06** at limit **
   5  Prefactor     23.399        16.614        .11215E-05   -.77860E-04
   6  norm          .10000E-03    4.9343       -.16764E-06** at limit **
   7  norm          .10000E-03    .72684       -.29447E-06** at limit **
   8  Prefactor     .10000E-03    3.6479        .12577E-06** at limit **
   9  Prefactor     5.1770        55.132        .24588E-05   -.32403E-04
  10  Prefactor     .10000E-03    2.9599        .20507E-06** at limit **
  11  norm          2.2499        1.3047       -.35264E-07    .97970E-04
  12  norm          .36645        .35053        .36792E-07   -.49827E-03
  13  Prefactor     31.419        29.203       -.69075E-05   -.24648E-04
  14  Prefactor     7.9744        11.641       -.50957E-06   -.34164E-03
  15  Prefactor     .10003E-03    1.1831        .40399E-06** at limit **
  16  Prefactor     12.061        14.192       -.98176E-08   -.51501E-04
  17  Prefactor     .10000E-03    3.2084       -.10888E-06** at limit **
  18  norm          4.3183        5.5988       -.21592E-06   -.43075E-03
  19  Prefactor     .10000E-03    1.3145        .13534E-06** at limit **
  20  Prefactor     35.881        34.712        .54250E-06    .59526E-05
  21  Prefactor     .18690        1.9174       -.33486E-06   -.88544E-03
  22  Normalizat    .99747        .16226       -.17894E-05   -.27100E-03
  23  Prefactor     .91536        .11900       -.12068E-05   -.25523E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.88847
  Prefactor  = 0.0001
  Prefactor  = 6.10962
  Prefactor  = 0.000100077
  Prefactor  = 23.399
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.17702
  Prefactor  = 0.0001
  norm       = 2.24993
  norm       = 0.366445
  Prefactor  = 31.419
  Prefactor  = 7.97442
  Prefactor  = 0.000100027
  Prefactor  = 12.0608
  Prefactor  = 0.0001
  norm       = 4.31832
  Prefactor  = 0.0001
  Prefactor  = 35.8806
  Prefactor  = 0.186905
  Normalizat = 0.997472
  Prefactor  = 0.915357
 **********
 **   18 **HESSE 
 **********

 FCN=   7414.782     FROM HESSE     STATUS=OK           380 CALLS     3019 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8885        5.2007        .20461E-03   -1.5314    
   2  Prefactor     .10000E-03    5.3461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.1096        30.564        .16283E-03   -1.5214    
   4  Prefactor     .10008E-03    39.237        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.399        16.598        .82818E-04   -1.4740    
   6  norm          .10000E-03    4.9534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .72994        .71689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.6655        .16033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.1770        54.686        .17670E-03   -1.5253    
  10  Prefactor     .10000E-03    3.0821        .28882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.2499        1.3101        .73040E-04   -1.5408    
  12  norm          .36645        .32546        .47498E-03   -1.5587    
  13  Prefactor     31.419        29.267        .71474E-04   -1.4586    
  14  Prefactor     7.9744        10.767        .14225E-03   -1.5143    
  15  Prefactor     .10003E-03    25.755        .16496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.061        14.188        .11536E-03   -1.5013    
  17  Prefactor     .10000E-03    3.2193        .15061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.3183        5.5968        .19382E-03   -1.5292    
  19  Prefactor     .10000E-03    1.3448        .96314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     35.881        34.693        .66905E-04   -1.4509    
  21  Prefactor     .18690        5.1703        .23007E-02   -1.5622    
  22  Normalizat    .99747        .18584        .25550E-03   -.93115    
  23  Prefactor     .91536        .13722        .20268E-03   -.95607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3701e-09
Minuit parameter uncertainties:
  1  5.20133
  2  1.81365e-05
  3  27.3522
  4  0.00347218
  5  16.6017
  6  2.37868e-05
  7  8.80139e-06
  8  8.40266e-06
  9  33.6908
  10  1.72856e-05
  11  1.31014
  12  0.32546
  13  29.2799
  14  10.77
  15  0.00166148
  16  14.1921
  17  7.16709e-06
  18  5.59749
  19  7.29273e-06
  20  34.7123
  21  1.96572
  22  0.185959
  23  0.137275
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.729e-05  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:  9.154e-01  1.373e-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.975e-01  1.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/228167/likelihoodResults_373852801_374112001_4FGL_J0809.3+4053_daily_bin519.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7414.78374626
delta logL = -0.00154932850091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7414.78219453
delta logL = 2.40632834902e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5267       1.0000          .0000       10.000    
     3 'Normalizat'    .99748       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91534       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=   7414.701     FROM MIGRAD    STATUS=CONVERGED    151 CALLS      308 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .95647        3.3945        .90712E-02    .11672E-02
   2  Index         1.5596        .82481        .29929       -.50028E-04
   3  Normalizat    1.0018        .15390        .46135E-01    .78282E-05
   4  Prefactor     .90970        .11861        .45200E-01    .11675E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.95647
  Index      = 1.55964
  Normalizat = 1.00176
  Prefactor  = 0.909696
 **********
 **   18 **HESSE 
 **********

 FCN=   7414.701     FROM HESSE     STATUS=OK            33 CALLS      341 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .95647        2.7671        .23243E-03   -1.5512    
   2  Index         1.5596        .94523        .15422E-01   -.75883    
   3  Normalizat    1.0018        .17683        .25502E-03   -.92972    
   4  Prefactor     .90970        .13605        .20323E-03   -.95803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08696e-09
Minuit parameter uncertainties:
  1  2.76749
  2  0.95626
  3  0.176937
  4  0.136103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228167': 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) = 7414.70131196
delta logL = 0.0808849722098

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  9.565e-01  2.767e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  1.560e+00  9.563e-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:  9.097e-01  1.361e-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.002e+00  1.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.330 40.895

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/228167/cmap_HighResolution_373852801_374112001_4FGL_J0809.3+4053_daily_bin519.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.72e-03', job_status='DONE', photon_flux_upper_limit='6.04e-08', time_completed='2021-08-29 07:57:09.800231', job_id='228167', GAL2='0.91', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630249029.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='8.09e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='519' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:57:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 228167: <4FGL_J0809.3+4053_daily_bin519> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin519 122.33 40.8954 373852801 374112001 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 :                                   803.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            978 sec.

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

