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


Performing analysis on: 4FGL_J0808.2-0751_daily_bin595
RA = 122.065, Dec = -7.8556
tmin = 393552001, tmax = 393811201
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='219776', job_status='RUN', time_executed='2021-08-29 07:12:17.984463', time_epoch_executed='1630246337.98' WHERE source_name='4FGL J0808.2-0751' and cadence='daily' and bin_id='595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219776

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219776/ft1_4FGL_J0808.2-0751_daily_bin595.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219776/ft2_4FGL_J0808.2-0751_daily_bin595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219776/ft1_4FGL_J0808.2-0751_daily_bin595.fits outfile=/scratch/kocevski/219776/ft1_filteredMKT_4FGL_J0808.2-0751_daily_bin595.fits ra=122.065 dec=-7.8556 rad=12.0 tmin=393552001.0 tmax=393811201.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 10.56
user 3.26
sys 6.96

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/219776/ft2_4FGL_J0808.2-0751_daily_bin595.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/219776/ft2_4FGL_J0808.2-0751_daily_bin595.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/219776/ft1_filteredMKT_4FGL_J0808.2-0751_daily_bin595.fits evtable="EVENTS" outfile="/scratch/kocevski/219776/ft1_filtered_4FGL_J0808.2-0751_daily_bin595.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 7.07
user 0.33
sys 6.70

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/219776/ft1_filtered_4FGL_J0808.2-0751_daily_bin595.fits" evtable="EVENTS" scfile=/scratch/kocevski/219776/ft2_4FGL_J0808.2-0751_daily_bin595.fits sctable="SC_DATA" outfile=/scratch/kocevski/219776/ltcube_393552001_393811201_4FGL_J0808.2-0751_daily_bin595.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/219776/ft2_4FGL_J0808.2-0751_daily_bin595.fits
.....................!
real 19.38
user 11.64
sys 7.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219776/ft1_filtered_4FGL_J0808.2-0751_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/219776/ft2_4FGL_J0808.2-0751_daily_bin595.fits sctable="SC_DATA" expcube=/scratch/kocevski/219776/ltcube_393552001_393811201_4FGL_J0808.2-0751_daily_bin595.fits outfile=/scratch/kocevski/219776/expmap_393552001_393811201_4FGL_J0808.2-0751_daily_bin595.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/219776/ltcube_393552001_393811201_4FGL_J0808.2-0751_daily_bin595.fits
.....................!
real 199.80
user 187.24
sys 12.14

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J0808.2-0751 @ 122.065 -7.8556

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/219776/ft1_filtered_4FGL_J0808.2-0751_daily_bin595.fits scfile=/scratch/kocevski/219776/ft2_4FGL_J0808.2-0751_daily_bin595.fits outfile=/scratch/kocevski/219776/cmap_393552001_393811201_4FGL_J0808.2-0751_daily_bin595.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.065 yref=-7.8556 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 7.00
user 0.36
sys 6.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/219776/ft1_filtered_4FGL_J0808.2-0751_daily_bin595.fits scfile=/scratch/kocevski/219776/ft2_4FGL_J0808.2-0751_daily_bin595.fits outfile=/scratch/kocevski/219776/cmap_HighResolution_393552001_393811201_4FGL_J0808.2-0751_daily_bin595.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.065 yref=-7.8556 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 6.98
user 0.38
sys 6.57

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/219776/ft1_filtered_4FGL_J0808.2-0751_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/219776/ft2_4FGL_J0808.2-0751_daily_bin595.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/219776/Model_4FGL_J0808.2-0751_daily_bin595.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/219776/ft1_filtered_4FGL_J0808.2-0751_daily_bin595.fits.....................!
real 105.74
user 95.55
sys 9.74

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/219776/ft1_filtered_4FGL_J0808.2-0751_daily_bin595.fits', '/scratch/kocevski/219776/ft2_4FGL_J0808.2-0751_daily_bin595.fits', expMap='/scratch/kocevski/219776/expmap_393552001_393811201_4FGL_J0808.2-0751_daily_bin595.fits', expCube='/scratch/kocevski/219776/ltcube_393552001_393811201_4FGL_J0808.2-0751_daily_bin595.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/219776/Model_4FGL_J0808.2-0751_daily_bin595.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0808.2-0751'

4FGL J0808.2-0751
   Spectrum: LogParabola
