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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin479
RA = 122.453, Dec = 5.1313
tmin = 363484801, tmax = 363744001
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='251434', job_status='RUN', time_executed='2021-08-29 08:59:07.275841', time_epoch_executed='1630252747.28' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='479'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251434

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251434/ft1_4FGL_J0809.8+0507_daily_bin479.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251434/ft2_4FGL_J0809.8+0507_daily_bin479.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251434/ft1_4FGL_J0809.8+0507_daily_bin479.fits outfile=/scratch/kocevski/251434/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin479.fits ra=122.453 dec=5.1313 rad=12.0 tmin=363484801.0 tmax=363744001.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 6.49
user 3.48
sys 2.99

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251434/ft1_filtered_4FGL_J0809.8+0507_daily_bin479.fits" evtable="EVENTS" scfile=/scratch/kocevski/251434/ft2_4FGL_J0809.8+0507_daily_bin479.fits sctable="SC_DATA" outfile=/scratch/kocevski/251434/ltcube_363484801_363744001_4FGL_J0809.8+0507_daily_bin479.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/251434/ft2_4FGL_J0809.8+0507_daily_bin479.fits
.....................!
real 15.39
user 11.85
sys 3.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251434/ft1_filtered_4FGL_J0809.8+0507_daily_bin479.fits evtable="EVENTS" scfile=/scratch/kocevski/251434/ft2_4FGL_J0809.8+0507_daily_bin479.fits sctable="SC_DATA" expcube=/scratch/kocevski/251434/ltcube_363484801_363744001_4FGL_J0809.8+0507_daily_bin479.fits outfile=/scratch/kocevski/251434/expmap_363484801_363744001_4FGL_J0809.8+0507_daily_bin479.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/251434/ltcube_363484801_363744001_4FGL_J0809.8+0507_daily_bin479.fits
.....................!
real 193.55
user 185.22
sys 7.94

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/251434/ft1_filtered_4FGL_J0809.8+0507_daily_bin479.fits scfile=/scratch/kocevski/251434/ft2_4FGL_J0809.8+0507_daily_bin479.fits outfile=/scratch/kocevski/251434/cmap_363484801_363744001_4FGL_J0809.8+0507_daily_bin479.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 3.26
user 0.37
sys 2.88

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251434/ft1_filtered_4FGL_J0809.8+0507_daily_bin479.fits scfile=/scratch/kocevski/251434/ft2_4FGL_J0809.8+0507_daily_bin479.fits outfile=/scratch/kocevski/251434/cmap_HighResolution_363484801_363744001_4FGL_J0809.8+0507_daily_bin479.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 3.31
user 0.40
sys 2.90

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1669       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    26.315       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.967       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11091E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2691       1.0000         .10000E-03   10000.    
    11 'norm      '    13.805       1.0000         .10000E-03   10000.    
    12 'norm      '    4.1096       1.0000         .10000E-03   10000.    
    13 'norm      '    .10194E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.2880       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5863       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.9753       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0995       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0242       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=   7146.738     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     1920 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.161        .22450E-06** at limit **
   2  Prefactor     .10000E-03    41.216       -.52275E-06** at limit **
   3  norm          .10000E-03    .79313        .11519E-06** at limit **
   4  Prefactor     2.1661        30.442        .49025E-06   -.32293E-04
   5  Prefactor     .10000E-03    1.4387        .12430E-06** at limit **
   6  norm          26.311        19.804        .49215E-06    .54978E-04
   7  Prefactor     25.970        15.376       -.23375E-06   -.69453E-04
   8  Prefactor     .10000E-03    213.62       -.10058E-05** at limit **
   9  Prefactor     .10000E-03    4.8586        .41332E-06** at limit **
  10  Prefactor     2.2397        81.664        .83123E-05    .49580E-04
  11  norm          13.804        11.373       -.11423E-06   -.77964E-04
  12  norm          4.1097        2.0213        .10821E-07   -.30643E-04
  13  norm          .10000E-03    16.674       -.38615E-06** at limit **
  14  norm          5.2890        3.1670        .53286E-06   -.15982E-02
  15  Prefactor     .10000E-03    12.478       -.29506E-06** at limit **
  16  Prefactor     5.5859        7.8271        .63443E-06    .11338E-03
  17  norm          .10000E-03    .31763       -.88773E-07** at limit **
  18  norm          6.9739        8.3232        .99141E-06    .18591E-03
  19  Prefactor     .10000E-03    29.458       -.23538E-06** at limit **
  20  Normalizat    1.0996        .19268       -.56430E-06   -.72425E-04
  21  Prefactor     1.0242        .12786       -.22769E-06   -.16145E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 2.16605
  Prefactor  = 0.0001
  norm       = 26.3112
  Prefactor  = 25.9702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.2397
  norm       = 13.8044
  norm       = 4.10972
  norm       = 0.0001
  norm       = 5.28897
  Prefactor  = 0.0001
  Prefactor  = 5.58587
  norm       = 0.0001
  norm       = 6.97386
  Prefactor  = 0.0001
  Normalizat = 1.09962
  Prefactor  = 1.02423
 **********
 **   18 **HESSE 
 **********

 FCN=   7146.738     FROM HESSE     STATUS=OK           317 CALLS     2237 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    41.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.1980        .14189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1661        30.681        .27978E-03   -1.5414    
   5  Prefactor     .10000E-03    1.4594        .99044E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          26.311        19.841        .78093E-04   -1.4682    
   7  Prefactor     25.970        15.427        .78613E-04   -1.4688    
   8  Prefactor     .10000E-03    214.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.9487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2397        90.659        .27265E-03   -1.5409    
  11  norm          13.804        11.390        .10780E-03   -1.4965    
  12  norm          4.1097        2.0211        .81978E-04   -1.5302    
  13  norm          .10000E-03    16.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.2890        4.1179        .72093E-03   -1.5248    
  15  Prefactor     .10000E-03    12.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.5859        7.8526        .16997E-03   -1.5235    
  17  norm          .10000E-03    .32767        .93039E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.9739        8.4057        .15190E-03   -1.5180    
  19  Prefactor     .10000E-03    29.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0996        .22300        .29326E-03   -.89764    
  21  Prefactor     1.0242        .14743        .20575E-03   -.91926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18249e-09
