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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin524
RA = 122.33, Dec = 40.8954
tmin = 375148801, tmax = 375408001
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='228175', job_status='RUN', time_executed='2021-08-29 07:42:19.581015', time_epoch_executed='1630248139.58' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228175

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228175/ft1_4FGL_J0809.3+4053_daily_bin524.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228175/ft2_4FGL_J0809.3+4053_daily_bin524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228175/ft1_4FGL_J0809.3+4053_daily_bin524.fits outfile=/scratch/kocevski/228175/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin524.fits ra=122.33 dec=40.8954 rad=12.0 tmin=375148801.0 tmax=375408001.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.88
user 4.33
sys 1.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228175/ft1_filtered_4FGL_J0809.3+4053_daily_bin524.fits" evtable="EVENTS" scfile=/scratch/kocevski/228175/ft2_4FGL_J0809.3+4053_daily_bin524.fits sctable="SC_DATA" outfile=/scratch/kocevski/228175/ltcube_375148801_375408001_4FGL_J0809.3+4053_daily_bin524.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/228175/ft2_4FGL_J0809.3+4053_daily_bin524.fits
.....................!
real 13.01
user 11.24
sys 1.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228175/ft1_filtered_4FGL_J0809.3+4053_daily_bin524.fits evtable="EVENTS" scfile=/scratch/kocevski/228175/ft2_4FGL_J0809.3+4053_daily_bin524.fits sctable="SC_DATA" expcube=/scratch/kocevski/228175/ltcube_375148801_375408001_4FGL_J0809.3+4053_daily_bin524.fits outfile=/scratch/kocevski/228175/expmap_375148801_375408001_4FGL_J0809.3+4053_daily_bin524.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/228175/ltcube_375148801_375408001_4FGL_J0809.3+4053_daily_bin524.fits
.....................!
real 191.43
user 184.88
sys 6.16

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 188 point sources and 0 extended sources

Setting source of interest to:
4FGL J0809.3+4053 @ 122.33 40.8954

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/228175/ft1_filtered_4FGL_J0809.3+4053_daily_bin524.fits scfile=/scratch/kocevski/228175/ft2_4FGL_J0809.3+4053_daily_bin524.fits outfile=/scratch/kocevski/228175/cmap_375148801_375408001_4FGL_J0809.3+4053_daily_bin524.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 1.79
user 0.37
sys 1.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228175/ft1_filtered_4FGL_J0809.3+4053_daily_bin524.fits scfile=/scratch/kocevski/228175/ft2_4FGL_J0809.3+4053_daily_bin524.fits outfile=/scratch/kocevski/228175/cmap_HighResolution_375148801_375408001_4FGL_J0809.3+4053_daily_bin524.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 1.82
user 0.38
sys 1.40

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4666       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6630       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13416E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3990       1.0000         .10000E-03   10000.    
     6 'norm      '    2.4928       1.0000         .10000E-03   10000.    
     7 'norm      '    1.1182       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9429       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13808       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1520       1.0000         .10000E-03   10000.    
    12 'norm      '    .73290       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7184       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0169       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.2342       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .35434E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2115       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89341       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=   7807.009     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2239 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4697        6.6785        .72826E-07   -.21669E-04
   2  Prefactor     2.6643        5.9495       -.29255E-06    .20460E-04
   3  Prefactor     .10000E-03    25.757       -.24411E-06** at limit **
   4  Prefactor     .10000E-03    22.182        .28001E-06** at limit **
   5  Prefactor     4.3974        14.167        .14669E-06    .18665E-04
   6  norm          2.4890        6.2095        .24035E-05   -.13864E-03
   7  norm          1.1186        2.1024        .13242E-07   -.53192E-04
   8  Prefactor     .10000E-03    3.8220        .10075E-06** at limit **
   9  Prefactor     5.9554        22.222       -.22962E-05    .48224E-04
  10  Prefactor     .10007        3.2883       -.13255E-05    .66404E-03
  11  norm          1.1520        .97531       -.10156E-07    .20532E-03
  12  norm          .73338        .45893        .12048E-07    .89742E-03
  13  Prefactor     .10000E-03    20.011        .10627E-06** at limit **
  14  Prefactor     4.7087        13.971        .15618E-05    .13505E-03
  15  Prefactor     1.0190        1.8438       -.99716E-06   -.21476E-03
  16  Prefactor     .10000E-03    8.5482       -.35770E-07** at limit **
  17  Prefactor     .10000E-03    2.4388       -.27663E-07** at limit **
  18  norm          7.2343        5.5430       -.29018E-06    .15639E-03
  19  Prefactor     .10000E-03    1.2174       -.21878E-07** at limit **
  20  Prefactor     .10000E-03    31.582       -.41511E-06** at limit **
  21  Prefactor     .10000E-03    3.3141        .13976E-05** at limit **
  22  Normalizat    1.2115        .16572        .70567E-06    .18380E-03
  23  Prefactor     .89345        .12366       -.22231E-06    .32591E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.46971
  Prefactor  = 2.66425
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.39737
  norm       = 2.48899
  norm       = 1.11859
  Prefactor  = 0.0001
  Prefactor  = 5.95537
  Prefactor  = 0.100067
  norm       = 1.15201
  norm       = 0.733376
  Prefactor  = 0.0001
  Prefactor  = 4.70874
  Prefactor  = 1.01901
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.23426
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Normalizat = 1.21148
  Prefactor  = 0.893454
 **********
 **   18 **HESSE 
 **********

 FCN=   7807.009     FROM HESSE     STATUS=OK           378 CALLS     2617 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4697        6.6957        .15783E-03   -1.5199    
   2  Prefactor     2.6643        5.9313        .24977E-03   -1.5382    
   3  Prefactor     .10000E-03    25.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.880        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3974        14.136        .19202E-03   -1.5289    
   6  norm          2.4890        7.2703        .12944E-02   -1.5392    
   7  norm          1.1186        2.0504        .16891E-03   -1.5496    
   8  Prefactor     .10000E-03    3.8534        .16878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.9554        22.282        .16472E-03   -1.5220    
  10  Prefactor     .10007        46.373        .23344E-02   -1.5645    
  11  norm          1.1520        1.1015        .78237E-03   -1.5493    
  12  norm          .73338        .45855        .43806E-04   -1.5537    
  13  Prefactor     .10000E-03    20.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7087        14.236        .18525E-03   -1.5274    
  15  Prefactor     1.0190        1.8546        .17120E-02   -1.5506    
  16  Prefactor     .10000E-03    8.5587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.4415        .13474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.2343        5.5368        .14913E-03   -1.5170    
  19  Prefactor     .10000E-03    1.2607        .19031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.2892        .25274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2115        .19200        .25023E-03   -.86249    
  23  Prefactor     .89345        .14424        .21796E-03   -.96370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44451e-08
