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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1601
RA = 120.888, Dec = 20.7678
tmin = 654307201, tmax = 654566401
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='541036', job_status='RUN', time_executed='2021-09-29 00:14:47.871984', time_epoch_executed='1632899687.87' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/541036

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/541036/ft1_4FGL_J0803.5+2046_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/541036/ft2_4FGL_J0803.5+2046_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/541036/ft1_4FGL_J0803.5+2046_daily_bin1601.fits outfile=/scratch/kocevski/541036/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1601.fits ra=120.888 dec=20.7678 rad=12.0 tmin=654307201.0 tmax=654566401.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 4.22
user 3.96
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/541036/ft1_filtered_4FGL_J0803.5+2046_daily_bin1601.fits" evtable="EVENTS" scfile=/scratch/kocevski/541036/ft2_4FGL_J0803.5+2046_daily_bin1601.fits sctable="SC_DATA" outfile=/scratch/kocevski/541036/ltcube_654307201_654566401_4FGL_J0803.5+2046_daily_bin1601.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/541036/ft2_4FGL_J0803.5+2046_daily_bin1601.fits
.....................!
real 11.96
user 11.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/541036/ft1_filtered_4FGL_J0803.5+2046_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/541036/ft2_4FGL_J0803.5+2046_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/541036/ltcube_654307201_654566401_4FGL_J0803.5+2046_daily_bin1601.fits outfile=/scratch/kocevski/541036/expmap_654307201_654566401_4FGL_J0803.5+2046_daily_bin1601.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/541036/ltcube_654307201_654566401_4FGL_J0803.5+2046_daily_bin1601.fits
.....................!
real 190.36
user 185.20
sys 4.58

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/541036/ft1_filtered_4FGL_J0803.5+2046_daily_bin1601.fits scfile=/scratch/kocevski/541036/ft2_4FGL_J0803.5+2046_daily_bin1601.fits outfile=/scratch/kocevski/541036/cmap_654307201_654566401_4FGL_J0803.5+2046_daily_bin1601.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/541036/ft1_filtered_4FGL_J0803.5+2046_daily_bin1601.fits scfile=/scratch/kocevski/541036/ft2_4FGL_J0803.5+2046_daily_bin1601.fits outfile=/scratch/kocevski/541036/cmap_HighResolution_654307201_654566401_4FGL_J0803.5+2046_daily_bin1601.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    38.990       1.0000         .10000E-03   10000.    
     2 'norm      '    .31336       1.0000         .10000E-03   10000.    
     3 'norm      '    3.0613       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.035       1.0000         .10000E-03   10000.    
     5 'norm      '    3.1267       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.004       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15545E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6401       1.0000         .10000E-03   10000.    
    10 'Prefactor '    62.695       1.0000         .10000E-03   10000.    
    11 'norm      '    .12905E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.210       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21918E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    143.73       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9125       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.928       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10344E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .94012       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.602       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    44.189       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .56632       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2270       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=   7182.792     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2925 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          38.993        17.279       -.34740E-07   -.45696E-04
   2  norm          .31322        .99697        .13546E-05    .16236E-02
   3  norm          3.0605        2.2297       -.14105E-07    .27073E-03
   4  Prefactor     28.045        13.751        .25841E-06    .26525E-03
   5  norm          3.1288        4.1373        .61212E-06    .48620E-03
   6  Prefactor     .10000E-03    10.437       -.95449E-07** at limit **
   7  Prefactor     31.005        17.233       -.11252E-06    .29271E-04
   8  Prefactor     .10002E-03    60.760        .41197E-05** at limit **
   9  Prefactor     3.6342        3.0364        .88421E-07   -.47493E-04
  10  Prefactor     62.693        43.020       -.39897E-06   -.67396E-05
  11  norm          .10000E-03    45.874       -.11051E-05** at limit **
  12  Prefactor     24.205        15.441       -.10516E-05   -.49181E-03
  13  Prefactor     .10001E-03    147.07       -.24547E-05** at limit **
  14  norm          143.74        101.24        .61683E-06    .40423E-04
  15  Prefactor     5.9126        16.959        .32607E-06    .49116E-04
  16  Prefactor     11.928        19.177        .38930E-07    .38965E-04
  17  Prefactor     .10118E-03    27.390       -.60737E-05** at limit **
  18  Prefactor     .10000E-03    12.272       -.40532E-07** at limit **
  19  Prefactor     .10000E-03    5.9814        .22243E-07** at limit **
  20  norm          .93993        .86421        .98171E-07    .63728E-03
  21  Prefactor     16.605        11.700        .98434E-07    .57030E-04
  22  Prefactor     .10000E-03    6.2747        .46214E-07** at limit **
  23  Prefactor     44.181        37.980        .19589E-07   -.35564E-04
  24  Normalizat    .56620        .20336        .63453E-07    .54571E-04
  25  Prefactor     1.2270        .15067       -.52086E-06    .75188E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 38.9931
  norm       = 0.313225
  norm       = 3.06053
  Prefactor  = 28.0451
  norm       = 3.12879
  Prefactor  = 0.0001
  Prefactor  = 31.0054
  Prefactor  = 0.000100015
  Prefactor  = 3.63417
  Prefactor  = 62.6927
  norm       = 0.000100001
  Prefactor  = 24.2055
  Prefactor  = 0.000100012
  norm       = 143.742
  Prefactor  = 5.91259
  Prefactor  = 11.9281
  Prefactor  = 0.000101177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.939934
  Prefactor  = 16.6047
  Prefactor  = 0.0001
  Prefactor  = 44.1806
  Normalizat = 0.5662
  Prefactor  = 1.22697
 **********
 **   18 **HESSE 
 **********

 FCN=   7182.792     FROM HESSE     STATUS=OK           429 CALLS     3354 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          38.993        17.293        .64190E-04   -1.4458    
   2  norm          .31322        1.0273        .14698E-03   -1.5596    
   3  norm          3.0605        2.2512        .80904E-04   -1.5358    
   4  Prefactor     28.045        13.855        .75664E-04   -1.4648    
   5  norm          3.1288        4.1168        .17169E-03   -1.5354    
   6  Prefactor     .10000E-03    10.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.005        17.181        .71959E-04   -1.4594    
   8  Prefactor     .10002E-03    62.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.6342        3.0255        .12712E-03   -1.5327    
  10  Prefactor     62.693        42.844        .50678E-04   -1.4123    
  11  norm          .10000E-03    46.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.205        15.419        .81411E-04   -1.4724    
  13  Prefactor     .10001E-03    148.98        .20145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          143.74        101.32        .16804E-03   -1.3304    
  15  Prefactor     5.9126        16.933        .16515E-03   -1.5222    
  16  Prefactor     11.928        19.151        .11599E-03   -1.5017    
  17  Prefactor     .10118E-03    87.623        .55662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .93993        .83157        .71343E-03   -1.5514    
  21  Prefactor     16.605        11.664        .98298E-04   -1.4893    
  22  Prefactor     .10000E-03    6.4486        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     44.181        37.991        .60311E-04   -1.4378    
  24  Normalizat    .56620        .22102        .36228E-03   -1.0944    
  25  Prefactor     1.2270        .16618        .20131E-03   -.85505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45007e-08
