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


Performing analysis on: 4FGL_J0808.2-0751_daily_bin170
RA = 122.065, Dec = -7.8556
tmin = 283392001, tmax = 283651201
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='215821', job_status='RUN', time_executed='2021-08-29 06:58:05.308539', time_epoch_executed='1630245485.31' WHERE source_name='4FGL J0808.2-0751' and cadence='daily' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/215821

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/215821/ft1_4FGL_J0808.2-0751_daily_bin170.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/215821/ft2_4FGL_J0808.2-0751_daily_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/215821/ft1_4FGL_J0808.2-0751_daily_bin170.fits outfile=/scratch/kocevski/215821/ft1_filteredMKT_4FGL_J0808.2-0751_daily_bin170.fits ra=122.065 dec=-7.8556 rad=12.0 tmin=283392001.0 tmax=283651201.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 11.80
user 3.38
sys 8.38

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/215821/ft2_4FGL_J0808.2-0751_daily_bin170.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/215821/ft1_filteredMKT_4FGL_J0808.2-0751_daily_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/215821/ft1_filtered_4FGL_J0808.2-0751_daily_bin170.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 8.82
user 0.34
sys 8.45

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/215821/ft1_filtered_4FGL_J0808.2-0751_daily_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/215821/ft2_4FGL_J0808.2-0751_daily_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/215821/ltcube_283392001_283651201_4FGL_J0808.2-0751_daily_bin170.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/215821/ft2_4FGL_J0808.2-0751_daily_bin170.fits
.....................!
real 21.30
user 11.61
sys 9.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/215821/ft1_filtered_4FGL_J0808.2-0751_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/215821/ft2_4FGL_J0808.2-0751_daily_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/215821/ltcube_283392001_283651201_4FGL_J0808.2-0751_daily_bin170.fits outfile=/scratch/kocevski/215821/expmap_283392001_283651201_4FGL_J0808.2-0751_daily_bin170.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/215821/ltcube_283392001_283651201_4FGL_J0808.2-0751_daily_bin170.fits
.....................!
real 200.95
user 185.15
sys 15.34

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/215821/ft1_filtered_4FGL_J0808.2-0751_daily_bin170.fits scfile=/scratch/kocevski/215821/ft2_4FGL_J0808.2-0751_daily_bin170.fits outfile=/scratch/kocevski/215821/cmap_283392001_283651201_4FGL_J0808.2-0751_daily_bin170.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 8.56
user 0.38
sys 8.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/215821/ft1_filtered_4FGL_J0808.2-0751_daily_bin170.fits scfile=/scratch/kocevski/215821/ft2_4FGL_J0808.2-0751_daily_bin170.fits outfile=/scratch/kocevski/215821/cmap_HighResolution_283392001_283651201_4FGL_J0808.2-0751_daily_bin170.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 8.65
user 0.39
sys 8.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/215821/ft1_filtered_4FGL_J0808.2-0751_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/215821/ft2_4FGL_J0808.2-0751_daily_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/215821/Model_4FGL_J0808.2-0751_daily_bin170.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/215821/ft1_filtered_4FGL_J0808.2-0751_daily_bin170.fits.....................!
real 123.92
user 111.67
sys 11.83

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7512       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12681E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .40783       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13967E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10826E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.0570       1.0000         .10000E-03   10000.    
     7 'norm      '    .20395E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9845       1.0000         .10000E-03   10000.    
     9 'norm      '    .17276E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.4724       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.470       1.0000         .10000E-03   10000.    
    12 'norm      '    10.596       1.0000         .10000E-03   10000.    
    13 'norm      '    .10701E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18193E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4096       1.0000         .10000E-03   10000.    
    16 'norm      '    11.039       1.0000         .10000E-03   10000.    
    17 'norm      '    .10540E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.973       1.0000         .10000E-03   10000.    
    19 'norm      '    .10391E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3575       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95876       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.

 FCN=   8883.093     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     1955 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7513        1.9608       -.82635E-08    .34237E-03
   2  Prefactor     .10000E-03    29.243       -.31522E-05** at limit **
   3  norm          .40778        1.6018        .59289E-06    .30415E-03
   4  Prefactor     .10000E-03    15.315       -.27823E-05** at limit **
   5  norm          .10000E-03    10.386        .52427E-06** at limit **
   6  norm          3.0450        17.413       -.66495E-06    .27501E-04
   7  norm          .10043E-03    4.6753       -.48213E-05** at limit **
   8  Prefactor     2.9962        8.7394        .75633E-05    .89143E-03
   9  norm          .10000E-03    3.0226       -.81251E-08** at limit **
  10  norm          2.4699        2.3783       -.23703E-06    .97028E-04
  11  Prefactor     12.546        10.069       -.48091E-06    .12340E-03
  12  norm          10.596        2.1050       -.24461E-07    .56342E-03
  13  norm          .10000E-03    2.2090        .14584E-06** at limit **
  14  Prefactor     .10000E-03    3.7770       -.42260E-06** at limit **
  15  Prefactor     2.4275        2.8968        .68650E-07    .95370E-04
  16  norm          11.070        12.929        .45018E-06    .60107E-04
  17  norm          .10000E-03    3.7734        .41113E-06** at limit **
  18  Prefactor     15.028        21.168       -.32545E-05   -.12667E-03
  19  norm          .10000E-03    4.9943        .81201E-07** at limit **
  20  Normalizat    1.3571        .22253       -.95829E-06    .24552E-03
  21  Prefactor     .95875        .91094E-01    .50003E-06    .81024E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.75131
  Prefactor  = 0.0001
  norm       = 0.407783
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.04504
  norm       = 0.00010043
  Prefactor  = 2.99622
  norm       = 0.0001
  norm       = 2.46989
  Prefactor  = 12.5459
  norm       = 10.5961
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.42749
  norm       = 11.0702
  norm       = 0.0001
  Prefactor  = 15.0284
  norm       = 0.0001
  Normalizat = 1.35711
  Prefactor  = 0.958751
 **********
 **   18 **HESSE 
 **********

 FCN=   8883.093     FROM HESSE     STATUS=OK           327 CALLS     2282 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7513        1.9764        .72704E-04   -1.5228    
   2  Prefactor     .10000E-03    30.005        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .40778        1.5645        .22995E-03   -1.5580    
   4  Prefactor     .10000E-03    15.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    10.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.0450        17.597        .23203E-03   -1.5359    
   7  norm          .10043E-03    1.9148        .46740E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9962        9.1003        .11750E-02   -1.5362    
   9  norm          .10000E-03    3.0270        .16003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.4699        2.3753        .13617E-03   -1.5394    
  11  Prefactor     12.546        10.067        .11343E-03   -1.4999    
  12  norm          10.596        2.1036        .57473E-04   -1.5057    
  13  norm          .10000E-03    7.0617        .27160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.7847        .17882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4275        2.8892        .17041E-03   -1.5396    
  16  norm          11.070        12.929        .12058E-03   -1.5042    
  17  norm          .10000E-03    3.7757        .17878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.028        21.220        .10351E-03   -1.4932    
  19  norm          .10000E-03    5.0121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3571        .24410        .39460E-03   -.81877    
  21  Prefactor     .95875        .10147        .18515E-03   -.94117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26063e-09
