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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin875
RA = 122.33, Dec = 40.8954
tmin = 466128001, tmax = 466387201
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='230967', job_status='RUN', time_executed='2021-08-29 07:54:22.111826', time_epoch_executed='1630248862.11' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='875'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230967

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230967/ft1_4FGL_J0809.3+4053_daily_bin875.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230967/ft2_4FGL_J0809.3+4053_daily_bin875.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230967/ft1_4FGL_J0809.3+4053_daily_bin875.fits outfile=/scratch/kocevski/230967/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin875.fits ra=122.33 dec=40.8954 rad=12.0 tmin=466128001.0 tmax=466387201.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 3.80
user 3.31
sys 0.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230967/ft1_filtered_4FGL_J0809.3+4053_daily_bin875.fits" evtable="EVENTS" scfile=/scratch/kocevski/230967/ft2_4FGL_J0809.3+4053_daily_bin875.fits sctable="SC_DATA" outfile=/scratch/kocevski/230967/ltcube_466128001_466387201_4FGL_J0809.3+4053_daily_bin875.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/230967/ft2_4FGL_J0809.3+4053_daily_bin875.fits
.....................!
real 12.23
user 11.58
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230967/ft1_filtered_4FGL_J0809.3+4053_daily_bin875.fits evtable="EVENTS" scfile=/scratch/kocevski/230967/ft2_4FGL_J0809.3+4053_daily_bin875.fits sctable="SC_DATA" expcube=/scratch/kocevski/230967/ltcube_466128001_466387201_4FGL_J0809.3+4053_daily_bin875.fits outfile=/scratch/kocevski/230967/expmap_466128001_466387201_4FGL_J0809.3+4053_daily_bin875.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/230967/ltcube_466128001_466387201_4FGL_J0809.3+4053_daily_bin875.fits
.....................!
real 190.40
user 185.19
sys 4.84

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/230967/ft1_filtered_4FGL_J0809.3+4053_daily_bin875.fits scfile=/scratch/kocevski/230967/ft2_4FGL_J0809.3+4053_daily_bin875.fits outfile=/scratch/kocevski/230967/cmap_466128001_466387201_4FGL_J0809.3+4053_daily_bin875.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.80
user 0.37
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230967/ft1_filtered_4FGL_J0809.3+4053_daily_bin875.fits scfile=/scratch/kocevski/230967/ft2_4FGL_J0809.3+4053_daily_bin875.fits outfile=/scratch/kocevski/230967/cmap_HighResolution_466128001_466387201_4FGL_J0809.3+4053_daily_bin875.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.81
user 0.37
sys 0.44

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11429E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.863       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11554E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15832E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.969       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .77089E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0687       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6195       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4011       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11545E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.0163       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6368       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .66056E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.3741       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0946       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .85999       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=   6434.318     FROM MIGRAD    STATUS=CONVERGED    911 CALLS     3003 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9542        .15521E-02** at limit **
   2  Prefactor     .10000E-03    82.147        .40683E-02** at limit **
   3  Prefactor     22.855        26.218        .83771E-04    .57976E-04
   4  Prefactor     .10000E-03    8.7844        .18142E-02** at limit **
   5  Prefactor     .10000E-03    46.608        .18142E-02** at limit **
   6  norm          .10000E-03    3.3815        .14393E-02** at limit **
   7  norm          .10000E-03    1.5624        .97031E-03** at limit **
   8  Prefactor     14.972        13.144        .10352E-03    .12849E-03
   9  Prefactor     .10477E-03    76.288        .14972    ** at limit **
  10  Prefactor     .10000E-03    2.5095        .12310E-02** at limit **
  11  norm          1.0690        1.6161        .13614E-02   -.16425E-03
  12  norm          2.6192        .77868        .36029E-04    .12374E-02
  13  Prefactor     .10000E-03    17.810        .18142E-02** at limit **
  14  Prefactor     2.4057        14.146        .26425E-03    .63673E-04
  15  Prefactor     .10000E-03    1.3890        .91383E-03** at limit **
  16  Prefactor     .10000E-03    46.520        .18142E-02** at limit **
  17  Prefactor     .10000E-03    3.3006        .14226E-02** at limit **
  18  norm          3.0181        7.4752        .23368E-03    .19694E-03
  19  Prefactor     3.6368        2.9725        .12027E-03    .65224E-04
  20  Prefactor     .10164E-03    359.57        .97566E-02** at limit **
  21  Prefactor     8.3720        4.9951        .13281E-03   -.39847E-03
  22  Normalizat    1.0947        .20901        .25468E-03    .22696E-03
  23  Prefactor     .85969        .14942        .21180E-03    .41586E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.8553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.9721
  Prefactor  = 0.000104773
  Prefactor  = 0.0001
  norm       = 1.06899
  norm       = 2.61915
  Prefactor  = 0.0001
  Prefactor  = 2.40566
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 3.01807
  Prefactor  = 3.63679
  Prefactor  = 0.000101642
  Prefactor  = 8.37199
  Normalizat = 1.0947
  Prefactor  = 0.859685
 **********
 **   18 **HESSE 
 **********

 FCN=   6434.318     FROM HESSE     STATUS=OK           360 CALLS     3363 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9550        .31042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    84.913        .16273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.855        26.217        .16754E-04   -1.4751    
   4  Prefactor     .10000E-03    8.7865        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    46.638        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.3817        .28787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5627        .19406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.972        13.157        .41409E-05   -1.4934    
   9  Prefactor     .10477E-03    80.068        .14550       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5101        .24621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0690        1.6155        .54455E-04   -1.5501    
  12  norm          2.6192        .77855        .72058E-05   -1.5384    
  13  Prefactor     .10000E-03    17.813        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4057        14.135        .10570E-04   -1.5398    
  15  Prefactor     .10000E-03    1.3891        .18277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    46.543        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3007        .28451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.0181        7.4741        .93472E-05   -1.5360    
  19  Prefactor     3.6368        2.9723        .48107E-05   -1.5327    
  20  Prefactor     .10164E-03    374.95        .39026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.3720        4.9938        .53125E-05   -1.5129    
  22  Normalizat    1.0947        .20909        .50937E-04   -.89922    
  23  Prefactor     .85969        .14953        .42360E-04   -.97564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72278e-09
