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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin80
RA = 120.888, Dec = 20.7678
tmin = 260064001, tmax = 260323201
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='69123', job_status='RUN', time_executed='2021-08-28 22:48:48.656284', time_epoch_executed='1630216128.66' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='80'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69123

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69123/ft1_4FGL_J0803.5+2046_daily_bin80.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69123/ft2_4FGL_J0803.5+2046_daily_bin80.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69123/ft1_4FGL_J0803.5+2046_daily_bin80.fits outfile=/scratch/kocevski/69123/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin80.fits ra=120.888 dec=20.7678 rad=12.0 tmin=260064001.0 tmax=260323201.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 2.04
user 1.27
sys 0.74

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/69123/ft2_4FGL_J0803.5+2046_daily_bin80.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/69123/ft2_4FGL_J0803.5+2046_daily_bin80.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/69123/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin80.fits evtable="EVENTS" outfile="/scratch/kocevski/69123/ft1_filtered_4FGL_J0803.5+2046_daily_bin80.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 1.05
user 0.32
sys 0.70

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69123/ft1_filtered_4FGL_J0803.5+2046_daily_bin80.fits" evtable="EVENTS" scfile=/scratch/kocevski/69123/ft2_4FGL_J0803.5+2046_daily_bin80.fits sctable="SC_DATA" outfile=/scratch/kocevski/69123/ltcube_260064001_260323201_4FGL_J0803.5+2046_daily_bin80.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/69123/ft2_4FGL_J0803.5+2046_daily_bin80.fits
.....................!
real 13.48
user 12.45
sys 0.91

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69123/ft1_filtered_4FGL_J0803.5+2046_daily_bin80.fits evtable="EVENTS" scfile=/scratch/kocevski/69123/ft2_4FGL_J0803.5+2046_daily_bin80.fits sctable="SC_DATA" expcube=/scratch/kocevski/69123/ltcube_260064001_260323201_4FGL_J0803.5+2046_daily_bin80.fits outfile=/scratch/kocevski/69123/expmap_260064001_260323201_4FGL_J0803.5+2046_daily_bin80.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/69123/ltcube_260064001_260323201_4FGL_J0803.5+2046_daily_bin80.fits
.....................!
real 192.13
user 186.49
sys 5.28

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

