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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin848
RA = 120.888, Dec = 20.7678
tmin = 459129601, tmax = 459388801
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='73432', job_status='RUN', time_executed='2021-08-28 23:02:11.254550', time_epoch_executed='1630216931.25' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='848'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73432

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73432/ft1_4FGL_J0803.5+2046_daily_bin848.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73432/ft2_4FGL_J0803.5+2046_daily_bin848.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73432/ft1_4FGL_J0803.5+2046_daily_bin848.fits outfile=/scratch/kocevski/73432/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin848.fits ra=120.888 dec=20.7678 rad=12.0 tmin=459129601.0 tmax=459388801.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 9.53
user 3.65
sys 5.85

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73432/ft1_filtered_4FGL_J0803.5+2046_daily_bin848.fits" evtable="EVENTS" scfile=/scratch/kocevski/73432/ft2_4FGL_J0803.5+2046_daily_bin848.fits sctable="SC_DATA" outfile=/scratch/kocevski/73432/ltcube_459129601_459388801_4FGL_J0803.5+2046_daily_bin848.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/73432/ft2_4FGL_J0803.5+2046_daily_bin848.fits
.....................!
real 18.53
user 11.86
sys 6.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73432/ft1_filtered_4FGL_J0803.5+2046_daily_bin848.fits evtable="EVENTS" scfile=/scratch/kocevski/73432/ft2_4FGL_J0803.5+2046_daily_bin848.fits sctable="SC_DATA" expcube=/scratch/kocevski/73432/ltcube_459129601_459388801_4FGL_J0803.5+2046_daily_bin848.fits outfile=/scratch/kocevski/73432/expmap_459129601_459388801_4FGL_J0803.5+2046_daily_bin848.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/73432/ltcube_459129601_459388801_4FGL_J0803.5+2046_daily_bin848.fits
.....................!
real 198.67
user 186.34
sys 11.93

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/73432/ft1_filtered_4FGL_J0803.5+2046_daily_bin848.fits scfile=/scratch/kocevski/73432/ft2_4FGL_J0803.5+2046_daily_bin848.fits outfile=/scratch/kocevski/73432/cmap_459129601_459388801_4FGL_J0803.5+2046_daily_bin848.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 6.03
user 0.37
sys 5.62

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73432/ft1_filtered_4FGL_J0803.5+2046_daily_bin848.fits scfile=/scratch/kocevski/73432/ft2_4FGL_J0803.5+2046_daily_bin848.fits outfile=/scratch/kocevski/73432/cmap_HighResolution_459129601_459388801_4FGL_J0803.5+2046_daily_bin848.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 5.92
user 0.37
sys 5.51

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .59666       1.0000         .10000E-03   10000.    
     3 'norm      '    2.9380       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14281E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.2871       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.096       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3351       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.406       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    559.38       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9783       1.0000         .10000E-03   10000.    
    20 'norm      '    .10198E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.9160       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.701       1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.278       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2969       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1659       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=   7988.544     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2913 TOTAL
                     EDM=   .80E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.988       -.37991E-06** at limit **
   2  norm          .59656        1.1647        .73577E-07   -.55018E-04
   3  norm          2.9380        1.6114       -.58561E-07    .19728E-03
   4  Prefactor     .10000E-03    16.157       -.24425E-05** at limit **
   5  norm          5.2855        4.9983        .14345E-06   -.39633E-04
   6  Prefactor     .10000E-03    9.6973       -.27170E-06** at limit **
   7  Prefactor     .10000E-03    24.083        .54966E-06** at limit **
   8  Prefactor     20.039        53.858        .94596E-05    .35042E-05
   9  Prefactor     4.3337        4.1763        .11479E-05   -.89638E-04
  10  Prefactor     12.405        27.346        .30264E-06   -.30924E-05
  11  norm          .10000E-03    8.4862        .20549E-06** at limit **
  12  Prefactor     .10000E-03    12.718        .10102E-05** at limit **
  13  Prefactor     .10000E-03    60.055        .14785E-05** at limit **
  14  norm          559.40        199.63       -.46579E-06   -.56192E-05
  15  Prefactor     .10000E-03    39.731       -.14863E-05** at limit **
  16  Prefactor     .10000E-03    27.990        .78187E-06** at limit **
  17  Prefactor     .10000E-03    53.251       -.68062E-06** at limit **
  18  Prefactor     .10000E-03    6.3692        .13479E-07** at limit **
  19  Prefactor     6.9712        18.552       -.75860E-06   -.10023E-03
  20  norm          .10000E-03    .65447        .22682E-06** at limit **
  21  Prefactor     3.9100        12.534        .21354E-05   -.12052E-03
  22  Prefactor     11.701        9.4311        .28700E-06   -.39760E-04
  23  Prefactor     21.278        25.154        .13585E-06   -.35773E-05
  24  Normalizat    1.2971        .22004       -.86012E-06   -.51224E-04
  25  Prefactor     1.1657        .15630       -.85394E-06   -.13251E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.596557
  norm       = 2.93798
  Prefactor  = 0.000100001
  norm       = 5.28551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0391
  Prefactor  = 4.33373
  Prefactor  = 12.405
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 559.398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.97117
  norm       = 0.0001
  Prefactor  = 3.90998
  Prefactor  = 11.7008
  Prefactor  = 21.2783
  Normalizat = 1.29709
  Prefactor  = 1.16572
 **********
 **   18 **HESSE 
 **********

 FCN=   7988.544     FROM HESSE     STATUS=OK           427 CALLS     3340 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .59656        1.0865        .12843E-02   -1.5554    
   3  norm          2.9380        1.6020        .79933E-04   -1.5365    
   4  Prefactor     .10000E-03    16.770        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.2855        4.9890        .17480E-03   -1.5248    
   6  Prefactor     .10000E-03    9.6967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.039        53.962        .89346E-04   -1.4812    
   9  Prefactor     4.3337        4.1829        .84150E-03   -1.5292    
  10  Prefactor     12.405        27.321        .11373E-03   -1.5003    
  11  norm          .10000E-03    8.4932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    60.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          559.40        199.93        .87032E-04   -1.0932    
  15  Prefactor     .10000E-03    39.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    53.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.3780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.9712        18.180        .15187E-03   -1.5180    
  20  norm          .10000E-03    .99308        .13406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.9100        12.574        .10194E-02   -1.5312    
  22  Prefactor     11.701        9.4198        .58557E-03   -1.5024    
  23  Prefactor     21.278        25.155        .86831E-04   -1.4785    
  24  Normalizat    1.2971        .26590        .31320E-03   -.83653    
  25  Prefactor     1.1657        .18752        .24270E-03   -.87393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.89218e-09
