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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin353
RA = 122.33, Dec = 40.8954
tmin = 330825601, tmax = 331084801
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='226797', job_status='RUN', time_executed='2021-08-29 07:37:53.956314', time_epoch_executed='1630247873.96' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='353'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226797

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226797/ft1_4FGL_J0809.3+4053_daily_bin353.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226797/ft2_4FGL_J0809.3+4053_daily_bin353.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226797/ft1_4FGL_J0809.3+4053_daily_bin353.fits outfile=/scratch/kocevski/226797/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin353.fits ra=122.33 dec=40.8954 rad=12.0 tmin=330825601.0 tmax=331084801.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.68
user 3.16
sys 0.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226797/ft1_filtered_4FGL_J0809.3+4053_daily_bin353.fits" evtable="EVENTS" scfile=/scratch/kocevski/226797/ft2_4FGL_J0809.3+4053_daily_bin353.fits sctable="SC_DATA" outfile=/scratch/kocevski/226797/ltcube_330825601_331084801_4FGL_J0809.3+4053_daily_bin353.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/226797/ft2_4FGL_J0809.3+4053_daily_bin353.fits
.....................!
real 12.26
user 11.53
sys 0.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226797/ft1_filtered_4FGL_J0809.3+4053_daily_bin353.fits evtable="EVENTS" scfile=/scratch/kocevski/226797/ft2_4FGL_J0809.3+4053_daily_bin353.fits sctable="SC_DATA" expcube=/scratch/kocevski/226797/ltcube_330825601_331084801_4FGL_J0809.3+4053_daily_bin353.fits outfile=/scratch/kocevski/226797/expmap_330825601_331084801_4FGL_J0809.3+4053_daily_bin353.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/226797/ltcube_330825601_331084801_4FGL_J0809.3+4053_daily_bin353.fits
.....................!
real 189.81
user 184.47
sys 4.93

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/226797/ft1_filtered_4FGL_J0809.3+4053_daily_bin353.fits scfile=/scratch/kocevski/226797/ft2_4FGL_J0809.3+4053_daily_bin353.fits outfile=/scratch/kocevski/226797/cmap_330825601_331084801_4FGL_J0809.3+4053_daily_bin353.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.83
user 0.38
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226797/ft1_filtered_4FGL_J0809.3+4053_daily_bin353.fits scfile=/scratch/kocevski/226797/ft2_4FGL_J0809.3+4053_daily_bin353.fits outfile=/scratch/kocevski/226797/cmap_HighResolution_330825601_331084801_4FGL_J0809.3+4053_daily_bin353.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.83
user 0.38
sys 0.44

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5126       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.963       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.5132       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.2436       1.0000         .10000E-03   10000.    
    12 'norm      '    .56563       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .99484E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18168E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.291       1.0000         .10000E-03   10000.    
    18 'norm      '    16.163       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2767       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97904       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2062       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=   7425.680     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2539 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5124        8.3546        .53900E-05   -.93394E-03
   2  Prefactor     .10000E-03    5.0588        .28077E-07** at limit **
   3  Prefactor     .10002E-03    36.627       -.71012E-05** at limit **
   4  Prefactor     14.964        11.695       -.21039E-07    .55587E-04
   5  Prefactor     .10000E-03    21.099        .14902E-05** at limit **
   6  norm          6.5130        8.3450        .20381E-06    .57671E-05
   7  norm          .10000E-03    .85032        .10006E-07** at limit **
   8  Prefactor     .10000E-03    3.4055       -.13822E-08** at limit **
   9  Prefactor     .10003E-03    94.356       -.92407E-05** at limit **
  10  Prefactor     .10000E-03    4.3845        .68270E-07** at limit **
  11  norm          5.2436        2.4095        .20686E-07    .17631E-04
  12  norm          .56560        .46723        .19555E-07    .37602E-03
  13  Prefactor     .10000E-03    16.906       -.43421E-06** at limit **
  14  Prefactor     .10000E-03    8.7800        .38735E-07** at limit **
  15  Prefactor     .10050E-03    1.2597       -.27572E-06** at limit **
  16  Prefactor     .10000E-03    88.007        .14945E-05** at limit **
  17  Prefactor     10.278        12.157       -.17384E-06   -.10399E-03
  18  norm          16.163        7.8323        .22283E-07   -.27819E-04
  19  Prefactor     4.2765        2.8892        .46767E-07   -.15108E-04
  20  Prefactor     .10006E-03    45.582        .11759E-04** at limit **
  21  Prefactor     .10000E-03    1.6389        .60653E-08** at limit **
  22  Normalizat    .97909        .19503       -.52947E-07    .63665E-04
  23  Prefactor     1.2062        .14511       -.76975E-06    .13972E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.51236
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 14.9641
  Prefactor  = 0.000100001
  norm       = 6.51295
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  norm       = 5.2436
  norm       = 0.565597
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100502
  Prefactor  = 0.000100002
  Prefactor  = 10.2784
  norm       = 16.1626
  Prefactor  = 4.2765
  Prefactor  = 0.000100056
  Prefactor  = 0.0001
  Normalizat = 0.979093
  Prefactor  = 1.20621
 **********
 **   18 **HESSE 
 **********

 FCN=   7425.680     FROM HESSE     STATUS=OK           376 CALLS     2915 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5124        8.9820        .94763E-03   -1.5283    
   2  Prefactor     .10000E-03    5.0726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    38.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.964        11.692        .10354E-03   -1.4934    
   5  Prefactor     .10000E-03    21.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.5130        8.3414        .15725E-03   -1.5198    
   7  norm          .10000E-03    .85378        .77561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.4125        .15529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10003E-03    97.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4828        .35180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.2436        2.4100        .88083E-04   -1.5250    
  12  norm          .56560        .48997        .51177E-03   -1.5558    
  13  Prefactor     .10000E-03    16.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.8065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10050E-03    2.7537        .33647E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    89.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.278        12.157        .12490E-03   -1.5067    
  18  norm          16.163        7.8340        .99624E-04   -1.4904    
  19  Prefactor     4.2765        2.8903        .11627E-03   -1.5294    
  20  Prefactor     .10006E-03    50.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.6579        .10772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .97909        .22379        .31098E-03   -.93734    
  23  Prefactor     1.2062        .16717        .21258E-03   -.86140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20626e-09