Setting source of interest to:
4FGL J0803.5+2046 @ 120.888 20.7678

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/69123/ft1_filtered_4FGL_J0803.5+2046_daily_bin80.fits scfile=/scratch/kocevski/69123/ft2_4FGL_J0803.5+2046_daily_bin80.fits outfile=/scratch/kocevski/69123/cmap_260064001_260323201_4FGL_J0803.5+2046_daily_bin80.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=120.888 yref=20.7678 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 1.07
user 0.36
sys 0.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69123/ft1_filtered_4FGL_J0803.5+2046_daily_bin80.fits scfile=/scratch/kocevski/69123/ft2_4FGL_J0803.5+2046_daily_bin80.fits outfile=/scratch/kocevski/69123/cmap_HighResolution_260064001_260323201_4FGL_J0803.5+2046_daily_bin80.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=120.888 yref=20.7678 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 1.07
user 0.37
sys 0.69

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/69123/ft1_filtered_4FGL_J0803.5+2046_daily_bin80.fits evtable="EVENTS" scfile=/scratch/kocevski/69123/ft2_4FGL_J0803.5+2046_daily_bin80.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/69123/Model_4FGL_J0803.5+2046_daily_bin80.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/69123/ft1_filtered_4FGL_J0803.5+2046_daily_bin80.fits.....................!
real 76.40
user 74.28
sys 1.87

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/69123/ft1_filtered_4FGL_J0803.5+2046_daily_bin80.fits', '/scratch/kocevski/69123/ft2_4FGL_J0803.5+2046_daily_bin80.fits', expMap='/scratch/kocevski/69123/expmap_260064001_260323201_4FGL_J0803.5+2046_daily_bin80.fits', expCube='/scratch/kocevski/69123/ltcube_260064001_260323201_4FGL_J0803.5+2046_daily_bin80.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/69123/Model_4FGL_J0803.5+2046_daily_bin80.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0803.5+2046'

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  9.736e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
275         beta:  7.702e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  6.928e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/69123/ft1_filtered_4FGL_J0803.5+2046_daily_bin80.fits
Spacecraft file(s): /scratch/kocevski/69123/ft2_4FGL_J0803.5+2046_daily_bin80.fits
Exposure map: /scratch/kocevski/69123/expmap_260064001_260323201_4FGL_J0803.5+2046_daily_bin80.fits
Exposure cube: /scratch/kocevski/69123/ltcube_260064001_260323201_4FGL_J0803.5+2046_daily_bin80.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/69123/Model_4FGL_J0803.5+2046_daily_bin80.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) = 7220.17972447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    33.254       1.0000         .10000E-03   10000.    
     2 'norm      '    3.4685       1.0000         .10000E-03   10000.    
     3 'norm      '    4.2930       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.3961       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10634E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .94010E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10775E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5780       1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.628       1.0000         .10000E-03   10000.    
    11 'norm      '    .15650E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.498       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16571E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .15419E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25867E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.662       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18774E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21879E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .50325E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.3009       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .21688E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.2468       1.0000         .10000E-03   10000.    
    23 'Prefactor '    51.367       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68955       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1118       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7220.140     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     2570 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          33.355        15.223        .10531E-06    .98457E-06
   2  norm          3.4678        1.3904        .28947E-07   -.59819E-04
   3  norm          4.2932        1.5495        .23485E-07   -.12882E-03
   4  Prefactor     .10000E-03    2.3253        .38792E-07** at limit **
   5  norm          5.4114        4.8716        .87575E-07   -.29684E-03
   6  Prefactor     .10000E-03    12.636       -.58329E-07** at limit **
   7  Prefactor     .98698E-01    16.408        .77222E-06   -.10749E-03
   8  Prefactor     .10000E-03    239.94        .65698E-05** at limit **
   9  Prefactor     8.5833        3.6442        .13897E-06   -.20267E-03
  10  Prefactor     42.514        37.325       -.54234E-06   -.79369E-04
  11  norm          .10000E-03    45.548        .15352E-05** at limit **
  12  Prefactor     11.331        10.705        .30936E-06   -.63782E-04
  13  Prefactor     .10008E-03    152.70        .17075E-04** at limit **
  14  norm          .10000E-03    33.995       -.86809E-06** at limit **
  15  Prefactor     .10000E-03    15.867        .19968E-06** at limit **
  16  Prefactor     15.904        22.414        .23322E-05    .23489E-03
  17  Prefactor     .10000E-03    6.4467        .32722E-07** at limit **
  18  Prefactor     .10000E-03    3.5880       -.19255E-07** at limit **
  19  Prefactor     .10000E-03    8.4725        .71063E-07** at limit **
  20  norm          1.3004        1.1037        .62684E-07   -.16394E-03
  21  Prefactor     .10000E-03    11.776       -.34263E-06** at limit **
  22  Prefactor     5.2802        6.0683        .41569E-05   -.81520E-03
  23  Prefactor     51.090        39.170       -.34434E-05   -.34962E-03
  24  Normalizat    .68949        .18529       -.86182E-06   -.13452E-03
  25  Prefactor     1.1117        .14061       -.14439E-06   -.19275E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 33.3553
  norm       = 3.46775
  norm       = 4.29321
  Prefactor  = 0.0001
  norm       = 5.41141
  Prefactor  = 0.0001
  Prefactor  = 0.0986978
  Prefactor  = 0.000100004
  Prefactor  = 8.58332
  Prefactor  = 42.5142
  norm       = 0.0001
  Prefactor  = 11.3314
  Prefactor  = 0.000100081
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.30037
  Prefactor  = 0.0001
  Prefactor  = 5.28023
  Prefactor  = 51.0905
  Normalizat = 0.68949
  Prefactor  = 1.11173
 **********
 **   18 **HESSE 
 **********

 FCN=   7220.140     FROM HESSE     STATUS=OK           429 CALLS     2999 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          33.355        15.233        .69488E-04   -1.4552    
   2  norm          3.4678        1.3898        .61224E-04   -1.5336    
   3  norm          4.2932        1.5493        .61531E-04   -1.5294    
   4  Prefactor     .10000E-03    2.3297        .12648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.4114        4.9253        .14455E-03   -1.5243    
   6  Prefactor     .10000E-03    12.661        .20722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .98698E-01    24.539        .84160E-01   -1.5645    
   8  Prefactor     .10000E-03    250.17        .41425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.5833        3.6456        .99258E-04   -1.5122    
  10  Prefactor     42.514        37.336        .61400E-04   -1.4403    
  11  norm          .10000E-03    46.538        .36404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.331        10.650        .11814E-03   -1.5035    
  13  Prefactor     .10008E-03    162.47        .18211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    34.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.934        .19984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.904        22.631        .10120E-03   -1.4910    
  17  Prefactor     .10000E-03    6.4474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.5905        .15719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.5918        .21154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.3004        1.0852        .77599E-04   -1.5480    
  21  Prefactor     .10000E-03    12.082        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.2802        6.2463        .87741E-03   -1.5248    
  23  Prefactor     51.090        39.951        .55957E-04   -1.4277    
  24  Normalizat    .68949        .21178        .31923E-03   -1.0431    
  25  Prefactor     1.1117        .16190        .20293E-03   -.89093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56792e-09
