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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin619
RA = 122.453, Dec = 5.1313
tmin = 399772801, tmax = 400032001
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='251657', job_status='RUN', time_executed='2021-08-29 08:59:49.333942', time_epoch_executed='1630252789.33' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='619'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251657

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251657/ft1_4FGL_J0809.8+0507_daily_bin619.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251657/ft2_4FGL_J0809.8+0507_daily_bin619.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251657/ft1_4FGL_J0809.8+0507_daily_bin619.fits outfile=/scratch/kocevski/251657/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin619.fits ra=122.453 dec=5.1313 rad=12.0 tmin=399772801.0 tmax=400032001.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 10.03
user 4.89
sys 5.07

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/251657/ft2_4FGL_J0809.8+0507_daily_bin619.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/251657/ft2_4FGL_J0809.8+0507_daily_bin619.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/251657/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin619.fits evtable="EVENTS" outfile="/scratch/kocevski/251657/ft1_filtered_4FGL_J0809.8+0507_daily_bin619.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 5.90
user 0.32
sys 5.31

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251657/ft1_filtered_4FGL_J0809.8+0507_daily_bin619.fits" evtable="EVENTS" scfile=/scratch/kocevski/251657/ft2_4FGL_J0809.8+0507_daily_bin619.fits sctable="SC_DATA" outfile=/scratch/kocevski/251657/ltcube_399772801_400032001_4FGL_J0809.8+0507_daily_bin619.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/251657/ft2_4FGL_J0809.8+0507_daily_bin619.fits
.....................!
real 17.75
user 11.60
sys 6.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251657/ft1_filtered_4FGL_J0809.8+0507_daily_bin619.fits evtable="EVENTS" scfile=/scratch/kocevski/251657/ft2_4FGL_J0809.8+0507_daily_bin619.fits sctable="SC_DATA" expcube=/scratch/kocevski/251657/ltcube_399772801_400032001_4FGL_J0809.8+0507_daily_bin619.fits outfile=/scratch/kocevski/251657/expmap_399772801_400032001_4FGL_J0809.8+0507_daily_bin619.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/251657/ltcube_399772801_400032001_4FGL_J0809.8+0507_daily_bin619.fits
.....................!
real 198.81
user 187.17
sys 10.64

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J0809.8+0507 @ 122.453 5.1313

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/251657/ft1_filtered_4FGL_J0809.8+0507_daily_bin619.fits scfile=/scratch/kocevski/251657/ft2_4FGL_J0809.8+0507_daily_bin619.fits outfile=/scratch/kocevski/251657/cmap_399772801_400032001_4FGL_J0809.8+0507_daily_bin619.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.453 yref=5.1313 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.54
user 0.36
sys 5.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251657/ft1_filtered_4FGL_J0809.8+0507_daily_bin619.fits scfile=/scratch/kocevski/251657/ft2_4FGL_J0809.8+0507_daily_bin619.fits outfile=/scratch/kocevski/251657/cmap_HighResolution_399772801_400032001_4FGL_J0809.8+0507_daily_bin619.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.453 yref=5.1313 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.56
user 0.37
sys 5.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/251657/ft1_filtered_4FGL_J0809.8+0507_daily_bin619.fits evtable="EVENTS" scfile=/scratch/kocevski/251657/ft2_4FGL_J0809.8+0507_daily_bin619.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/251657/Model_4FGL_J0809.8+0507_daily_bin619.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/251657/ft1_filtered_4FGL_J0809.8+0507_daily_bin619.fits.....................!
real 89.94
user 81.83
sys 7.77

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/251657/ft1_filtered_4FGL_J0809.8+0507_daily_bin619.fits', '/scratch/kocevski/251657/ft2_4FGL_J0809.8+0507_daily_bin619.fits', expMap='/scratch/kocevski/251657/expmap_399772801_400032001_4FGL_J0809.8+0507_daily_bin619.fits', expCube='/scratch/kocevski/251657/ltcube_399772801_400032001_4FGL_J0809.8+0507_daily_bin619.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/251657/Model_4FGL_J0809.8+0507_daily_bin619.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.8+0507'

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  4.437e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/251657/ft1_filtered_4FGL_J0809.8+0507_daily_bin619.fits
Spacecraft file(s): /scratch/kocevski/251657/ft2_4FGL_J0809.8+0507_daily_bin619.fits
Exposure map: /scratch/kocevski/251657/expmap_399772801_400032001_4FGL_J0809.8+0507_daily_bin619.fits
Exposure cube: /scratch/kocevski/251657/ltcube_399772801_400032001_4FGL_J0809.8+0507_daily_bin619.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/251657/Model_4FGL_J0809.8+0507_daily_bin619.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) = 7039.55321709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.0576       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.455       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.353       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0389       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    37.265       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .83657       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    59.021       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2014       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .86793       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7038.977     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2187 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.375        .12435E-06** at limit **
   2  Prefactor     .10000E-03    11.371        .22081E-06** at limit **
   3  norm          5.0577        1.9898        .39070E-07   -.38978E-04
   4  Prefactor     .10000E-03    6.5168        .11705E-06** at limit **
   5  Prefactor     .10000E-03    1.7959       -.13894E-06** at limit **
   6  norm          .10000E-03    10.446        .96049E-07** at limit **
   7  Prefactor     18.454        11.679       -.27528E-06   -.34362E-04
   8  Prefactor     16.308        87.781       -.10759E-05   -.21796E-04
   9  Prefactor     5.0385        5.0780       -.60845E-07   -.23185E-04
  10  Prefactor     .10000E-03    8.3369       -.21196E-06** at limit **
  11  norm          .10000E-03    5.1360        .39877E-06** at limit **
  12  norm          .10000E-03    .76407        .16689E-06** at limit **
  13  norm          .10000E-03    7.2843       -.63010E-06** at limit **
  14  norm          .10000E-03    2.9306        .38161E-06** at limit **
  15  Prefactor     37.239        36.215       -.16449E-05   -.70417E-04
  16  Prefactor     .10000E-03    3.5549       -.28687E-06** at limit **
  17  norm          .83641        .63830       -.83234E-07   -.18859E-03
  18  norm          .10000E-03    1.7923        .12747E-06** at limit **
  19  Prefactor     58.971        50.477       -.18174E-05   -.95171E-04
  20  Normalizat    1.2020        .22970        .64578E-05   -.83547E-04
  21  Prefactor     .86754        .15018       -.48075E-05   -.83113E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.05774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.4536
  Prefactor  = 16.3084
  Prefactor  = 5.03846
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 37.2394
  Prefactor  = 0.0001
  norm       = 0.836413
  norm       = 0.0001
  Prefactor  = 58.9714
  Normalizat = 1.20204
  Prefactor  = 0.86754
 **********
 **   18 **HESSE 
 **********

 FCN=   7038.977     FROM HESSE     STATUS=OK           309 CALLS     2496 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.0577        1.9895        .70701E-04   -1.5258    
   4  Prefactor     .10000E-03    6.5196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.8354        .10977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.454        11.673        .93233E-04   -1.4849    
   8  Prefactor     16.308        88.477        .99041E-04   -1.4900    
   9  Prefactor     5.0385        5.0776        .17913E-03   -1.5259    
  10  Prefactor     .10000E-03    8.3476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.1713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .77661        .71696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.3268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.0471        .28076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     37.239        36.259        .65653E-04   -1.4487    
  16  Prefactor     .10000E-03    3.5655        .15465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .83641        .65243        .56562E-04   -1.5525    
  18  norm          .10000E-03    1.7958        .10971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     58.971        50.761        .52223E-04   -1.4171    
  20  Normalizat    1.2020        .22916        .27124E-03   -.86540    
  21  Prefactor     .86754        .15046        .21360E-03   -.97285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30973e-10
