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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin322
RA = 120.888, Dec = 20.7678
tmin = 322790401, tmax = 323049601
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='70488', job_status='RUN', time_executed='2021-08-28 22:52:45.685223', time_epoch_executed='1630216365.69' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70488

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70488/ft1_4FGL_J0803.5+2046_daily_bin322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70488/ft2_4FGL_J0803.5+2046_daily_bin322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70488/ft1_4FGL_J0803.5+2046_daily_bin322.fits outfile=/scratch/kocevski/70488/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin322.fits ra=120.888 dec=20.7678 rad=12.0 tmin=322790401.0 tmax=323049601.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 19.86
user 11.68
sys 8.06

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/70488/ft2_4FGL_J0803.5+2046_daily_bin322.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/70488/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin322.fits evtable="EVENTS" outfile="/scratch/kocevski/70488/ft1_filtered_4FGL_J0803.5+2046_daily_bin322.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.24
user 0.33
sys 7.87

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70488/ft1_filtered_4FGL_J0803.5+2046_daily_bin322.fits" evtable="EVENTS" scfile=/scratch/kocevski/70488/ft2_4FGL_J0803.5+2046_daily_bin322.fits sctable="SC_DATA" outfile=/scratch/kocevski/70488/ltcube_322790401_323049601_4FGL_J0803.5+2046_daily_bin322.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/70488/ft2_4FGL_J0803.5+2046_daily_bin322.fits
.....................!
real 20.81
user 10.76
sys 9.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70488/ft1_filtered_4FGL_J0803.5+2046_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/70488/ft2_4FGL_J0803.5+2046_daily_bin322.fits sctable="SC_DATA" expcube=/scratch/kocevski/70488/ltcube_322790401_323049601_4FGL_J0803.5+2046_daily_bin322.fits outfile=/scratch/kocevski/70488/expmap_322790401_323049601_4FGL_J0803.5+2046_daily_bin322.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/70488/ltcube_322790401_323049601_4FGL_J0803.5+2046_daily_bin322.fits
.....................!
real 200.95
user 185.28
sys 15.21

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/70488/ft1_filtered_4FGL_J0803.5+2046_daily_bin322.fits scfile=/scratch/kocevski/70488/ft2_4FGL_J0803.5+2046_daily_bin322.fits outfile=/scratch/kocevski/70488/cmap_322790401_323049601_4FGL_J0803.5+2046_daily_bin322.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 7.39
user 0.38
sys 6.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70488/ft1_filtered_4FGL_J0803.5+2046_daily_bin322.fits scfile=/scratch/kocevski/70488/ft2_4FGL_J0803.5+2046_daily_bin322.fits outfile=/scratch/kocevski/70488/cmap_HighResolution_322790401_323049601_4FGL_J0803.5+2046_daily_bin322.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 8.12
user 0.36
sys 7.70

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/70488/ft1_filtered_4FGL_J0803.5+2046_daily_bin322.fits', '/scratch/kocevski/70488/ft2_4FGL_J0803.5+2046_daily_bin322.fits', expMap='/scratch/kocevski/70488/expmap_322790401_323049601_4FGL_J0803.5+2046_daily_bin322.fits', expCube='/scratch/kocevski/70488/ltcube_322790401_323049601_4FGL_J0803.5+2046_daily_bin322.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/70488/Model_4FGL_J0803.5+2046_daily_bin322.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/70488/ft1_filtered_4FGL_J0803.5+2046_daily_bin322.fits
Spacecraft file(s): /scratch/kocevski/70488/ft2_4FGL_J0803.5+2046_daily_bin322.fits
Exposure map: /scratch/kocevski/70488/expmap_322790401_323049601_4FGL_J0803.5+2046_daily_bin322.fits
Exposure cube: /scratch/kocevski/70488/ltcube_322790401_323049601_4FGL_J0803.5+2046_daily_bin322.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/70488/Model_4FGL_J0803.5+2046_daily_bin322.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) = 3683.04367229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.961       1.0000         .10000E-03   10000.    
     2 'norm      '    7.8149       1.0000         .10000E-03   10000.    
     3 'norm      '    2.3674       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8385       1.0000         .10000E-03   10000.    
     5 'norm      '    4.8295       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1020       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1493       1.0000         .10000E-03   10000.    
    10 'Prefactor '    52.897       1.0000         .10000E-03   10000.    
    11 'norm      '    .75905E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.320       1.0000         .10000E-03   10000.    
    13 'Prefactor '    116.85       1.0000         .10000E-03   10000.    
    14 'norm      '    207.10       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.7866       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    54.203       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11404E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    81.509       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .77372       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96826       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=   3683.025     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2981 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.962        18.658       -.14063E-06   -.17526E-04
   2  norm          7.8149        3.0132        .22572E-07    .25080E-05
   3  norm          2.3674        2.4252        .23353E-06   -.34452E-05
   4  Prefactor     7.8382        13.929       -.12498E-05   -.14548E-04
   5  norm          4.8295        6.8996        .18646E-06    .61605E-04
   6  Prefactor     9.0985        71.813       -.97380E-06    .13036E-05
   7  Prefactor     .10000E-03    15.632        .76330E-06** at limit **
   8  Prefactor     .10000E-03    20.438       -.10147E-05** at limit **
   9  Prefactor     2.1502        5.2017       -.33014E-05    .37059E-04
  10  Prefactor     52.894        51.134       -.20411E-06    .44064E-05
  11  norm          .10017E-03    487.71        .27883E-05** at limit **
  12  Prefactor     34.315        28.612       -.40687E-05    .17154E-03
  13  Prefactor     116.66        175.11       -.14114E-04   -.74844E-04
  14  norm          207.10        130.43       -.32861E-06   -.44250E-05
  15  Prefactor     .10000E-03    9.2538       -.13747E-06** at limit **
  16  Prefactor     .10000E-03    13.962       -.11412E-05** at limit **
  17  Prefactor     8.7860        28.947       -.77921E-06   -.30676E-05
  18  Prefactor     .10000E-03    16.831        .12539E-05** at limit **
  19  Prefactor     54.211        35.134        .14900E-05    .73121E-05
  20  norm          .10000E-03    1.2934       -.14500E-06** at limit **
  21  Prefactor     .10000E-03    10.280        .34251E-06** at limit **
  22  Prefactor     .10000E-03    226.60        .32642E-04** at limit **
  23  Prefactor     81.510        81.449       -.12222E-06    .21503E-04
  24  Normalizat    .77377        .25483        .41824E-05    .64264E-05
  25  Prefactor     .96824        .18161       -.14024E-05    .15637E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 26.9622
  norm       = 7.81491
  norm       = 2.36736
  Prefactor  = 7.83818
  norm       = 4.82947
  Prefactor  = 9.0985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.15018
  Prefactor  = 52.8939
  norm       = 0.000100172
  Prefactor  = 34.3153
  Prefactor  = 116.658
  norm       = 207.099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.78595
  Prefactor  = 0.0001
  Prefactor  = 54.2113
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 81.5099
  Normalizat = 0.773773
  Prefactor  = 0.968235
 **********
 **   18 **HESSE 
 **********

 FCN=   3683.025     FROM HESSE     STATUS=OK           433 CALLS     3414 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.962        18.674        .77153E-04   -1.4669    
   2  norm          7.8149        3.0148        .63101E-04   -1.5149    
   3  norm          2.3674        2.4482        .78324E-04   -1.5400    
   4  Prefactor     7.8382        14.039        .71610E-03   -1.5148    
   5  norm          4.8295        6.8167        .15100E-03   -1.5268    
   6  Prefactor     9.0985        70.218        .13285E-03   -1.5105    
   7  Prefactor     .10000E-03    15.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1502        5.2426        .99205E-03   -1.5415    
  10  Prefactor     52.894        51.019        .55146E-04   -1.4252    
  11  norm          .10017E-03    511.81        .37133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     34.315        28.583        .68404E-04   -1.4536    
  13  Prefactor     116.66        177.47        .18611E-03   -1.3544    
  14  norm          207.10        130.47        .14044E-03   -1.2820    
  15  Prefactor     .10000E-03    9.2550        .18033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.7860        28.954        .13522E-03   -1.5115    
  18  Prefactor     .10000E-03    16.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     54.211        32.943        .54481E-04   -1.4234    
  20  norm          .10000E-03    1.6420        .12192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.315        .52811E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     81.510        81.596        .44488E-04   -1.3900    
  24  Normalizat    .77377        .29282        .30606E-03   -1.0105    
  25  Prefactor     .96824        .20917        .21163E-03   -.93796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07581e-09
