/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 77 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 = 7381
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1224
RA = 120.888, Dec = 20.7678
tmin = 556588801, tmax = 556848001
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='75262', job_status='RUN', time_executed='2021-08-28 23:07:20.336078', time_epoch_executed='1630217240.34' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75262

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75262/ft1_4FGL_J0803.5+2046_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75262/ft2_4FGL_J0803.5+2046_daily_bin1224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75262/ft1_4FGL_J0803.5+2046_daily_bin1224.fits outfile=/scratch/kocevski/75262/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1224.fits ra=120.888 dec=20.7678 rad=12.0 tmin=556588801.0 tmax=556848001.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 3.57
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75262/ft2_4FGL_J0803.5+2046_daily_bin1224.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/75262/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1224.fits evtable="EVENTS" outfile="/scratch/kocevski/75262/ft1_filtered_4FGL_J0803.5+2046_daily_bin1224.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 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75262/ft1_filtered_4FGL_J0803.5+2046_daily_bin1224.fits" evtable="EVENTS" scfile=/scratch/kocevski/75262/ft2_4FGL_J0803.5+2046_daily_bin1224.fits sctable="SC_DATA" outfile=/scratch/kocevski/75262/ltcube_556588801_556848001_4FGL_J0803.5+2046_daily_bin1224.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/75262/ft2_4FGL_J0803.5+2046_daily_bin1224.fits
.....................!
real 11.78
user 11.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75262/ft1_filtered_4FGL_J0803.5+2046_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/75262/ft2_4FGL_J0803.5+2046_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/75262/ltcube_556588801_556848001_4FGL_J0803.5+2046_daily_bin1224.fits outfile=/scratch/kocevski/75262/expmap_556588801_556848001_4FGL_J0803.5+2046_daily_bin1224.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/75262/ltcube_556588801_556848001_4FGL_J0803.5+2046_daily_bin1224.fits
.....................!
real 190.66
user 185.53
sys 4.62

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/75262/ft1_filtered_4FGL_J0803.5+2046_daily_bin1224.fits scfile=/scratch/kocevski/75262/ft2_4FGL_J0803.5+2046_daily_bin1224.fits outfile=/scratch/kocevski/75262/cmap_556588801_556848001_4FGL_J0803.5+2046_daily_bin1224.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 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75262/ft1_filtered_4FGL_J0803.5+2046_daily_bin1224.fits scfile=/scratch/kocevski/75262/ft2_4FGL_J0803.5+2046_daily_bin1224.fits outfile=/scratch/kocevski/75262/cmap_HighResolution_556588801_556848001_4FGL_J0803.5+2046_daily_bin1224.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 0.55
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10682E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11017       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8542       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.253       1.0000         .10000E-03   10000.    
     5 'norm      '    .69951E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.129       1.0000         .10000E-03   10000.    
     7 'Prefactor '    66.399       1.0000         .10000E-03   10000.    
     8 'Prefactor '    67.385       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6231       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23517E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .15536E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6185       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13171E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    115.39       1.0000         .10000E-03   10000.    
    15 'Prefactor '    52.195       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .58835E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .42162E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.348       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .81033E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .95290E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10519E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.955       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .59063       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0703       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=   2666.632     FROM MIGRAD    STATUS=CONVERGED    703 CALLS     2730 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.0420        .13005E-06** at limit **
   2  norm          .10338        1.3434        .28142E-06   -.33318E-03
   3  norm          1.8359        4.1018        .17061E-05   -.11163E-03
   4  Prefactor     12.331        27.469       -.41432E-05    .30188E-05
   5  norm          .10000E-03    12.182       -.36739E-05** at limit **
   6  Prefactor     40.219        92.170        .34147E-05    .16248E-03
   7  Prefactor     64.497        44.719        .19921E-05    .38022E-03
   8  Prefactor     68.544        81.954        .17258E-05    .44526E-04
   9  Prefactor     4.6183        5.0026       -.11726E-06   -.66325E-04
  10  Prefactor     .10000E-03    37.383       -.54880E-06** at limit **
  11  norm          .10000E-03    13.848       -.85078E-08** at limit **
  12  Prefactor     4.3617        19.388       -.35364E-06   -.11516E-04
  13  Prefactor     .10000E-03    83.520        .17420E-06** at limit **
  14  norm          104.28        137.37        .19714E-06   -.60653E-07
  15  Prefactor     53.446        111.30       -.29495E-05   -.59641E-05
  16  Prefactor     .10000E-03    97.152       -.63992E-05** at limit **
  17  Prefactor     .10000E-03    96.420       -.23004E-05** at limit **
  18  Prefactor     37.966        28.976       -.66679E-06    .10372E-05
  19  Prefactor     .10000E-03    18.431       -.54399E-06** at limit **
  20  norm          .10000E-03    1.3048       -.19796E-06** at limit **
  21  Prefactor     .10000E-03    12.746        .79756E-07** at limit **
  22  Prefactor     .10000E-03    5.2447        .56937E-07** at limit **
  23  Prefactor     16.591        58.531        .30731E-06   -.99600E-05
  24  Normalizat    .59412        .39806        .11666E-04    .76759E-04
  25  Prefactor     1.0709        .25203       -.55344E-05    .35279E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.103384
  norm       = 1.83591
  Prefactor  = 12.3307
  norm       = 0.000100002
  Prefactor  = 40.2189
  Prefactor  = 64.4971
  Prefactor  = 68.5438
  Prefactor  = 4.61829
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.36167
  Prefactor  = 0.0001
  norm       = 104.282
  Prefactor  = 53.4456
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.9665
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5907
  Normalizat = 0.594122
  Prefactor  = 1.07095
 **********
 **   18 **HESSE 
 **********

 FCN=   2666.632     FROM HESSE     STATUS=OK           427 CALLS     3157 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.0666        .15166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10338        5.6285        .10880E-02   -1.5644    
   3  norm          1.8359        4.0574        .88145E-04   -1.5437    
   4  Prefactor     12.331        27.471        .11444E-03   -1.5006    
   5  norm          .10000E-03    25.904        .31734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     40.219        92.855        .63276E-04   -1.4439    
   7  Prefactor     64.497        45.052        .49253E-04   -1.4100    
   8  Prefactor     68.544        82.048        .24447E-03   -1.4050    
   9  Prefactor     4.6183        4.9762        .10786E-03   -1.5278    
  10  Prefactor     .10000E-03    37.400        .20078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    13.851        .18764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3617        19.175        .18729E-03   -1.5290    
  13  Prefactor     .10000E-03    83.526        .18178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          104.28        137.42        .18727E-03   -1.3662    
  15  Prefactor     53.446        111.66        .27757E-03   -1.4245    
  16  Prefactor     .10000E-03    96.921        .18626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    96.507        .19428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     37.966        29.000        .63899E-04   -1.4475    
  19  Prefactor     .10000E-03    18.436        .20894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.3167        .57603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.773        .18007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.2468        .11551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.591        58.568        .10027E-03   -1.4893    
  24  Normalizat    .59412        .41207        .36852E-03   -1.0823    
  25  Prefactor     1.0709        .26381        .19535E-03   -.90401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56718e-09