275         norm:  2.268e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.112e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
277         beta:  8.329e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  6.205e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/219776/ft1_filtered_4FGL_J0808.2-0751_daily_bin595.fits
Spacecraft file(s): /scratch/kocevski/219776/ft2_4FGL_J0808.2-0751_daily_bin595.fits
Exposure map: /scratch/kocevski/219776/expmap_393552001_393811201_4FGL_J0808.2-0751_daily_bin595.fits
Exposure cube: /scratch/kocevski/219776/ltcube_393552001_393811201_4FGL_J0808.2-0751_daily_bin595.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/219776/Model_4FGL_J0808.2-0751_daily_bin595.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) = 7305.00831347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1655       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.6652       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.789       1.0000         .10000E-03   10000.    
     5 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    18.135       1.0000         .10000E-03   10000.    
     7 'norm      '    4.1643       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.2519       1.0000         .10000E-03   10000.    
    10 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.361       1.0000         .10000E-03   10000.    
    12 'norm      '    3.7253       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4268       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .45312E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10362E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    66.797       1.0000         .10000E-03   10000.    
    19 'norm      '    16.625       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2586       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82151       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7305.006     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2228 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1659        1.3869         .0000        .87556E-03
   2  Prefactor     .10000E-03    7.0866         .0000    ** at limit **
   3  norm          7.6649        3.6680         .0000       -.30559E-03
   4  Prefactor     29.789        26.528         .0000       -.30398E-03
   5  norm          .10004E-03    29.870         .0000    ** at limit **
   6  norm          18.137        13.230         .0000        .14416E-03
   7  norm          4.1646        3.2347         .0000        .80294E-04
   8  Prefactor     .10000E-03    10.155         .0000    ** at limit **
   9  norm          3.2548        10.979         .0000       -.20626E-03
  10  norm          .10000E-03    2.5104         .0000    ** at limit **
  11  Prefactor     14.359        11.158         .0000        .55640E-03
  12  norm          3.7243        1.6358         .0000       -.38717E-03
  13  norm          1.4262        4.9481         .0000        .28823E-01
  14  Prefactor     .10053E-03    5.3974         .0000    ** at limit **
  15  Prefactor     .10000E-03    6.4380         .0000    ** at limit **
  16  norm          .10001E-03    48.891         .0000    ** at limit **
  17  norm          .10000E-03    4.9186         .0000    ** at limit **
  18  Prefactor     66.794        39.189         .0000        .42617E-02
  19  norm          16.624        11.018         .0000        .28773E-03
  20  Normalizat    1.2589        .22681         .0000       -.25243E-04
  21  Prefactor     .82142        .86604E-01     .0000       -.23366E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16589
  Prefactor  = 0.0001
  norm       = 7.66486
  Prefactor  = 29.7892
  norm       = 0.000100036
  norm       = 18.1372
  norm       = 4.16455
  Prefactor  = 0.0001
  norm       = 3.25477
  norm       = 0.0001
  Prefactor  = 14.3588
  norm       = 3.72429
  norm       = 1.42623
  Prefactor  = 0.000100533
  Prefactor  = 0.0001
  norm       = 0.000100008
  norm       = 0.0001
  Prefactor  = 66.7936
  norm       = 16.6244
  Normalizat = 1.25887
  Prefactor  = 0.821417
 **********
 **   18 **HESSE 
 **********

 FCN=   7305.006     FROM HESSE     STATUS=OK           317 CALLS     2545 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1659        1.3618        .10320E-03   -1.5492    
   2  Prefactor     .10000E-03    7.1056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.6649        3.6727        .10866E-03   -1.5154    
   4  Prefactor     29.789        26.530        .73408E-04   -1.4616    
   5  norm          .10004E-03    30.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          18.137        13.270        .94050E-04   -1.4856    
   7  norm          4.1646        3.2341        .13103E-03   -1.5300    
   8  Prefactor     .10000E-03    10.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.2548        10.972        .22459E-03   -1.5347    
  10  norm          .10000E-03    2.5953        .26377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.359        11.017        .10569E-03   -1.4950    
  12  norm          3.7243        1.6156        .67879E-04   -1.5322    
  13  norm          1.4262        4.9471        .16569E-02   -1.5469    
  14  Prefactor     .10053E-03    32.591        .37230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.6510        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    49.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.9250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     66.794        39.411        .49108E-04   -1.4072    
  19  norm          16.624        11.020        .98228E-04   -1.4892    
  20  Normalizat    1.2589        .24950        .36066E-03   -.84803    
  21  Prefactor     .82142        .95157E-01    .17493E-03   -.98944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30249e-08
