/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 0 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 = 7480
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0803.5+2046_daily_bin238
RA = 120.888, Dec = 20.7678
tmin = 301017601, tmax = 301276801
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='69438', job_status='RUN', time_executed='2021-08-28 22:46:50.319278', time_epoch_executed='1630216010.32' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69438

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69438/ft1_4FGL_J0803.5+2046_daily_bin238.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69438/ft2_4FGL_J0803.5+2046_daily_bin238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69438/ft1_4FGL_J0803.5+2046_daily_bin238.fits outfile=/scratch/kocevski/69438/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin238.fits ra=120.888 dec=20.7678 rad=12.0 tmin=301017601.0 tmax=301276801.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.92
user 3.33
sys 0.55

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69438/ft1_filtered_4FGL_J0803.5+2046_daily_bin238.fits" evtable="EVENTS" scfile=/scratch/kocevski/69438/ft2_4FGL_J0803.5+2046_daily_bin238.fits sctable="SC_DATA" outfile=/scratch/kocevski/69438/ltcube_301017601_301276801_4FGL_J0803.5+2046_daily_bin238.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/69438/ft2_4FGL_J0803.5+2046_daily_bin238.fits
.....................!
real 12.21
user 11.45
sys 0.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69438/ft1_filtered_4FGL_J0803.5+2046_daily_bin238.fits evtable="EVENTS" scfile=/scratch/kocevski/69438/ft2_4FGL_J0803.5+2046_daily_bin238.fits sctable="SC_DATA" expcube=/scratch/kocevski/69438/ltcube_301017601_301276801_4FGL_J0803.5+2046_daily_bin238.fits outfile=/scratch/kocevski/69438/expmap_301017601_301276801_4FGL_J0803.5+2046_daily_bin238.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/69438/ltcube_301017601_301276801_4FGL_J0803.5+2046_daily_bin238.fits
.....................!
real 192.09
user 187.14
sys 4.55

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/69438/ft1_filtered_4FGL_J0803.5+2046_daily_bin238.fits scfile=/scratch/kocevski/69438/ft2_4FGL_J0803.5+2046_daily_bin238.fits outfile=/scratch/kocevski/69438/cmap_301017601_301276801_4FGL_J0803.5+2046_daily_bin238.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.89
user 0.36
sys 0.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69438/ft1_filtered_4FGL_J0803.5+2046_daily_bin238.fits scfile=/scratch/kocevski/69438/ft2_4FGL_J0803.5+2046_daily_bin238.fits outfile=/scratch/kocevski/69438/cmap_HighResolution_301017601_301276801_4FGL_J0803.5+2046_daily_bin238.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.89
user 0.38
sys 0.50

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3961       1.0000         .10000E-03   10000.    
     2 'norm      '    21.810       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0231       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0758       1.0000         .10000E-03   10000.    
     5 'norm      '    .21240E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.767       1.0000         .10000E-03   10000.    
     8 'Prefactor '    100.76       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9096       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.478       1.0000         .10000E-03   10000.    
    11 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.795       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.7009       1.0000         .10000E-03   10000.    
    14 'norm      '    .10905E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5354       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .47954E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.6801       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2980       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2914       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=   8420.742     FROM MIGRAD    STATUS=CONVERGED   1028 CALLS     3365 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.3960        10.499        .13074E-03    .10435E-05
   2  norm          21.809        2.7673        .52749E-04   -.65519E-04
   3  norm          2.0231        1.5263        .83724E-04    .55565E-03
   4  Prefactor     4.0750        8.9362        .19971E-03    .14084E-03
   5  norm          .10000E-03    9.4915        .31274E-02** at limit **
   6  Prefactor     .10000E-03    26.319        .18142E-02** at limit **
   7  Prefactor     23.751        25.307        .82165E-04    .74716E-05
   8  Prefactor     100.79        52.722        .20026E-03   -.34516E-04
   9  Prefactor     4.9110        3.9709        .77280E-03   -.61727E-04
  10  Prefactor     26.487        35.448        .77852E-04    .38844E-04
  11  norm          .10000E-03    8.5115        .18142E-02** at limit **
  12  Prefactor     24.802        12.894        .80446E-04   -.84227E-04
  13  Prefactor     9.7039        206.49        .12866E-03    .17672E-06
  14  norm          .10000E-03    32.209        .18142E-02** at limit **
  15  Prefactor     7.5272        25.067        .14609E-03    .62254E-06
  16  Prefactor     .10000E-03    12.293        .18142E-02** at limit **
  17  Prefactor     .10000E-03    18.819        .12958    ** at limit **
  18  Prefactor     .10000E-03    5.9220        .18142E-02** at limit **
  19  Prefactor     .10000E-03    15.356        .18142E-02** at limit **
  20  norm          .10000E-03    .87738        .12357E-02** at limit **
  21  Prefactor     6.6795        7.0403        .15525E-03   -.66050E-04
  22  Prefactor     .10000E-03    2.1460        .13108E-02** at limit **
  23  Prefactor     .10000E-03    13.437        .18142E-02** at limit **
  24  Normalizat    1.2982        .24732        .31950E-03   -.82766E-04
  25  Prefactor     1.2913        .18876        .25104E-03   -.28054E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.396
  norm       = 21.8088
  norm       = 2.02314
  Prefactor  = 4.075
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 23.7509
  Prefactor  = 100.786
  Prefactor  = 4.91103
  Prefactor  = 26.4868
  norm       = 0.0001
  Prefactor  = 24.8019
  Prefactor  = 9.70386
  norm       = 0.0001
  Prefactor  = 7.52724
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.67945
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.29818
  Prefactor  = 1.29127
 **********
 **   18 **HESSE 
 **********

 FCN=   8420.742     FROM HESSE     STATUS=OK           413 CALLS     3778 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.3960        10.499        .52296E-05   -1.5095    
   2  norm          21.809        2.7673        .21100E-05   -1.4774    
   3  norm          2.0231        1.5261        .33489E-05   -1.5423    
   4  Prefactor     4.0750        8.9337        .79882E-05   -1.5304    
   5  norm          .10000E-03    9.5492        .62548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.321        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.751        25.287        .32866E-05   -1.4733    
   8  Prefactor     100.79        52.716        .80104E-05   -1.3697    
   9  Prefactor     4.9110        3.9699        .30912E-04   -1.5265    
  10  Prefactor     26.487        35.426        .31141E-05   -1.4678    
  11  norm          .10000E-03    8.5118        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.802        12.893        .32178E-05   -1.4712    
  13  Prefactor     9.7039        207.23        .51464E-05   -1.5085    
  14  norm          .10000E-03    32.209        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.5272        25.065        .58438E-05   -1.5159    
  16  Prefactor     .10000E-03    12.294        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.555        .13122       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.9222        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.357        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .87993        .24714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.6795        7.0398        .62102E-05   -1.5191    
  22  Prefactor     .10000E-03    2.1462        .26217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.437        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2982        .24747        .12780E-04   -.83621    
  25  Prefactor     1.2913        .18892        .50207E-04   -.83567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6286e-10
