/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 68 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 = 7390
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.3+4053_daily_bin199
RA = 122.33, Dec = 40.8954
tmin = 290908801, tmax = 291168001
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='226576', job_status='RUN', time_executed='2021-08-29 07:37:31.080830', time_epoch_executed='1630247851.08' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226576

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226576/ft1_4FGL_J0809.3+4053_daily_bin199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226576/ft2_4FGL_J0809.3+4053_daily_bin199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226576/ft1_4FGL_J0809.3+4053_daily_bin199.fits outfile=/scratch/kocevski/226576/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin199.fits ra=122.33 dec=40.8954 rad=12.0 tmin=290908801.0 tmax=291168001.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 5.30
user 3.24
sys 2.03

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226576/ft1_filtered_4FGL_J0809.3+4053_daily_bin199.fits" evtable="EVENTS" scfile=/scratch/kocevski/226576/ft2_4FGL_J0809.3+4053_daily_bin199.fits sctable="SC_DATA" outfile=/scratch/kocevski/226576/ltcube_290908801_291168001_4FGL_J0809.3+4053_daily_bin199.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/226576/ft2_4FGL_J0809.3+4053_daily_bin199.fits
.....................!
real 14.27
user 11.56
sys 2.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226576/ft1_filtered_4FGL_J0809.3+4053_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/226576/ft2_4FGL_J0809.3+4053_daily_bin199.fits sctable="SC_DATA" expcube=/scratch/kocevski/226576/ltcube_290908801_291168001_4FGL_J0809.3+4053_daily_bin199.fits outfile=/scratch/kocevski/226576/expmap_290908801_291168001_4FGL_J0809.3+4053_daily_bin199.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/226576/ltcube_290908801_291168001_4FGL_J0809.3+4053_daily_bin199.fits
.....................!
real 193.27
user 185.79
sys 7.10

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/226576/ft1_filtered_4FGL_J0809.3+4053_daily_bin199.fits scfile=/scratch/kocevski/226576/ft2_4FGL_J0809.3+4053_daily_bin199.fits outfile=/scratch/kocevski/226576/cmap_290908801_291168001_4FGL_J0809.3+4053_daily_bin199.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.40
user 0.39
sys 1.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226576/ft1_filtered_4FGL_J0809.3+4053_daily_bin199.fits scfile=/scratch/kocevski/226576/ft2_4FGL_J0809.3+4053_daily_bin199.fits outfile=/scratch/kocevski/226576/cmap_HighResolution_290908801_291168001_4FGL_J0809.3+4053_daily_bin199.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.37
user 0.40
sys 1.96

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1023       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.077       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15211E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3284       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9255       1.0000         .10000E-03   10000.    
    12 'norm      '    .49251       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2346       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    37.514       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14441E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.7167       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2702       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86377       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7704.134     FROM MIGRAD    STATUS=CONVERGED    932 CALLS     2961 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1019        6.2491        .14085E-03   -.77081E-04
   2  Prefactor     .10000E-03    4.8718        .18142E-02** at limit **
   3  Prefactor     .10000E-03    21.521        .18142E-02** at limit **
   4  Prefactor     16.075        10.702        .99889E-04   -.19132E-03
   5  Prefactor     .10000E-03    8.9281        .18142E-02** at limit **
   6  norm          .10000E-03    2.6342        .13900E-02** at limit **
   7  norm          .10000E-03    2.1052        .24381E-03** at limit **
   8  Prefactor     .10000E-03    3.1173        .15104E-02** at limit **
   9  Prefactor     .10003E-03    35.979        .14017    ** at limit **
  10  Prefactor     1.3259        3.4147        .24819E-03   -.36187E-05
  11  norm          1.9254        1.5935        .97868E-04   -.81431E-04
  12  norm          .49373        .54507        .66105E-03   -.30617E-02
  13  Prefactor     .10000E-03    20.676        .18142E-02** at limit **
  14  Prefactor     1.2347        20.554        .40424E-03   -.18533E-04
  15  Prefactor     .10000E-03    1.5453        .20874E-03** at limit **
  16  Prefactor     37.465        31.753        .65436E-04   -.22405E-03
  17  Prefactor     .10001E-03    22.874        .36285E-03** at limit **
  18  norm          8.7181        5.7260        .13577E-03   -.14445E-03
  19  Prefactor     .10000E-03    5.1083        .18693E-02** at limit **
  20  Prefactor     .10000E-03    14.386        .18142E-02** at limit **
  21  Prefactor     .10000E-03    1.0940        .89511E-03** at limit **
  22  Normalizat    1.2700        .19699        .25007E-03   -.49932E-03
  23  Prefactor     .86388        .14453        .22206E-03    .33891E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.10188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0751
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  Prefactor  = 1.3259
  norm       = 1.92542
  norm       = 0.493732
  Prefactor  = 0.0001
  Prefactor  = 1.23472
  Prefactor  = 0.0001
  Prefactor  = 37.4653
  Prefactor  = 0.000100008
  norm       = 8.71814
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.27004
  Prefactor  = 0.863883
 **********
 **   18 **HESSE 
 **********

 FCN=   7704.134     FROM HESSE     STATUS=OK           358 CALLS     3319 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1019        6.2491        .56341E-05   -1.5139    
   2  Prefactor     .10000E-03    4.8724        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.526        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.075        10.702        .39956E-05   -1.4906    
   5  Prefactor     .10000E-03    8.9299        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.6343        .27800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.1053        .48763E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.1175        .30208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10003E-03    37.036        .13747       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3259        3.4130        .99275E-05   -1.5478    
  11  norm          1.9254        1.5935        .39147E-05   -1.5430    
  12  norm          .49373        .54408        .26442E-04   -1.5567    
  13  Prefactor     .10000E-03    20.681        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2347        20.492        .16170E-04   -1.5486    
  15  Prefactor     .10000E-03    1.5453        .41747E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     37.465        31.735        .13087E-04   -1.4483    
  17  Prefactor     .10001E-03    22.875        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.7181        5.7258        .54307E-05   -1.5117    
  19  Prefactor     .10000E-03    5.1483        .37385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.386        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.0941        .17902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2700        .19713        .50013E-04   -.84465    
  23  Prefactor     .86388        .14465        .88826E-05   -.97415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42705e-09