Minuit parameter uncertainties:
  1  2.17158e-05
  2  0.000234092
  3  26.2302
  4  9.28942e-05
  5  7.36097e-05
  6  8.71509e-06
  7  1.24948e-05
  8  13.16
  9  0.0391501
  10  3.14595e-05
  11  1.61553
  12  0.778549
  13  4.54055e-05
  14  11.6665
  15  6.09747e-05
  16  0.000584365
  17  2.91101e-06
  18  7.47636
  19  2.97241
  20  0.0499411
  21  4.99406
  22  0.209251
  23  0.149603
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  3.146e-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:  8.597e-01  1.496e-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.095e+00  2.093e-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: 7.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/230967/likelihoodResults_466128001_466387201_4FGL_J0809.3+4053_daily_bin875.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) = 6434.31970315
delta logL = -0.00189831204352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6434.31780492
delta logL = -8.20864443085e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5909       1.0000          .0000       10.000    
     3 'Normalizat'    1.0947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85971       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=   6434.295     FROM MIGRAD    STATUS=FAILED       156 CALLS      299 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50624E-02    .96866        .35929E-02   -.11046E-01
   2  Index         6.1343        3.8968        .50000        .10848E-04
   3  Normalizat    1.0825        .45231E-01    .25468E-03   -.37050E-05
   4  Prefactor     .86532        .29458E-01    .21180E-03   -.12345E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6434.295     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      370 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50624E-02    .96866        .54622E-04   -.11046E-01
   2  Index         6.1343        3.8968        .77630E-02    .10848E-04
   3  Normalizat    1.0825        .45231E-01    .14002E-03   -.37050E-05
   4  Prefactor     .86532        .29458E-01    .53222E-04   -.12345E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6434.295     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      417 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50624E-02    .68880E-01     .0000       -.44387E-01
   2  Index         6.1343        3.6943         .0000        .44187E-04
   3  Normalizat    1.0825        .20556         .0000       -.37943E-05
   4  Prefactor     .86532        .15024         .0000       -.12345E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0050624
  Index      = 6.13432
  Normalizat = 1.08247
  Prefactor  = 0.865317
 **********
 **   18 **HESSE 
 **********

 FCN=   6434.295     FROM HESSE     STATUS=OK            27 CALLS      444 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50624E-02    .19617        .39368E-04   -1.5722    
   2  Index         6.1343        7.9095        .18537E-02    .22886    
   3  Normalizat    1.0825        .20496        .20375E-05   -.90317    
   4  Prefactor     .86532        .15004        .16944E-05   -.97364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3734e-10
Minuit parameter uncertainties:
  1  0.0624015
  2  7.02497
  3  0.205109
  4  0.150115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230967': 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) = 6434.29541827
delta logL = 0.0223865686903

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  5.062e-03  6.240e-02  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  6.134e+00  7.025e+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:  8.653e-01  1.501e-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.082e+00  2.051e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/230967/cmap_HighResolution_466128001_466387201_4FGL_J0809.3+4053_daily_bin875.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.56e-03', job_status='DONE', photon_flux_upper_limit='7.10e-08', time_completed='2021-08-29 08:07:03.200706', job_id='230967', GAL2='0.87', fit_tolerance='1e-08', EG2='1.08', EG='1.09', time_epoch_completed='1630249623.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.24e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='875' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:07:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 230967: <4FGL_J0809.3+4053_daily_bin875> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin875> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 07:50:33 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:50:35 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:50:35 2021
Terminated at Sun Aug 29 08:07:04 2021
Results reported at Sun Aug 29 08:07:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin875 122.33 40.8954 466128001 466387201 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 :                                   764.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             220.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            991 sec.

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