Minuit parameter uncertainties:
  1  10.5007
  2  2.7673
  3  1.52616
  4  8.93658
  5  5.95034e-05
  6  0.000259873
  7  25.2982
  8  52.7408
  9  3.97013
  10  35.4542
  11  8.16969e-07
  12  12.8943
  13  90.0427
  14  3.3364e-05
  15  25.0999
  16  8.12735e-05
  17  6.55736e-05
  18  8.58122e-06
  19  1.74447e-05
  20  7.79886e-06
  21  7.04072
  22  3.96867e-06
  23  8.46453e-06
  24  0.247701
  25  0.189016
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  3.336e-05  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.291e+00  1.890e-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.298e+00  2.477e-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.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/69438/likelihoodResults_301017601_301276801_4FGL_J0803.5+2046_daily_bin238.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) = 8420.74185793
delta logL = -0.00014048446792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8420.74171746
delta logL = -1.83354131877e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9977       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2982       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2913       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=   8420.742     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      204 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    31.857        .90712E-02** at limit **
   2  alpha         2.0031        3.4169        .42254       -.81665E-06
   3  Normalizat    1.2982        .19918        .72204E-01   -.34108E-04
   4  Prefactor     1.2913        .15682        .56773E-01   -.61417E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.0031
  Normalizat = 1.29818
  Prefactor  = 1.29127
 **********
 **   18 **HESSE 
 **********

 FCN=   8420.742     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    31.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0031        3.4167        .50000       -.20009    
   3  Normalizat    1.2982        .23491        .31950E-03   -.83621    
   4  Prefactor     1.2913        .18512        .25104E-03   -.83567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14327e-12
Minuit parameter uncertainties:
  1  1.06548e-05
  2  2.45019
  3  0.235106
  4  0.185211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69438': 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) = 8420.74171744
delta logL = 1.38970790431e-09

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  1.065e-05  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  2.003e+00  2.450e+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.291e+00  1.852e-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.298e+00  2.351e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/69438/cmap_HighResolution_301017601_301276801_4FGL_J0803.5+2046_daily_bin238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-05', job_status='DONE', photon_flux_upper_limit='3.16e-08', time_completed='2021-08-28 23:01:35.516141', job_id='69438', GAL2='1.29', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630216895.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='1.39e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='238' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:01:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 69438: <4FGL_J0803.5+2046_daily_bin238> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin238> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Aug 28 22:46:34 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 22:46:35 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:46:35 2021
Terminated at Sat Aug 28 23:01:36 2021
Results reported at Sat Aug 28 23:01:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin238 120.888 20.7678 301017601 301276801 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 :                                   889.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

