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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1040
RA = 120.888, Dec = 20.7678
tmin = 508896001, tmax = 509155201
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='73735', job_status='RUN', time_executed='2021-08-28 23:04:59.461383', time_epoch_executed='1630217099.46' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1040'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73735

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73735/ft1_4FGL_J0803.5+2046_daily_bin1040.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73735/ft2_4FGL_J0803.5+2046_daily_bin1040.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73735/ft1_4FGL_J0803.5+2046_daily_bin1040.fits outfile=/scratch/kocevski/73735/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1040.fits ra=120.888 dec=20.7678 rad=12.0 tmin=508896001.0 tmax=509155201.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.66
user 3.44
sys 2.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73735/ft1_filtered_4FGL_J0803.5+2046_daily_bin1040.fits" evtable="EVENTS" scfile=/scratch/kocevski/73735/ft2_4FGL_J0803.5+2046_daily_bin1040.fits sctable="SC_DATA" outfile=/scratch/kocevski/73735/ltcube_508896001_509155201_4FGL_J0803.5+2046_daily_bin1040.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/73735/ft2_4FGL_J0803.5+2046_daily_bin1040.fits
.....................!
real 14.03
user 11.43
sys 2.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73735/ft1_filtered_4FGL_J0803.5+2046_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/73735/ft2_4FGL_J0803.5+2046_daily_bin1040.fits sctable="SC_DATA" expcube=/scratch/kocevski/73735/ltcube_508896001_509155201_4FGL_J0803.5+2046_daily_bin1040.fits outfile=/scratch/kocevski/73735/expmap_508896001_509155201_4FGL_J0803.5+2046_daily_bin1040.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/73735/ltcube_508896001_509155201_4FGL_J0803.5+2046_daily_bin1040.fits
.....................!
real 192.17
user 185.12
sys 6.66

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/73735/ft1_filtered_4FGL_J0803.5+2046_daily_bin1040.fits scfile=/scratch/kocevski/73735/ft2_4FGL_J0803.5+2046_daily_bin1040.fits outfile=/scratch/kocevski/73735/cmap_508896001_509155201_4FGL_J0803.5+2046_daily_bin1040.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 2.49
user 0.38
sys 2.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73735/ft1_filtered_4FGL_J0803.5+2046_daily_bin1040.fits scfile=/scratch/kocevski/73735/ft2_4FGL_J0803.5+2046_daily_bin1040.fits outfile=/scratch/kocevski/73735/cmap_HighResolution_508896001_509155201_4FGL_J0803.5+2046_daily_bin1040.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 2.56
user 0.38
sys 2.10

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.265       1.0000         .10000E-03   10000.    
     2 'norm      '    .74685       1.0000         .10000E-03   10000.    
     3 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8258       1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .82000E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8429       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10485E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    30.912       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9937       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    81.195       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2489       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3100       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12674E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0396       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0384       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=   6620.641     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     2989 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.264        16.057        .19380E-06   -.94477E-05
   2  norm          .74689        1.3852        .44578E-06   -.51103E-04
   3  norm          .10000E-03    1.0436        .75374E-07** at limit **
   4  Prefactor     5.8424        6.3702       -.64018E-07   -.81982E-04
   5  norm          .10000E-03    2.2458       -.46358E-06** at limit **
   6  Prefactor     .10876E-03    31.136        .15544E-06** at limit **
   7  Prefactor     1.8534        38.711       -.14136E-05   -.10537E-04
   8  Prefactor     .10000E-03    13.063       -.17808E-07** at limit **
   9  Prefactor     .10000E-03    2.8995        .16682E-06** at limit **
  10  Prefactor     .10000E-03    11.183       -.43126E-07** at limit **
  11  norm          30.913        22.854       -.67795E-06   -.29329E-04
  12  Prefactor     5.9937        11.053        .49368E-06   -.13076E-04
  13  Prefactor     .10000E-03    33.070       -.13862E-05** at limit **
  14  norm          81.141        90.267       -.33271E-06   -.38048E-05
  15  Prefactor     .10000E-03    20.792       -.25757E-05** at limit **
  16  Prefactor     .10000E-03    19.590        .57717E-06** at limit **
  17  Prefactor     .10000E-03    25.178        .21606E-05** at limit **
  18  Prefactor     1.2490        67.891        .33411E-05   -.11224E-04
  19  Prefactor     .10000E-03    38.193        .64685E-06** at limit **
  20  norm          .10000E-03    .64610       -.10219E-06** at limit **
  21  Prefactor     1.3077        16.491        .26247E-05   -.21329E-04
  22  Prefactor     .10000E-03    3.0014       -.35921E-08** at limit **
  23  Prefactor     .10000E-03    19.459        .10209E-05** at limit **
  24  Normalizat    1.0395        .19021       -.14899E-06   -.68241E-04
  25  Prefactor     1.0384        .13906       -.70296E-06   -.28105E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 22.2639
  norm       = 0.746888
  norm       = 0.0001
  Prefactor  = 5.84239
  norm       = 0.0001
  Prefactor  = 0.000108755
  Prefactor  = 1.85341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 30.9132
  Prefactor  = 5.99371
  Prefactor  = 0.0001
  norm       = 81.1409
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.24905
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.30772
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03951
  Prefactor  = 1.03844
 **********
 **   18 **HESSE 
 **********

 FCN=   6620.641     FROM HESSE     STATUS=OK           437 CALLS     3426 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.264        16.071        .84888E-04   -1.4764    
   2  norm          .74689        1.3837        .12430E-03   -1.5535    
   3  norm          .10000E-03    2.7125        .15004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.8424        5.9385        .16639E-03   -1.5224    
   5  norm          .10000E-03    2.2391        .11803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10876E-03    33.203        .12403       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.8534        40.256        .30723E-03   -1.5436    
   8  Prefactor     .10000E-03    13.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.0325        .27041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          30.913        22.904        .36032E-03   -1.4595    
  12  Prefactor     5.9937        11.047        .16401E-03   -1.5218    
  13  Prefactor     .10000E-03    33.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          81.141        90.352        .44573E-04   -1.3904    
  15  Prefactor     .10000E-03    21.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.2490        71.016        .40033E-03   -1.5484    
  19  Prefactor     .10000E-03    38.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.2483        .12186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.3077        17.080        .38529E-03   -1.5479    
  22  Prefactor     .10000E-03    6.4065        .27347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0395        .22069        .27644E-03   -.91718    
  25  Prefactor     1.0384        .16221        .20832E-03   -.91459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00237e-10
