/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 5 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7536
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0803.5+2046_daily_bin686
RA = 120.888, Dec = 20.7678
tmin = 417139201, tmax = 417398401
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='72219', job_status='RUN', time_executed='2021-08-28 22:58:03.493131', time_epoch_executed='1630216683.49' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='686'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72219

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72219/ft1_4FGL_J0803.5+2046_daily_bin686.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72219/ft2_4FGL_J0803.5+2046_daily_bin686.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72219/ft1_4FGL_J0803.5+2046_daily_bin686.fits outfile=/scratch/kocevski/72219/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin686.fits ra=120.888 dec=20.7678 rad=12.0 tmin=417139201.0 tmax=417398401.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 13.83
user 5.16
sys 7.54

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/72219/ft1_filtered_4FGL_J0803.5+2046_daily_bin686.fits" evtable="EVENTS" scfile=/scratch/kocevski/72219/ft2_4FGL_J0803.5+2046_daily_bin686.fits sctable="SC_DATA" outfile=/scratch/kocevski/72219/ltcube_417139201_417398401_4FGL_J0803.5+2046_daily_bin686.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/72219/ft2_4FGL_J0803.5+2046_daily_bin686.fits
.....................!
real 21.11
user 12.50
sys 8.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72219/ft1_filtered_4FGL_J0803.5+2046_daily_bin686.fits evtable="EVENTS" scfile=/scratch/kocevski/72219/ft2_4FGL_J0803.5+2046_daily_bin686.fits sctable="SC_DATA" expcube=/scratch/kocevski/72219/ltcube_417139201_417398401_4FGL_J0803.5+2046_daily_bin686.fits outfile=/scratch/kocevski/72219/expmap_417139201_417398401_4FGL_J0803.5+2046_daily_bin686.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/72219/ltcube_417139201_417398401_4FGL_J0803.5+2046_daily_bin686.fits
.....................!
real 199.89
user 185.19
sys 14.35

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/72219/ft1_filtered_4FGL_J0803.5+2046_daily_bin686.fits scfile=/scratch/kocevski/72219/ft2_4FGL_J0803.5+2046_daily_bin686.fits outfile=/scratch/kocevski/72219/cmap_417139201_417398401_4FGL_J0803.5+2046_daily_bin686.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=120.888 yref=20.7678 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 7.80
user 0.38
sys 7.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/72219/ft1_filtered_4FGL_J0803.5+2046_daily_bin686.fits scfile=/scratch/kocevski/72219/ft2_4FGL_J0803.5+2046_daily_bin686.fits outfile=/scratch/kocevski/72219/cmap_HighResolution_417139201_417398401_4FGL_J0803.5+2046_daily_bin686.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 7.78
user 0.39
sys 7.36

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.6431       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.9386       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .13417E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.221       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    106.77       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .20121E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    52.513       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.7613       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.824       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1191       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85463       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=   6091.830     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2856 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.6316       -.20016E-05** at limit **
   2  norm          .10000E-03    .27556       -.16660E-07** at limit **
   3  norm          2.6447        1.4129       -.95877E-07    .29414E-04
   4  Prefactor     .10000E-03    11.855        .48668E-06** at limit **
   5  norm          5.9395        4.3554       -.47636E-06   -.20542E-03
   6  Prefactor     .10000E-03    20.064        .17627E-06** at limit **
   7  Prefactor     .10000E-03    8.3489       -.20053E-07** at limit **
   8  Prefactor     .10000E-03    20.406       -.16692E-05** at limit **
   9  Prefactor     .10000E-03    1.0623        .35269E-08** at limit **
  10  Prefactor     .10000E-03    15.487       -.26160E-05** at limit **
  11  norm          .10001E-03    95.631       -.96693E-06** at limit **
  12  Prefactor     22.176        14.391       -.32847E-05    .26707E-04
  13  Prefactor     .10000E-03    48.984       -.12281E-04** at limit **
  14  norm          106.74        98.707       -.24617E-04    .10974E-05
  15  Prefactor     .10000E-03    55.020        .18592E-04** at limit **
  16  Prefactor     52.509        36.666       -.26208E-05   -.14535E-03
  17  Prefactor     .10000E-03    18.946        .40972E-05** at limit **
  18  Prefactor     .10000E-03    5.5644        .14377E-05** at limit **
  19  Prefactor     .10000E-03    6.2087        .15516E-05** at limit **
  20  norm          1.7609        1.0627       -.82191E-07   -.34426E-04
  21  Prefactor     .10000E-03    6.3904       -.11563E-05** at limit **
  22  Prefactor     .10000E-03    4.1889        .76617E-07** at limit **
  23  Prefactor     17.793        41.549       -.36348E-04    .35473E-05
  24  Normalizat    1.1192        .18781        .19125E-05   -.25915E-03
  25  Prefactor     .85458        .13585        .19813E-05   -.26221E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.64474
  Prefactor  = 0.0001
  norm       = 5.93953
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00010001
  Prefactor  = 22.1758
  Prefactor  = 0.0001
  norm       = 106.739
  Prefactor  = 0.0001
  Prefactor  = 52.5091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.76094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7928
  Normalizat = 1.11918
  Prefactor  = 0.854582
 **********
 **   18 **HESSE 
 **********

 FCN=   6091.830     FROM HESSE     STATUS=OK           417 CALLS     3273 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.6459        .18093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .27718        .40005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.6447        1.4092        .65468E-04   -1.5383    
   4  Prefactor     .10000E-03    12.137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.9395        4.3646        .13196E-03   -1.5220    
   6  Prefactor     .10000E-03    20.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.3621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.0746        .78527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10001E-03    97.823        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.176        14.311        .84972E-04   -1.4766    
  13  Prefactor     .10000E-03    48.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          106.74        98.724        .19460E-03   -1.3638    
  15  Prefactor     .10000E-03    55.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     52.509        36.704        .55346E-04   -1.4257    
  17  Prefactor     .10000E-03    18.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.5699        .17983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.2129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.7609        1.0634        .31572E-04   -1.5443    
  21  Prefactor     .10000E-03    6.4474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.2106        .15597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.793        41.510        .94868E-04   -1.4864    
  24  Normalizat    1.1192        .21994        .13044E-02   -.89138    
  25  Prefactor     .85458        .15931        .21781E-03   -.97747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23095e-10