Minuit parameter uncertainties:
  1  15.2344
  2  1.38977
  3  1.54932
  4  1.32177e-07
  5  4.92565
  6  3.31789e-06
  7  3.11223
  8  0.001999
  9  3.64572
  10  37.3566
  11  0.000195554
  12  10.6516
  13  0.00728171
  14  0.000178033
  15  4.92487e-05
  16  22.6431
  17  9.82974e-07
  18  1.78603e-06
  19  6.36578e-06
  20  1.08522
  21  6.98426e-05
  22  6.24703
  23  39.9715
  24  0.212034
  25  0.161975
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  1.780e-04  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
275         beta:  7.702e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  6.928e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  1.112e+00  1.620e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  6.895e-01  2.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 120.888 20.768
Photon Flux Upper Limit: 2.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.53e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/69123/likelihoodResults_260064001_260323201_4FGL_J0803.5+2046_daily_bin80.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): 0
logL (Free Index) = 7220.13967036
delta logL = -0.0001397337046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7220.13953302
delta logL = -2.39594282903e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10205E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6299       1.0000          .0000       5.0000    
     3 'Normalizat'    .68950       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1117       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+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=   7220.140     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      269 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1203.9        .18142E-01** at limit **
   2  alpha         1.7915        3.4578        .19355        .11454E-07
   3  Normalizat    .68949        .27082E-01    .31923E-03    .47455E-03
   4  Prefactor     1.1117        .21559E-01    .20293E-03    .74036E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  alpha      = 1.79155
  Normalizat = 0.689492
  Prefactor  = 1.11173
 **********
 **   18 **HESSE 
 **********

 FCN=   7220.140     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    35.291        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7915        3.7248        .77420E-02   -.28732    
   3  Normalizat    .68949        .20155        .12769E-04   -1.0431    
   4  Prefactor     1.1117        .16055        .40586E-04   -.89092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94595e-10
Minuit parameter uncertainties:
  1  0.000806533
  2  1051.95
  3  0.201767
  4  0.160615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69123': 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) = 7220.13953061
delta logL = 2.05300239031e-08

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  8.065e-04  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.792e+00  1.052e+03  0.000e+00  5.000e+00 ( 1.000e+00)
275         beta:  7.702e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  6.928e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  1.112e+00  1.606e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  6.895e-01  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 120.888 20.768

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/69123/cmap_HighResolution_260064001_260323201_4FGL_J0803.5+2046_daily_bin80.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.53e-05', job_status='DONE', photon_flux_upper_limit='2.90e-08', time_completed='2021-08-28 23:00:57.553544', job_id='69123', GAL2='1.11', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1630216857.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.05e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='80' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:00:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 69123: <4FGL_J0803.5+2046_daily_bin80> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin80> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Aug 28 22:45:59 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 22:46:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 22:46:01 2021
Terminated at Sat Aug 28 23:00:58 2021
Results reported at Sat Aug 28 23:00:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin80 120.888 20.7678 260064001 260323201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0803.5+2046 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   735.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             287.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            899 sec.

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

