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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin807
RA = 120.888, Dec = 20.7678
tmin = 448502401, tmax = 448761601
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='72365', job_status='RUN', time_executed='2021-08-28 22:56:29.771167', time_epoch_executed='1630216589.77' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='807'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72365

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72365/ft1_4FGL_J0803.5+2046_daily_bin807.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72365/ft2_4FGL_J0803.5+2046_daily_bin807.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72365/ft1_4FGL_J0803.5+2046_daily_bin807.fits outfile=/scratch/kocevski/72365/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin807.fits ra=120.888 dec=20.7678 rad=12.0 tmin=448502401.0 tmax=448761601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.75
user 5.72
sys 1.01

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/72365/ft1_filtered_4FGL_J0803.5+2046_daily_bin807.fits" evtable="EVENTS" scfile=/scratch/kocevski/72365/ft2_4FGL_J0803.5+2046_daily_bin807.fits sctable="SC_DATA" outfile=/scratch/kocevski/72365/ltcube_448502401_448761601_4FGL_J0803.5+2046_daily_bin807.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/72365/ft2_4FGL_J0803.5+2046_daily_bin807.fits
.....................!
real 13.22
user 11.88
sys 1.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72365/ft1_filtered_4FGL_J0803.5+2046_daily_bin807.fits evtable="EVENTS" scfile=/scratch/kocevski/72365/ft2_4FGL_J0803.5+2046_daily_bin807.fits sctable="SC_DATA" expcube=/scratch/kocevski/72365/ltcube_448502401_448761601_4FGL_J0803.5+2046_daily_bin807.fits outfile=/scratch/kocevski/72365/expmap_448502401_448761601_4FGL_J0803.5+2046_daily_bin807.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/72365/ltcube_448502401_448761601_4FGL_J0803.5+2046_daily_bin807.fits
.....................!
real 192.05
user 186.41
sys 5.20

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/72365/ft1_filtered_4FGL_J0803.5+2046_daily_bin807.fits scfile=/scratch/kocevski/72365/ft2_4FGL_J0803.5+2046_daily_bin807.fits outfile=/scratch/kocevski/72365/cmap_448502401_448761601_4FGL_J0803.5+2046_daily_bin807.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 1.28
user 0.37
sys 0.89

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/72365/ft1_filtered_4FGL_J0803.5+2046_daily_bin807.fits scfile=/scratch/kocevski/72365/ft2_4FGL_J0803.5+2046_daily_bin807.fits outfile=/scratch/kocevski/72365/cmap_HighResolution_448502401_448761601_4FGL_J0803.5+2046_daily_bin807.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 1.32
user 0.39
sys 0.90

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9035       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.5352       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .47521       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.096       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.412       1.0000         .10000E-03   10000.    
    13 'Prefactor '    90.315       1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.096       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7254       1.0000         .10000E-03   10000.    
    20 'norm      '    .91350       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .47936E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.960       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96178       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1065       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=   6158.543     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2877 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.936        .44047E-06** at limit **
   2  norm          1.9033        1.2187        .30403E-07    .34840E-04
   3  norm          .10000E-03    .41458        .33132E-07** at limit **
   4  Prefactor     .10000E-03    3.7393        .10854E-06** at limit **
   5  norm          9.5467        4.6394        .10129E-05    .93252E-03
   6  Prefactor     .10000E-03    21.132       -.15516E-05** at limit **
   7  Prefactor     .27730        10.401       -.14480E-05    .84647E-04
   8  Prefactor     21.102        45.238        .11624E-05    .64476E-04
   9  Prefactor     .10000E-03    .61251        .10812E-07** at limit **
  10  Prefactor     .10000E-03    18.719        .16541E-05** at limit **
  11  norm          .10000E-03    6.4668        .20332E-07** at limit **
  12  Prefactor     14.413        10.481        .53481E-08    .19691E-06
  13  Prefactor     90.311        81.821       -.56303E-06   -.32863E-04
  14  norm          .10000E-03    50.096       -.13038E-05** at limit **
  15  Prefactor     .10000E-03    11.898        .90595E-07** at limit **
  16  Prefactor     .10000E-03    15.351       -.11626E-05** at limit **
  17  Prefactor     .10000E-03    8.7013       -.35959E-07** at limit **
  18  Prefactor     10.095        15.358        .13062E-06    .54358E-05
  19  Prefactor     6.6868        29.549       -.12356E-05   -.13957E-03
  20  norm          .91556        1.5416       -.13635E-06   -.33740E-03
  21  Prefactor     .10000E-03    2.4919        .84618E-08** at limit **
  22  Prefactor     .10145E-03    5.5845        .19141E-05** at limit **
  23  Prefactor     13.955        29.892       -.84934E-06   -.79477E-04
  24  Normalizat    .96162        .19975        .41972E-06   -.59945E-05
  25  Prefactor     1.1067        .15103       -.45467E-06    .16593E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.90325
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.54673
  Prefactor  = 0.000100001
  Prefactor  = 0.277304
  Prefactor  = 21.1024
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 14.4126
  Prefactor  = 90.3112
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.095
  Prefactor  = 6.68682
  norm       = 0.915561
  Prefactor  = 0.0001
  Prefactor  = 0.00010145
  Prefactor  = 13.9554
  Normalizat = 0.96162
  Prefactor  = 1.10674
 **********
 **   18 **HESSE 
 **********

 FCN=   6158.543     FROM HESSE     STATUS=OK           435 CALLS     3312 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9033        1.2144        .66898E-04   -1.5432    
   3  norm          .10000E-03    .42021        .49305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.7691        .14805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.5467        4.8436        .56086E-03   -1.5090    
   6  Prefactor     .10000E-03    21.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27730        159.32        .46043E-02   -1.5603    
   8  Prefactor     21.102        45.382        .87205E-04   -1.4789    
   9  Prefactor     .10000E-03    .61391        .59972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.4679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.413        10.483        .10551E-03   -1.4949    
  13  Prefactor     90.311        81.902        .42282E-04   -1.3804    
  14  norm          .10000E-03    50.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.7049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.095        15.365        .12611E-03   -1.5072    
  19  Prefactor     6.6868        28.903        .15472E-03   -1.5191    
  20  norm          .91556        1.4307        .97190E-04   -1.5517    
  21  Prefactor     .10000E-03    2.4966        .12096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10145E-03    4.2050        .54151E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.955        29.995        .10720E-03   -1.4961    
  24  Normalizat    .96162        .22760        .28125E-03   -.94328    
  25  Prefactor     1.1067        .17274        .20767E-03   -.89251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31774e-09