Minuit parameter uncertainties:
  1  1.31066e-05
  2  1.01973e-06
  3  1.40918
  4  6.04454e-05
  5  4.36488
  6  2.27229e-05
  7  3.97426e-06
  8  1.21332e-05
  9  5.90784e-07
  10  6.33763e-06
  11  0.00194715
  12  14.3127
  13  3.92769e-06
  14  98.8764
  15  8.24307e-07
  16  36.72
  17  2.6101e-05
  18  3.67254e-06
  19  2.7273e-06
  20  1.06341
  21  7.24815e-06
  22  2.02073e-05
  23  41.5775
  24  0.22012
  25  0.159395
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.067e+02  9.888e+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:  8.546e-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.119e+00  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.91
Ra Dec: 120.888 20.768
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.95e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 9.51e-06

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

Saving results to:
/scratch/kocevski/72219/likelihoodResults_417139201_417398401_4FGL_J0803.5+2046_daily_bin686.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) = 6091.24000402
delta logL = 0.589574492348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6091.23465062
delta logL = 0.59492789782

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    88.452       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1459       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0974       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86018       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=   6091.235     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      294 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          88.438        89.092        .42721E-04    .10432E-04
   2  alpha         3.1457        1.0290        .21593E-01    .75589E-05
   3  Normalizat    1.0974        .21506        .26298E-03    .81791E-04
   4  Prefactor     .86020        .15924        .21699E-03    .37670E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 88.4381
  alpha      = 3.14567
  Normalizat = 1.09743
  Prefactor  = 0.8602
 **********
 **   18 **HESSE 
 **********

 FCN=   6091.235     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          88.438        84.186        .85442E-05   -1.3824    
   2  alpha         3.1457        .97510        .86372E-03    .26123    
   3  Normalizat    1.0974        .21504        .10519E-04   -.89834    
   4  Prefactor     .86020        .15926        .86797E-05   -.97546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56527e-11
Minuit parameter uncertainties:
  1  84.2999
  2  1.00375
  3  0.215215
  4  0.159349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72219': 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) = 6091.23465051
delta logL = 0.594928001167

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  8.844e+01  8.430e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  3.146e+00  1.004e+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:  8.602e-01  1.593e-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.097e+00  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.09
Ra Dec: 120.888 20.768
Photon Index (Free Index): 3.15 +/- 1.00
Photon Flux (Free Index): 4.13e-08 +/- 3.42e-08
Energy Flux (Free Index): 1.22e-05 +/- 8.69e-06

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/72219/cmap_HighResolution_417139201_417398401_4FGL_J0803.5+2046_daily_bin686.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.29e-05', comment='SUCCESS', photon_flux='1.95e-08', energy_flux2='1.22e-05', photon_flux_error='1.81e-08', dlogl='5.95e-01', energy_flux='1.03e-05', photon_flux2='4.13e-08', job_status='DONE', time_completed='2021-08-28 23:11:01.792458', photon_index_error2='1.00', photon_index2='3.15', ts='1.91', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='6.25e-08', energy_flux_error2='8.69e-06', EG='1.12', time_epoch_completed='1630217461.79', return_code='0', job_id='72219', GAL2='0.86', EG2='1.10', return_code2='0', energy_flux_error='9.51e-06', photon_flux_error2='3.42e-08', ts2='3.09', photon_index='2.00' WHERE bin_id='686' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:11:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 72219: <4FGL_J0803.5+2046_daily_bin686> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin686> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 28 22:55:49 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 22:55:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 22:55:51 2021
Terminated at Sat Aug 28 23:11:03 2021
Results reported at Sat Aug 28 23:11:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin686 120.888 20.7678 417139201 417398401 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 :                                   890.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            914 sec.

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

