/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 84 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 = 7451
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0805.2-0110_daily_bin1229
RA = 121.3, Dec = -1.181
tmin = 557884801, tmax = 558144001
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='126022', job_status='RUN', time_executed='2021-08-29 01:50:45.179617', time_epoch_executed='1630227045.18' WHERE source_name='4FGL J0805.2-0110' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/126022

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/126022/ft1_4FGL_J0805.2-0110_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/126022/ft2_4FGL_J0805.2-0110_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/126022/ft1_4FGL_J0805.2-0110_daily_bin1229.fits outfile=/scratch/kocevski/126022/ft1_filteredMKT_4FGL_J0805.2-0110_daily_bin1229.fits ra=121.3 dec=-1.181 rad=12.0 tmin=557884801.0 tmax=558144001.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 12.58
user 3.80
sys 8.50

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/126022/ft2_4FGL_J0805.2-0110_daily_bin1229.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/126022/ft2_4FGL_J0805.2-0110_daily_bin1229.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/126022/ft1_filteredMKT_4FGL_J0805.2-0110_daily_bin1229.fits evtable="EVENTS" outfile="/scratch/kocevski/126022/ft1_filtered_4FGL_J0805.2-0110_daily_bin1229.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 10.14
user 0.34
sys 9.49

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/126022/ft1_filtered_4FGL_J0805.2-0110_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/126022/ft2_4FGL_J0805.2-0110_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/126022/ltcube_557884801_558144001_4FGL_J0805.2-0110_daily_bin1229.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/126022/ft2_4FGL_J0805.2-0110_daily_bin1229.fits
.....................!
real 24.48
user 12.46
sys 10.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/126022/ft1_filtered_4FGL_J0805.2-0110_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/126022/ft2_4FGL_J0805.2-0110_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/126022/ltcube_557884801_558144001_4FGL_J0805.2-0110_daily_bin1229.fits outfile=/scratch/kocevski/126022/expmap_557884801_558144001_4FGL_J0805.2-0110_daily_bin1229.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/126022/ltcube_557884801_558144001_4FGL_J0805.2-0110_daily_bin1229.fits
.....................!
real 203.47
user 186.66
sys 16.05

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

Setting source of interest to:
4FGL J0805.2-0110 @ 121.3 -1.181

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/126022/ft1_filtered_4FGL_J0805.2-0110_daily_bin1229.fits scfile=/scratch/kocevski/126022/ft2_4FGL_J0805.2-0110_daily_bin1229.fits outfile=/scratch/kocevski/126022/cmap_557884801_558144001_4FGL_J0805.2-0110_daily_bin1229.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=121.3 yref=-1.181 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 9.98
user 0.39
sys 9.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/126022/ft1_filtered_4FGL_J0805.2-0110_daily_bin1229.fits scfile=/scratch/kocevski/126022/ft2_4FGL_J0805.2-0110_daily_bin1229.fits outfile=/scratch/kocevski/126022/cmap_HighResolution_557884801_558144001_4FGL_J0805.2-0110_daily_bin1229.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=121.3 yref=-1.181 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 9.65
user 0.39
sys 9.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/126022/ft1_filtered_4FGL_J0805.2-0110_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/126022/ft2_4FGL_J0805.2-0110_daily_bin1229.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/126022/Model_4FGL_J0805.2-0110_daily_bin1229.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/126022/ft1_filtered_4FGL_J0805.2-0110_daily_bin1229.fits.............................!
real 34.19
user 20.59
sys 13.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/126022/ft1_filtered_4FGL_J0805.2-0110_daily_bin1229.fits', '/scratch/kocevski/126022/ft2_4FGL_J0805.2-0110_daily_bin1229.fits', expMap='/scratch/kocevski/126022/expmap_557884801_558144001_4FGL_J0805.2-0110_daily_bin1229.fits', expCube='/scratch/kocevski/126022/ltcube_557884801_558144001_4FGL_J0805.2-0110_daily_bin1229.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/126022/Model_4FGL_J0805.2-0110_daily_bin1229.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0805.2-0110'

4FGL J0805.2-0110
   Spectrum: LogParabola
