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


Performing analysis on: 4FGL_J0808.2-0751_daily_bin1439
RA = 122.065, Dec = -7.8556
tmin = 612316801, tmax = 612576001
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='224284', job_status='RUN', time_executed='2021-08-29 07:26:14.086039', time_epoch_executed='1630247174.09' WHERE source_name='4FGL J0808.2-0751' and cadence='daily' and bin_id='1439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/224284

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/224284/ft1_4FGL_J0808.2-0751_daily_bin1439.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/224284/ft2_4FGL_J0808.2-0751_daily_bin1439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/224284/ft1_4FGL_J0808.2-0751_daily_bin1439.fits outfile=/scratch/kocevski/224284/ft1_filteredMKT_4FGL_J0808.2-0751_daily_bin1439.fits ra=122.065 dec=-7.8556 rad=12.0 tmin=612316801.0 tmax=612576001.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.59
user 3.06
sys 0.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/224284/ft2_4FGL_J0808.2-0751_daily_bin1439.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/224284/ft1_filteredMKT_4FGL_J0808.2-0751_daily_bin1439.fits evtable="EVENTS" outfile="/scratch/kocevski/224284/ft1_filtered_4FGL_J0808.2-0751_daily_bin1439.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.86
user 0.32
sys 0.45

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/224284/ft1_filtered_4FGL_J0808.2-0751_daily_bin1439.fits" evtable="EVENTS" scfile=/scratch/kocevski/224284/ft2_4FGL_J0808.2-0751_daily_bin1439.fits sctable="SC_DATA" outfile=/scratch/kocevski/224284/ltcube_612316801_612576001_4FGL_J0808.2-0751_daily_bin1439.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/224284/ft2_4FGL_J0808.2-0751_daily_bin1439.fits
.....................!
real 12.58
user 11.80
sys 0.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/224284/ft1_filtered_4FGL_J0808.2-0751_daily_bin1439.fits evtable="EVENTS" scfile=/scratch/kocevski/224284/ft2_4FGL_J0808.2-0751_daily_bin1439.fits sctable="SC_DATA" expcube=/scratch/kocevski/224284/ltcube_612316801_612576001_4FGL_J0808.2-0751_daily_bin1439.fits outfile=/scratch/kocevski/224284/expmap_612316801_612576001_4FGL_J0808.2-0751_daily_bin1439.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/224284/ltcube_612316801_612576001_4FGL_J0808.2-0751_daily_bin1439.fits
.....................!
real 190.56
user 185.14
sys 4.97

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/224284/ft1_filtered_4FGL_J0808.2-0751_daily_bin1439.fits scfile=/scratch/kocevski/224284/ft2_4FGL_J0808.2-0751_daily_bin1439.fits outfile=/scratch/kocevski/224284/cmap_612316801_612576001_4FGL_J0808.2-0751_daily_bin1439.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 0.81
user 0.36
sys 0.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/224284/ft1_filtered_4FGL_J0808.2-0751_daily_bin1439.fits scfile=/scratch/kocevski/224284/ft2_4FGL_J0808.2-0751_daily_bin1439.fits outfile=/scratch/kocevski/224284/cmap_HighResolution_612316801_612576001_4FGL_J0808.2-0751_daily_bin1439.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 0.83
user 0.38
sys 0.44

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/224284/ft1_filtered_4FGL_J0808.2-0751_daily_bin1439.fits evtable="EVENTS" scfile=/scratch/kocevski/224284/ft2_4FGL_J0808.2-0751_daily_bin1439.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/224284/Model_4FGL_J0808.2-0751_daily_bin1439.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/224284/ft1_filtered_4FGL_J0808.2-0751_daily_bin1439.fits.....................!
real 99.04
user 97.20
sys 1.61

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/224284/ft1_filtered_4FGL_J0808.2-0751_daily_bin1439.fits', '/scratch/kocevski/224284/ft2_4FGL_J0808.2-0751_daily_bin1439.fits', expMap='/scratch/kocevski/224284/expmap_612316801_612576001_4FGL_J0808.2-0751_daily_bin1439.fits', expCube='/scratch/kocevski/224284/ltcube_612316801_612576001_4FGL_J0808.2-0751_daily_bin1439.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/224284/Model_4FGL_J0808.2-0751_daily_bin1439.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/224284/ft1_filtered_4FGL_J0808.2-0751_daily_bin1439.fits
Spacecraft file(s): /scratch/kocevski/224284/ft2_4FGL_J0808.2-0751_daily_bin1439.fits
Exposure map: /scratch/kocevski/224284/expmap_612316801_612576001_4FGL_J0808.2-0751_daily_bin1439.fits
Exposure cube: /scratch/kocevski/224284/ltcube_612316801_612576001_4FGL_J0808.2-0751_daily_bin1439.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/224284/Model_4FGL_J0808.2-0751_daily_bin1439.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) = 7857.88503165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4464       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7876       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.766       1.0000         .10000E-03   10000.    
     5 'norm      '    13.888       1.0000         .10000E-03   10000.    
     6 'norm      '    10.505       1.0000         .10000E-03   10000.    
     7 'norm      '    1.8193       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .13666E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .25041E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3600       1.0000         .10000E-03   10000.    
    12 'norm      '    5.8875       1.0000         .10000E-03   10000.    
    13 'norm      '    7.6803       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.3827       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.9080       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.561       1.0000         .10000E-03   10000.    
    19 'norm      '    .22746E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2377       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85988       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=   7857.881     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     2233 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4475        1.8583        .47741E-02    .38098E-03
   2  Prefactor     .10000E-03    18.900        .90712E-02** at limit **
   3  norm          1.7869        2.4986        .78222E-02    .69561E-03
   4  Prefactor     30.764        25.861        .18059E-02    .43129E-03
   5  norm          13.889        14.611        .26870E-02    .19922E-03
   6  norm          10.511        12.402        .30905E-02    .12577E-02
   7  norm          1.8203        2.1582        .77402E-02    .75518E-04
   8  Prefactor     .10000E-03    2.0799        .90712E-02** at limit **
   9  norm          .10000E-03    5.2227        .90912E-01** at limit **
  10  norm          .10000E-03    1.3444        .35919E-01** at limit **
  11  Prefactor     6.3576        6.7889        .39789E-02   -.13556E-02
  12  norm          5.8882        1.6577        .41376E-02    .12992E-03
  13  norm          7.6772        4.9242        .36175E-02    .17321E-03
  14  Prefactor     .10000E-03    2.7414        .90712E-02** at limit **
  15  Prefactor     8.3829        5.0110        .34615E-02    .20597E-02
  16  norm          .10000E-03    7.5281        .90712E-02** at limit **
  17  norm          9.9013        11.580        .31826E-02   -.12169E-02
  18  Prefactor     24.563        34.001        .20207E-02    .11154E-03
  19  norm          .10000E-03    4.5273        .90712E-01** at limit **
  20  Normalizat    1.2383        .21208        .82339E-01    .22184E-04
  21  Prefactor     .85965        .86572E-01    .44492E-01    .30995E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.44752
  Prefactor  = 0.0001
  norm       = 1.78689
  Prefactor  = 30.764
  norm       = 13.8885
  norm       = 10.5108
  norm       = 1.82032
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.35759
  norm       = 5.88817
  norm       = 7.67722
  Prefactor  = 0.0001
  Prefactor  = 8.38287
  norm       = 0.0001
  norm       = 9.90133
  Prefactor  = 24.5627
  norm       = 0.0001
  Normalizat = 1.23829
  Prefactor  = 0.859649
 **********
 **   18 **HESSE 
 **********

 FCN=   7857.881     FROM HESSE     STATUS=OK           329 CALLS     2562 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4475        1.8791        .72654E-04   -1.5286    
   2  Prefactor     .10000E-03    19.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7869        2.4786        .16010E-03   -1.5441    
   4  Prefactor     30.764        25.861        .72236E-04   -1.4598    
   5  norm          13.889        14.617        .10748E-03   -1.4962    
   6  norm          10.511        12.487        .12362E-03   -1.5059    
   7  norm          1.8203        2.1512        .13783E-03   -1.5438    
   8  Prefactor     .10000E-03    2.0813        .12485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.9275        .70613E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.2588        .19859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.3576        6.7823        .15916E-03   -1.5204    
  12  norm          5.8882        1.6493        .57465E-04   -1.5223    
  13  norm          7.6772        4.9310        .14470E-03   -1.5154    
  14  Prefactor     .10000E-03    2.7466        .14332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.3829        5.0092        .13846E-03   -1.5129    
  16  norm          .10000E-03    7.5477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.9013        11.615        .12730E-03   -1.5079    
  18  Prefactor     24.563        34.286        .40414E-03   -1.4716    
  19  norm          .10000E-03    18.278        .36450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2383        .23306        .36452E-03   -.85428    
  21  Prefactor     .85965        .95854E-01    .17660E-03   -.97566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.79774e-09
