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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin399
RA = 122.453, Dec = 5.1313
tmin = 342748801, tmax = 343008001
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='250254', job_status='RUN', time_executed='2021-08-29 08:55:06.481347', time_epoch_executed='1630252506.48' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250254

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250254/ft1_4FGL_J0809.8+0507_daily_bin399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250254/ft2_4FGL_J0809.8+0507_daily_bin399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250254/ft1_4FGL_J0809.8+0507_daily_bin399.fits outfile=/scratch/kocevski/250254/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin399.fits ra=122.453 dec=5.1313 rad=12.0 tmin=342748801.0 tmax=343008001.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.52
user 3.31
sys 1.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250254/ft1_filtered_4FGL_J0809.8+0507_daily_bin399.fits" evtable="EVENTS" scfile=/scratch/kocevski/250254/ft2_4FGL_J0809.8+0507_daily_bin399.fits sctable="SC_DATA" outfile=/scratch/kocevski/250254/ltcube_342748801_343008001_4FGL_J0809.8+0507_daily_bin399.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/250254/ft2_4FGL_J0809.8+0507_daily_bin399.fits
.....................!
real 13.20
user 11.74
sys 1.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250254/ft1_filtered_4FGL_J0809.8+0507_daily_bin399.fits evtable="EVENTS" scfile=/scratch/kocevski/250254/ft2_4FGL_J0809.8+0507_daily_bin399.fits sctable="SC_DATA" expcube=/scratch/kocevski/250254/ltcube_342748801_343008001_4FGL_J0809.8+0507_daily_bin399.fits outfile=/scratch/kocevski/250254/expmap_342748801_343008001_4FGL_J0809.8+0507_daily_bin399.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/250254/ltcube_342748801_343008001_4FGL_J0809.8+0507_daily_bin399.fits
.....................!
real 191.38
user 185.37
sys 5.61

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/250254/ft1_filtered_4FGL_J0809.8+0507_daily_bin399.fits scfile=/scratch/kocevski/250254/ft2_4FGL_J0809.8+0507_daily_bin399.fits outfile=/scratch/kocevski/250254/cmap_342748801_343008001_4FGL_J0809.8+0507_daily_bin399.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.50
user 0.37
sys 1.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250254/ft1_filtered_4FGL_J0809.8+0507_daily_bin399.fits scfile=/scratch/kocevski/250254/ft2_4FGL_J0809.8+0507_daily_bin399.fits outfile=/scratch/kocevski/250254/cmap_HighResolution_342748801_343008001_4FGL_J0809.8+0507_daily_bin399.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.50
user 0.37
sys 1.11

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.288       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8423       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5000       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10693E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.229       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .29978E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.1087       1.0000         .10000E-03   10000.    
    12 'norm      '    3.4434       1.0000         .10000E-03   10000.    
    13 'norm      '    .11145E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.8292       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.935       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .50797E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2822       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .65693       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=   5724.270     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2251 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.639       -.16649E-06** at limit **
   2  Prefactor     20.356        35.148        .31827E-05   -.10140E-04
   3  norm          1.8387        1.8760       -.15196E-06   -.14360E-03
   4  Prefactor     .10000E-03    8.8113        .12270E-06** at limit **
   5  Prefactor     1.5016        2.0485       -.15865E-07   -.19599E-05
   6  norm          .10000E-03    7.3010       -.11087E-06** at limit **
   7  Prefactor     .10000E-03    6.3116        .22609E-06** at limit **
   8  Prefactor     .10000E-03    28.010       -.14369E-05** at limit **
   9  Prefactor     27.231        12.568        .13396E-06   -.15376E-05
  10  Prefactor     .10000E-03    85.528        .14848E-04** at limit **
  11  norm          5.1069        9.9551       -.13620E-05   -.43749E-05
  12  norm          3.4430        2.3910        .22223E-08    .42113E-05
  13  norm          .10000E-03    5.9197        .53012E-07** at limit **
  14  norm          4.8280        4.0437        .70573E-07   -.31122E-04
  15  Prefactor     10.970        20.108       -.16748E-05   -.21389E-05
  16  Prefactor     .10000E-03    4.7813        .77806E-07** at limit **
  17  norm          .51170E-01    .60744        .54503E-06   -.19486E-03
  18  norm          .10000E-03    2.8997        .31324E-07** at limit **
  19  Prefactor     .10000E-03    24.373        .13114E-05** at limit **
  20  Normalizat    1.2815        .18233       -.29534E-06   -.91055E-04
  21  Prefactor     .65734        .12419        .80103E-07   -.10136E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.3557
  norm       = 1.83866
  Prefactor  = 0.0001
  Prefactor  = 1.50164
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.2312
  Prefactor  = 0.0001
  norm       = 5.10687
  norm       = 3.44301
  norm       = 0.0001
  norm       = 4.82801
  Prefactor  = 10.9696
  Prefactor  = 0.0001
  norm       = 0.0511696
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.28151
  Prefactor  = 0.657344
 **********
 **   18 **HESSE 
 **********

 FCN=   5724.270     FROM HESSE     STATUS=OK           321 CALLS     2572 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.356        35.182        .88923E-04   -1.4805    
   3  norm          1.8387        1.8649        .97914E-04   -1.5437    
   4  Prefactor     .10000E-03    8.8137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5016        2.0272        .12178E-03   -1.5463    
   6  norm          .10000E-03    7.3090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.231        12.562        .76773E-04   -1.4664    
  10  Prefactor     .10000E-03    84.897        .52777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.1069        9.9682        .88941E-03   -1.5256    
  12  norm          3.4430        2.3903        .93868E-04   -1.5337    
  13  norm          .10000E-03    5.9287        .17976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.8280        4.0333        .13310E-03   -1.5268    
  15  Prefactor     10.970        20.124        .12115E-03   -1.5045    
  16  Prefactor     .10000E-03    4.7928        .16157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .51170E-01    4.1955        .10239E-02   -1.5663    
  18  norm          .10000E-03    2.9097        .12581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2815        .20813        .23813E-03   -.84120    
  21  Prefactor     .65734        .14144        .21952E-03   -1.0522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23318e-08
