/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 136 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_bin228
RA = 122.453, Dec = 5.1313
tmin = 298425601, tmax = 298684801
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='248927', job_status='RUN', time_executed='2021-08-29 08:48:27.201325', time_epoch_executed='1630252107.2' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248927

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248927/ft1_4FGL_J0809.8+0507_daily_bin228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248927/ft2_4FGL_J0809.8+0507_daily_bin228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248927/ft1_4FGL_J0809.8+0507_daily_bin228.fits outfile=/scratch/kocevski/248927/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin228.fits ra=122.453 dec=5.1313 rad=12.0 tmin=298425601.0 tmax=298684801.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 3.66
user 3.06
sys 0.56

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/248927/ft2_4FGL_J0809.8+0507_daily_bin228.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/248927/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin228.fits evtable="EVENTS" outfile="/scratch/kocevski/248927/ft1_filtered_4FGL_J0809.8+0507_daily_bin228.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.88
user 0.30
sys 0.54

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248927/ft1_filtered_4FGL_J0809.8+0507_daily_bin228.fits" evtable="EVENTS" scfile=/scratch/kocevski/248927/ft2_4FGL_J0809.8+0507_daily_bin228.fits sctable="SC_DATA" outfile=/scratch/kocevski/248927/ltcube_298425601_298684801_4FGL_J0809.8+0507_daily_bin228.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/248927/ft2_4FGL_J0809.8+0507_daily_bin228.fits
.....................!
real 12.27
user 11.50
sys 0.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248927/ft1_filtered_4FGL_J0809.8+0507_daily_bin228.fits evtable="EVENTS" scfile=/scratch/kocevski/248927/ft2_4FGL_J0809.8+0507_daily_bin228.fits sctable="SC_DATA" expcube=/scratch/kocevski/248927/ltcube_298425601_298684801_4FGL_J0809.8+0507_daily_bin228.fits outfile=/scratch/kocevski/248927/expmap_298425601_298684801_4FGL_J0809.8+0507_daily_bin228.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/248927/ltcube_298425601_298684801_4FGL_J0809.8+0507_daily_bin228.fits
.....................!
real 191.68
user 185.89
sys 5.36

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/248927/ft1_filtered_4FGL_J0809.8+0507_daily_bin228.fits scfile=/scratch/kocevski/248927/ft2_4FGL_J0809.8+0507_daily_bin228.fits outfile=/scratch/kocevski/248927/cmap_298425601_298684801_4FGL_J0809.8+0507_daily_bin228.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=122.453 yref=5.1313 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.87
user 0.37
sys 0.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248927/ft1_filtered_4FGL_J0809.8+0507_daily_bin228.fits scfile=/scratch/kocevski/248927/ft2_4FGL_J0809.8+0507_daily_bin228.fits outfile=/scratch/kocevski/248927/cmap_HighResolution_298425601_298684801_4FGL_J0809.8+0507_daily_bin228.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=122.453 yref=5.1313 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.89
user 0.39
sys 0.49

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .86234       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9032       1.0000         .10000E-03   10000.    
     6 'norm      '    20.890       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23142E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    87.192       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8847       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.985       1.0000         .10000E-03   10000.    
    11 'norm      '    12.455       1.0000         .10000E-03   10000.    
    12 'norm      '    .68383       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.2868       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6835       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2656       1.0000         .10000E-03   10000.    
    18 'norm      '    6.0193       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0359       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92301       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=   7360.283     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2312 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.792        .65143E-07** at limit **
   2  Prefactor     .10000E-03    56.600       -.16024E-05** at limit **
   3  norm          .86232        1.3669       -.55311E-06   -.59878E-04
   4  Prefactor     .10000E-03    9.8531       -.15998E-06** at limit **
   5  Prefactor     1.9023        3.0565       -.86226E-06    .13089E-04
   6  norm          20.880        19.846       -.30427E-06   -.37466E-04
   7  Prefactor     .10000E-03    67.971       -.29338E-05** at limit **
   8  Prefactor     87.221        113.38        .20824E-06   -.14698E-04
   9  Prefactor     5.8848        4.7652       -.55185E-07   -.28133E-04
  10  Prefactor     24.991        24.223       -.76522E-07    .11047E-05
  11  norm          12.455        8.6541       -.56095E-07    .19985E-04
  12  norm          .68347        1.2840        .40858E-07    .37547E-04
  13  norm          .10000E-03    7.9997       -.57927E-07** at limit **
  14  norm          4.2863        3.9294       -.24910E-06    .37508E-04
  15  Prefactor     .10000E-03    24.005        .24686E-07** at limit **
  16  Prefactor     6.6804        15.171       -.36550E-06    .48730E-05
  17  norm          2.2655        1.1066       -.29162E-07    .47131E-04
  18  norm          6.0195        5.3590       -.45755E-07    .33626E-04
  19  Prefactor     .10000E-03    9.4336        .21963E-06** at limit **
  20  Normalizat    1.0360        .18229        .52627E-06    .22393E-04
  21  Prefactor     .92294        .11929       -.28568E-06    .12545E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.862315
  Prefactor  = 0.0001
  Prefactor  = 1.90232
  norm       = 20.8795
  Prefactor  = 0.0001
  Prefactor  = 87.2211
  Prefactor  = 5.8848
  Prefactor  = 24.9909
  norm       = 12.4553
  norm       = 0.683471
  norm       = 0.0001
  norm       = 4.28632
  Prefactor  = 0.0001
  Prefactor  = 6.68035
  norm       = 2.26549
  norm       = 6.01951
  Prefactor  = 0.0001
  Normalizat = 1.03599
  Prefactor  = 0.92294
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.283     FROM HESSE     STATUS=OK           327 CALLS     2639 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    57.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .86232        1.3537        .12209E-03   -1.5522    
   4  Prefactor     .10000E-03    9.8757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.9023        3.0381        .17807E-03   -1.5432    
   6  norm          20.880        19.631        .87633E-04   -1.4794    
   7  Prefactor     .10000E-03    67.305        .54311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     87.221        113.41        .21513E-03   -1.3837    
   9  Prefactor     5.8848        4.7599        .16325E-03   -1.5223    
  10  Prefactor     24.991        24.268        .80141E-04   -1.4708    
  11  norm          12.455        8.6494        .11351E-03   -1.5002    
  12  norm          .68347        1.0347        .13060E-02   -1.5543    
  13  norm          .10000E-03    8.0141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.2863        3.9223        .15500E-03   -1.5294    
  15  Prefactor     .10000E-03    24.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.6804        15.198        .15521E-03   -1.5191    
  17  norm          2.2655        1.1066        .59732E-04   -1.5407    
  18  norm          6.0195        5.3576        .16366E-03   -1.5217    
  19  Prefactor     .10000E-03    9.4490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0360        .20966        .28352E-03   -.91834    
  21  Prefactor     .92294        .13676        .20414E-03   -.95344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34694e-11