Minuit parameter uncertainties:
  1  1.87913
  2  0.000181812
  3  2.4787
  4  25.8708
  5  14.6212
  6  12.4898
  7  2.15128
  8  3.66541e-08
  9  7.55313e-05
  10  1.25851e-07
  11  6.7831
  12  1.64928
  13  4.93126
  14  1.52878e-07
  15  5.00945
  16  1.13343e-06
  17  11.6181
  18  34.3133
  19  0.000112276
  20  0.233258
  21  0.0958725
Done.

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

Extracting fit parameters...

4FGL J0808.2-0751
   Spectrum: LogParabola
275         norm:  5.888e+00  1.649e+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.596e-01  9.587e-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.238e+00  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.94
Ra Dec: 122.065 -7.856
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 2.19e-07 +/- 6.14e-08
Energy Flux (Fixed Index): 9.71e-05 +/- 2.72e-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) = 7857.15424179
delta logL = 0.726649005039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7857.15394839
delta logL = 0.726942399995

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3296       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4415       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1948       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86714       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7857.154     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      272 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3296        1.6455        .51592E-04    .15471E-02
   2  alpha         2.4415        .28494        .78924E-02    .78538E-04
   3  Normalizat    1.1948        .21301        .36949E-03    .16298E-03
   4  Prefactor     .86713        .86672E-01    .17583E-03    .38989E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.32957
  alpha      = 2.44151
  Normalizat = 1.19484
  Prefactor  = 0.867127
 **********
 **   18 **HESSE 
 **********

 FCN=   7857.154     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3296        1.6238        .20637E-05   -1.5246    
   2  alpha         2.4415        .28107        .31570E-03   -.23399E-01
   3  Normalizat    1.1948        .21305        .14780E-04   -.86762    
   4  Prefactor     .86713        .86686E-01    .35166E-04   -.97299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30107e-10