Minuit parameter uncertainties:
  1  1.3618
  2  3.20245e-05
  3  3.67277
  4  26.5408
  5  0.00208052
  6  13.2723
  7  3.23421
  8  3.94943e-05
  9  10.9784
  10  8.89425e-06
  11  11.0188
  12  1.61562
  13  4.94848
  14  0.0083403
  15  8.63054e-05
  16  0.00128074
  17  2.85758e-05
  18  39.4262
  19  11.0215
  20  0.24974
  21  0.0951762
Done.

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

Extracting fit parameters...

4FGL J0808.2-0751
   Spectrum: LogParabola
275         norm:  3.724e+00  1.616e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.112e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
277         beta:  8.329e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  6.205e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  8.214e-01  9.518e-02  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  1.259e+00  2.497e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.34
Ra Dec: 122.065 -7.856
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 1.39e-07 +/- 6.02e-08
Energy Flux (Fixed Index): 6.14e-05 +/- 2.66e-05

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) = 7304.61506616
delta logL = 0.39100538842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7304.6094721
delta logL = 0.396599450634

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7304.609     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      237 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3960        25.111        .54887E-02    .17018E-02
   2  alpha         2.4414        3.7052        .25036        .68867E-04
   3  Normalizat    1.2297        .14830        .82213E-01    .15648E-03
   4  Prefactor     .82706        .68376E-01    .44068E-01    .55886E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.39597
  alpha      = 2.44143
  Normalizat = 1.2297
  Prefactor  = 0.827065
 **********
 **   18 **HESSE 
 **********

 FCN=   7304.609     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3960        1.5996        .60977E-04   -1.5339    
   2  alpha         2.4414        .39127        .10376E-01   -.23431E-01
   3  Normalizat    1.2297        .22524        .36396E-03   -.85690    
   4  Prefactor     .82706        .89758E-01    .17435E-03   -.98738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27637e-10
Minuit parameter uncertainties:
  1  1.59962
  2  0.392884
  3  0.225423
  4  0.0897744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219776': 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) = 7304.60947209
delta logL = 0.396599453848

Extracting fit parameters...

4FGL J0808.2-0751
   Spectrum: LogParabola
275         norm:  3.396e+00  1.600e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.441e+00  3.929e-01  0.000e+00  5.000e+00 ( 1.000e+00)
277         beta:  8.329e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  6.205e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  8.271e-01  8.977e-02  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  1.230e+00  2.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.12
Ra Dec: 122.065 -7.856
Photon Index (Free Index): 2.44 +/- 0.39
Photon Flux (Free Index): 1.76e-07 +/- 7.95e-08
Energy Flux (Free Index): 5.30e-05 +/- 2.35e-05

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/219776/cmap_HighResolution_393552001_393811201_4FGL_J0808.2-0751_daily_bin595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.39e-07', energy_flux2='5.30e-05', photon_flux_error='6.02e-08', dlogl='3.97e-01', energy_flux='6.14e-05', photon_flux2='1.76e-07', job_status='DONE', time_completed='2021-08-29 07:23:58.097417', photon_index_error2='0.39', photon_index2='2.44', ts='9.34', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='2.35e-05', EG='1.26', time_epoch_completed='1630247038.1', return_code='0', job_id='219776', GAL2='0.83', EG2='1.23', return_code2='0', energy_flux_error='2.66e-05', photon_flux_error2='7.95e-08', ts2='10.12', photon_index='2.11' WHERE bin_id='595' AND source_name='4FGL J0808.2-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:23:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 219776: <4FGL_J0808.2-0751_daily_bin595> in cluster <slac> Done

Job <4FGL_J0808.2-0751_daily_bin595> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 07:10:20 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:10: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 07:10:21 2021
Terminated at Sun Aug 29 07:23:59 2021
Results reported at Sun Aug 29 07:23:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0808.2-0751_daily_bin595 122.065 -7.8556 393552001 393811201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0808.2-0751 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   802.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            819 sec.

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