Minuit parameter uncertainties:
  1  6.24956
  2  2.51509e-05
  3  7.62261e-05
  4  10.7032
  5  4.00478e-05
  6  7.93826e-06
  7  1.65298e-05
  8  1.057e-05
  9  0.00225238
  10  3.41351
  11  1.59358
  12  0.544089
  13  1.56294e-05
  14  10.0638
  15  1.12058e-05
  16  31.7495
  17  0.000834775
  18  5.72613
  19  0.000202711
  20  1.35353e-05
  21  1.76786e-07
  22  0.19725
  23  0.144716
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.326e+00  3.414e+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.639e-01  1.447e-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.270e+00  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/226576/likelihoodResults_290908801_291168001_4FGL_J0809.3+4053_daily_bin199.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) = 7703.93837054
delta logL = 0.195796620968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7703.93787653
delta logL = 0.196290629267

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8846       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0250       1.0000          .0000       10.000    
     3 'Normalizat'    1.2753       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85782       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7703.938     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      317 TOTAL
                     EDM=   .95E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8845        4.5389        .22686E-03    .24906E-04
   2  Index         2.0249        .72466        .12585E-01   -.31716E-05
   3  Normalizat    1.2754        .18780        .24960E-03   -.50558E-05
   4  Prefactor     .85777        .14156        .22270E-03   -.95973E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.88448
  Index      = 2.02492
  Normalizat = 1.27537
  Prefactor  = 0.857765
 **********
 **   18 **HESSE 
 **********

 FCN=   7703.938     FROM HESSE     STATUS=OK            25 CALLS      342 TOTAL
                     EDM=   .62E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8845        4.5301        .90744E-05   -1.5368    
   2  Index         2.0249        .72357        .50341E-03   -.63729    
   3  Normalizat    1.2754        .18796        .99839E-05   -.84305    
   4  Prefactor     .85777        .14167        .89080E-05   -.97633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22742e-13
Minuit parameter uncertainties:
  1  4.53066
  2  0.727542
  3  0.188058
  4  0.14173
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226576': 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) = 7703.93787646
delta logL = 0.196290704814

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  2.884e+00  4.531e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.025e+00  7.275e-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.578e-01  1.417e-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.275e+00  1.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/226576/cmap_HighResolution_290908801_291168001_4FGL_J0809.3+4053_daily_bin199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.60e-03', job_status='DONE', photon_flux_upper_limit='8.44e-08', time_completed='2021-08-29 07:51:57.238061', job_id='226576', GAL2='0.86', fit_tolerance='1e-08', EG2='1.28', EG='1.27', time_epoch_completed='1630248717.24', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.96e-01', ts2='0.58', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='199' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:51:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 226576: <4FGL_J0809.3+4053_daily_bin199> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin199 122.33 40.8954 290908801 291168001 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 :                                   892.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.58 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.

