/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 167 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 = 7667
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.3+4053_daily_bin284
RA = 122.33, Dec = 40.8954
tmin = 312940801, tmax = 313200001
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='226698', job_status='RUN', time_executed='2021-08-29 07:38:59.160813', time_epoch_executed='1630247939.16' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226698

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226698/ft1_4FGL_J0809.3+4053_daily_bin284.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226698/ft2_4FGL_J0809.3+4053_daily_bin284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226698/ft1_4FGL_J0809.3+4053_daily_bin284.fits outfile=/scratch/kocevski/226698/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin284.fits ra=122.33 dec=40.8954 rad=12.0 tmin=312940801.0 tmax=313200001.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.26
user 3.23
sys 0.99

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226698/ft1_filtered_4FGL_J0809.3+4053_daily_bin284.fits" evtable="EVENTS" scfile=/scratch/kocevski/226698/ft2_4FGL_J0809.3+4053_daily_bin284.fits sctable="SC_DATA" outfile=/scratch/kocevski/226698/ltcube_312940801_313200001_4FGL_J0809.3+4053_daily_bin284.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/226698/ft2_4FGL_J0809.3+4053_daily_bin284.fits
.....................!
real 12.65
user 11.46
sys 1.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226698/ft1_filtered_4FGL_J0809.3+4053_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/226698/ft2_4FGL_J0809.3+4053_daily_bin284.fits sctable="SC_DATA" expcube=/scratch/kocevski/226698/ltcube_312940801_313200001_4FGL_J0809.3+4053_daily_bin284.fits outfile=/scratch/kocevski/226698/expmap_312940801_313200001_4FGL_J0809.3+4053_daily_bin284.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/226698/ltcube_312940801_313200001_4FGL_J0809.3+4053_daily_bin284.fits
.....................!
real 190.99
user 184.99
sys 5.60

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/226698/ft1_filtered_4FGL_J0809.3+4053_daily_bin284.fits scfile=/scratch/kocevski/226698/ft2_4FGL_J0809.3+4053_daily_bin284.fits outfile=/scratch/kocevski/226698/cmap_312940801_313200001_4FGL_J0809.3+4053_daily_bin284.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.32
user 0.37
sys 0.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226698/ft1_filtered_4FGL_J0809.3+4053_daily_bin284.fits scfile=/scratch/kocevski/226698/ft2_4FGL_J0809.3+4053_daily_bin284.fits outfile=/scratch/kocevski/226698/cmap_HighResolution_312940801_313200001_4FGL_J0809.3+4053_daily_bin284.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.31
user 0.38
sys 0.91

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.175       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8463       1.0000         .10000E-03   10000.    
     6 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .15840       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.981       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .80920       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0457       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27301E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1764       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .76150E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.2205       1.0000         .10000E-03   10000.    
    18 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0372       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1822       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .85818       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=   6648.596     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2682 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7591       -.69807E-08** at limit **
   2  Prefactor     .10000E-03    23.368        .35314E-05** at limit **
   3  Prefactor     10.173        27.367       -.73626E-06   -.38531E-06
   4  Prefactor     .10000E-03    7.7318       -.20104E-06** at limit **
   5  Prefactor     6.8582        15.762        .42315E-05    .57462E-05
   6  norm          .10004E-03    7.2902       -.30232E-06** at limit **
   7  norm          .15891        1.7638       -.17673E-06   -.40919E-03
   8  Prefactor     .10000E-03    3.3957        .53435E-06** at limit **
   9  Prefactor     49.934        47.011       -.30928E-04    .32413E-04
  10  Prefactor     .10000E-03    5.6821        .40877E-06** at limit **
  11  norm          .80940        1.4803       -.18404E-06   -.95574E-03
  12  norm          1.0456        .56038        .27033E-06    .15269E-02
  13  Prefactor     .10006E-03    22.335       -.10387E-05** at limit **
  14  Prefactor     8.1815        9.8045        .74254E-07    .33222E-03
  15  Prefactor     .10188E-03    1.2828       -.92216E-06** at limit **
  16  Prefactor     .10000E-03    8.8766        .23239E-06** at limit **
  17  Prefactor     9.2206        8.3867        .54014E-06    .95491E-04
  18  norm          .10000E-03    6.8288        .49666E-07** at limit **
  19  Prefactor     1.0371        2.2347       -.73692E-06   -.14773E-02
  20  Prefactor     .10000E-03    17.540       -.98753E-06** at limit **
  21  Prefactor     .10000E-03    1.4697       -.19384E-07** at limit **
  22  Normalizat    1.1821        .17925        .42613E-05    .15632E-03
  23  Prefactor     .85822        .12711       -.54974E-06    .51776E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1733
  Prefactor  = 0.0001
  Prefactor  = 6.85817
  norm       = 0.000100037
  norm       = 0.15891
  Prefactor  = 0.000100001
  Prefactor  = 49.9338
  Prefactor  = 0.0001
  norm       = 0.809397
  norm       = 1.04564
  Prefactor  = 0.000100062
  Prefactor  = 8.18152
  Prefactor  = 0.000101882
  Prefactor  = 0.0001
  Prefactor  = 9.22061
  norm       = 0.0001
  Prefactor  = 1.03713
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18209
  Prefactor  = 0.858223
 **********
 **   18 **HESSE 
 **********

 FCN=   6648.596     FROM HESSE     STATUS=OK           380 CALLS     3062 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7608        .10561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.173        27.337        .12562E-03   -1.5070    
   4  Prefactor     .10000E-03    7.7820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.8582        15.708        .15334E-03   -1.5184    
   6  norm          .10004E-03    47.477        .42342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .15891        4.8193        .20779E-02   -1.5628    
   8  Prefactor     .10000E-03    3.4104        .14683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     49.934        46.675        .56724E-04   -1.4294    
  10  Prefactor     .10000E-03    5.8847        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .80940        1.2019        .13030E-02   -1.5528    
  12  norm          1.0456        .55748        .42537E-04   -1.5503    
  13  Prefactor     .10006E-03    172.87        .74212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.1815        9.5476        .14021E-03   -1.5136    
  15  Prefactor     .10188E-03    40.110        .17079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.8815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.2206        8.3893        .13199E-03   -1.5101    
  18  norm          .10000E-03    7.0592        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.0371        1.9570        .17278E-02   -1.5504    
  20  Prefactor     .10000E-03    17.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.5172        .19305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1821        .20360        .25410E-03   -.87158    
  23  Prefactor     .85822        .14730        .21519E-03   -.97617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56186e-08
