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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin296
RA = 122.453, Dec = 5.1313
tmin = 316051201, tmax = 316310401
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='250084', job_status='RUN', time_executed='2021-08-29 08:54:33.573893', time_epoch_executed='1630252473.57' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='296'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250084

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250084/ft1_4FGL_J0809.8+0507_daily_bin296.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250084/ft2_4FGL_J0809.8+0507_daily_bin296.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250084/ft1_4FGL_J0809.8+0507_daily_bin296.fits outfile=/scratch/kocevski/250084/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin296.fits ra=122.453 dec=5.1313 rad=12.0 tmin=316051201.0 tmax=316310401.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.48
user 3.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250084/ft1_filtered_4FGL_J0809.8+0507_daily_bin296.fits" evtable="EVENTS" scfile=/scratch/kocevski/250084/ft2_4FGL_J0809.8+0507_daily_bin296.fits sctable="SC_DATA" outfile=/scratch/kocevski/250084/ltcube_316051201_316310401_4FGL_J0809.8+0507_daily_bin296.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/250084/ft2_4FGL_J0809.8+0507_daily_bin296.fits
.....................!
real 11.90
user 11.52
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250084/ft1_filtered_4FGL_J0809.8+0507_daily_bin296.fits evtable="EVENTS" scfile=/scratch/kocevski/250084/ft2_4FGL_J0809.8+0507_daily_bin296.fits sctable="SC_DATA" expcube=/scratch/kocevski/250084/ltcube_316051201_316310401_4FGL_J0809.8+0507_daily_bin296.fits outfile=/scratch/kocevski/250084/expmap_316051201_316310401_4FGL_J0809.8+0507_daily_bin296.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/250084/ltcube_316051201_316310401_4FGL_J0809.8+0507_daily_bin296.fits
.....................!
real 190.69
user 184.84
sys 5.47

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/250084/ft1_filtered_4FGL_J0809.8+0507_daily_bin296.fits scfile=/scratch/kocevski/250084/ft2_4FGL_J0809.8+0507_daily_bin296.fits outfile=/scratch/kocevski/250084/cmap_316051201_316310401_4FGL_J0809.8+0507_daily_bin296.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 0.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250084/ft1_filtered_4FGL_J0809.8+0507_daily_bin296.fits scfile=/scratch/kocevski/250084/ft2_4FGL_J0809.8+0507_daily_bin296.fits outfile=/scratch/kocevski/250084/cmap_HighResolution_316051201_316310401_4FGL_J0809.8+0507_daily_bin296.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 0.55
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/250084/ft1_filtered_4FGL_J0809.8+0507_daily_bin296.fits', '/scratch/kocevski/250084/ft2_4FGL_J0809.8+0507_daily_bin296.fits', expMap='/scratch/kocevski/250084/expmap_316051201_316310401_4FGL_J0809.8+0507_daily_bin296.fits', expCube='/scratch/kocevski/250084/ltcube_316051201_316310401_4FGL_J0809.8+0507_daily_bin296.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/250084/Model_4FGL_J0809.8+0507_daily_bin296.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/250084/ft1_filtered_4FGL_J0809.8+0507_daily_bin296.fits
Spacecraft file(s): /scratch/kocevski/250084/ft2_4FGL_J0809.8+0507_daily_bin296.fits
Exposure map: /scratch/kocevski/250084/expmap_316051201_316310401_4FGL_J0809.8+0507_daily_bin296.fits
Exposure cube: /scratch/kocevski/250084/ltcube_316051201_316310401_4FGL_J0809.8+0507_daily_bin296.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/250084/Model_4FGL_J0809.8+0507_daily_bin296.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) = 6812.82421381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.102       1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.088       1.0000         .10000E-03   10000.    
     3 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.151       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15400E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.728       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7580       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7556       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0541       1.0000         .10000E-03   10000.    
    13 'norm      '    13.924       1.0000         .10000E-03   10000.    
    14 'norm      '    8.1567       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9015       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .24743       1.0000         .10000E-03   10000.    
    17 'norm      '    .46680       1.0000         .10000E-03   10000.    
    18 'norm      '    .24547E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.877       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .76033       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2150       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=   6812.821     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2280 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.103        26.781       -.19803E-06   -.22668E-04
   2  Prefactor     28.084        42.621       -.58161E-06   -.65450E-04
   3  norm          .10000E-03    .85926        .25678E-06** at limit **
   4  Prefactor     19.151        27.897       -.52228E-06   -.26410E-04
   5  Prefactor     .10003E-03    2.4974        .15254E-05** at limit **
   6  norm          .10000E-03    5.4091        .38260E-06** at limit **
   7  Prefactor     13.728        10.773        .38235E-06    .14143E-04
   8  Prefactor     .10000E-03    43.694        .17220E-06** at limit **
   9  Prefactor     1.7569        8.7564       -.52912E-06   -.23857E-03
  10  Prefactor     4.7511        38.837        .18162E-05    .27577E-04
  11  norm          .10000E-03    4.7834       -.25585E-06** at limit **
  12  norm          2.0539        2.0309       -.17181E-06   -.25770E-03
  13  norm          13.921        24.781        .31722E-05    .17986E-03
  14  norm          8.1554        4.8270        .11704E-06   -.10003E-03
  15  Prefactor     1.7925        263.32       -.30849E-05   -.90718E-05
  16  Prefactor     .19351        148.98        .15601E-04   -.12381E-03
  17  norm          .46628        1.0081        .47544E-06    .33897E-04
  18  norm          .10001E-03    8.8751       -.13532E-05** at limit **
  19  Prefactor     39.873        40.387        .65433E-06   -.62431E-04
  20  Normalizat    .76070        .21902       -.91337E-05   -.69540E-03
  21  Prefactor     1.2149        .14681        .25295E-05   -.11625E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.1031
  Prefactor  = 28.0843
  norm       = 0.0001
  Prefactor  = 19.1514
  Prefactor  = 0.000100029
  norm       = 0.0001
  Prefactor  = 13.7282
  Prefactor  = 0.0001
  Prefactor  = 1.75695
  Prefactor  = 4.75105
  norm       = 0.0001
  norm       = 2.05389
  norm       = 13.9207
  norm       = 8.15542
  Prefactor  = 1.79248
  Prefactor  = 0.193509
  norm       = 0.466278
  norm       = 0.000100012
  Prefactor  = 39.8734
  Normalizat = 0.760705
  Prefactor  = 1.21486
 **********
 **   18 **HESSE 
 **********

 FCN=   6812.821     FROM HESSE     STATUS=OK           333 CALLS     2613 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.103        26.776        .78410E-04   -1.4686    
   2  Prefactor     28.084        42.176        .75592E-04   -1.4648    
   3  norm          .10000E-03    3.3936        .14537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.151        27.897        .91524E-04   -1.4832    
   5  Prefactor     .10003E-03    5.3743        .20739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.4139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.728        10.736        .10811E-03   -1.4967    
   8  Prefactor     .10000E-03    43.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7569        8.7958        .31607E-03   -1.5443    
  10  Prefactor     4.7511        38.363        .18450E-03   -1.5272    
  11  norm          .10000E-03    4.7937        .17615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0539        2.0108        .11184E-03   -1.5421    
  13  norm          13.921        24.933        .10734E-03   -1.4962    
  14  norm          8.1554        4.8222        .13277E-03   -1.5137    
  15  Prefactor     1.7925        271.94        .30160E-03   -1.5440    
  16  Prefactor     .19351        12.521        .81456E-01   -1.5620    
  17  norm          .46628        .99208        .11437E-03   -1.5571    
  18  norm          .10001E-03    70.356        .36338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     39.873        40.406        .63475E-04   -1.4444    
  20  Normalizat    .76070        .23035        .34016E-03   -1.0154    
  21  Prefactor     1.2149        .15400        .19326E-03   -.85875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06334e-09