Minuit parameter uncertainties:
  1  2.59149e-05
  2  2.82938e-05
  3  1.98952
  4  1.39555e-05
  5  9.30255e-06
  6  1.0314e-05
  7  11.6742
  8  76.1464
  9  5.07805
  10  2.78166e-05
  11  1.64531e-05
  12  4.32909e-06
  13  4.90927e-05
  14  1.77173e-05
  15  36.2807
  16  1.73573e-05
  17  0.652439
  18  3.89749e-06
  19  50.798
  20  0.229352
  21  0.150536
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  4.909e-05  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  8.675e-01  1.505e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.202e+00  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 122.453 5.131
Photon Flux Upper Limit: 5.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251657/likelihoodResults_399772801_400032001_4FGL_J0809.8+0507_daily_bin619.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7038.97732482
delta logL = -0.00064964926878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7038.97667518
delta logL = -1.13786882139e-08

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 'alpha     '    2.8119       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86756       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+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=   7038.977     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      232 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.025        .18142E-02** at limit **
   2  alpha         2.3737        3.6839        .16625        .99153E-08
   3  Normalizat    1.2020        .21486        .27124E-03    .23179E-04
   4  Prefactor     .86754        .14718        .21361E-03    .29113E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.37375
  Normalizat = 1.20204
  Prefactor  = 0.867539
 **********
 **   18 **HESSE 
 **********

 FCN=   7038.977     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.5430        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3737        3.5876        .66502E-02   -.50522E-01
   3  Normalizat    1.2020        .21508        .10849E-04   -.86540    
   4  Prefactor     .86754        .14733        .85443E-05   -.97285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.88331e-12
Minuit parameter uncertainties:
  1  1.12535e-05
  2  700.385
  3  0.215235
  4  0.147398
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251657': 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) = 7038.97667498
delta logL = 1.94826498046e-07

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.125e-05  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.374e+00  7.004e+02  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  8.675e-01  1.474e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.202e+00  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.453 5.131

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/251657/cmap_HighResolution_399772801_400032001_4FGL_J0809.8+0507_daily_bin619.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-05', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2021-08-29 09:12:03.063916', job_id='251657', GAL2='0.87', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630253523.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='619' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:12:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 251657: <4FGL_J0809.8+0507_daily_bin619> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin619> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 08:55:41 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:55:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 08:55:43 2021
Terminated at Sun Aug 29 09:12:06 2021
Results reported at Sun Aug 29 09:12:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin619 122.453 5.1313 399772801 400032001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.8+0507 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   807.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             220.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            985 sec.

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