Minuit parameter uncertainties:
  1  8.98465
  2  1.89782e-06
  3  0.00172058
  4  11.6934
  5  0.000276895
  6  8.34288
  7  4.81293e-07
  8  1.92711e-06
  9  0.00351337
  10  1.12613e-05
  11  2.41006
  12  0.489973
  13  7.30591e-05
  14  1.54297e-05
  15  0.00235271
  16  0.000811077
  17  12.1596
  18  7.83454
  19  2.8904
  20  0.00334695
  21  3.75739e-07
  22  0.224005
  23  0.167246
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.126e-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:  1.206e+00  1.672e-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:  9.791e-01  2.240e-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.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/226797/likelihoodResults_330825601_331084801_4FGL_J0809.3+4053_daily_bin353.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) = 7425.68134061
delta logL = -0.00106415714163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7425.68027659
delta logL = -1.35552909342e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5955       1.0000          .0000       10.000    
     3 'Normalizat'    .97905       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2063       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=   7425.680     FROM MIGRAD    STATUS=FAILED        88 CALLS      245 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10055E-03    802.26        .35241E-03** at limit **
   2  Index         2.6528        5.9999        .50000       -.10643E-04
   3  Normalizat    .97909        .94342E-01    .31098E-03    .12824E-03
   4  Prefactor     1.2062        .70893E-01    .21258E-03    .17661E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7425.680     FROM SIMPLEX   STATUS=UNCHANGED    152 CALLS      397 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10055E-03    802.26        .36958E-03** at limit **
   2  Index         2.6528        5.9999        .19926E-04   -.10643E-04
   3  Normalizat    .97909        .94342E-01    .84102E-06    .12824E-03
   4  Prefactor     1.2062        .70893E-01    .37571E-06    .17661E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7425.680     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      437 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.6973        .70481E-04** at limit **
   2  Index         2.8171        5.3467        .50000       -.11391E-07
   3  Normalizat    .97909        .21789        .12439E-04   -.21222E-03
   4  Prefactor     1.2062        .16437        .42515E-04   -.29372E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.81709
  Normalizat = 0.979092
  Prefactor  = 1.20621
 **********
 **   18 **HESSE 
 **********

 FCN=   7425.680     FROM HESSE     STATUS=OK            29 CALLS      466 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6999        .14096E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8171        5.1639        .50000       -.45180    
   3  Normalizat    .97909        .21808        .24878E-05   -.93734    
   4  Prefactor     1.2062        .16449        .85030E-05   -.86140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42155e-11
Minuit parameter uncertainties:
  1  8.70503e-06
  2  151.052
  3  0.218278
  4  0.164563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226797': 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) = 7425.68027607
delta logL = 3.81395693694e-07

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  8.705e-06  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.817e+00  1.511e+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.206e+00  1.646e-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:  9.791e-01  2.183e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/226797/cmap_HighResolution_330825601_331084801_4FGL_J0809.3+4053_daily_bin353.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.98e-03', job_status='DONE', photon_flux_upper_limit='8.93e-08', time_completed='2021-08-29 07:50:52.116112', job_id='226797', GAL2='1.21', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630248652.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='3.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='353' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:50:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 226797: <4FGL_J0809.3+4053_daily_bin353> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin353 122.33 40.8954 330825601 331084801 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 :                                   779.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            901 sec.

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