254         norm:  3.803e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  2.349e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
256         beta:  1.330e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
257           Eb:  5.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/126022/ft1_filtered_4FGL_J0805.2-0110_daily_bin1229.fits
Spacecraft file(s): /scratch/kocevski/126022/ft2_4FGL_J0805.2-0110_daily_bin1229.fits
Exposure map: /scratch/kocevski/126022/expmap_557884801_558144001_4FGL_J0805.2-0110_daily_bin1229.fits
Exposure cube: /scratch/kocevski/126022/ltcube_557884801_558144001_4FGL_J0805.2-0110_daily_bin1229.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/126022/Model_4FGL_J0805.2-0110_daily_bin1229.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) = 702.415814846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10617E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    75.639       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    75.305       1.0000         .10000E-03   10000.    
     7 'norm      '    40.143       1.0000         .10000E-03   10000.    
     8 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11093E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16873E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28517E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10255E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19110E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3925       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    44.329       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13063E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10164E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0740       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .47261       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5040E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   702.3971     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3048 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    179.41        .85871E-07** at limit **
   2  Prefactor     .10000E-03    22.571        .36982E-07** at limit **
   3  Prefactor     75.664        68.216        .70462E-06   -.51327E-05
   4  Prefactor     .10000E-03    171.44       -.26928E-07** at limit **
   5  norm          .10000E-03    5.5715        .17462E-07** at limit **
   6  Prefactor     75.338        117.79       -.22320E-06   -.32489E-05
   7  norm          40.178        57.182        .70225E-06   -.72356E-05
   8  norm          .10000E-03    138.97       -.37316E-06** at limit **
   9  norm          .10000E-03    3.1468       -.32066E-07** at limit **
  10  Prefactor     .10000E-03    98.198        .97842E-07** at limit **
  11  Prefactor     .10000E-03    268.53       -.36735E-05** at limit **
  12  Prefactor     .10000E-03    982.61       -.18248E-05** at limit **
  13  norm          .10001E-03    920.71       -.20067E-04** at limit **
  14  norm          .10000E-03    9.2413       -.22147E-06** at limit **
  15  Prefactor     .10060E-03    36.793        .64556E-05** at limit **
  16  norm          1.3926        2.4831        .21297E-06   -.11421E-03
  17  norm          .10000E-03    146.16       -.32199E-06** at limit **
  18  norm          44.359        44.802       -.52552E-05   -.20305E-03
  19  Prefactor     .10000E-03    277.08        .50127E-06** at limit **
  20  Prefactor     .10000E-03    31.255       -.22715E-07** at limit **
  21  norm          .10000E-03    16.822       -.62582E-08** at limit **
  22  Prefactor     .10000E-03    201.57        .29318E-06** at limit **
  23  norm          .10000E-03    5.5794       -.19784E-08** at limit **
  24  norm          .10000E-03    37.402       -.95386E-08** at limit **
  25  Normalizat    1.0733        .55547       -.26263E-05   -.20236E-03
  26  Prefactor     .47249        .23257       -.14708E-05   -.31038E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.6639
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 75.3379
  norm       = 40.178
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 0.00010001
  norm       = 0.0001
  Prefactor  = 0.0001006
  norm       = 1.3926
  norm       = 0.0001
  norm       = 44.3588
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.07333
  Prefactor  = 0.472489
 **********
 **   18 **HESSE 
 **********

 FCN=   702.3971     FROM HESSE     STATUS=OK           438 CALLS     3486 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    179.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.576        .12305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     75.664        68.754        .46168E-04   -1.3966    
   4  Prefactor     .10000E-03    171.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.5720        .61118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     75.338        117.73        .23135E-03   -1.3970    
   7  norm          40.178        57.427        .63265E-04   -1.4439    
   8  norm          .10000E-03    139.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.1570        .45914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    98.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    271.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    985.97        .19883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    910.90        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.3052        .78462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10060E-03    116.87        .24835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3926        2.4426        .52308E-04   -1.5472    
  17  norm          .10000E-03    146.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          44.359        44.589        .60215E-04   -1.4375    
  19  Prefactor     .10000E-03    277.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.847        .14452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    16.823        .10622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    201.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.5799        .61161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    37.413        .15844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0733        .60373        .31099E-03   -.90613    
  26  Prefactor     .47249        .25702        .17875E-03   -1.1326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76931e-09