Minuit parameter uncertainties:
  1  2.28359e-06
  2  1.52506
  3  4.05798
  4  27.4996
  5  0.00043556
  6  93.191
  7  45.0755
  8  82.1834
  9  4.97666
  10  2.46062e-05
  11  5.92276e-06
  12  18.2999
  13  3.10071e-06
  14  137.839
  15  112.098
  16  4.9891e-05
  17  0.000117018
  18  29.0103
  19  8.25178e-06
  20  1.35943e-06
  21  7.77563e-06
  22  1.57805e-06
  23  58.7721
  24  0.41422
  25  0.264133
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.043e+02  1.378e+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.071e+00  2.641e-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:  5.941e-01  4.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.19
Ra Dec: 120.888 20.768
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.91e-08 +/- 2.52e-08
Energy Flux (Fixed Index): 1.00e-05 +/- 1.33e-05

TS (Fixed Index): 1.19
Ra Dec: 120.888 20.768
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75262/likelihoodResults_556588801_556848001_4FGL_J0803.5+2046_daily_bin1224.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) = 2666.43344003
delta logL = 0.198329903692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2666.39147628
delta logL = 0.240293662514

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    66.559       1.0000         .10000E-03   10000.    
     2 'alpha     '    .59553       1.0000          .0000       5.0000    
     3 'Normalizat'    .60336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0688       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=   2666.391     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      197 TOTAL
                     EDM=   .88E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          66.608        112.73        .44980E-05    .16433E-04
   2  alpha         .59556        2.6831        .12210E-03   -.51328E-06
   3  Normalizat    .60342        .31042        .44399E-06   -.34420E-04
   4  Prefactor     1.0688        .21764       -.21108E-06   -.21102E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 66.6079
  alpha      = 0.59556
  Normalizat = 0.603416
  Prefactor  = 1.06879
 **********
 **   18 **HESSE 
 **********

 FCN=   2666.391     FROM HESSE     STATUS=OK            31 CALLS      228 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          66.608        109.34        .24597E-03   -1.4074    
   2  alpha         .59556        2.6987        .47023E-01   -.86605    
   3  Normalizat    .60342        .34747        .36580E-03   -1.0784    
   4  Prefactor     1.0688        .24438        .19547E-03   -.90470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76955e-10
Minuit parameter uncertainties:
  1  109.677
  2  1.79056
  3  0.348738
  4  0.244638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75262': 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) = 2666.3914761
delta logL = 0.240293841184

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  6.661e+01  1.097e+02  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  5.956e-01  1.791e+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.069e+00  2.446e-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:  6.034e-01  3.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.67
Ra Dec: 120.888 20.768
Photon Index (Free Index): 0.60 +/- 1.79
Photon Flux (Free Index): 9.80e-09 +/- 1.35e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.65e-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/75262/cmap_HighResolution_556588801_556848001_4FGL_J0803.5+2046_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-05', comment='SUCCESS', photon_flux='1.91e-08', energy_flux2='1.22e-05', photon_flux_error='2.52e-08', dlogl='2.40e-01', energy_flux='1.00e-05', photon_flux2='9.80e-09', job_status='DONE', time_completed='2021-08-28 23:15:03.620534', photon_index_error2='1.79', photon_index2='0.60', ts='1.19', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='1.65e-05', EG='0.59', time_epoch_completed='1630217703.62', return_code='0', job_id='75262', GAL2='1.07', EG2='0.60', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='1.35e-08', ts2='1.67', photon_index='2.00' WHERE bin_id='1224' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:15:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 75262: <4FGL_J0803.5+2046_daily_bin1224> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1224 120.888 20.7678 556588801 556848001 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 :                                   460.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             308.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   556 sec.
    Turnaround time :                            558 sec.

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

