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


Performing analysis on: 4FGL_J0808.2-0751_daily_bin666
RA = 122.065, Dec = -7.8556
tmin = 411955201, tmax = 412214401
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='219878', job_status='RUN', time_executed='2021-08-29 07:15:20.513495', time_epoch_executed='1630246520.51' WHERE source_name='4FGL J0808.2-0751' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219878

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219878/ft1_4FGL_J0808.2-0751_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219878/ft2_4FGL_J0808.2-0751_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219878/ft1_4FGL_J0808.2-0751_daily_bin666.fits outfile=/scratch/kocevski/219878/ft1_filteredMKT_4FGL_J0808.2-0751_daily_bin666.fits ra=122.065 dec=-7.8556 rad=12.0 tmin=411955201.0 tmax=412214401.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 9.19
user 5.41
sys 3.71

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/219878/ft2_4FGL_J0808.2-0751_daily_bin666.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/219878/ft1_filteredMKT_4FGL_J0808.2-0751_daily_bin666.fits evtable="EVENTS" outfile="/scratch/kocevski/219878/ft1_filtered_4FGL_J0808.2-0751_daily_bin666.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 3.97
user 0.31
sys 3.63

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/219878/ft1_filtered_4FGL_J0808.2-0751_daily_bin666.fits" evtable="EVENTS" scfile=/scratch/kocevski/219878/ft2_4FGL_J0808.2-0751_daily_bin666.fits sctable="SC_DATA" outfile=/scratch/kocevski/219878/ltcube_411955201_412214401_4FGL_J0808.2-0751_daily_bin666.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/219878/ft2_4FGL_J0808.2-0751_daily_bin666.fits
.....................!
real 15.73
user 11.47
sys 4.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219878/ft1_filtered_4FGL_J0808.2-0751_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/219878/ft2_4FGL_J0808.2-0751_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/219878/ltcube_411955201_412214401_4FGL_J0808.2-0751_daily_bin666.fits outfile=/scratch/kocevski/219878/expmap_411955201_412214401_4FGL_J0808.2-0751_daily_bin666.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/219878/ltcube_411955201_412214401_4FGL_J0808.2-0751_daily_bin666.fits
.....................!
real 194.93
user 185.37
sys 9.17

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/219878/ft1_filtered_4FGL_J0808.2-0751_daily_bin666.fits scfile=/scratch/kocevski/219878/ft2_4FGL_J0808.2-0751_daily_bin666.fits outfile=/scratch/kocevski/219878/cmap_411955201_412214401_4FGL_J0808.2-0751_daily_bin666.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 4.37
user 0.37
sys 3.92

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/219878/ft1_filtered_4FGL_J0808.2-0751_daily_bin666.fits scfile=/scratch/kocevski/219878/ft2_4FGL_J0808.2-0751_daily_bin666.fits outfile=/scratch/kocevski/219878/cmap_HighResolution_411955201_412214401_4FGL_J0808.2-0751_daily_bin666.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 3.96
user 0.36
sys 3.56

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/219878/ft1_filtered_4FGL_J0808.2-0751_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/219878/ft2_4FGL_J0808.2-0751_daily_bin666.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/219878/Model_4FGL_J0808.2-0751_daily_bin666.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/219878/ft1_filtered_4FGL_J0808.2-0751_daily_bin666.fits.....................!
real 96.64
user 89.88
sys 6.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10632E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1984       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.185       1.0000         .10000E-03   10000.    
     7 'norm      '    7.5342       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0354       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2231       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9995       1.0000         .10000E-03   10000.    
    13 'norm      '    8.7464       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8966       1.0000         .10000E-03   10000.    
    19 'norm      '    5.8187       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1218       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82819       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=   6471.347     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     1890 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0857        .90707E-07** at limit **
   2  Prefactor     .10000E-03    5.9832       -.70551E-07** at limit **
   3  norm          1.1978        2.3944        .34008E-06   -.13810E-03
   4  Prefactor     .10000E-03    12.396       -.18279E-06** at limit **
   5  norm          .10000E-03    4.5848        .16019E-06** at limit **
   6  norm          12.180        13.421        .25797E-05    .60616E-03
   7  norm          7.5347        4.5750       -.40286E-08   -.13158E-03
   8  Prefactor     5.0340        6.7470        .17859E-05   -.48241E-03
   9  norm          .10000E-03    6.5457       -.25336E-06** at limit **
  10  norm          .10000E-03    1.6993       -.63686E-07** at limit **
  11  Prefactor     3.2209        8.0790        .48655E-06   -.65062E-04
  12  norm          1.9993        1.1833        .12350E-07   -.55733E-04
  13  norm          8.7452        5.7916        .11350E-05   -.73432E-03
  14  Prefactor     .10000E-03    4.6228       -.20395E-06** at limit **
  15  Prefactor     .10000E-03    2.2361       -.11364E-07** at limit **
  16  norm          .10000E-03    10.455        .18460E-06** at limit **
  17  norm          .10000E-03    5.8144        .19324E-06** at limit **
  18  Prefactor     2.8467        90.267       -.26184E-05   -.55423E-04
  19  norm          5.8208        10.303        .41497E-06    .99484E-05
  20  Normalizat    1.1219        .20694       -.24267E-06   -.51871E-04
  21  Prefactor     .82820        .82221E-01   -.70186E-06    .21208E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.1978
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.1803
  norm       = 7.53467
  Prefactor  = 5.03403
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.22093
  norm       = 1.99931
  norm       = 8.74525
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.84667
  norm       = 5.82077
  Normalizat = 1.12192
  Prefactor  = 0.828198
 **********
 **   18 **HESSE 
 **********

 FCN=   6471.347     FROM HESSE     STATUS=OK           317 CALLS     2207 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3057        .15927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.0088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1978        2.3532        .16937E-03   -1.5489    
   4  Prefactor     .10000E-03    12.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.5892        .16829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.180        14.361        .11476E-03   -1.5010    
   7  norm          7.5347        4.5782        .12873E-03   -1.5159    
   8  Prefactor     5.0340        6.9188        .89598E-03   -1.5259    
   9  norm          .10000E-03    6.5833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.7463        .20453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2209        8.0716        .22564E-03   -1.5349    
  12  norm          1.9993        1.1804        .64498E-04   -1.5425    
  13  norm          8.7452        5.9488        .67767E-03   -1.5116    
  14  Prefactor     .10000E-03    4.6499        .16892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.2599        .11742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.8280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.8467        93.121        .23876E-03   -1.5371    
  19  norm          5.8208        10.289        .16649E-03   -1.5225    
  20  Normalizat    1.1219        .22405        .34572E-03   -.89051    
  21  Prefactor     .82820        .87468E-01    .16092E-03   -.98697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18654e-09
