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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin417
RA = 122.453, Dec = 5.1313
tmin = 347414401, tmax = 347673601
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='250283', job_status='RUN', time_executed='2021-08-29 08:53:33.667375', time_epoch_executed='1630252413.67' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='417'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250283

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250283/ft1_4FGL_J0809.8+0507_daily_bin417.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250283/ft2_4FGL_J0809.8+0507_daily_bin417.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250283/ft1_4FGL_J0809.8+0507_daily_bin417.fits outfile=/scratch/kocevski/250283/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin417.fits ra=122.453 dec=5.1313 rad=12.0 tmin=347414401.0 tmax=347673601.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.96
user 3.21
sys 1.71

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250283/ft2_4FGL_J0809.8+0507_daily_bin417.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/250283/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin417.fits evtable="EVENTS" outfile="/scratch/kocevski/250283/ft1_filtered_4FGL_J0809.8+0507_daily_bin417.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.90
user 0.34
sys 1.53

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250283/ft1_filtered_4FGL_J0809.8+0507_daily_bin417.fits" evtable="EVENTS" scfile=/scratch/kocevski/250283/ft2_4FGL_J0809.8+0507_daily_bin417.fits sctable="SC_DATA" outfile=/scratch/kocevski/250283/ltcube_347414401_347673601_4FGL_J0809.8+0507_daily_bin417.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/250283/ft2_4FGL_J0809.8+0507_daily_bin417.fits
.....................!
real 13.60
user 11.49
sys 2.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250283/ft1_filtered_4FGL_J0809.8+0507_daily_bin417.fits evtable="EVENTS" scfile=/scratch/kocevski/250283/ft2_4FGL_J0809.8+0507_daily_bin417.fits sctable="SC_DATA" expcube=/scratch/kocevski/250283/ltcube_347414401_347673601_4FGL_J0809.8+0507_daily_bin417.fits outfile=/scratch/kocevski/250283/expmap_347414401_347673601_4FGL_J0809.8+0507_daily_bin417.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/250283/ltcube_347414401_347673601_4FGL_J0809.8+0507_daily_bin417.fits
.....................!
real 192.12
user 185.54
sys 6.20

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/250283/ft1_filtered_4FGL_J0809.8+0507_daily_bin417.fits scfile=/scratch/kocevski/250283/ft2_4FGL_J0809.8+0507_daily_bin417.fits outfile=/scratch/kocevski/250283/cmap_347414401_347673601_4FGL_J0809.8+0507_daily_bin417.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 2.61
user 0.37
sys 2.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250283/ft1_filtered_4FGL_J0809.8+0507_daily_bin417.fits scfile=/scratch/kocevski/250283/ft2_4FGL_J0809.8+0507_daily_bin417.fits outfile=/scratch/kocevski/250283/cmap_HighResolution_347414401_347673601_4FGL_J0809.8+0507_daily_bin417.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 1.89
user 0.37
sys 1.51

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.723       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1813       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0272       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6784       1.0000         .10000E-03   10000.    
     6 'norm      '    13.716       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    123.77       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.3191       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0969       1.0000         .10000E-03   10000.    
    13 'norm      '    36.115       1.0000         .10000E-03   10000.    
    14 'norm      '    .12095E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .38786       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0420       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90132       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=   5104.144     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2178 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.735        76.495        .23599E-05    .78146E-04
   2  Prefactor     8.1757        37.443       -.13196E-05   -.54679E-04
   3  norm          1.0279        1.1735        .21419E-07   -.56525E-04
   4  Prefactor     .10001E-03    21.349        .39008E-05** at limit **
   5  Prefactor     6.6765        4.9716        .15907E-06   -.34639E-04
   6  norm          13.719        18.469        .55587E-06    .12364E-03
   7  Prefactor     .10000E-03    15.152       -.60166E-07** at limit **
   8  Prefactor     123.73        166.61       -.42769E-05   -.94257E-04
   9  Prefactor     .10000E-03    4.7012       -.11400E-06** at limit **
  10  Prefactor     .10000E-03    26.436       -.24603E-05** at limit **
  11  norm          4.3177        10.508        .66215E-05   -.32768E-03
  12  norm          1.0968        2.0546        .38061E-07   -.14016E-03
  13  norm          36.102        24.869       -.16523E-05   -.34611E-03
  14  norm          .10000E-03    2.8602       -.94755E-06** at limit **
  15  Prefactor     .10000E-03    26.292       -.18373E-05** at limit **
  16  Prefactor     .10000E-03    6.0627        .19903E-06** at limit **
  17  norm          .38784        .53840        .21186E-07    .73130E-04
  18  norm          .10000E-03    2.2552        .21742E-07** at limit **
  19  Prefactor     .10000E-03    15.231       -.39733E-06** at limit **
  20  Normalizat    1.0424        .21449        .88549E-06    .46990E-05
  21  Prefactor     .90107        .14693       -.12422E-05    .16930E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.7353
  Prefactor  = 8.17565
  norm       = 1.02794
  Prefactor  = 0.000100009
  Prefactor  = 6.67652
  norm       = 13.7191
  Prefactor  = 0.0001
  Prefactor  = 123.726
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.31772
  norm       = 1.09681
  norm       = 36.1019
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.387838
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04236
  Prefactor  = 0.901068
 **********
 **   18 **HESSE 
 **********

 FCN=   5104.144     FROM HESSE     STATUS=OK           317 CALLS     2495 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.735        77.128        .54723E-04   -1.4241    
   2  Prefactor     8.1757        37.705        .14017E-03   -1.5136    
   3  norm          1.0279        1.1512        .79570E-04   -1.5505    
   4  Prefactor     .10001E-03    22.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.6765        5.0160        .12187E-03   -1.5191    
   6  norm          13.719        18.462        .10815E-03   -1.4967    
   7  Prefactor     .10000E-03    15.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     123.73        168.65        .18090E-03   -1.3479    
   9  Prefactor     .10000E-03    4.7162        .15129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.3177        10.818        .96917E-03   -1.5292    
  12  norm          1.0968        1.6885        .13581E-02   -1.5499    
  13  norm          36.102        25.184        .66687E-04   -1.4506    
  14  norm          .10000E-03    5.4968        .23197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.0769        .17183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .38784        .49632        .59984E-03   -1.5583    
  18  norm          .10000E-03    2.2592        .10478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0424        .25498        .27325E-03   -.91624    
  21  Prefactor     .90107        .17429        .20237E-03   -.96104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56117e-09