Minuit parameter uncertainties:
  1  1.62378
  2  0.28167
  3  0.213203
  4  0.0867002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/224284': 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) = 7857.15394838
delta logL = 0.726942414082

Extracting fit parameters...

4FGL J0808.2-0751
   Spectrum: LogParabola
275         norm:  5.330e+00  1.624e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.442e+00  2.817e-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.671e-01  8.670e-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.195e+00  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.32
Ra Dec: 122.065 -7.856
Photon Index (Free Index): 2.44 +/- 0.28
Photon Flux (Free Index): 2.77e-07 +/- 8.51e-08
Energy Flux (Free Index): 8.31e-05 +/- 2.37e-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/224284/cmap_HighResolution_612316801_612576001_4FGL_J0808.2-0751_daily_bin1439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.19e-07', energy_flux2='8.31e-05', photon_flux_error='6.14e-08', dlogl='7.27e-01', energy_flux='9.71e-05', photon_flux2='2.77e-07', job_status='DONE', time_completed='2021-08-29 07:36:49.683699', photon_index_error2='0.28', photon_index2='2.44', ts='27.94', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='2.37e-05', EG='1.24', time_epoch_completed='1630247809.68', return_code='0', job_id='224284', GAL2='0.87', EG2='1.19', return_code2='0', energy_flux_error='2.72e-05', photon_flux_error2='8.51e-08', ts2='29.32', photon_index='2.11' WHERE bin_id='1439' AND source_name='4FGL J0808.2-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:36:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 224284: <4FGL_J0808.2-0751_daily_bin1439> in cluster <slac> Done

Job <4FGL_J0808.2-0751_daily_bin1439> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Aug 29 07:25:49 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:25:51 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:25:51 2021
Terminated at Sun Aug 29 07:36:50 2021
Results reported at Sun Aug 29 07:36:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0808.2-0751_daily_bin1439 122.065 -7.8556 612316801 612576001 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 :                                   631.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             340.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   659 sec.
    Turnaround time :                            661 sec.

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