Minuit parameter uncertainties:
  1  2.22041e-05
  2  2.58037e-06
  3  2.35337
  4  2.75671e-05
  5  1.66308e-05
  6  14.3651
  7  4.5784
  8  6.91987
  9  2.78192e-05
  10  2.33474e-06
  11  8.07434
  12  1.18041
  13  5.94918
  14  1.71788e-05
  15  8.00641e-07
  16  3.1452e-05
  17  2.06605e-05
  18  32.6176
  19  10.2921
  20  0.224238
  21  0.0874823
Done.

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

Extracting fit parameters...

4FGL J0808.2-0751
   Spectrum: LogParabola
275         norm:  1.999e+00  1.180e+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.282e-01  8.748e-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.122e+00  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.14
Ra Dec: 122.065 -7.856
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 7.45e-08 +/- 4.39e-08
Energy Flux (Fixed Index): 3.30e-05 +/- 1.95e-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) = 6471.18938777
delta logL = 0.157173115632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6471.16317559
delta logL = 0.183385290446

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6970       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7342       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1425       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82617       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=   6471.163     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      199 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6967        1.0768        .80748E-03    .66595E-05
   2  alpha         1.7340        .41979        .36773       -.37915E-04
   3  Normalizat    1.1426        .19301        .77544E-01    .13210E-04
   4  Prefactor     .82616        .78305E-01    .44057E-01    .63491E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.69666
  alpha      = 1.734
  Normalizat = 1.14257
  Prefactor  = 0.826157
 **********
 **   18 **HESSE 
 **********

 FCN=   6471.163     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6967        1.3280        .32299E-04   -1.5447    
   2  alpha         1.7340        .60420        .13820E-01   -.31141    
   3  Normalizat    1.1426        .20864        .34322E-03   -.88396    
   4  Prefactor     .82616        .84461E-01    .16115E-03   -.98771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42866e-12
Minuit parameter uncertainties:
  1  1.32801
  2  0.610887
  3  0.208792
  4  0.0844746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219878': 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) = 6471.16317552
delta logL = 0.183385360734

Extracting fit parameters...

4FGL J0808.2-0751
   Spectrum: LogParabola
275         norm:  1.697e+00  1.328e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  1.734e+00  6.109e-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.262e-01  8.447e-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.143e+00  2.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.50
Ra Dec: 122.065 -7.856
Photon Index (Free Index): 1.73 +/- 0.61
Photon Flux (Free Index): 4.76e-08 +/- 4.87e-08
Energy Flux (Free Index): 4.17e-05 +/- 3.44e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/219878/cmap_HighResolution_411955201_412214401_4FGL_J0808.2-0751_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.45e-08', energy_flux2='4.17e-05', photon_flux_error='4.39e-08', dlogl='1.83e-01', energy_flux='3.30e-05', photon_flux2='4.76e-08', job_status='DONE', time_completed='2021-08-29 07:25:31.739808', photon_index_error2='0.61', photon_index2='1.73', ts='8.14', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='3.44e-05', EG='1.12', time_epoch_completed='1630247131.74', return_code='0', job_id='219878', GAL2='0.83', EG2='1.14', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='4.87e-08', ts2='8.50', photon_index='2.11' WHERE bin_id='666' AND source_name='4FGL J0808.2-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:25:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 219878: <4FGL_J0808.2-0751_daily_bin666> in cluster <slac> Done

Job <4FGL_J0808.2-0751_daily_bin666> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 07:10:26 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:10:28 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:28 2021
Terminated at Sun Aug 29 07:25:33 2021
Results reported at Sun Aug 29 07:25:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0808.2-0751_daily_bin666 122.065 -7.8556 411955201 412214401 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 :                                   670.11 sec.
    Max Memory :                                 1170 MB
    Average Memory :                             273.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            907 sec.

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