Minuit parameter uncertainties:
  1  1.94869e-05
  2  1.08655
  3  1.60205
  4  0.000212855
  5  4.98942
  6  2.91366e-06
  7  2.58164e-05
  8  54.0939
  9  4.18323
  10  27.3486
  11  6.65002e-07
  12  1.05556e-05
  13  2.24832e-05
  14  200.182
  15  6.69504e-05
  16  1.26262e-05
  17  7.2332e-05
  18  3.30636e-06
  19  18.1939
  20  6.25703e-06
  21  12.5825
  22  9.42103
  23  25.1679
  24  0.266182
  25  0.187626
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  5.594e+02  2.002e+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:  1.166e+00  1.876e-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.297e+00  2.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.96
Ra Dec: 120.888 20.768
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 3.66e-08
Energy Flux (Fixed Index): 5.38e-05 +/- 1.92e-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) = 7987.84445598
delta logL = 0.699784395367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7987.781183
delta logL = 0.763057377503

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    472.55       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0763       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1554       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=   7987.781     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      267 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          472.04        244.14        .94258E-04   -.17199E-04
   2  alpha         1.0743        .71196        .22820E-01   -.14720E-03
   3  Normalizat    1.3355        .24625        .30955E-03    .25305E-04
   4  Prefactor     1.1559        .18466        .24354E-03   -.24694E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 472.039
  alpha      = 1.07434
  Normalizat = 1.3355
  Prefactor  = 1.1559
 **********
 **   18 **HESSE 
 **********

 FCN=   7987.781     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          472.04        252.70        .18852E-04   -1.1328    
   2  alpha         1.0743        .73575        .45640E-02   -.60683    
   3  Normalizat    1.3355        .24646        .12382E-04   -.82513    
   4  Prefactor     1.1559        .18494        .48707E-04   -.87699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48556e-10
Minuit parameter uncertainties:
  1  253.298
  2  0.752474
  3  0.246676
  4  0.185045
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73432': 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) = 7987.78117508
delta logL = 0.763065291397

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  4.720e+02  2.533e+02  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.074e+00  7.525e-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:  1.156e+00  1.850e-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.336e+00  2.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.54
Ra Dec: 120.888 20.768
Photon Index (Free Index): 1.07 +/- 0.75
Photon Flux (Free Index): 6.55e-08 +/- 3.62e-08
Energy Flux (Free Index): 6.04e-05 +/- 2.22e-05

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/73432/cmap_HighResolution_459129601_459388801_4FGL_J0803.5+2046_daily_bin848.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='6.04e-05', photon_flux_error='3.66e-08', dlogl='7.63e-01', energy_flux='5.38e-05', photon_flux2='6.55e-08', job_status='DONE', time_completed='2021-08-28 23:15:21.340858', photon_index_error2='0.75', photon_index2='1.07', ts='13.96', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='2.22e-05', EG='1.30', time_epoch_completed='1630217721.34', return_code='0', job_id='73432', GAL2='1.16', EG2='1.34', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='3.62e-08', ts2='15.54', photon_index='2.00' WHERE bin_id='848' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:15:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 73432: <4FGL_J0803.5+2046_daily_bin848> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin848 120.888 20.7678 459129601 459388801 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 :                                   875.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             335.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            897 sec.

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