Minuit parameter uncertainties:
  1  77.2722
  2  35.1511
  3  1.15122
  4  0.000894003
  5  5.01635
  6  18.4695
  7  8.25241e-05
  8  169.31
  9  1.4527e-05
  10  0.000375824
  11  10.823
  12  1.6886
  13  25.1918
  14  0.000101948
  15  0.000303422
  16  2.46106e-05
  17  0.496323
  18  1.50615e-07
  19  8.93812e-05
  20  0.25528
  21  0.174402
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  3.610e+01  2.519e+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:  9.011e-01  1.744e-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.042e+00  2.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.39
Ra Dec: 122.453 5.131
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 5.79e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.06e-05

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

Saving results to:
/scratch/kocevski/250283/likelihoodResults_347414401_347673601_4FGL_J0809.8+0507_daily_bin417.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) = 5103.39809642
delta logL = 0.745642334245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5103.37802202
delta logL = 0.765716735648

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.462       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1790       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1000       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87286       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=   5103.378     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      208 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.462        22.915        .17582E-02    .10684E-02
   2  alpha         1.1788        .95599        .50000       -.12074E-04
   3  Normalizat    1.1000        .20211        .60287E-01    .85208E-05
   4  Prefactor     .87287        .14050        .44658E-01    .67264E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 32.4617
  alpha      = 1.17876
  Normalizat = 1.10001
  Prefactor  = 0.872866
 **********
 **   18 **HESSE 
 **********

 FCN=   5103.378     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.462        26.907        .70329E-04   -1.4568    
   2  alpha         1.1788        1.0441        .31680E-01   -.55683    
   3  Normalizat    1.1000        .23638        .26663E-03   -.89752    
   4  Prefactor     .87287        .16455        .20505E-03   -.97096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77279e-09
Minuit parameter uncertainties:
  1  26.9169
  2  1.09156
  3  0.236606
  4  0.164639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250283': 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) = 5103.37802199
delta logL = 0.765716764505

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  3.246e+01  2.692e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  1.179e+00  1.092e+00  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.729e-01  1.646e-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.100e+00  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.91
Ra Dec: 122.453 5.131
Photon Index (Free Index): 1.18 +/- 1.09
Photon Flux (Free Index): 2.71e-08 +/- 2.32e-08
Energy Flux (Free Index): 1.50e-05 +/- 1.04e-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/250283/cmap_HighResolution_347414401_347673601_4FGL_J0809.8+0507_daily_bin417.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.81e-05', comment='SUCCESS', photon_flux='5.79e-08', energy_flux2='1.50e-05', photon_flux_error='4.04e-08', dlogl='7.66e-01', energy_flux='1.52e-05', photon_flux2='2.71e-08', job_status='DONE', time_completed='2021-08-29 09:03:04.532386', photon_index_error2='1.09', photon_index2='1.18', ts='3.39', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='1.04e-05', EG='1.04', time_epoch_completed='1630252984.53', return_code='0', job_id='250283', GAL2='0.87', EG2='1.10', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='2.32e-08', ts2='4.91', photon_index='2.82' WHERE bin_id='417' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:03:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 250283: <4FGL_J0809.8+0507_daily_bin417> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin417 122.453 5.1313 347414401 347673601 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 :                                   595.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            738 sec.

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