Minuit parameter uncertainties:
  1  5.64442e-05
  2  6.6498e-05
  3  0.000144533
  4  16.3138
  5  5.06789e-06
  6  19.8456
  7  15.429
  8  0.000303886
  9  2.52879e-05
  10  28.5449
  11  11.3922
  12  2.02114
  13  0.000140106
  14  4.11815
  15  3.49337e-05
  16  7.85407
  17  1.47174e-06
  18  8.40712
  19  2.07111e-05
  20  0.223188
  21  0.147485
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.401e-04  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.024e+00  1.475e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.100e+00  2.232e-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: 7.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251434/likelihoodResults_363484801_363744001_4FGL_J0809.8+0507_daily_bin479.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) = 7146.73870031
delta logL = -0.000282666227577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7146.73841873
delta logL = -1.09229222289e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3952       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0996       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0243       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=   7146.738     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      292 TOTAL
                     EDM=   .27E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9835        .11731    ** at limit **
   2  alpha         3.9104        3.0420        .16479E-01   -.68989E-09
   3  Normalizat    1.0996        .37158E-02    .29326E-03    .54234E-04
   4  Prefactor     1.0242        .25408E-02    .20575E-03    .57574E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.91036
  Normalizat = 1.09962
  Prefactor  = 1.02423
 **********
 **   18 **HESSE 
 **********

 FCN=   7146.738     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    27.192        .37910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.9104        3.6069        .32958E-02    .59940    
   3  Normalizat    1.0996        .21331        .11731E-04   -.89764    
   4  Prefactor     1.0242        .14590        .82302E-05   -.91926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91479e-12
Minuit parameter uncertainties:
  1  1.90508e-06
  2  624.458
  3  0.213482
  4  0.145953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251434': 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) = 7146.73841655
delta logL = 1.08780204755e-06

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.905e-06  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  3.910e+00  6.245e+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.024e+00  1.460e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.100e+00  2.135e-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/251434/cmap_HighResolution_363484801_363744001_4FGL_J0809.8+0507_daily_bin479.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.89e-05', job_status='DONE', photon_flux_upper_limit='7.18e-08', time_completed='2021-08-29 09:10:18.079998', job_id='251434', GAL2='1.02', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630253418.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.09e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='479' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:10:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 251434: <4FGL_J0809.8+0507_daily_bin479> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin479> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 08:55:19 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:55:21 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:55:21 2021
Terminated at Sun Aug 29 09:10:19 2021
Results reported at Sun Aug 29 09:10:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin479 122.453 5.1313 363484801 363744001 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 :                                   715.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             234.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            900 sec.

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

