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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin374
RA = 122.453, Dec = 5.1313
tmin = 336268801, tmax = 336528001
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='250214', job_status='RUN', time_executed='2021-08-29 08:53:33.969216', time_epoch_executed='1630252413.97' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='374'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250214

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250214/ft1_4FGL_J0809.8+0507_daily_bin374.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250214/ft2_4FGL_J0809.8+0507_daily_bin374.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250214/ft1_4FGL_J0809.8+0507_daily_bin374.fits outfile=/scratch/kocevski/250214/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin374.fits ra=122.453 dec=5.1313 rad=12.0 tmin=336268801.0 tmax=336528001.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 7.85
user 6.72
sys 1.04

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250214/ft2_4FGL_J0809.8+0507_daily_bin374.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/250214/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin374.fits evtable="EVENTS" outfile="/scratch/kocevski/250214/ft1_filtered_4FGL_J0809.8+0507_daily_bin374.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.28
user 0.33
sys 0.93

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250214/ft1_filtered_4FGL_J0809.8+0507_daily_bin374.fits" evtable="EVENTS" scfile=/scratch/kocevski/250214/ft2_4FGL_J0809.8+0507_daily_bin374.fits sctable="SC_DATA" outfile=/scratch/kocevski/250214/ltcube_336268801_336528001_4FGL_J0809.8+0507_daily_bin374.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/250214/ft2_4FGL_J0809.8+0507_daily_bin374.fits
.....................!
real 11.99
user 10.77
sys 1.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250214/ft1_filtered_4FGL_J0809.8+0507_daily_bin374.fits evtable="EVENTS" scfile=/scratch/kocevski/250214/ft2_4FGL_J0809.8+0507_daily_bin374.fits sctable="SC_DATA" expcube=/scratch/kocevski/250214/ltcube_336268801_336528001_4FGL_J0809.8+0507_daily_bin374.fits outfile=/scratch/kocevski/250214/expmap_336268801_336528001_4FGL_J0809.8+0507_daily_bin374.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/250214/ltcube_336268801_336528001_4FGL_J0809.8+0507_daily_bin374.fits
.....................!
real 191.81
user 186.00
sys 5.45

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/250214/ft1_filtered_4FGL_J0809.8+0507_daily_bin374.fits scfile=/scratch/kocevski/250214/ft2_4FGL_J0809.8+0507_daily_bin374.fits outfile=/scratch/kocevski/250214/cmap_336268801_336528001_4FGL_J0809.8+0507_daily_bin374.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.30
user 0.35
sys 0.94

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250214/ft1_filtered_4FGL_J0809.8+0507_daily_bin374.fits scfile=/scratch/kocevski/250214/ft2_4FGL_J0809.8+0507_daily_bin374.fits outfile=/scratch/kocevski/250214/cmap_HighResolution_336268801_336528001_4FGL_J0809.8+0507_daily_bin374.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/250214/ft1_filtered_4FGL_J0809.8+0507_daily_bin374.fits evtable="EVENTS" scfile=/scratch/kocevski/250214/ft2_4FGL_J0809.8+0507_daily_bin374.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250214/Model_4FGL_J0809.8+0507_daily_bin374.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/250214/ft1_filtered_4FGL_J0809.8+0507_daily_bin374.fits.....................!
real 82.90
user 80.38
sys 2.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .92047       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0056       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    17.095       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    61.474       1.0000         .10000E-03   10000.    
    11 'norm      '    4.8719       1.0000         .10000E-03   10000.    
    12 'norm      '    .82512       1.0000         .10000E-03   10000.    
    13 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4767       1.0000         .10000E-03   10000.    
    15 'Prefactor '    85.116       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10907E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8221       1.0000         .10000E-03   10000.    
    18 'norm      '    6.2786       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97368       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0709       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=   6975.609     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     2538 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.178        .18142E-02** at limit **
   2  Prefactor     .87560        242.91        .81151E-02    .81696E-04
   3  norm          1.0062        1.1328        .92857E-04   -.12378E-03
   4  Prefactor     .10000E-03    9.8443        .18142E-02** at limit **
   5  Prefactor     .10000E-03    3.8290        .21479E-02** at limit **
   6  norm          17.094        14.408        .96869E-04    .11386E-03
   7  Prefactor     .10000E-03    5.8109        .18142E-02** at limit **
   8  Prefactor     .10000E-03    49.848        .18142E-02** at limit **
   9  Prefactor     .10000E-03    5.2935        .36285E-03** at limit **
  10  Prefactor     61.469        35.367        .51176E-04    .25920E-03
  11  norm          4.8701        9.5078        .18224E-03    .29819E-03
  12  norm          .82690        1.6240        .16440E-02   -.19366E-03
  13  norm          .10000E-03    9.8773        .18142E-02** at limit **
  14  norm          3.4762        3.4676        .14955E-03    .26721E-03
  15  Prefactor     85.127        48.993        .43543E-04   -.39754E-03
  16  Prefactor     .10000E-03    25.082        .18142E-02** at limit **
  17  norm          1.8219        1.1650        .68415E-04    .79447E-03
  18  norm          6.2781        9.4201        .16020E-03    .20360E-03
  19  Prefactor     .10000E-03    9.9841        .18142E-02** at limit **
  20  Normalizat    .97375        .23090        .31076E-03    .24657E-04
  21  Prefactor     1.0709        .15261        .20275E-03    .53902E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.875603
  norm       = 1.00623
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 17.0936
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 61.4691
  norm       = 4.8701
  norm       = 0.826896
  norm       = 0.0001
  norm       = 3.47621
  Prefactor  = 85.1274
  Prefactor  = 0.000100002
  norm       = 1.82195
  norm       = 6.27809
  Prefactor  = 0.0001
  Normalizat = 0.973755
  Prefactor  = 1.07089
 **********
 **   18 **HESSE 
 **********

 FCN=   6975.609     FROM HESSE     STATUS=OK           299 CALLS     2837 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.178        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .87560        246.84        .32461E-03   -1.5521    
   3  norm          1.0062        1.1319        .37143E-05   -1.5507    
   4  Prefactor     .10000E-03    9.8447        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8481        .42958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          17.094        14.408        .19374E-04   -1.4881    
   7  Prefactor     .10000E-03    5.8116        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    49.849        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.2938        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     61.469        35.366        .10235E-04   -1.4138    
  11  norm          4.8701        9.5042        .72896E-05   -1.5267    
  12  norm          .82690        1.6223        .65760E-04   -1.5526    
  13  norm          .10000E-03    9.8776        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4762        3.4671        .59821E-05   -1.5335    
  15  Prefactor     85.127        48.983        .87086E-05   -1.3860    
  16  Prefactor     .10000E-03    25.099        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8219        1.1647        .27366E-05   -1.5438    
  18  norm          6.2781        9.4161        .64079E-05   -1.5207    
  19  Prefactor     .10000E-03    9.9843        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .97375        .23103        .12430E-04   -.93915    
  21  Prefactor     1.0709        .15227        .40549E-04   -.90403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73835e-09