Minuit parameter uncertainties:
  1  18.6778
  2  3.01491
  3  2.44833
  4  14.0449
  5  6.81779
  6  50.6343
  7  1.58136e-08
  8  4.44604e-05
  9  5.24371
  10  51.0614
  11  0.018903
  12  28.5948
  13  178.29
  14  130.649
  15  9.95413e-06
  16  6.27962e-05
  17  29.0002
  18  8.15598e-05
  19  32.9541
  20  0.000121401
  21  3.78407e-05
  22  0.000538303
  23  81.7083
  24  0.293419
  25  0.209344
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  2.071e+02  1.306e+02  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:  9.682e-01  2.093e-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:  7.738e-01  2.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.93
Ra Dec: 120.888 20.768
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.79e-08 +/- 2.39e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 1.26e-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) = 3682.8966246
delta logL = 0.12865390864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3682.89638492
delta logL = 0.128893584842

Fit tolerance = 1e-08

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

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

 FCN=   3682.896     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      219 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          204.64        139.33        .70630E-03    .15839E-03
   2  alpha         1.5355        .89881        .45908        .33130E-05
   3  Normalizat    .77793        .23171        .69013E-01    .13008E-04
   4  Prefactor     .96865        .17854        .45874E-01    .26884E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 204.644
  alpha      = 1.53555
  Normalizat = 0.777933
  Prefactor  = 0.968652
 **********
 **   18 **HESSE 
 **********

 FCN=   3682.896     FROM HESSE     STATUS=OK            31 CALLS      250 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          204.64        134.92        .14126E-03   -1.2837    
   2  alpha         1.5355        .90662        .22290E-01   -.39605    
   3  Normalizat    .77793        .26555        .30537E-03   -1.0089    
   4  Prefactor     .96865        .20525        .21161E-03   -.93782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30782e-10