Minuit parameter uncertainties:
  1  0.000116582
  2  6.45175e-06
  3  68.8261
  4  2.202e-06
  5  3.48487e-06
  6  118.092
  7  57.5061
  8  0.000433857
  9  1.20296e-06
  10  0.000113453
  11  0.00107922
  12  0.0028896
  13  0.00624804
  14  9.69503e-06
  15  0.0167798
  16  2.44278
  17  0.000343305
  18  44.6222
  19  0.000940322
  20  0.000120466
  21  2.83684e-06
  22  0.000446733
  23  1.85764e-06
  24  9.16017e-06
  25  0.607664
  26  0.257656
Done.

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

Extracting fit parameters...

4FGL J0805.2-0110
   Spectrum: LogParabola
254         norm:  1.000e-04  6.248e-03  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  2.349e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
256         beta:  1.330e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
257           Eb:  5.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
501    Prefactor:  4.725e-01  2.577e-01  0.000e+00  1.000e+01 ( 1.000e+00)
502        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
503        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
500   Normalization:  1.073e+00  6.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.300 -1.181
Photon Flux Upper Limit: 8.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.66e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/126022/likelihoodResults_557884801_558144001_4FGL_J0805.2-0110_daily_bin1229.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 702.397133371
delta logL = -5.08087669004e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 702.357260629
delta logL = 0.0398676609508

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   702.3573     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      267 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 76.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6175        5.4841        .44417E-05   -.17268E-03
   2  alpha         5.0000        4.9962        .30371E-03** at limit **
   3  Normalizat    .99908        .58331       -.26961E-05    .15939E-03
   4  Prefactor     .48849        .21995        .49573E-06    .84501E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.61752
  alpha      = 5
  Normalizat = 0.999085
  Prefactor  = 0.488494
 **********
 **   18 **HESSE 
 **********

 FCN=   702.3573     FROM HESSE     STATUS=OK            27 CALLS      294 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6175        6.1089        .11329E-03   -1.5454    
   2  alpha         5.0000        4.8385        .84977E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .99908        .64115        .32036E-03   -.93061    
   4  Prefactor     .48849        .24269        .17601E-03   -1.1251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11292e-09
Minuit parameter uncertainties:
  1  6.11121
  2  0.000360054
  3  0.646194
  4  0.24321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/126022': 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) = 702.357260596
delta logL = 0.039867693715

Extracting fit parameters...

4FGL J0805.2-0110
   Spectrum: LogParabola
254         norm:  1.618e+00  6.111e+00  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  5.000e+00  3.601e-04  0.000e+00  5.000e+00 ( 1.000e+00)
256         beta:  1.330e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
257           Eb:  5.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
501    Prefactor:  4.885e-01  2.432e-01  0.000e+00  1.000e+01 ( 1.000e+00)
502        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
503        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
500   Normalization:  9.991e-01  6.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.300 -1.181

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/126022/cmap_HighResolution_557884801_558144001_4FGL_J0805.2-0110_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-04', job_status='DONE', photon_flux_upper_limit='8.32e-07', time_completed='2021-08-29 01:59:03.430228', job_id='126022', GAL2='0.49', fit_tolerance='1e-08', EG2='1.00', EG='1.07', time_epoch_completed='1630227543.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.47', dlogl='3.99e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1229' AND source_name='4FGL J0805.2-0110' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 01:59:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 126022: <4FGL_J0805.2-0110_daily_bin1229> in cluster <slac> Done

Job <4FGL_J0805.2-0110_daily_bin1229> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Aug 29 01:45:45 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 01:45:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 01:45:47 2021
Terminated at Sun Aug 29 01:59:05 2021
Results reported at Sun Aug 29 01:59:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0805.2-0110_daily_bin1229 121.3 -1.181 557884801 558144001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0805.2-0110 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   639.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             221.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            800 sec.

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