Minuit parameter uncertainties:
  1  6.69646
  2  5.93265
  3  1.03775e-05
  4  0.000111558
  5  14.1466
  6  7.27286
  7  2.05049
  8  2.47395e-05
  9  22.313
  10  4.3095
  11  1.10154
  12  0.458555
  13  4.49983e-05
  14  14.2464
  15  1.85474
  16  1.44281e-05
  17  2.73183e-06
  18  5.53724
  19  2.1614e-06
  20  4.45543e-05
  21  0.00031237
  22  0.192111
  23  0.144301
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.001e-01  4.310e+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.935e-01  1.443e-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.211e+00  1.921e-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: 8.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228175/likelihoodResults_375148801_375408001_4FGL_J0809.3+4053_daily_bin524.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) = 7806.13557023
delta logL = 0.873309806855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7805.74953305
delta logL = 1.25934698849

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31910E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.7742       1.0000          .0000       10.000    
     3 'Normalizat'    1.1267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93594       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=   7805.750     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      305 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30670E-03    .45219E-02    .25143E-03** at limit **
   2  Index         8.7960        7.2505        .23447        .10576E-03
   3  Normalizat    1.1267        .40411E-01    .58308E-01   -.36960E-03
   4  Prefactor     .93587        .30910E-01    .45461E-01   -.49428E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000306703
  Index      = 8.79601
  Normalizat = 1.12673
  Prefactor  = 0.935866
 **********
 **   18 **HESSE 
 **********

 FCN=   7805.750     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      336 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30670E-03    .11970E-01    .13308E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.7960        8.8447        .99320E-02    .86209    
   3  Normalizat    1.1267        .14073        .25786E-03   -.88898    
   4  Prefactor     .93587        .10603        .21351E-03   -.94899    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.11379e-07
Minuit parameter uncertainties:
  1  0.00314597
  2  5.71008
  3  0.140778
  4  0.106053
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228175': 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): 102
logL (Free Index) = 7805.74952282
delta logL = 1.25935722302

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  3.067e-04  3.146e-03  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  8.796e+00  5.710e+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:  9.359e-01  1.061e-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.127e+00  1.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.68
Ra Dec: 122.330 40.895
Photon Index (Free Index): 8.80 +/- 5.71
Photon Flux (Free Index): 6.43e-08 +/- 4.43e-08
Energy Flux (Free Index): 7.33e-06 +/- 5.36e-06

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/228175/cmap_HighResolution_375148801_375408001_4FGL_J0809.3+4053_daily_bin524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.53e-03', comment='SUCCESS', energy_flux2='7.33e-06', dlogl='1.26e+00', photon_flux2='6.43e-08', job_status='DONE', time_completed='2021-08-29 07:55:37.262350', photon_index_error2='5.71', photon_index2='8.80', ts='0.00', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='8.35e-08', energy_flux_error2='5.36e-06', EG='1.21', time_epoch_completed='1630248937.26', return_code='0', job_id='228175', GAL2='0.94', EG2='1.13', return_code2='102', photon_flux_error2='4.43e-08', ts2='2.68', photon_index='2.59' WHERE bin_id='524' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:55:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 228175: <4FGL_J0809.3+4053_daily_bin524> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin524> 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) <bullet0233>, 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:55:38 2021
Results reported at Sun Aug 29 07:55:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin524 122.33 40.8954 375148801 375408001 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 :                                   815.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            886 sec.

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