Minuit parameter uncertainties:
  1  135.128
  2  0.931755
  3  0.26599
  4  0.205413
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70488': 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) = 3682.89638483
delta logL = 0.128893674505

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  2.046e+02  1.351e+02  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.536e+00  9.318e-01  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:  9.687e-01  2.054e-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:  7.779e-01  2.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.17
Ra Dec: 120.888 20.768
Photon Index (Free Index): 1.54 +/- 0.93
Photon Flux (Free Index): 3.07e-08 +/- 2.37e-08
Energy Flux (Free Index): 2.12e-05 +/- 1.40e-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/70488/cmap_HighResolution_322790401_323049601_4FGL_J0803.5+2046_daily_bin322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.79e-08', energy_flux2='2.12e-05', photon_flux_error='2.39e-08', dlogl='1.29e-01', energy_flux='1.99e-05', photon_flux2='3.07e-08', job_status='DONE', time_completed='2021-08-28 23:03:31.987062', photon_index_error2='0.93', photon_index2='1.54', ts='6.93', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='0.77', time_epoch_completed='1630217011.99', return_code='0', job_id='70488', GAL2='0.97', EG2='0.78', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='2.37e-08', ts2='7.17', photon_index='2.00' WHERE bin_id='322' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:03:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 70488: <4FGL_J0803.5+2046_daily_bin322> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin322> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 28 22:50:32 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 22:50:34 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:50:34 2021
Terminated at Sat Aug 28 23:03:33 2021
Results reported at Sat Aug 28 23:03:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin322 120.888 20.7678 322790401 323049601 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 :                                   751.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             225.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            781 sec.

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