Minuit parameter uncertainties:
  1  6.91311e-06
  2  35.2175
  3  1.865
  4  1.48644e-06
  5  2.02729
  6  3.63215e-06
  7  5.85993e-06
  8  2.16071e-05
  9  12.5635
  10  0.000201532
  11  9.9714
  12  2.3904
  13  1.34503e-05
  14  4.03355
  15  20.1367
  16  7.04026e-06
  17  0.925834
  18  1.89593e-06
  19  4.58454e-06
  20  0.208265
  21  0.141515
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.345e-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:  6.573e-01  1.415e-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.282e+00  2.083e-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: 4.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250254/likelihoodResults_342748801_343008001_4FGL_J0809.8+0507_daily_bin399.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) = 5724.27126249
delta logL = -0.000799017936515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5724.27046346
delta logL = 1.11249391921e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8073       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2815       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65736       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5724.270     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      229 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    128.37        .18021E-01** at limit **
   2  alpha         1.8461        3.3294        .50000        .72987E-08
   3  Normalizat    1.2815        .21071E-01    .23813E-03    .45354E-04
   4  Prefactor     .65734        .14456E-01    .21952E-03    .52254E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.84605
  Normalizat = 1.28151
  Prefactor  = 0.657344
 **********
 **   18 **HESSE 
 **********

 FCN=   5724.270     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.0403        .19454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8461        2.6994        .20000E-01   -.26466    
   3  Normalizat    1.2815        .20061        .95253E-05   -.84120    
   4  Prefactor     .65734        .13765        .87809E-05   -1.0522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45624e-12
Minuit parameter uncertainties:
  1  1.59564e-05
  2  621.211
  3  0.200732
  4  0.137721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250254': 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) = 5724.27046222
delta logL = 1.25175301946e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  6.573e-01  1.377e-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.282e+00  2.007e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/250254/cmap_HighResolution_342748801_343008001_4FGL_J0809.8+0507_daily_bin399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-05', job_status='DONE', photon_flux_upper_limit='4.47e-08', time_completed='2021-08-29 09:05:03.342578', job_id='250254', GAL2='0.66', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1630253103.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='1.25e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='399' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:05:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 250254: <4FGL_J0809.8+0507_daily_bin399> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin399 122.453 5.1313 342748801 343008001 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 :                                   611.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             257.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            859 sec.

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

