/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 68 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.8+0507_daily_bin80
RA = 122.453, Dec = 5.1313
tmin = 260064001, tmax = 260323201
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='248709', job_status='RUN', time_executed='2021-08-29 08:47:06.948966', time_epoch_executed='1630252026.95' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='80'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248709

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248709/ft1_4FGL_J0809.8+0507_daily_bin80.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248709/ft2_4FGL_J0809.8+0507_daily_bin80.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248709/ft1_4FGL_J0809.8+0507_daily_bin80.fits outfile=/scratch/kocevski/248709/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin80.fits ra=122.453 dec=5.1313 rad=12.0 tmin=260064001.0 tmax=260323201.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 2.02
user 1.30
sys 0.69

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248709/ft1_filtered_4FGL_J0809.8+0507_daily_bin80.fits" evtable="EVENTS" scfile=/scratch/kocevski/248709/ft2_4FGL_J0809.8+0507_daily_bin80.fits sctable="SC_DATA" outfile=/scratch/kocevski/248709/ltcube_260064001_260323201_4FGL_J0809.8+0507_daily_bin80.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/248709/ft2_4FGL_J0809.8+0507_daily_bin80.fits
.....................!
real 13.11
user 12.03
sys 0.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248709/ft1_filtered_4FGL_J0809.8+0507_daily_bin80.fits evtable="EVENTS" scfile=/scratch/kocevski/248709/ft2_4FGL_J0809.8+0507_daily_bin80.fits sctable="SC_DATA" expcube=/scratch/kocevski/248709/ltcube_260064001_260323201_4FGL_J0809.8+0507_daily_bin80.fits outfile=/scratch/kocevski/248709/expmap_260064001_260323201_4FGL_J0809.8+0507_daily_bin80.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/248709/ltcube_260064001_260323201_4FGL_J0809.8+0507_daily_bin80.fits
.....................!
real 191.73
user 186.25
sys 4.99

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/248709/ft1_filtered_4FGL_J0809.8+0507_daily_bin80.fits scfile=/scratch/kocevski/248709/ft2_4FGL_J0809.8+0507_daily_bin80.fits outfile=/scratch/kocevski/248709/cmap_260064001_260323201_4FGL_J0809.8+0507_daily_bin80.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.13
user 0.38
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248709/ft1_filtered_4FGL_J0809.8+0507_daily_bin80.fits scfile=/scratch/kocevski/248709/ft2_4FGL_J0809.8+0507_daily_bin80.fits outfile=/scratch/kocevski/248709/cmap_HighResolution_260064001_260323201_4FGL_J0809.8+0507_daily_bin80.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.13
user 0.38
sys 0.72

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.273       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.3288       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6817       1.0000         .10000E-03   10000.    
     6 'norm      '    .39197       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.489       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21792E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.186       1.0000         .10000E-03   10000.    
    11 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10513E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.5735       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .71439E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .67533       1.0000         .10000E-03   10000.    
    18 'norm      '    4.5669       1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.258       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .47519       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3626       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=   7956.102     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2215 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.226        49.599       -.12722E-05   -.89747E-04
   2  Prefactor     .10000E-03    11.478       -.57514E-07** at limit **
   3  norm          3.3296        1.7100        .20747E-07    .17743E-03
   4  Prefactor     .10000E-03    7.4167       -.65465E-08** at limit **
   5  Prefactor     8.6826        3.6952        .11253E-05    .23426E-02
   6  norm          .56500E-01    17.235       -.25309E-05    .14280E-03
   7  Prefactor     10.586        11.397        .10051E-05    .68434E-03
   8  Prefactor     .10000E-03    117.48        .43572E-06** at limit **
   9  Prefactor     .10000E-03    4.8734        .24001E-07** at limit **
  10  Prefactor     27.154        22.028       -.11180E-06   -.29494E-05
  11  norm          .10000E-03    4.7176       -.95193E-08** at limit **
  12  norm          .10000E-03    .40803        .32897E-08** at limit **
  13  norm          .10000E-03    14.554       -.47432E-06** at limit **
  14  norm          3.5742        2.9480        .41468E-07    .17572E-03
  15  Prefactor     .10259E-03    31.728       -.63726E-05** at limit **
  16  Prefactor     .10000E-03    3.0553       -.20928E-07** at limit **
  17  norm          .67543        .72451        .20088E-06    .11746E-02
  18  norm          4.5706        7.8309        .74015E-06    .46655E-03
  19  Prefactor     31.255        33.497       -.99262E-07   -.25227E-04
  20  Normalizat    .47471        .19795       -.93188E-06    .49442E-03
  21  Prefactor     1.3628        .13751        .37986E-06    .80144E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2256
  Prefactor  = 0.0001
  norm       = 3.32964
  Prefactor  = 0.0001
  Prefactor  = 8.68258
  norm       = 0.0565001
  Prefactor  = 10.5864
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 27.1543
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.57419
  Prefactor  = 0.000102593
  Prefactor  = 0.0001
  norm       = 0.675435
  norm       = 4.57065
  Prefactor  = 31.2552
  Normalizat = 0.474707
  Prefactor  = 1.36285
 **********
 **   18 **HESSE 
 **********

 FCN=   7956.102     FROM HESSE     STATUS=OK           329 CALLS     2544 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.226        49.896        .88957E-04   -1.4808    
   2  Prefactor     .10000E-03    11.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.3296        1.7081        .79521E-04   -1.5343    
   4  Prefactor     .10000E-03    7.4204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.6826        3.6929        .52312E-03   -1.5119    
   6  norm          .56500E-01    20.380        .96189E-01   -1.5660    
   7  Prefactor     10.586        11.808        .12371E-03   -1.5057    
   8  Prefactor     .10000E-03    117.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.9602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.154        21.947        .76833E-04   -1.4665    
  11  norm          .10000E-03    4.7542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .40899        .55639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    14.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.5742        2.9446        .13425E-03   -1.5330    
  15  Prefactor     .10259E-03    141.05        .71451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0582        .15226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .67543        .69593        .74603E-03   -1.5544    
  18  norm          4.5706        7.7825        .18837E-03   -1.5280    
  19  Prefactor     31.255        33.454        .71666E-04   -1.4589    
  20  Normalizat    .47471        .20356        .40024E-03   -1.1360    
  21  Prefactor     1.3628        .14639        .18159E-03   -.81457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87681e-08
