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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin350
RA = 122.33, Dec = 40.8954
tmin = 330048001, tmax = 330307201
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='226793', job_status='RUN', time_executed='2021-08-29 07:37:54.890914', time_epoch_executed='1630247874.89' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226793

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226793/ft1_4FGL_J0809.3+4053_daily_bin350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226793/ft2_4FGL_J0809.3+4053_daily_bin350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226793/ft1_4FGL_J0809.3+4053_daily_bin350.fits outfile=/scratch/kocevski/226793/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin350.fits ra=122.33 dec=40.8954 rad=12.0 tmin=330048001.0 tmax=330307201.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.78
user 3.22
sys 0.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226793/ft1_filtered_4FGL_J0809.3+4053_daily_bin350.fits" evtable="EVENTS" scfile=/scratch/kocevski/226793/ft2_4FGL_J0809.3+4053_daily_bin350.fits sctable="SC_DATA" outfile=/scratch/kocevski/226793/ltcube_330048001_330307201_4FGL_J0809.3+4053_daily_bin350.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/226793/ft2_4FGL_J0809.3+4053_daily_bin350.fits
.....................!
real 12.13
user 11.49
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226793/ft1_filtered_4FGL_J0809.3+4053_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/226793/ft2_4FGL_J0809.3+4053_daily_bin350.fits sctable="SC_DATA" expcube=/scratch/kocevski/226793/ltcube_330048001_330307201_4FGL_J0809.3+4053_daily_bin350.fits outfile=/scratch/kocevski/226793/expmap_330048001_330307201_4FGL_J0809.3+4053_daily_bin350.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/226793/ltcube_330048001_330307201_4FGL_J0809.3+4053_daily_bin350.fits
.....................!
real 192.51
user 187.75
sys 4.38

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/226793/ft1_filtered_4FGL_J0809.3+4053_daily_bin350.fits scfile=/scratch/kocevski/226793/ft2_4FGL_J0809.3+4053_daily_bin350.fits outfile=/scratch/kocevski/226793/cmap_330048001_330307201_4FGL_J0809.3+4053_daily_bin350.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/226793/ft1_filtered_4FGL_J0809.3+4053_daily_bin350.fits scfile=/scratch/kocevski/226793/ft2_4FGL_J0809.3+4053_daily_bin350.fits outfile=/scratch/kocevski/226793/cmap_HighResolution_330048001_330307201_4FGL_J0809.3+4053_daily_bin350.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.98
user 0.39
sys 0.41

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.734       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10765E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.115       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .34959       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4552       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.8357       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.865       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.2149       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1231       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.950       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6414       1.0000         .10000E-03   10000.    
    18 'norm      '    19.990       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5460       1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.824       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9639       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .98945       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92314       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=   7103.988     FROM MIGRAD    STATUS=CONVERGED    904 CALLS     2935 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.734        9.6632        .78967E-04    .12669E-04
   2  Prefactor     .10001E-03    74.872        .47932E-02** at limit **
   3  Prefactor     30.121        27.094        .73010E-04    .46714E-05
   4  Prefactor     .32538        122.39        .40711E-02    .26502E-03
   5  Prefactor     4.4584        15.071        .19077E-03    .87006E-05
   6  norm          .10000E-03    6.1206        .18142E-02** at limit **
   7  norm          2.8380        2.6332        .11314E-03   -.18488E-03
   8  Prefactor     .10000E-03    3.5325        .15441E-02** at limit **
   9  Prefactor     12.860        33.773        .11168E-03    .88565E-05
  10  Prefactor     .10000E-03    7.4111        .29197E-02** at limit **
  11  norm          5.2150        2.0478        .73576E-04   -.78803E-05
  12  norm          2.1233        .79508        .42893E-04    .24596E-03
  13  Prefactor     .10000E-03    64.258        .18142E-02** at limit **
  14  Prefactor     12.950        11.079        .11131E-03    .18283E-04
  15  Prefactor     .10000E-03    1.1281        .86934E-03** at limit **
  16  Prefactor     .10000E-03    22.570        .18142E-02** at limit **
  17  Prefactor     2.6367        9.7939        .25087E-03    .66617E-05
  18  norm          19.990        8.9499        .89583E-04    .31727E-04
  19  Prefactor     1.5463        2.6097        .16947E-03    .20796E-05
  20  Prefactor     37.811        47.827        .65168E-04   -.19887E-04
  21  Prefactor     1.9634        3.9450        .11391E-02    .76111E-03
  22  Normalizat    .98943        .21576        .28207E-03   -.11039E-03
  23  Prefactor     .92319        .15808        .21709E-03    .27650E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.7343
  Prefactor  = 0.000100011
  Prefactor  = 30.1214
  Prefactor  = 0.32538
  Prefactor  = 4.4584
  norm       = 0.0001
  norm       = 2.83801
  Prefactor  = 0.0001
  Prefactor  = 12.8597
  Prefactor  = 0.0001
  norm       = 5.21497
  norm       = 2.12329
  Prefactor  = 0.0001
  Prefactor  = 12.9499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.63668
  norm       = 19.9902
  Prefactor  = 1.54632
  Prefactor  = 37.8107
  Prefactor  = 1.96336
  Normalizat = 0.989434
  Prefactor  = 0.923186
 **********
 **   18 **HESSE 
 **********

 FCN=   7103.988     FROM HESSE     STATUS=OK           350 CALLS     3285 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.734        9.6628        .31587E-05   -1.4693    
   2  Prefactor     .10001E-03    77.123        .19173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.121        26.974        .29204E-05   -1.4610    
   4  Prefactor     .32538        115.27        .16284E-03   -1.5594    
   5  Prefactor     4.4584        15.070        .76309E-05   -1.5286    
   6  norm          .10000E-03    6.1216        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.8380        2.5469        .45258E-05   -1.5371    
   8  Prefactor     .10000E-03    3.5328        .30882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.860        33.773        .44671E-05   -1.4991    
  10  Prefactor     .10000E-03    7.4493        .58393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.2150        2.0476        .29430E-05   -1.5251    
  12  norm          2.1233        .79487        .17157E-05   -1.5417    
  13  Prefactor     .10000E-03    64.288        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.950        11.078        .44523E-05   -1.4988    
  15  Prefactor     .10000E-03    1.1282        .17387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.574        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.6367        9.7913        .10035E-04   -1.5383    
  18  norm          19.990        8.9491        .35833E-05   -1.4813    
  19  Prefactor     1.5463        2.6094        .67787E-05   -1.5459    
  20  Prefactor     37.811        47.820        .13034E-04   -1.4477    
  21  Prefactor     1.9634        3.9429        .22782E-03   -1.5428    
  22  Normalizat    .98943        .21591        .11283E-04   -.93385    
  23  Prefactor     .92319        .15797        .86838E-05   -.95336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88144e-09