Minuit parameter uncertainties:
  1  16.0739
  2  1.38375
  3  1.50033e-07
  4  5.93906
  5  1.38614e-05
  6  0.0341191
  7  17.2884
  8  3.43653e-06
  9  3.21692e-06
  10  5.06521e-06
  11  22.9108
  12  11.0506
  13  5.16193e-05
  14  90.5059
  15  6.5233e-05
  16  2.14899e-05
  17  7.25781e-05
  18  18.8592
  19  3.38253e-05
  20  1.19303e-05
  21  9.45509
  22  9.96611e-06
  23  2.8581e-05
  24  0.220889
  25  0.16229
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  8.114e+01  9.051e+01  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.038e+00  1.623e-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.040e+00  2.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 120.888 20.768
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.48e-08 +/- 1.65e-08
Energy Flux (Fixed Index): 7.80e-06 +/- 8.70e-06

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

Saving results to:
/scratch/kocevski/73735/likelihoodResults_508896001_509155201_4FGL_J0803.5+2046_daily_bin1040.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) = 6619.86885595
delta logL = 0.772532014198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6619.54066842
delta logL = 1.10071954833

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    34.752       1.0000         .10000E-03   10000.    
     2 'alpha     '    .12937E-05   1.0000          .0000       5.0000    
     3 'Normalizat'    1.0473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0372       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=   6619.541     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      223 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          34.756        30.972        .68244E-05   -.30933E-03
   2  alpha         .34598E-08    .89967        .52742E-04** at limit **
   3  Normalizat    1.0473        .17856        .11547E-06   -.17094E-04
   4  Prefactor     1.0371        .13524       -.20012E-06    .33238E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 34.7558
  alpha      = 3.4598e-09
  Normalizat = 1.04726
  Prefactor  = 1.03711
 **********
 **   18 **HESSE 
 **********

 FCN=   6619.541     FROM HESSE     STATUS=OK            29 CALLS      252 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          34.756        32.076        .67979E-04   -1.4528    
   2  alpha         .34598E-08    3.2301        .72336E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0473        .20816        .27549E-03   -.91464    
   4  Prefactor     1.0371        .15779        .20830E-03   -.91502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22909e-09
Minuit parameter uncertainties:
  1  32.0919
  2  0.000150184
  3  0.208325
  4  0.157862
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73735': 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) = 6619.54066778
delta logL = 1.10072018793

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  3.476e+01  3.209e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  3.460e-09  1.502e-04  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.037e+00  1.579e-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.047e+00  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.42
Ra Dec: 120.888 20.768
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 6.72e-09 +/- 6.21e-09
Energy Flux (Free Index): 1.23e-05 +/- 1.14e-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/73735/cmap_HighResolution_508896001_509155201_4FGL_J0803.5+2046_daily_bin1040.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.95e-05', comment='SUCCESS', photon_flux='1.48e-08', energy_flux2='1.23e-05', photon_flux_error='1.65e-08', dlogl='1.10e+00', energy_flux='7.80e-06', photon_flux2='6.72e-09', job_status='DONE', time_completed='2021-08-28 23:17:13.968323', photon_index_error2='0.00', photon_index2='0.00', ts='1.22', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='5.61e-08', energy_flux_error2='1.14e-05', EG='1.04', time_epoch_completed='1630217833.97', return_code='0', job_id='73735', GAL2='1.04', EG2='1.05', return_code2='0', energy_flux_error='8.70e-06', photon_flux_error2='6.21e-09', ts2='3.42', photon_index='2.00' WHERE bin_id='1040' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:17:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 73735: <4FGL_J0803.5+2046_daily_bin1040> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1040 120.888 20.7678 508896001 509155201 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 :                                   763.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            984 sec.

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

