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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1071
RA = 120.888, Dec = 20.7678
tmin = 516931201, tmax = 517190401
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='73784', job_status='RUN', time_executed='2021-08-28 23:01:50.563136', time_epoch_executed='1630216910.56' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1071'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73784

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73784/ft1_4FGL_J0803.5+2046_daily_bin1071.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73784/ft2_4FGL_J0803.5+2046_daily_bin1071.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73784/ft1_4FGL_J0803.5+2046_daily_bin1071.fits outfile=/scratch/kocevski/73784/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1071.fits ra=120.888 dec=20.7678 rad=12.0 tmin=516931201.0 tmax=517190401.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 6.76
user 3.70
sys 2.94

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73784/ft2_4FGL_J0803.5+2046_daily_bin1071.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/73784/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1071.fits evtable="EVENTS" outfile="/scratch/kocevski/73784/ft1_filtered_4FGL_J0803.5+2046_daily_bin1071.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 3.27
user 0.33
sys 2.90

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73784/ft1_filtered_4FGL_J0803.5+2046_daily_bin1071.fits" evtable="EVENTS" scfile=/scratch/kocevski/73784/ft2_4FGL_J0803.5+2046_daily_bin1071.fits sctable="SC_DATA" outfile=/scratch/kocevski/73784/ltcube_516931201_517190401_4FGL_J0803.5+2046_daily_bin1071.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/73784/ft2_4FGL_J0803.5+2046_daily_bin1071.fits
.....................!
real 15.02
user 11.49
sys 3.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73784/ft1_filtered_4FGL_J0803.5+2046_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/73784/ft2_4FGL_J0803.5+2046_daily_bin1071.fits sctable="SC_DATA" expcube=/scratch/kocevski/73784/ltcube_516931201_517190401_4FGL_J0803.5+2046_daily_bin1071.fits outfile=/scratch/kocevski/73784/expmap_516931201_517190401_4FGL_J0803.5+2046_daily_bin1071.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/73784/ltcube_516931201_517190401_4FGL_J0803.5+2046_daily_bin1071.fits
.....................!
real 195.94
user 185.68
sys 8.77

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/73784/ft1_filtered_4FGL_J0803.5+2046_daily_bin1071.fits scfile=/scratch/kocevski/73784/ft2_4FGL_J0803.5+2046_daily_bin1071.fits outfile=/scratch/kocevski/73784/cmap_516931201_517190401_4FGL_J0803.5+2046_daily_bin1071.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 3.31
user 0.40
sys 2.88

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73784/ft1_filtered_4FGL_J0803.5+2046_daily_bin1071.fits scfile=/scratch/kocevski/73784/ft2_4FGL_J0803.5+2046_daily_bin1071.fits outfile=/scratch/kocevski/73784/cmap_HighResolution_516931201_517190401_4FGL_J0803.5+2046_daily_bin1071.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 3.26
user 0.37
sys 2.84

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.644       1.0000         .10000E-03   10000.    
     2 'norm      '    .45945E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.2791       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19680E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .10301E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.150       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .94905E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3899       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.8079       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.0099       1.0000         .10000E-03   10000.    
    13 'Prefactor '    86.976       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2792       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.7240       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8765       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1516       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1046       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=   7002.596     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     2957 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.648        13.114        .78022E-07   -.28406E-04
   2  norm          .10000E-03    .58158       -.51361E-07** at limit **
   3  norm          6.2914        2.3516        .16398E-06   -.13185E-02
   4  Prefactor     .10126E-03    12.247        .35607E-05** at limit **
   5  norm          .10000E-03    3.2378        .18438E-07** at limit **
   6  Prefactor     .10000E-03    44.016        .23798E-05** at limit **
   7  Prefactor     50.153        23.610        .23054E-07   -.80530E-04
   8  Prefactor     .10001E-03    198.64        .18143E-04** at limit **
   9  Prefactor     1.3897        2.2489        .85081E-07   -.76441E-04
  10  Prefactor     .10000E-03    15.573       -.29642E-07** at limit **
  11  norm          9.8065        15.616        .51438E-06    .64948E-04
  12  Prefactor     9.0102        10.287       -.31802E-07   -.94096E-05
  13  Prefactor     86.976        90.169       -.35138E-09   -.99353E-05
  14  norm          .10000E-03    83.272        .35410E-05** at limit **
  15  Prefactor     .10000E-03    12.818        .76885E-06** at limit **
  16  Prefactor     .10000E-03    10.313        .51626E-06** at limit **
  17  Prefactor     2.2758        36.974        .96197E-05    .21434E-03
  18  Prefactor     .10000E-03    11.123       -.92823E-06** at limit **
  19  Prefactor     8.7172        17.470        .66050E-07   -.65793E-05
  20  norm          .10000E-03    .29499       -.72232E-08** at limit **
  21  Prefactor     2.8750        6.3718        .28959E-06    .48070E-04
  22  Prefactor     .10000E-03    1.4980       -.65351E-08** at limit **
  23  Prefactor     .10000E-03    19.914       -.40535E-06** at limit **
  24  Normalizat    1.1518        .19670       -.20212E-06   -.32254E-03
  25  Prefactor     1.1045        .15092       -.28806E-06   -.33326E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.6482
  norm       = 0.000100001
  norm       = 6.29139
  Prefactor  = 0.000101261
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 50.1532
  Prefactor  = 0.000100013
  Prefactor  = 1.38973
  Prefactor  = 0.0001
  norm       = 9.80647
  Prefactor  = 9.01021
  Prefactor  = 86.9763
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.27584
  Prefactor  = 0.0001
  Prefactor  = 8.71717
  norm       = 0.0001
  Prefactor  = 2.87505
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.15178
  Prefactor  = 1.10449
 **********
 **   18 **HESSE 
 **********

 FCN=   7002.596     FROM HESSE     STATUS=OK           427 CALLS     3384 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.648        13.129        .10844E-03   -1.4969    
   2  norm          .10000E-03    11.139        .12251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.2914        2.1017        .67276E-04   -1.5206    
   4  Prefactor     .10126E-03    69.932        .37389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.9814        .27270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    44.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     50.153        22.322        .56629E-04   -1.4290    
   8  Prefactor     .10001E-03    198.87        .41593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3897        2.2129        .15306E-03   -1.5472    
  10  Prefactor     .10000E-03    15.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.8065        15.613        .63977E-03   -1.5082    
  12  Prefactor     9.0102        10.279        .13353E-03   -1.5108    
  13  Prefactor     86.976        90.115        .43079E-04   -1.3840    
  14  norm          .10000E-03    83.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.2758        38.351        .13599E-02   -1.5406    
  18  Prefactor     .10000E-03    11.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.7172        17.423        .13571E-03   -1.5117    
  20  norm          .10000E-03    .29672        .44223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.8750        6.3592        .23965E-03   -1.5369    
  22  Prefactor     .10000E-03    1.4993        .10002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1518        .22695        .28111E-03   -.88106    
  25  Prefactor     1.1045        .17488        .22395E-03   -.89323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82033e-08
