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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin164
RA = 122.453, Dec = 5.1313
tmin = 281836801, tmax = 282096001
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='248833', job_status='RUN', time_executed='2021-08-29 08:49:26.369570', time_epoch_executed='1630252166.37' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248833

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248833/ft1_4FGL_J0809.8+0507_daily_bin164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248833/ft2_4FGL_J0809.8+0507_daily_bin164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248833/ft1_4FGL_J0809.8+0507_daily_bin164.fits outfile=/scratch/kocevski/248833/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin164.fits ra=122.453 dec=5.1313 rad=12.0 tmin=281836801.0 tmax=282096001.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.14
user 3.73
sys 0.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248833/ft1_filtered_4FGL_J0809.8+0507_daily_bin164.fits" evtable="EVENTS" scfile=/scratch/kocevski/248833/ft2_4FGL_J0809.8+0507_daily_bin164.fits sctable="SC_DATA" outfile=/scratch/kocevski/248833/ltcube_281836801_282096001_4FGL_J0809.8+0507_daily_bin164.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/248833/ft2_4FGL_J0809.8+0507_daily_bin164.fits
.....................!
real 12.32
user 11.77
sys 0.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248833/ft1_filtered_4FGL_J0809.8+0507_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/248833/ft2_4FGL_J0809.8+0507_daily_bin164.fits sctable="SC_DATA" expcube=/scratch/kocevski/248833/ltcube_281836801_282096001_4FGL_J0809.8+0507_daily_bin164.fits outfile=/scratch/kocevski/248833/expmap_281836801_282096001_4FGL_J0809.8+0507_daily_bin164.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/248833/ltcube_281836801_282096001_4FGL_J0809.8+0507_daily_bin164.fits
.....................!
real 192.40
user 187.34
sys 4.69

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/248833/ft1_filtered_4FGL_J0809.8+0507_daily_bin164.fits scfile=/scratch/kocevski/248833/ft2_4FGL_J0809.8+0507_daily_bin164.fits outfile=/scratch/kocevski/248833/cmap_281836801_282096001_4FGL_J0809.8+0507_daily_bin164.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.71
user 0.37
sys 0.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248833/ft1_filtered_4FGL_J0809.8+0507_daily_bin164.fits scfile=/scratch/kocevski/248833/ft2_4FGL_J0809.8+0507_daily_bin164.fits outfile=/scratch/kocevski/248833/cmap_HighResolution_281836801_282096001_4FGL_J0809.8+0507_daily_bin164.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.72
user 0.38
sys 0.33

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0544       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .72154E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    85.638       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1925       1.0000         .10000E-03   10000.    
     6 'norm      '    9.2360       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    63.288       1.0000         .10000E-03   10000.    
    11 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6072       1.0000         .10000E-03   10000.    
    13 'norm      '    21.134       1.0000         .10000E-03   10000.    
    14 'norm      '    2.5333       1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.724       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.4525       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .95086       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95803       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=   5134.185     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2194 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0472        31.050        .33299E-02    .47774E-03
   2  Prefactor     .10001E-03    131.89        .93252E-02** at limit **
   3  norm          .10000E-03    .52037        .90712E-02** at limit **
   4  Prefactor     85.639        52.421        .10853E-02   -.22125E-03
   5  Prefactor     6.1928        3.7384        .40331E-02    .43731E-02
   6  norm          9.2367        13.534        .32969E-02   -.61479E-03
   7  Prefactor     .10000E-03    14.120        .90712E-02** at limit **
   8  Prefactor     .10000E-03    57.784        .90712E-02** at limit **
   9  Prefactor     .10000E-03    5.0733        .90712E-02** at limit **
  10  Prefactor     63.289        42.660        .12611E-02   -.71777E-03
  11  norm          .10000E-03    12.271        .90712E-02** at limit **
  12  norm          1.6076        2.7884        .83555E-02    .54407E-03
  13  norm          21.135        23.542        .21782E-02   -.79163E-04
  14  norm          2.5325        5.2370        .64153E-02   -.29945E-02
  15  Prefactor     41.724        40.895        .15515E-02    .59427E-05
  16  Prefactor     .10000E-03    6.5694        .90712E-02** at limit **
  17  norm          4.4526        1.5570        .47708E-02    .41672E-03
  18  norm          .10000E-03    5.8035        .90712E-02** at limit **
  19  Prefactor     .10000E-03    19.496        .90712E-02** at limit **
  20  Normalizat    .95068        .22095        .67398E-01    .21090E-04
  21  Prefactor     .95813        .14887        .45740E-01   -.44906E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.04724
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 85.6386
  Prefactor  = 6.19281
  norm       = 9.23671
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.289
  norm       = 0.0001
  norm       = 1.60763
  norm       = 21.1352
  norm       = 2.53254
  Prefactor  = 41.7244
  Prefactor  = 0.0001
  norm       = 4.45263
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.950685
  Prefactor  = 0.958127
 **********
 **   18 **HESSE 
 **********

 FCN=   5134.185     FROM HESSE     STATUS=OK           311 CALLS     2505 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0472        31.139        .13320E-03   -1.5106    
   2  Prefactor     .10001E-03    135.81        .37301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .52407        .50459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     85.639        52.505        .43411E-04   -1.3854    
   5  Prefactor     6.1928        3.7437        .51084E-03   -1.5210    
   6  norm          9.2367        13.498        .13187E-03   -1.5100    
   7  Prefactor     .10000E-03    14.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    57.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.0950        .15760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     63.289        42.685        .50442E-04   -1.4115    
  11  norm          .10000E-03    12.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6076        2.7652        .15213E-03   -1.5454    
  13  norm          21.135        23.523        .87126E-04   -1.4788    
  14  norm          2.5325        5.2097        .22202E-03   -1.5390    
  15  Prefactor     41.724        41.073        .62059E-04   -1.4415    
  16  Prefactor     .10000E-03    6.5846        .17935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.4526        1.5585        .50529E-04   -1.5286    
  18  norm          .10000E-03    5.8682        .16856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .95068        .25875        .29814E-03   -.94701    
  21  Prefactor     .95813        .17453        .20579E-03   -.94139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73357e-08