Minuit parameter uncertainties:
  1  26.7888
  2  42.2209
  3  2.45917e-05
  4  27.9161
  5  0.000795999
  6  7.32723e-06
  7  10.7379
  8  1.65911e-05
  9  7.86386
  10  27.0244
  11  1.38703e-06
  12  2.01086
  13  24.9515
  14  4.82245
  15  44.3619
  16  3.113
  17  0.992118
  18  0.00180146
  19  40.4342
  20  0.230643
  21  0.154058
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.392e+01  2.495e+01  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:  1.215e+00  1.541e-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:  7.607e-01  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.52
Ra Dec: 122.453 5.131
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250084/likelihoodResults_316051201_316310401_4FGL_J0809.8+0507_daily_bin296.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) = 6812.24101592
delta logL = 0.580077819464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6812.23932617
delta logL = 0.581767568356

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2793       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9995       1.0000          .0000       5.0000    
     3 'Normalizat'    .67501       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2514       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.

 FCN=   6812.239     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      312 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2808        9.8689        .37166E-02    .41756E-03
   2  alpha         5.0000        4.8080        .46280    ** at limit **
   3  Normalizat    .67462        .20738        .81191E-01    .11551E-03
   4  Prefactor     1.2516        .13825        .33515E-01    .20215E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.28076
  alpha      = 5
  Normalizat = 0.674619
  Prefactor  = 1.25157
 **********
 **   18 **HESSE 
 **********

 FCN=   6812.239     FROM HESSE     STATUS=OK            33 CALLS      345 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2808        7.9429        .14866E-03   -1.5168    
   2  alpha         5.0000        4.2593        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .67462        .23397        .35954E-03   -1.0490    
   4  Prefactor     1.2516        .15511        .19074E-03   -.84759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47616e-11
Minuit parameter uncertainties:
  1  7.94401
  2  9.16152e-05
  3  0.234313
  4  0.155171
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250084': 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) = 6812.23931956
delta logL = 0.581774182402

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  7.281e+00  7.944e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  5.000e+00  9.162e-05  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:  1.252e+00  1.552e-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:  6.746e-01  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.90
Ra Dec: 122.453 5.131
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 9.08e-08 +/- 9.89e-08
Energy Flux (Free Index): 1.42e-05 +/- 1.55e-05

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/250084/cmap_HighResolution_316051201_316310401_4FGL_J0809.8+0507_daily_bin296.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-05', comment='SUCCESS', energy_flux2='1.42e-05', dlogl='5.82e-01', photon_flux2='9.08e-08', job_status='DONE', time_completed='2021-08-29 09:05:07.902089', photon_index_error2='0.00', photon_index2='5.00', ts='0.52', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='1.55e-05', EG='0.76', time_epoch_completed='1630253107.9', return_code='0', job_id='250084', GAL2='1.25', EG2='0.67', return_code2='0', photon_flux_error2='9.89e-08', ts2='1.90', photon_index='2.82' WHERE bin_id='296' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:05:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 250084: <4FGL_J0809.8+0507_daily_bin296> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin296> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 08:50:28 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:50:29 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:50:29 2021
Terminated at Sun Aug 29 09:05:08 2021
Results reported at Sun Aug 29 09:05:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin296 122.453 5.1313 316051201 316310401 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 :                                   634.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            880 sec.

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