Minuit parameter uncertainties:
  1  2.16245e-05
  2  29.5249
  3  1.13197
  4  9.98101e-05
  5  0.000221637
  6  14.4104
  7  4.03266e-06
  8  0.000796692
  9  3.2539e-07
  10  35.3785
  11  9.50719
  12  1.62238
  13  8.0825e-05
  14  3.46734
  15  49.006
  16  0.000435188
  17  1.1647
  18  9.41831
  19  0.000121042
  20  0.231272
  21  0.152336
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  8.083e-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:  1.071e+00  1.523e-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.738e-01  2.313e-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: 6.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250214/likelihoodResults_336268801_336528001_4FGL_J0809.8+0507_daily_bin374.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) = 6975.60987329
delta logL = -0.000482272784211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6975.60939101
delta logL = 3.19232640322e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8154       1.0000          .0000       5.0000    
     3 'Normalizat'    .97376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0709       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=   6975.609     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      220 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.9057        .18142E-02** at limit **
   2  alpha         2.8411        2.7292        .16629E-01   -.31448E-07
   3  Normalizat    .97376        .21636        .31076E-03   -.26527E-03
   4  Prefactor     1.0709        .14828        .20275E-03   -.32117E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.84109
  Normalizat = 0.973758
  Prefactor  = 1.07088
 **********
 **   18 **HESSE 
 **********

 FCN=   6975.609     FROM HESSE     STATUS=OK            23 CALLS      243 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.8795        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8411        2.8881        .33258E-02    .13686    
   3  Normalizat    .97376        .21652        .12430E-04   -.93915    
   4  Prefactor     1.0709        .14839        .40549E-04   -.90403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92617e-10
Minuit parameter uncertainties:
  1  0.000197039
  2  746.123
  3  0.216715
  4  0.14845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250214': 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) = 6975.60939101
delta logL = 1.14232534543e-09

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.970e-04  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.841e+00  7.461e+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:  1.071e+00  1.484e-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.738e-01  2.167e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/250214/cmap_HighResolution_336268801_336528001_4FGL_J0809.8+0507_daily_bin374.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-05', job_status='DONE', photon_flux_upper_limit='6.72e-08', time_completed='2021-08-29 09:04:56.604636', job_id='250214', GAL2='1.07', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630253096.6', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.14e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='374' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:04:56 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin374 122.453 5.1313 336268801 336528001 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 :                                   692.02 sec.
    Max Memory :                                 1236 MB
    Average Memory :                             288.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            856 sec.

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

