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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1290
RA = 120.888, Dec = 20.7678
tmin = 573696001, tmax = 573955201
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='75364', job_status='RUN', time_executed='2021-08-28 23:08:39.087821', time_epoch_executed='1630217319.09' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1290'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75364

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75364/ft1_4FGL_J0803.5+2046_daily_bin1290.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75364/ft2_4FGL_J0803.5+2046_daily_bin1290.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75364/ft1_4FGL_J0803.5+2046_daily_bin1290.fits outfile=/scratch/kocevski/75364/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1290.fits ra=120.888 dec=20.7678 rad=12.0 tmin=573696001.0 tmax=573955201.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 5.43
user 4.30
sys 1.06

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75364/ft2_4FGL_J0803.5+2046_daily_bin1290.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/75364/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1290.fits evtable="EVENTS" outfile="/scratch/kocevski/75364/ft1_filtered_4FGL_J0803.5+2046_daily_bin1290.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.44
user 0.34
sys 1.03

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75364/ft1_filtered_4FGL_J0803.5+2046_daily_bin1290.fits" evtable="EVENTS" scfile=/scratch/kocevski/75364/ft2_4FGL_J0803.5+2046_daily_bin1290.fits sctable="SC_DATA" outfile=/scratch/kocevski/75364/ltcube_573696001_573955201_4FGL_J0803.5+2046_daily_bin1290.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/75364/ft2_4FGL_J0803.5+2046_daily_bin1290.fits
.....................!
real 13.07
user 11.69
sys 1.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75364/ft1_filtered_4FGL_J0803.5+2046_daily_bin1290.fits evtable="EVENTS" scfile=/scratch/kocevski/75364/ft2_4FGL_J0803.5+2046_daily_bin1290.fits sctable="SC_DATA" expcube=/scratch/kocevski/75364/ltcube_573696001_573955201_4FGL_J0803.5+2046_daily_bin1290.fits outfile=/scratch/kocevski/75364/expmap_573696001_573955201_4FGL_J0803.5+2046_daily_bin1290.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/75364/ltcube_573696001_573955201_4FGL_J0803.5+2046_daily_bin1290.fits
.....................!
real 192.54
user 185.65
sys 6.38

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/75364/ft1_filtered_4FGL_J0803.5+2046_daily_bin1290.fits scfile=/scratch/kocevski/75364/ft2_4FGL_J0803.5+2046_daily_bin1290.fits outfile=/scratch/kocevski/75364/cmap_573696001_573955201_4FGL_J0803.5+2046_daily_bin1290.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.41
user 0.36
sys 1.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75364/ft1_filtered_4FGL_J0803.5+2046_daily_bin1290.fits scfile=/scratch/kocevski/75364/ft2_4FGL_J0803.5+2046_daily_bin1290.fits outfile=/scratch/kocevski/75364/cmap_HighResolution_573696001_573955201_4FGL_J0803.5+2046_daily_bin1290.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.42
user 0.38
sys 1.01

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.2047       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7208       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0172       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .36885       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.538       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11161E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.932       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.482       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4099       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.2859       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .34824E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    89.545       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2501       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .73454       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=   5932.538     FROM MIGRAD    STATUS=CONVERGED    639 CALLS     2973 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.6639        .90712E-02** at limit **
   2  norm          2.2043        1.3411        .69267E-02    .26537E-03
   3  norm          1.7208        1.2424        .80056E-02    .21439E-03
   4  Prefactor     .10000E-03    4.1186        .90712E-02** at limit **
   5  norm          1.0372        4.2383        .12897E-01    .15677E-02
   6  Prefactor     .10000E-03    22.228        .90712E-02** at limit **
   7  Prefactor     .10002E-03    20.027        .10723    ** at limit **
   8  Prefactor     14.532        35.476        .26262E-02    .15439E-03
   9  Prefactor     .10000E-03    2.4713        .38353E-01** at limit **
  10  Prefactor     .10000E-03    13.939        .90712E-02** at limit **
  11  norm          .10000E-03    6.6669        .90712E-02** at limit **
  12  Prefactor     16.918        13.177        .24334E-02   -.29630E-04
  13  Prefactor     .10000E-03    72.873        .90712E-02** at limit **
  14  norm          .10000E-03    49.768        .90712E-02** at limit **
  15  Prefactor     .10000E-03    17.281        .90712E-02** at limit **
  16  Prefactor     29.471        38.515        .18447E-02   -.71543E-03
  17  Prefactor     6.4017        22.102        .39632E-02    .70965E-04
  18  Prefactor     .10000E-03    5.4080        .90712E-02** at limit **
  19  Prefactor     .10000E-03    9.3359        .90712E-02** at limit **
  20  norm          2.2853        1.3415        .67882E-02    .65738E-03
  21  Prefactor     .10000E-03    5.8891        .91958E-01** at limit **
  22  Prefactor     .10000E-03    7.0426        .90712E-02** at limit **
  23  Prefactor     89.512        53.416        .10615E-02    .13114E-02
  24  Normalizat    1.2506        .19965        .57146E-01    .38138E-03
  25  Prefactor     .73438        .13620        .42859E-01    .46297E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.20431
  norm       = 1.72077
  Prefactor  = 0.0001
  norm       = 1.0372
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 14.5319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.9176
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 29.4707
  Prefactor  = 6.40174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.28534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 89.5117
  Normalizat = 1.25063
  Prefactor  = 0.73438
 **********
 **   18 **HESSE 
 **********

 FCN=   5932.538     FROM HESSE     STATUS=OK           437 CALLS     3410 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.6786        .17902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2043        1.3392        .66915E-04   -1.5411    
   3  norm          1.7208        1.2454        .70456E-04   -1.5446    
   4  Prefactor     .10000E-03    4.1370        .15255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0372        4.0516        .27198E-03   -1.5504    
   6  Prefactor     .10000E-03    22.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    27.650        .84926E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.532        35.529        .52524E-03   -1.4945    
   9  Prefactor     .10000E-03    4.6333        .22935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.6677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.918        13.072        .97334E-04   -1.4885    
  13  Prefactor     .10000E-03    72.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    49.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     29.471        38.560        .73788E-04   -1.4622    
  17  Prefactor     6.4017        22.088        .15853E-03   -1.5202    
  18  Prefactor     .10000E-03    5.4163        .17494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.3441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.2853        1.3368        .64571E-04   -1.5406    
  21  Prefactor     .10000E-03    10.517        .59446E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.3370        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     89.512        53.542        .42462E-04   -1.3813    
  24  Normalizat    1.2506        .23384        .25271E-03   -.85052    
  25  Prefactor     .73438        .15931        .22906E-03   -1.0219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.42899e-09
