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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin224
RA = 122.33, Dec = 40.8954
tmin = 297388801, tmax = 297648001
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='226611', job_status='RUN', time_executed='2021-08-29 07:37:27.107153', time_epoch_executed='1630247847.11' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226611

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226611/ft1_4FGL_J0809.3+4053_daily_bin224.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226611/ft2_4FGL_J0809.3+4053_daily_bin224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226611/ft1_4FGL_J0809.3+4053_daily_bin224.fits outfile=/scratch/kocevski/226611/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin224.fits ra=122.33 dec=40.8954 rad=12.0 tmin=297388801.0 tmax=297648001.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 9.22
user 3.43
sys 5.71

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/226611/ft2_4FGL_J0809.3+4053_daily_bin224.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/226611/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin224.fits evtable="EVENTS" outfile="/scratch/kocevski/226611/ft1_filtered_4FGL_J0809.3+4053_daily_bin224.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 6.03
user 0.31
sys 5.68

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226611/ft1_filtered_4FGL_J0809.3+4053_daily_bin224.fits" evtable="EVENTS" scfile=/scratch/kocevski/226611/ft2_4FGL_J0809.3+4053_daily_bin224.fits sctable="SC_DATA" outfile=/scratch/kocevski/226611/ltcube_297388801_297648001_4FGL_J0809.3+4053_daily_bin224.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/226611/ft2_4FGL_J0809.3+4053_daily_bin224.fits
.....................!
real 17.99
user 11.43
sys 6.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226611/ft1_filtered_4FGL_J0809.3+4053_daily_bin224.fits evtable="EVENTS" scfile=/scratch/kocevski/226611/ft2_4FGL_J0809.3+4053_daily_bin224.fits sctable="SC_DATA" expcube=/scratch/kocevski/226611/ltcube_297388801_297648001_4FGL_J0809.3+4053_daily_bin224.fits outfile=/scratch/kocevski/226611/expmap_297388801_297648001_4FGL_J0809.3+4053_daily_bin224.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/226611/ltcube_297388801_297648001_4FGL_J0809.3+4053_daily_bin224.fits
.....................!
real 197.78
user 185.06
sys 12.14

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/226611/ft1_filtered_4FGL_J0809.3+4053_daily_bin224.fits scfile=/scratch/kocevski/226611/ft2_4FGL_J0809.3+4053_daily_bin224.fits outfile=/scratch/kocevski/226611/cmap_297388801_297648001_4FGL_J0809.3+4053_daily_bin224.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 5.96
user 0.36
sys 5.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226611/ft1_filtered_4FGL_J0809.3+4053_daily_bin224.fits scfile=/scratch/kocevski/226611/ft2_4FGL_J0809.3+4053_daily_bin224.fits outfile=/scratch/kocevski/226611/cmap_HighResolution_297388801_297648001_4FGL_J0809.3+4053_daily_bin224.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 5.96
user 0.37
sys 5.56

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    12.485       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.443       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.731       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11661E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0385       1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.745       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.0469       1.0000         .10000E-03   10000.    
    12 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.198       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.872       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13750E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.396       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.0929       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0587       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2688       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .79811       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0616       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7607.786     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2549 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9098         .0000    ** at limit **
   2  Prefactor     12.486        12.189         .0000       -.11509E-03
   3  Prefactor     21.443        27.594         .0000       -.89985E-04
   4  Prefactor     10.731        8.6254         .0000        .39851E-04
   5  Prefactor     .10000E-03    27.111         .0000    ** at limit **
   6  norm          .10000E-03    6.1685         .0000    ** at limit **
   7  norm          .10000E-03    .86560         .0000    ** at limit **
   8  Prefactor     1.0347        9.3719         .0000        .36058E-01
   9  Prefactor     41.739        45.129         .0000        .91166E-02
  10  Prefactor     .10000E-03    1.2945         .0000    ** at limit **
  11  norm          3.0469        1.5253         .0000       -.80018E-04
  12  norm          .10000E-03    .16687         .0000    ** at limit **
  13  Prefactor     33.200        23.770         .0000       -.18964E-02
  14  Prefactor     18.876        12.600         .0000        .63146E-03
  15  Prefactor     .10000E-03    1.2904         .0000    ** at limit **
  16  Prefactor     27.398        23.695         .0000       -.22592E-02
  17  Prefactor     .10000E-03    4.0820         .0000    ** at limit **
  18  norm          6.0935        4.8888         .0000        .28353E-02
  19  Prefactor     2.0591        2.1328         .0000        .40097E-03
  20  Prefactor     .10000E-03    14.843         .0000    ** at limit **
  21  Prefactor     1.2702        3.8893         .0000        .18285E-02
  22  Normalizat    .79791        .17337         .0000        .23475E-04
  23  Prefactor     1.0616        .12631         .0000        .21441E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 12.4863
  Prefactor  = 21.4432
  Prefactor  = 10.7311
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.03468
  Prefactor  = 41.7394
  Prefactor  = 0.0001
  norm       = 3.04693
  norm       = 0.0001
  Prefactor  = 33.1996
  Prefactor  = 18.8757
  Prefactor  = 0.0001
  Prefactor  = 27.3979
  Prefactor  = 0.0001
  norm       = 6.09347
  Prefactor  = 2.05913
  Prefactor  = 0.0001
  Prefactor  = 1.27023
  Normalizat = 0.797907
  Prefactor  = 1.06162
 **********
 **   18 **HESSE 
 **********

 FCN=   7607.786     FROM HESSE     STATUS=OK           372 CALLS     2921 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9152        .11771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.486        12.190        .11337E-03   -1.5001    
   3  Prefactor     21.443        27.580        .86497E-04   -1.4781    
   4  Prefactor     10.731        8.6111        .12230E-03   -1.5053    
   5  Prefactor     .10000E-03    27.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.2122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .88102        .79147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0347        8.8321        .23134E-02   -1.5505    
   9  Prefactor     41.739        43.904        .62044E-04   -1.4415    
  10  Prefactor     .10000E-03    1.3077        .96866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0469        1.5264        .74266E-04   -1.5359    
  12  norm          .10000E-03    .23667        .68289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     33.200        23.773        .69547E-04   -1.4555    
  14  Prefactor     18.876        12.014        .46099E-03   -1.4839    
  15  Prefactor     .10000E-03    2.1713        .18422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.398        23.694        .76540E-04   -1.4661    
  17  Prefactor     .10000E-03    4.1006        .17205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.0935        4.8876        .81327E-03   -1.5214    
  19  Prefactor     2.0591        2.1212        .12499E-03   -1.5421    
  20  Prefactor     .10000E-03    14.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.2702        3.8949        .28407E-03   -1.5483    
  22  Normalizat    .79791        .20040        .29257E-03   -1.0015    
  23  Prefactor     1.0616        .14667        .19750E-03   -.90703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0448e-07