Minuit parameter uncertainties:
  1  1.63713e-06
  2  0.000195841
  3  27.3705
  4  2.36185e-05
  5  15.7177
  6  0.00265309
  7  1.74984
  8  0.000100047
  9  46.7088
  10  0.000104309
  11  1.20189
  12  0.557479
  13  0.00659216
  14  9.54934
  15  0.0173876
  16  5.97132e-06
  17  8.39036
  18  1.99287e-05
  19  1.95713
  20  8.771e-06
  21  4.12703e-06
  22  0.20374
  23  0.147366
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.043e-04  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.582e-01  1.474e-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.182e+00  2.037e-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: 9.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/226698/likelihoodResults_312940801_313200001_4FGL_J0809.3+4053_daily_bin284.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) = 6648.59675865
delta logL = -0.000811299204543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6648.59594735
delta logL = -7.27504811948e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6053       1.0000          .0000       10.000    
     3 'Normalizat'    1.1821       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85824       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6648.596     FROM MIGRAD    STATUS=FAILED        90 CALLS      247 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10487E-03    57.744        .36285E-02** at limit **
   2  Index         2.7587        5.2854        .50000       -.23478E-04
   3  Normalizat    1.1821        .13731E-01    .25410E-03    .22254E-03
   4  Prefactor     .85822        .10135E-01    .21519E-03    .17947E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6648.596     FROM SIMPLEX   STATUS=PROGRESS     122 CALLS      369 TOTAL
                     EDM=   .66E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    57.744        .34006E-03** at limit **
   2  Index         2.7576        5.2854        .35840E-03   -.23478E-04
   3  Normalizat    1.1821        .13731E-01    .21921E-05    .22254E-03
   4  Prefactor     .85822        .10135E-01    .16696E-05    .17947E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6648.596     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      440 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .30313E-01    .47288E-01** at limit **
   2  Index         3.6690        6.8515        .50000        .31664E-06
   3  Normalizat    1.1821        .10516E-02    .50820E-04    .10724E-03
   4  Prefactor     .85822        .77612E-03    .86076E-05   -.50189E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.669
  Normalizat = 1.1821
  Prefactor  = 0.858221
 **********
 **   18 **HESSE 
 **********

 FCN=   6648.596     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      471 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.098        .12077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.6690        7.5468        .50000       -.26945    
   3  Normalizat    1.1821        .11497E-01    .10164E-04   -.87158    
   4  Prefactor     .85822        .84847E-02    .17215E-05   -.97617    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.19169e-10
Minuit parameter uncertainties:
  1  6.65233e-05
  2  176.29
  3  0.0114974
  4  0.00848471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226698': 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) = 6648.59594368
delta logL = 3.66618405678e-06

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  6.652e-05  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  3.669e+00  1.763e+02  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.582e-01  8.485e-03  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.182e+00  1.150e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/226698/cmap_HighResolution_312940801_313200001_4FGL_J0809.3+4053_daily_bin284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.14e-03', job_status='DONE', photon_flux_upper_limit='9.12e-08', time_completed='2021-08-29 07:51:37.411502', job_id='226698', GAL2='0.86', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630248697.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='3.67e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='284' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:51:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 226698: <4FGL_J0809.3+4053_daily_bin284> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin284 122.33 40.8954 312940801 313200001 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 :                                   765.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

