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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin689
RA = 122.453, Dec = 5.1313
tmin = 417916801, tmax = 418176001
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='252875', job_status='RUN', time_executed='2021-08-29 09:01:00.395251', time_epoch_executed='1630252860.4' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='689'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/252875

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/252875/ft1_4FGL_J0809.8+0507_daily_bin689.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/252875/ft2_4FGL_J0809.8+0507_daily_bin689.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/252875/ft1_4FGL_J0809.8+0507_daily_bin689.fits outfile=/scratch/kocevski/252875/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin689.fits ra=122.453 dec=5.1313 rad=12.0 tmin=417916801.0 tmax=418176001.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 8.04
user 7.02
sys 0.97

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/252875/ft1_filtered_4FGL_J0809.8+0507_daily_bin689.fits" evtable="EVENTS" scfile=/scratch/kocevski/252875/ft2_4FGL_J0809.8+0507_daily_bin689.fits sctable="SC_DATA" outfile=/scratch/kocevski/252875/ltcube_417916801_418176001_4FGL_J0809.8+0507_daily_bin689.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/252875/ft2_4FGL_J0809.8+0507_daily_bin689.fits
.....................!
real 15.27
user 13.57
sys 1.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/252875/ft1_filtered_4FGL_J0809.8+0507_daily_bin689.fits evtable="EVENTS" scfile=/scratch/kocevski/252875/ft2_4FGL_J0809.8+0507_daily_bin689.fits sctable="SC_DATA" expcube=/scratch/kocevski/252875/ltcube_417916801_418176001_4FGL_J0809.8+0507_daily_bin689.fits outfile=/scratch/kocevski/252875/expmap_417916801_418176001_4FGL_J0809.8+0507_daily_bin689.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/252875/ltcube_417916801_418176001_4FGL_J0809.8+0507_daily_bin689.fits
.....................!
real 191.17
user 185.24
sys 5.44

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/252875/ft1_filtered_4FGL_J0809.8+0507_daily_bin689.fits scfile=/scratch/kocevski/252875/ft2_4FGL_J0809.8+0507_daily_bin689.fits outfile=/scratch/kocevski/252875/cmap_417916801_418176001_4FGL_J0809.8+0507_daily_bin689.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 1.45
user 0.38
sys 1.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/252875/ft1_filtered_4FGL_J0809.8+0507_daily_bin689.fits scfile=/scratch/kocevski/252875/ft2_4FGL_J0809.8+0507_daily_bin689.fits outfile=/scratch/kocevski/252875/cmap_HighResolution_417916801_418176001_4FGL_J0809.8+0507_daily_bin689.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.31
user 0.38
sys 0.91

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.109       1.0000         .10000E-03   10000.    
     3 'norm      '    16.898       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7052       1.0000         .10000E-03   10000.    
     6 'norm      '    .10561E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.219       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4225       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2444       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10315E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.741       1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.406       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10768E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    36.911       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2996       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .83759       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=   7250.645     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2221 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.652       -.11078E-04** at limit **
   2  Prefactor     17.109        25.489       -.52164E-06    .63412E-05
   3  norm          16.898        3.3328        .24566E-07    .40557E-04
   4  Prefactor     .10000E-03    10.252       -.65831E-08** at limit **
   5  Prefactor     4.7059        4.2589        .49145E-07    .21056E-04
   6  norm          .10000E-03    36.011       -.10334E-04** at limit **
   7  Prefactor     24.217        15.826       -.50787E-06    .21341E-03
   8  Prefactor     .10000E-03    39.073        .13116E-04** at limit **
   9  Prefactor     1.4214        1.6604        .28154E-06   -.11587E-02
  10  Prefactor     1.0992        208.98       -.15811E-04   -.32250E-04
  11  norm          .10000E-03    5.7579        .12347E-06** at limit **
  12  norm          .10000E-03    .99729        .57774E-07** at limit **
  13  norm          .10000E-03    30.657        .93605E-05** at limit **
  14  norm          12.742        5.2288       -.27183E-07    .38808E-04
  15  Prefactor     44.407        35.495        .90828E-05    .18156E-04
  16  Prefactor     .10000E-03    6.0445       -.56622E-06** at limit **
  17  norm          .10000E-03    .42354       -.61497E-07** at limit **
  18  norm          .10000E-03    4.1067       -.10520E-07** at limit **
  19  Prefactor     36.914        37.420       -.31356E-05   -.33805E-05
  20  Normalizat    1.2995        .20544       -.52374E-06    .12242E-03
  21  Prefactor     .83762        .13301        .24771E-06    .73943E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.1092
  norm       = 16.8985
  Prefactor  = 0.0001
  Prefactor  = 4.70586
  norm       = 0.0001
  Prefactor  = 24.2172
  Prefactor  = 0.0001
  Prefactor  = 1.42135
  Prefactor  = 1.09921
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 12.7416
  Prefactor  = 44.4071
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 36.9136
  Normalizat = 1.29947
  Prefactor  = 0.837622
 **********
 **   18 **HESSE 
 **********

 FCN=   7250.645     FROM HESSE     STATUS=OK           321 CALLS     2542 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.109        25.487        .96830E-04   -1.4880    
   3  norm          16.898        3.3316        .32776E-03   -1.4886    
   4  Prefactor     .10000E-03    10.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.7059        4.2642        .15706E-03   -1.5274    
   6  norm          .10000E-03    36.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.217        15.760        .81395E-04   -1.4723    
   8  Prefactor     .10000E-03    39.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4214        9.2062        .18131E-02   -1.5470    
  10  Prefactor     1.0992        217.55        .40155E-02   -1.5498    
  11  norm          .10000E-03    5.7942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.2140        .16505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    30.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.742        5.2202        .11222E-03   -1.4994    
  15  Prefactor     44.407        35.537        .60164E-04   -1.4374    
  16  Prefactor     .10000E-03    6.0592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.4206        .10556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.1475        .16845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     36.914        37.566        .65967E-04   -1.4492    
  20  Normalizat    1.2995        .23848        .28506E-03   -.83582    
  21  Prefactor     .83762        .15534        .23486E-03   -.98356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98301e-09