Minuit parameter uncertainties:
  1  7.07509e-06
  2  1.33924
  3  1.24537
  4  2.17116e-05
  5  4.05267
  6  8.02248e-05
  7  0.00151174
  8  35.581
  9  4.49175e-05
  10  6.41995e-05
  11  4.54256e-05
  12  13.0745
  13  0.00040493
  14  0.000377791
  15  4.46501e-05
  16  38.593
  17  22.1161
  18  4.34175e-06
  19  2.31089e-07
  20  1.33686
  21  0.000129724
  22  6.2084e-06
  23  53.5706
  24  0.234032
  25  0.159414
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  3.778e-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:  7.344e-01  1.594e-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:  1.251e+00  2.340e-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: 3.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75364/likelihoodResults_573696001_573955201_4FGL_J0803.5+2046_daily_bin1290.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) = 5932.53789169
delta logL = -9.55769737629e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5932.53778869
delta logL = 7.42290558264e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24483E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8791       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2506       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73438       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5932.538     FROM MIGRAD    STATUS=FAILED       166 CALLS      351 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33840        821.24        .12996        .10266E-03
   2  alpha         3.8563        2.8564        .20000        .20267E-04
   3  Normalizat    1.2504        .24904E-01    .25271E-03    .15295E-05
   4  Prefactor     .73438        .17726E-01    .22906E-03    .14889E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5932.538     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      438 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33840        821.24        .18326E-02    .10266E-03
   2  alpha         3.8563        2.8564        .42146E-02    .20267E-04
   3  Normalizat    1.2504        .24904E-01    .28392E-04    .15295E-05
   4  Prefactor     .73438        .17726E-01    .14876E-04    .14889E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5932.538     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      479 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33840        1150.0        .12868        .10420E-03
   2  alpha         3.8563        3.1367        .40000E-01    .44622E-07
   3  Normalizat    1.2504        .30537E-01    .10109E-04    .15745E-05
   4  Prefactor     .73438        .21544E-01    .91625E-05    .12408E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.338402
  alpha      = 3.85634
  Normalizat = 1.25036
  Prefactor  = 0.734382
 **********
 **   18 **HESSE 
 **********

 FCN=   5932.538     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      512 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33840        1233.3        .12908       -1.5592    
   2  alpha         3.8563        3.0578        .16000E-02    .57345    
   3  Normalizat    1.2504        .32124E-01    .20217E-05   -.85061    
   4  Prefactor     .73438        .22592E-01    .18325E-05   -1.0219    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.46221e-09
Minuit parameter uncertainties:
  1  41.7432
  2  76.7613
  3  0.0321243
  4  0.0225926
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75364': 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): 102
logL (Free Index) = 5932.53774906
delta logL = 4.70554632557e-05

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  3.384e-01  4.174e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  3.856e+00  7.676e+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:  7.344e-01  2.259e-02  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:  1.250e+00  3.212e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/75364/cmap_HighResolution_573696001_573955201_4FGL_J0803.5+2046_daily_bin1290.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.83e-05', job_status='DONE', photon_flux_upper_limit='3.47e-08', time_completed='2021-08-28 23:20:16.424984', job_id='75364', GAL2='0.73', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630218016.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='4.71e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1290' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:20:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 75364: <4FGL_J0803.5+2046_daily_bin1290> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin1290> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 23:05:54 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 23:05:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 23:05:56 2021
Terminated at Sat Aug 28 23:20:17 2021
Results reported at Sat Aug 28 23:20:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1290 120.888 20.7678 573696001 573955201 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 :                                   706.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            863 sec.

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