Minuit parameter uncertainties:
  1  1.32964e-06
  2  12.1924
  3  27.596
  4  8.61211
  5  0.000374295
  6  1.36316e-05
  7  2.63293e-06
  8  6.04688
  9  43.9379
  10  1.74602e-07
  11  1.52639
  12  7.18553e-07
  13  23.7799
  14  12.015
  15  2.70796e-06
  16  23.7021
  17  6.62748e-06
  18  4.88793
  19  2.12126
  20  0.000151609
  21  3.89573
  22  0.200584
  23  0.146724
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.746e-07  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:  1.062e+00  1.467e-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:  7.979e-01  2.006e-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: 4.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/226611/likelihoodResults_297388801_297648001_4FGL_J0809.3+4053_daily_bin224.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) = 7607.7899719
delta logL = -0.0036226860102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7607.78634845
delta logL = 7.565922715e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5662       1.0000          .0000       10.000    
     3 'Normalizat'    .79791       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0616       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=   7607.786     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      258 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.085        .98794E-02** at limit **
   2  Index         1.9216        5.5372        .50000       -.35432E-06
   3  Normalizat    .79791        .12924E-01    .29257E-03   -.85267E-03
   4  Prefactor     1.0616        .99956E-02    .19750E-03   -.13027E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.92159
  Normalizat = 0.797906
  Prefactor  = 1.06162
 **********
 **   18 **HESSE 
 **********

 FCN=   7607.786     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      287 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    148.81        .11681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9216        6.4817        .50000       -.66325    
   3  Normalizat    .79791        .40121E-01    .58514E-04   -1.0015    
   4  Prefactor     1.0616        .31031E-01    .39500E-04   -.90703    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.03609e-09
Minuit parameter uncertainties:
  1  3.51818e-05
  2  566.856
  3  0.0401225
  4  0.0310311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226611': 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) = 7607.786337
delta logL = 1.22082547023e-05

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  3.518e-05  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  1.922e+00  5.669e+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:  1.062e+00  3.103e-02  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:  7.979e-01  4.012e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/226611/cmap_HighResolution_297388801_297648001_4FGL_J0809.3+4053_daily_bin224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-03', job_status='DONE', photon_flux_upper_limit='4.84e-08', time_completed='2021-08-29 07:51:41.948284', job_id='226611', GAL2='1.06', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630248701.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.22e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='224' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:51:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 226611: <4FGL_J0809.3+4053_daily_bin224> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin224 122.33 40.8954 297388801 297648001 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 :                                   937.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            964 sec.

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