Minuit parameter uncertainties:
  1  17.295
  2  1.02734
  3  2.25126
  4  13.8567
  5  4.11722
  6  1.72653e-05
  7  17.1834
  8  0.00194641
  9  3.02558
  10  42.8654
  11  0.000319485
  12  15.4219
  13  0.00268635
  14  101.439
  15  16.9469
  16  19.1606
  17  0.0203388
  18  2.11343e-06
  19  2.20616e-06
  20  0.831582
  21  11.6657
  22  7.26931e-06
  23  38.0114
  24  0.22136
  25  0.166253
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.437e+02  1.014e+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.227e+00  1.663e-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.662e-01  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.43
Ra Dec: 120.888 20.768
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.63e-08 +/- 1.85e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 9.75e-06

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) = 7181.65605473
delta logL = 1.13618021217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7181.65059048
delta logL = 1.14164445475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    98.128       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5601       1.0000          .0000       5.0000    
     3 'Normalizat'    .50844       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2471       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=   7181.651     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      295 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          98.144        98.500        .40580E-04   -.60592E-03
   2  alpha         3.5608        .98564        .17617E-01   -.15316E-03
   3  Normalizat    .50785        .20906        .38127E-03    .48514E-04
   4  Prefactor     1.2476        .16372        .19973E-03    .78968E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 98.1439
  alpha      = 3.56075
  Normalizat = 0.507854
  Prefactor  = 1.24756
 **********
 **   18 **HESSE 
 **********

 FCN=   7181.651     FROM HESSE     STATUS=OK            23 CALLS      318 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          98.144        88.292        .81160E-05   -1.3723    
   2  alpha         3.5608        .88808        .70470E-03    .43819    
   3  Normalizat    .50785        .20810        .15251E-04   -1.1205    
   4  Prefactor     1.2476        .16325        .39947E-04   -.84880    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54249e-09
Minuit parameter uncertainties:
  1  88.4107
  2  0.912595
  3  0.208415
  4  0.163321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/541036': 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) = 7181.65058509
delta logL = 1.14164985339

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  9.814e+01  8.841e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  3.561e+00  9.126e-01  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.248e+00  1.633e-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.079e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.72
Ra Dec: 120.888 20.768
Photon Index (Free Index): 3.56 +/- 0.91
Photon Flux (Free Index): 7.30e-08 +/- 4.69e-08
Energy Flux (Free Index): 1.83e-05 +/- 9.82e-06

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/541036/cmap_HighResolution_654307201_654566401_4FGL_J0803.5+2046_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.63e-08', energy_flux2='1.83e-05', photon_flux_error='1.85e-08', dlogl='1.14e+00', energy_flux='1.38e-05', photon_flux2='7.30e-08', job_status='DONE', time_completed='2021-09-29 00:25:59.391877', photon_index_error2='0.91', photon_index2='3.56', ts='4.43', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='9.82e-06', EG='0.57', time_epoch_completed='1632900359.39', return_code='0', job_id='541036', GAL2='1.25', EG2='0.51', return_code2='0', energy_flux_error='9.75e-06', photon_flux_error2='4.69e-08', ts2='6.72', photon_index='2.00' WHERE bin_id='1601' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:25:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 541036: <4FGL_J0803.5+2046_daily_bin1601> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin1601> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 00:10:40 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:10:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:10:42 2021
Terminated at Wed Sep 29 00:25:59 2021
Results reported at Wed Sep 29 00:25:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1601 120.888 20.7678 654307201 654566401 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 :                                   672.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