Minuit parameter uncertainties:
  1  1.15978e-05
  2  0.000180251
  3  1.35376
  4  2.22549e-05
  5  3.03836
  6  19.6373
  7  0.000149088
  8  113.691
  9  4.76017
  10  24.2777
  11  8.65028
  12  1.0347
  13  8.06166e-07
  14  3.92251
  15  6.6882e-06
  16  15.2068
  17  1.10661
  18  5.358
  19  2.40124e-05
  20  0.209824
  21  0.13681
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.229e-01  1.368e-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.036e+00  2.098e-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: 5.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248927/likelihoodResults_298425601_298684801_4FGL_J0809.8+0507_daily_bin228.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) = 7360.283441
delta logL = -0.000594443712544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.2828492
delta logL = -2.6444931791e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8184       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92284       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=   7360.283     FROM MIGRAD    STATUS=CONVERGED    123 CALLS      260 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7964        .66870E-01** at limit **
   2  alpha         5.0000        4.9421        .50000    ** at limit **
   3  Normalizat    1.0360        .45247E-02    .28352E-03    .13914E-03
   4  Prefactor     .92294        .31117E-02    .20414E-03    .20717E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 5
  Normalizat = 1.03599
  Prefactor  = 0.922939
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.283     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      291 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1886.7        .22754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        4.6975        .50000        1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0360        .12224        .11341E-04   -.91834    
   4  Prefactor     .92294        .80231E-01    .81655E-05   -.95344    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2094e-08
Minuit parameter uncertainties:
  1  0.00190001
  2  4.5712
  3  0.122274
  4  0.0802416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248927': 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): 102
logL (Free Index) = 7360.28284562
delta logL = 9.37977347348e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.229e-01  8.024e-02  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.036e+00  1.223e-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/248927/cmap_HighResolution_298425601_298684801_4FGL_J0809.8+0507_daily_bin228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-05', job_status='DONE', photon_flux_upper_limit='5.43e-08', time_completed='2021-08-29 08:59:39.898038', job_id='248927', GAL2='0.92', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630252779.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='9.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='228' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:59:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 248927: <4FGL_J0809.8+0507_daily_bin228> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin228> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 08:45:53 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:45:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 08:45:55 2021
Terminated at Sun Aug 29 08:59:40 2021
Results reported at Sun Aug 29 08:59:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin228 122.453 5.1313 298425601 298684801 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 :                                   676.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            827 sec.

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

