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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin458
RA = 122.33, Dec = 40.8954
tmin = 358041601, tmax = 358300801
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='228074', job_status='RUN', time_executed='2021-08-29 07:44:07.644418', time_epoch_executed='1630248247.64' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='458'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228074

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228074/ft1_4FGL_J0809.3+4053_daily_bin458.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228074/ft2_4FGL_J0809.3+4053_daily_bin458.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228074/ft1_4FGL_J0809.3+4053_daily_bin458.fits outfile=/scratch/kocevski/228074/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin458.fits ra=122.33 dec=40.8954 rad=12.0 tmin=358041601.0 tmax=358300801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.61
user 3.26
sys 1.33

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/228074/ft2_4FGL_J0809.3+4053_daily_bin458.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/228074/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin458.fits evtable="EVENTS" outfile="/scratch/kocevski/228074/ft1_filtered_4FGL_J0809.3+4053_daily_bin458.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.64
user 0.32
sys 1.28

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228074/ft1_filtered_4FGL_J0809.3+4053_daily_bin458.fits" evtable="EVENTS" scfile=/scratch/kocevski/228074/ft2_4FGL_J0809.3+4053_daily_bin458.fits sctable="SC_DATA" outfile=/scratch/kocevski/228074/ltcube_358041601_358300801_4FGL_J0809.3+4053_daily_bin458.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/228074/ft2_4FGL_J0809.3+4053_daily_bin458.fits
.....................!
real 13.31
user 11.65
sys 1.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228074/ft1_filtered_4FGL_J0809.3+4053_daily_bin458.fits evtable="EVENTS" scfile=/scratch/kocevski/228074/ft2_4FGL_J0809.3+4053_daily_bin458.fits sctable="SC_DATA" expcube=/scratch/kocevski/228074/ltcube_358041601_358300801_4FGL_J0809.3+4053_daily_bin458.fits outfile=/scratch/kocevski/228074/expmap_358041601_358300801_4FGL_J0809.3+4053_daily_bin458.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/228074/ltcube_358041601_358300801_4FGL_J0809.3+4053_daily_bin458.fits
.....................!
real 191.29
user 185.03
sys 5.88

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/228074/ft1_filtered_4FGL_J0809.3+4053_daily_bin458.fits scfile=/scratch/kocevski/228074/ft2_4FGL_J0809.3+4053_daily_bin458.fits outfile=/scratch/kocevski/228074/cmap_358041601_358300801_4FGL_J0809.3+4053_daily_bin458.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=122.33 yref=40.8954 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.65
user 0.38
sys 1.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228074/ft1_filtered_4FGL_J0809.3+4053_daily_bin458.fits scfile=/scratch/kocevski/228074/ft2_4FGL_J0809.3+4053_daily_bin458.fits outfile=/scratch/kocevski/228074/cmap_HighResolution_358041601_358300801_4FGL_J0809.3+4053_daily_bin458.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=122.33 yref=40.8954 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.57
user 0.37
sys 1.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    10.123       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6241       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    14.632       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3444       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .84737       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.335       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10420E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .67422E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.951       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4558       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4848       1.0000         .10000E-03   10000.    
    18 'norm      '    4.1834       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    42.793       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7479       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0728       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96363       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=   6727.752     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2584 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1013       -.23232E-07** at limit **
   2  Prefactor     10.123        11.726        .71028E-06    .75083E-04
   3  Prefactor     5.6253        28.173        .29994E-05    .40416E-04
   4  Prefactor     .10000E-03    6.1423       -.25513E-07** at limit **
   5  Prefactor     .10000E-03    8.5755       -.27810E-05** at limit **
   6  norm          14.631        13.031        .41438E-06    .40355E-04
   7  norm          1.3445        1.8658        .29915E-07    .52323E-04
   8  Prefactor     .84606        12.983       -.26674E-06    .19646E-03
   9  Prefactor     24.332        40.731        .19494E-05    .81653E-04
  10  Prefactor     .10000E-03    7.6313       -.28678E-05** at limit **
  11  norm          .67239E-01    1.2187        .75320E-06   -.46573E-03
  12  norm          .10000E-03    .17509       -.62207E-07** at limit **
  13  Prefactor     36.949        37.397        .99583E-06    .25139E-04
  14  Prefactor     .10000E-03    2.9196       -.54272E-07** at limit **
  15  Prefactor     .10000E-03    .73290       -.26375E-07** at limit **
  16  Prefactor     2.3612        127.43        .25248E-05    .23569E-04
  17  Prefactor     7.5189        14.150        .47647E-06    .48373E-04
  18  norm          4.1830        4.6751       -.32092E-06   -.10701E-03
  19  Prefactor     .10000E-03    1.8312        .15336E-07** at limit **
  20  Prefactor     42.788        65.909        .14265E-05    .19553E-04
  21  Prefactor     1.7479        4.8688        .91838E-07    .14310E-03
  22  Normalizat    1.0729        .18804       -.92823E-06    .77568E-04
  23  Prefactor     .96352        .12996       -.21881E-06   -.28145E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 10.1229
  Prefactor  = 5.62534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.6308
  norm       = 1.34446
  Prefactor  = 0.846061
  Prefactor  = 24.3317
  Prefactor  = 0.0001
  norm       = 0.0672391
  norm       = 0.0001
  Prefactor  = 36.9491
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.36118
  Prefactor  = 7.51886
  norm       = 4.18299
  Prefactor  = 0.0001
  Prefactor  = 42.7882
  Prefactor  = 1.74791
  Normalizat = 1.07292
  Prefactor  = 0.963523
 **********
 **   18 **HESSE 
 **********

 FCN=   6727.752     FROM HESSE     STATUS=OK           378 CALLS     2962 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1086        .11611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.123        11.752        .12594E-03   -1.5072    
   3  Prefactor     5.6253        28.454        .16939E-03   -1.5234    
   4  Prefactor     .10000E-03    6.1638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.8169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          14.631        13.039        .10471E-03   -1.4943    
   7  norm          1.3445        1.8374        .12779E-03   -1.5476    
   8  Prefactor     .84606        14.869        .50461E-03   -1.5524    
   9  Prefactor     24.332        40.733        .81201E-04   -1.4721    
  10  Prefactor     .10000E-03    8.8279        .29471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .67239E-01    3.3720        .15785E-02   -1.5656    
  12  norm          .10000E-03    .50409        .65801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     36.949        37.436        .65931E-04   -1.4491    
  14  Prefactor     .10000E-03    2.9218        .13686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .73592        .68542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.3612        116.58        .26100E-03   -1.5401    
  17  Prefactor     7.5189        13.446        .14659E-03   -1.5159    
  18  norm          4.1830        4.6791        .18224E-03   -1.5299    
  19  Prefactor     .10000E-03    1.8860        .21663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     42.788        65.430        .61282E-04   -1.4399    
  21  Prefactor     1.7479        4.8667        .27608E-03   -1.5444    
  22  Normalizat    1.0729        .21607        .27148E-03   -.90626    
  23  Prefactor     .96352        .15155        .20990E-03   -.93955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9804e-08