Minuit parameter uncertainties:
  1  49.999
  2  5.88612e-06
  3  1.70812
  4  2.89578e-06
  5  3.69304
  6  2.14496
  7  11.8108
  8  0.000589288
  9  9.92162e-07
  10  21.9535
  11  9.51995e-07
  12  5.98242e-08
  13  2.39609e-05
  14  2.94474
  15  0.0383394
  16  8.57278e-07
  17  0.69594
  18  7.7842
  19  33.474
  20  0.203877
  21  0.146436
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  2.396e-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.363e+00  1.464e-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:  4.747e-01  2.039e-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.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248709/likelihoodResults_260064001_260323201_4FGL_J0809.8+0507_daily_bin80.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) = 7956.10230077
delta logL = -0.000326286136442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7956.10197471
delta logL = -2.29024408327e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8155       1.0000          .0000       5.0000    
     3 'Normalizat'    .47459       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3629       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=   7956.102     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      221 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    14.612        .18142E-02** at limit **
   2  alpha         2.8438        3.6544        .16629E-01   -.69869E-07
   3  Normalizat    .47470        .19080        .40025E-03    .37209E-05
   4  Prefactor     1.3629        .14175        .18159E-03    .80762E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100012
  alpha      = 2.84377
  Normalizat = 0.474703
  Prefactor  = 1.36285
 **********
 **   18 **HESSE 
 **********

 FCN=   7956.102     FROM HESSE     STATUS=OK            23 CALLS      244 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    14.616        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8438        2.6782        .33259E-02    .13795    
   3  Normalizat    .47470        .19086        .16010E-04   -1.1360    
   4  Prefactor     1.3629        .14179        .72636E-05   -.81457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54452e-09
Minuit parameter uncertainties:
  1  0.00083591
  2  942.349
  3  0.191125
  4  0.141835
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248709': 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) = 7956.10197448
delta logL = 1.14596332423e-09

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  8.359e-04  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.844e+00  9.423e+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.363e+00  1.418e-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:  4.747e-01  1.911e-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/248709/cmap_HighResolution_260064001_260323201_4FGL_J0809.8+0507_daily_bin80.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-05', job_status='DONE', photon_flux_upper_limit='6.23e-08', time_completed='2021-08-29 08:58:27.698618', job_id='248709', GAL2='1.36', fit_tolerance='1e-08', EG2='0.47', EG='0.47', time_epoch_completed='1630252707.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='1.15e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='80' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:58:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 248709: <4FGL_J0809.8+0507_daily_bin80> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin80> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 08:45:35 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:45:37 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:37 2021
Terminated at Sun Aug 29 08:58:28 2021
Results reported at Sun Aug 29 08:58:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin80 122.453 5.1313 260064001 260323201 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 :                                   689.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            773 sec.

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