Minuit parameter uncertainties:
  1  13.1313
  2  0.000180827
  3  2.1017
  4  0.0188022
  5  6.80026e-06
  6  0.000353371
  7  22.3258
  8  0.00318147
  9  2.21308
  10  4.26093e-06
  11  15.6194
  12  10.2811
  13  90.2567
  14  0.000741785
  15  6.35302e-05
  16  3.82341e-05
  17  18.6985
  18  6.98827e-05
  19  17.4333
  20  6.76953e-08
  21  6.36071
  22  2.75984e-07
  23  4.31227e-05
  24  0.227142
  25  0.174976
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  7.418e-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.104e+00  1.750e-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.152e+00  2.271e-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: 4.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73784/likelihoodResults_516931201_517190401_4FGL_J0803.5+2046_daily_bin1071.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) = 7002.59630967
delta logL = -5.68819650653e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7002.59630962
delta logL = -5.68352561459e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96215E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9991       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1045       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=   7002.596     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      187 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    90.649        .90727E-02** at limit **
   2  alpha         2.0449        3.4370        .42247       -.27285E-05
   3  Normalizat    1.1518        .18882        .63550E-01   -.79356E-04
   4  Prefactor     1.1045        .14841        .37419E-01    .35697E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.04492
  Normalizat = 1.15178
  Prefactor  = 1.10449
 **********
 **   18 **HESSE 
 **********

 FCN=   7002.596     FROM HESSE     STATUS=OK            29 CALLS      216 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    88.051        .18145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0449        3.4298        .16899       -.18305    
   3  Normalizat    1.1518        .21889        .28111E-03   -.88106    
   4  Prefactor     1.1045        .17222        .22395E-03   -.89323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7226e-11
Minuit parameter uncertainties:
  1  0.000600543
  2  2.45909
  3  0.219064
  4  0.172303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73784': 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) = 7002.59625274
delta logL = 5.0414200814e-08

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  6.005e-04  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  2.045e+00  2.459e+00  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.104e+00  1.723e-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.152e+00  2.191e-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/73784/cmap_HighResolution_516931201_517190401_4FGL_J0803.5+2046_daily_bin1071.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.14e-05', job_status='DONE', photon_flux_upper_limit='4.06e-08', time_completed='2021-08-28 23:14:54.609759', job_id='73784', GAL2='1.10', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630217694.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='5.04e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1071' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:14:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 73784: <4FGL_J0803.5+2046_daily_bin1071> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin1071> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 28 23:00:55 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 23:00: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:00:56 2021
Terminated at Sat Aug 28 23:14:55 2021
Results reported at Sat Aug 28 23:14:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1071 120.888 20.7678 516931201 517190401 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 :                                   821.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             358.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            840 sec.

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