Minuit parameter uncertainties:
  1  5.76855e-07
  2  11.7545
  3  25.3223
  4  5.99768e-06
  5  0.000127075
  6  13.0419
  7  1.83748
  8  7.09542
  9  40.7798
  10  0.000128588
  11  0.951674
  12  1.18663e-05
  13  37.4603
  14  1.65511e-06
  15  1.31777e-07
  16  33.2504
  17  13.4513
  18  4.6795
  19  6.40242e-06
  20  65.5404
  21  4.86777
  22  0.216246
  23  0.151618
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.635e-01  1.516e-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.073e+00  2.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 9.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228074/likelihoodResults_358041601_358300801_4FGL_J0809.3+4053_daily_bin458.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) = 6727.75233993
delta logL = -0.000537870227163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6727.75180318
delta logL = -1.12360066851e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12343E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6205       1.0000          .0000       10.000    
     3 'Normalizat'    1.0730       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96351       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=   6727.747     FROM MIGRAD    STATUS=CONVERGED    193 CALLS      364 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19140E-01    .92759        .14980E-01   -.12515E-02
   2  Index         4.8208        2.5434        .50000       -.15096E-04
   3  Normalizat    1.0677        .14140E-01    .27147E-03   -.14741E-03
   4  Prefactor     .96571        .10470E-01    .20990E-03   -.11856E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0191401
  Index      = 4.82078
  Normalizat = 1.06767
  Prefactor  = 0.965714
 **********
 **   18 **HESSE 
 **********

 FCN=   6727.747     FROM HESSE     STATUS=OK            31 CALLS      395 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19140E-01    .83796        .51368E-03   -1.5736    
   2  Index         4.8208        7.3982        .14241E-01   -.35852E-01
   3  Normalizat    1.0677        .20768        .10859E-04   -.90797    
   4  Prefactor     .96571        .15079        .83958E-05   -.93881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21706e-10
Minuit parameter uncertainties:
  1  0.252629
  2  7.17688
  3  0.207839
  4  0.150853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228074': 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) = 6727.74651797
delta logL = 0.00528408753235

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.914e-02  2.526e-01  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  4.821e+00  7.177e+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.657e-01  1.509e-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.068e+00  2.078e-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/228074/cmap_HighResolution_358041601_358300801_4FGL_J0809.3+4053_daily_bin458.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.09e-03', job_status='DONE', photon_flux_upper_limit='9.07e-08', time_completed='2021-08-29 07:56:34.104938', job_id='228074', GAL2='0.97', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630248994.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='5.28e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='458' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:56:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 228074: <4FGL_J0809.3+4053_daily_bin458> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin458> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Aug 29 07:40:44 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:40:46 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:40:46 2021
Terminated at Sun Aug 29 07:56:34 2021
Results reported at Sun Aug 29 07:56:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin458 122.33 40.8954 358041601 358300801 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 :                                   763.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