Minuit parameter uncertainties:
  1  6.30342e-05
  2  1.2144
  3  3.39157e-08
  4  4.17317e-07
  5  4.84382
  6  0.000328774
  7  13.3268
  8  45.4561
  9  8.9012e-09
  10  0.000300082
  11  1.87487e-06
  12  10.4844
  13  82.0043
  14  0.00039974
  15  1.86124e-05
  16  0.00018383
  17  4.32955e-06
  18  15.3711
  19  27.827
  20  1.43078
  21  6.35294e-07
  22  0.00493824
  23  30.027
  24  0.227832
  25  0.172828
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  3.997e-04  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
275         beta:  7.702e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  6.928e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  1.107e+00  1.728e-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:  9.616e-01  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/72365/likelihoodResults_448502401_448761601_4FGL_J0803.5+2046_daily_bin807.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): 102
logL (Free Index) = 6158.54282049
delta logL = -9.46015334193e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6158.47333832
delta logL = 0.0693875614252

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3208       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .94015       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1145       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6158.473     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      256 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3204        9.7446        .55533E-02    .24583E-02
   2  alpha         5.0000        4.6831        .46267    ** at limit **
   3  Normalizat    .94014        .19633        .45413E-01    .13106E-05
   4  Prefactor     1.1145        .15045        .37061E-01   -.76678E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.3204
  alpha      = 5
  Normalizat = 0.940139
  Prefactor  = 1.11448
 **********
 **   18 **HESSE 
 **********

 FCN=   6158.473     FROM HESSE     STATUS=OK            27 CALLS      283 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3204        9.3320        .22213E-03   -1.5344    
   2  alpha         5.0000        4.5714        .86653E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .94014        .22305        .28417E-03   -.95064    
   4  Prefactor     1.1145        .17159        .20705E-03   -.89005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29797e-08
Minuit parameter uncertainties:
  1  9.33612
  2  7.20658e-05
  3  0.22327
  4  0.171677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72365': 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) = 6158.47333831
delta logL = 0.0693875712732

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  3.320e+00  9.336e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  5.000e+00  7.207e-05  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.114e+00  1.717e-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:  9.401e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 120.888 20.768

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/72365/cmap_HighResolution_448502401_448761601_4FGL_J0803.5+2046_daily_bin807.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-05', job_status='DONE', photon_flux_upper_limit='3.08e-08', time_completed='2021-08-28 23:08:12.791382', job_id='72365', GAL2='1.11', fit_tolerance='1e-08', EG2='0.94', EG='0.96', time_epoch_completed='1630217292.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='6.94e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='807' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:08:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 72365: <4FGL_J0803.5+2046_daily_bin807> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin807> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 28 22:56:01 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 22:56:03 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:56:03 2021
Terminated at Sat Aug 28 23:08:13 2021
Results reported at Sat Aug 28 23:08:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin807 120.888 20.7678 448502401 448761601 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 :                                   712.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            732 sec.

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