Minuit parameter uncertainties:
  1  9.66335
  2  0.00185043
  3  26.9845
  4  12.2706
  5  15.0827
  6  1.38799e-05
  7  2.54701
  8  1.09739e-05
  9  33.8236
  10  3.5078e-05
  11  2.04762
  12  0.79487
  13  1.95625e-06
  14  11.0799
  15  2.18942e-06
  16  1.4205e-05
  17  9.79722
  18  8.94973
  19  2.60962
  20  47.8683
  21  3.94339
  22  0.216104
  23  0.158051
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  3.508e-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:  9.232e-01  1.581e-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.894e-01  2.161e-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.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/226793/likelihoodResults_330048001_330307201_4FGL_J0809.3+4053_daily_bin350.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) = 7103.9882119
delta logL = -0.000641367609205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7103.98756935
delta logL = 1.17690069601e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12560E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4965       1.0000          .0000       10.000    
     3 'Normalizat'    .98942       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92321       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=   7103.959     FROM MIGRAD    STATUS=FAILED       166 CALLS      333 TOTAL
                     EDM=   .51E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0342        633.03        .33239E-02    .43418E-02
   2  Index         1.8068        5.4562        .45172       -.22947E-04
   3  Normalizat    .99103        .63223E-01    .28207E-03    .44335E-05
   4  Prefactor     .91967        .55023E-01    .21709E-03   -.57604E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7103.959     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      421 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0342        633.03        .19583E-03    .43418E-02
   2  Index         1.8068        5.4562        .95096E-03   -.22947E-04
   3  Normalizat    .99103        .63223E-01    .70242E-04    .44335E-05
   4  Prefactor     .91967        .55023E-01    .46381E-04   -.57604E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7103.959     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      452 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0342        5.1918        .66479E-03    .17357E-03
   2  Index         1.8068        1.3201        .14313E-01   -.36846E-05
   3  Normalizat    .99103        .20591        .11283E-04    .42320E-05
   4  Prefactor     .91967        .15496        .86838E-05   -.52367E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.03424
  Index      = 1.80678
  Normalizat = 0.991032
  Prefactor  = 0.919666
 **********
 **   18 **HESSE 
 **********

 FCN=   7103.959     FROM HESSE     STATUS=OK            27 CALLS      479 TOTAL
                     EDM=   .22E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0342        5.3556        .13296E-03   -1.5505    
   2  Index         1.8068        1.3414        .57253E-03   -.69274    
   3  Normalizat    .99103        .20602        .22565E-05   -.93331    
   4  Prefactor     .91967        .15502        .17368E-05   -.95457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22892e-13
Minuit parameter uncertainties:
  1  4.70745
  2  1.37013
  3  0.206186
  4  0.15509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226793': 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) = 7103.95931075
delta logL = 0.0282597779851

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.034e+00  4.707e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  1.807e+00  1.370e+00  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.197e-01  1.551e-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.910e-01  2.062e-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/226793/cmap_HighResolution_330048001_330307201_4FGL_J0809.3+4053_daily_bin350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.02e-03', job_status='DONE', photon_flux_upper_limit='8.98e-08', time_completed='2021-08-29 07:51:20.247726', job_id='226793', GAL2='0.92', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630248680.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.83e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='350' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:51:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 226793: <4FGL_J0809.3+4053_daily_bin350> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin350> 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) <bullet0268>, 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:51:21 2021
Results reported at Sun Aug 29 07:51:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin350 122.33 40.8954 330048001 330307201 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 :                                   806.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            929 sec.

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