Minuit parameter uncertainties:
  1  1.97643
  2  4.56789e-05
  3  1.5647
  4  0.00013955
  5  8.94172e-06
  6  14.6464
  7  0.00181446
  8  9.10455
  9  3.59199e-06
  10  2.37538
  11  10.0682
  12  2.10366
  13  4.67226e-06
  14  4.7239e-06
  15  2.88941
  16  12.9326
  17  6.08883e-06
  18  21.231
  19  9.02085e-06
  20  0.244307
  21  0.101494
Done.

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

Extracting fit parameters...

4FGL J0808.2-0751
   Spectrum: LogParabola
275         norm:  1.060e+01  2.104e+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:  9.588e-01  1.015e-01  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.357e+00  2.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 89.64
Ra Dec: 122.065 -7.856
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 3.95e-07 +/- 7.83e-08
Energy Flux (Fixed Index): 1.75e-04 +/- 3.47e-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) = 8881.34403162
delta logL = 1.74898681169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8881.33122028
delta logL = 1.76179815353

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.171       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7426       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4459       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94238       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=   8881.331     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      210 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.171        2.0857        .31410E-02    .33302E-02
   2  alpha         1.7426        .17345        .15326       -.46747E-04
   3  Normalizat    1.4459        .21645        .87056E-01    .22641E-04
   4  Prefactor     .94238        .86225E-01    .45543E-01    .11937E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.1713
  alpha      = 1.7426
  Normalizat = 1.44589
  Prefactor  = 0.942383
 **********
 **   18 **HESSE 
 **********

 FCN=   8881.331     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.171        2.2190        .59234E-04   -1.5070    
   2  alpha         1.7426        .18952        .65941E-02   -.30780    
   3  Normalizat    1.4459        .23836        .38543E-03   -.79310    
   4  Prefactor     .94238        .94767E-01    .18667E-03   -.94675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.2468e-10
Minuit parameter uncertainties:
  1  2.219
  2  0.189717
  3  0.238545
  4  0.0947835
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/215821': 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) = 8881.33122028
delta logL = 1.76179815501

Extracting fit parameters...

4FGL J0808.2-0751
   Spectrum: LogParabola
275         norm:  1.017e+01  2.219e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  1.743e+00  1.897e-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:  9.424e-01  9.478e-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.446e+00  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 93.34
Ra Dec: 122.065 -7.856
Photon Index (Free Index): 1.74 +/- 0.19
Photon Flux (Free Index): 2.87e-07 +/- 7.91e-08
Energy Flux (Free Index): 2.47e-04 +/- 7.50e-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/215821/cmap_HighResolution_283392001_283651201_4FGL_J0808.2-0751_daily_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.95e-07', energy_flux2='2.47e-04', photon_flux_error='7.83e-08', dlogl='1.76e+00', energy_flux='1.75e-04', photon_flux2='2.87e-07', job_status='DONE', time_completed='2021-08-29 07:10:46.905589', photon_index_error2='0.19', photon_index2='1.74', ts='89.64', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='7.50e-05', EG='1.36', time_epoch_completed='1630246246.91', return_code='0', job_id='215821', GAL2='0.94', EG2='1.45', return_code2='0', energy_flux_error='3.47e-05', photon_flux_error2='7.91e-08', ts2='93.34', photon_index='2.11' WHERE bin_id='170' AND source_name='4FGL J0808.2-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:10:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 215821: <4FGL_J0808.2-0751_daily_bin170> in cluster <slac> Done

Job <4FGL_J0808.2-0751_daily_bin170> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 06:55:35 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 06:55:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 06:55:36 2021
Terminated at Sun Aug 29 07:10:49 2021
Results reported at Sun Aug 29 07:10:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0808.2-0751_daily_bin170 122.065 -7.8556 283392001 283651201 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 :                                   887.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