Minuit parameter uncertainties:
  1  1.85466e-05
  2  25.5029
  3  3.33167
  4  3.1295e-07
  5  4.2645
  6  8.67781e-05
  7  15.7626
  8  3.12565e-05
  9  7.23608
  10  31.0417
  11  1.79385e-06
  12  8.09037e-05
  13  2.28601e-05
  14  5.22039
  15  35.5538
  16  1.25097e-05
  17  1.24284e-05
  18  6.48001e-07
  19  37.5901
  20  0.238678
  21  0.155423
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  2.286e-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.376e-01  1.554e-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.299e+00  2.387e-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: 9.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.40e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/252875/likelihoodResults_417916801_418176001_4FGL_J0809.8+0507_daily_bin689.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7250.64552498
delta logL = -0.000155194381477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7250.60183812
delta logL = 0.0435316716148

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6193       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9998       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2768       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84655       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7250.602     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      283 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6254        6.4523         .0000        .27899E-01
   2  alpha         5.0000        4.9480         .0000    ** at limit **
   3  Normalizat    1.2765        .20351         .0000        .13412E-05
   4  Prefactor     .84670        .13325         .0000        .41073E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.62535
  alpha      = 5
  Normalizat = 1.27652
  Prefactor  = 0.846696
 **********
 **   18 **HESSE 
 **********

 FCN=   7250.602     FROM HESSE     STATUS=OK            31 CALLS      314 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6254        5.7342        .16631E-02   -1.5453    
   2  alpha         5.0000        4.9950        .18508        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2765        .23833        .28718E-03   -.84270    
   4  Prefactor     .84670        .15648        .23372E-03   -.98029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52691e-09
Minuit parameter uncertainties:
  1  5.7361
  2  8.35072e-06
  3  0.238537
  4  0.156567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/252875': 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) = 7250.60183059
delta logL = 0.0435392000909

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.625e+00  5.736e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  5.000e+00  8.351e-06  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.467e-01  1.566e-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.277e+00  2.385e-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/252875/cmap_HighResolution_417916801_418176001_4FGL_J0809.8+0507_daily_bin689.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.40e-05', job_status='DONE', photon_flux_upper_limit='9.10e-08', time_completed='2021-08-29 09:12:32.803702', job_id='252875', GAL2='0.85', fit_tolerance='1e-08', EG2='1.28', EG='1.30', time_epoch_completed='1630253552.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='4.35e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='689' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:12:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 252875: <4FGL_J0809.8+0507_daily_bin689> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin689> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 09:00:27 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 09:00: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 09:00:29 2021
Terminated at Sun Aug 29 09:12:33 2021
Results reported at Sun Aug 29 09:12:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin689 122.453 5.1313 417916801 418176001 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 :                                   701.36 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             288.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            726 sec.

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