Minuit parameter uncertainties:
  1  31.1953
  2  0.0026339
  3  8.80938e-07
  4  52.5333
  5  3.74384
  6  13.5028
  7  9.26072e-05
  8  0.000178703
  9  1.00545e-05
  10  42.7055
  11  6.39486e-05
  12  2.76544
  13  23.5333
  14  5.2106
  15  41.1007
  16  1.65362e-05
  17  1.5585
  18  2.26951e-05
  19  8.32319e-05
  20  0.259095
  21  0.174632
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.114e+01  2.353e+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.581e-01  1.746e-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:  9.507e-01  2.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.33
Ra Dec: 122.453 5.131
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 3.39e-08 +/- 3.77e-08
Energy Flux (Fixed Index): 8.93e-06 +/- 9.94e-06

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

Saving results to:
/scratch/kocevski/248833/likelihoodResults_281836801_282096001_4FGL_J0809.8+0507_daily_bin164.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) = 5133.82280815
delta logL = 0.362579660507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5133.80908357
delta logL = 0.376304247636

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.749       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5429       1.0000          .0000       5.0000    
     3 'Normalizat'    .97031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94766       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=   5133.809     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      211 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.791        24.069        .20130E-02   -.18191E-04
   2  alpha         1.5459        1.2185        .45819       -.24258E-05
   3  Normalizat    .97002        .20970        .66806E-01    .42696E-04
   4  Prefactor     .94786        .14574        .45610E-01   -.61421E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 24.7906
  alpha      = 1.5459
  Normalizat = 0.970016
  Prefactor  = 0.947858
 **********
 **   18 **HESSE 
 **********

 FCN=   5133.809     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.791        25.530        .80521E-04   -1.4712    
   2  alpha         1.5459        1.2851        .38477E-02   -.39157    
   3  Normalizat    .97002        .24272        .29551E-03   -.94042    
   4  Prefactor     .94786        .16893        .20669E-03   -.94488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3791e-11
Minuit parameter uncertainties:
  1  25.5411
  2  1.36268
  3  0.242998
  4  0.169024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248833': 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) = 5133.80908005
delta logL = 0.376307768684

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.479e+01  2.554e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  1.546e+00  1.363e+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:  9.479e-01  1.690e-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:  9.700e-01  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.09
Ra Dec: 122.453 5.131
Photon Index (Free Index): 1.55 +/- 1.36
Photon Flux (Free Index): 2.17e-08 +/- 2.54e-08
Energy Flux (Free Index): 9.96e-06 +/- 9.62e-06

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/248833/cmap_HighResolution_281836801_282096001_4FGL_J0809.8+0507_daily_bin164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-05', comment='SUCCESS', photon_flux='3.39e-08', energy_flux2='9.96e-06', photon_flux_error='3.77e-08', dlogl='3.76e-01', energy_flux='8.93e-06', photon_flux2='2.17e-08', job_status='DONE', time_completed='2021-08-29 08:58:43.860692', photon_index_error2='1.36', photon_index2='1.55', ts='1.33', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='9.62e-06', EG='0.95', time_epoch_completed='1630252723.86', return_code='0', job_id='248833', GAL2='0.95', EG2='0.97', return_code2='0', energy_flux_error='9.94e-06', photon_flux_error2='2.54e-08', ts2='2.09', photon_index='2.82' WHERE bin_id='164' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:58:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 248833: <4FGL_J0809.8+0507_daily_bin164> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin164> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 08:45:47 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:45:48 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:45:48 2021
Terminated at Sun Aug 29 08:58:44 2021
Results reported at Sun Aug 29 08:58:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin164 122.453 5.1313 281836801 282096001 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 :                                   560.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             231.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            777 sec.

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

