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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1479
RA = 120.888, Dec = 20.7678
tmin = 622684801, tmax = 622944001
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='75677', job_status='RUN', time_executed='2021-08-28 23:06:41.849272', time_epoch_executed='1630217201.85' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1479'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75677

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75677/ft1_4FGL_J0803.5+2046_daily_bin1479.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75677/ft2_4FGL_J0803.5+2046_daily_bin1479.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75677/ft1_4FGL_J0803.5+2046_daily_bin1479.fits outfile=/scratch/kocevski/75677/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1479.fits ra=120.888 dec=20.7678 rad=12.0 tmin=622684801.0 tmax=622944001.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 5.29
user 5.00
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75677/ft2_4FGL_J0803.5+2046_daily_bin1479.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/75677/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1479.fits evtable="EVENTS" outfile="/scratch/kocevski/75677/ft1_filtered_4FGL_J0803.5+2046_daily_bin1479.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75677/ft1_filtered_4FGL_J0803.5+2046_daily_bin1479.fits" evtable="EVENTS" scfile=/scratch/kocevski/75677/ft2_4FGL_J0803.5+2046_daily_bin1479.fits sctable="SC_DATA" outfile=/scratch/kocevski/75677/ltcube_622684801_622944001_4FGL_J0803.5+2046_daily_bin1479.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/75677/ft2_4FGL_J0803.5+2046_daily_bin1479.fits
.....................!
real 11.43
user 11.08
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75677/ft1_filtered_4FGL_J0803.5+2046_daily_bin1479.fits evtable="EVENTS" scfile=/scratch/kocevski/75677/ft2_4FGL_J0803.5+2046_daily_bin1479.fits sctable="SC_DATA" expcube=/scratch/kocevski/75677/ltcube_622684801_622944001_4FGL_J0803.5+2046_daily_bin1479.fits outfile=/scratch/kocevski/75677/expmap_622684801_622944001_4FGL_J0803.5+2046_daily_bin1479.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/75677/ltcube_622684801_622944001_4FGL_J0803.5+2046_daily_bin1479.fits
.....................!
real 191.65
user 185.94
sys 5.22

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/75677/ft1_filtered_4FGL_J0803.5+2046_daily_bin1479.fits scfile=/scratch/kocevski/75677/ft2_4FGL_J0803.5+2046_daily_bin1479.fits outfile=/scratch/kocevski/75677/cmap_622684801_622944001_4FGL_J0803.5+2046_daily_bin1479.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75677/ft1_filtered_4FGL_J0803.5+2046_daily_bin1479.fits scfile=/scratch/kocevski/75677/ft2_4FGL_J0803.5+2046_daily_bin1479.fits outfile=/scratch/kocevski/75677/cmap_HighResolution_622684801_622944001_4FGL_J0803.5+2046_daily_bin1479.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/75677/ft1_filtered_4FGL_J0803.5+2046_daily_bin1479.fits evtable="EVENTS" scfile=/scratch/kocevski/75677/ft2_4FGL_J0803.5+2046_daily_bin1479.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/75677/Model_4FGL_J0803.5+2046_daily_bin1479.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/75677/ft1_filtered_4FGL_J0803.5+2046_daily_bin1479.fits.....................!
real 77.87
user 76.40
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5585       1.0000         .10000E-03   10000.    
     2 'norm      '    2.2541       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7432       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4199       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.213       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5846       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.2245       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15158E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    115.79       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.0545       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .83656       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.3218       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1170       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99383       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=   7282.493     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2855 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5596        13.044       -.44026E-06    .93772E-04
   2  norm          2.2541        1.2292       -.17447E-07   -.43575E-04
   3  norm          1.7432        1.2978       -.21229E-07   -.91681E-05
   4  Prefactor     .10000E-03    4.0975       -.62858E-08** at limit **
   5  norm          1.4192        3.0642       -.16379E-06   -.45862E-03
   6  Prefactor     .10000E-03    20.014        .87401E-07** at limit **
   7  Prefactor     36.216        19.848       -.11232E-05    .10673E-02
   8  Prefactor     .10000E-03    7.4887       -.14595E-06** at limit **
   9  Prefactor     3.5823        3.4645       -.19093E-06   -.17779E-03
  10  Prefactor     .10000E-03    9.5481       -.10519E-05** at limit **
  11  norm          2.2230        15.732       -.78258E-06   -.46032E-04
  12  Prefactor     .10000E-03    10.364        .94166E-07** at limit **
  13  Prefactor     .10000E-03    190.58       -.36993E-06** at limit **
  14  norm          115.79        85.327        .71427E-06   -.11719E-03
  15  Prefactor     .10000E-03    8.4924        .73100E-06** at limit **
  16  Prefactor     .10000E-03    10.937        .10739E-05** at limit **
  17  Prefactor     .10000E-03    6.0193        .10451E-07** at limit **
  18  Prefactor     .10000E-03    10.138       -.46794E-06** at limit **
  19  Prefactor     .10000E-03    14.409       -.33506E-06** at limit **
  20  norm          2.0544        1.2141       -.34006E-07   -.84787E-04
  21  Prefactor     .10000E-03    3.5747        .12817E-07** at limit **
  22  Prefactor     .83744        4.1094       -.41893E-05   -.42391E-03
  23  Prefactor     9.3239        43.690        .16460E-05   -.65551E-04
  24  Normalizat    1.1169        .18490        .86192E-06    .92042E-04
  25  Prefactor     .99383        .13783       -.10611E-07    .16062E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.55959
  norm       = 2.25412
  norm       = 1.74316
  Prefactor  = 0.0001
  norm       = 1.41918
  Prefactor  = 0.0001
  Prefactor  = 36.2162
  Prefactor  = 0.0001
  Prefactor  = 3.58227
  Prefactor  = 0.000100003
  norm       = 2.22303
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 115.791
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.05444
  Prefactor  = 0.0001
  Prefactor  = 0.837439
  Prefactor  = 9.32394
  Normalizat = 1.11692
  Prefactor  = 0.99383
 **********
 **   18 **HESSE 
 **********

 FCN=   7282.493     FROM HESSE     STATUS=OK           421 CALLS     3276 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5596        13.055        .13702E-03   -1.5123    
   2  norm          2.2541        1.2281        .67453E-04   -1.5408    
   3  norm          1.7432        1.2983        .80931E-04   -1.5444    
   4  Prefactor     .10000E-03    4.1151        .16855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4192        3.0659        .20560E-03   -1.5470    
   6  Prefactor     .10000E-03    20.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     36.216        19.246        .66598E-04   -1.4504    
   8  Prefactor     .10000E-03    7.4885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.5823        3.4842        .14823E-03   -1.5329    
  10  Prefactor     .10000E-03    9.4478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.2230        15.788        .27569E-03   -1.5410    
  12  Prefactor     .10000E-03    10.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    191.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          115.79        85.202        .37390E-04   -1.3552    
  15  Prefactor     .10000E-03    8.4466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.0200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.0544        1.2097        .68731E-04   -1.5421    
  21  Prefactor     .10000E-03    3.5901        .15751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .83744        8.6100        .47330E-03   -1.5525    
  23  Prefactor     9.3239        43.709        .13126E-03   -1.5097    
  24  Normalizat    1.1169        .22062        .27263E-03   -.89211    
  25  Prefactor     .99383        .16364        .21956E-03   -.92935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01622e-09
Minuit parameter uncertainties:
  1  13.0594
  2  1.22816
  3  1.29834
  4  1.30688e-06
  5  3.06626
  6  2.83592e-05
  7  19.2493
  8  3.69778e-05
  9  3.4844
  10  0.00030884
  11  11.8526
  12  1.12092e-05
  13  0.000464298
  14  85.2919
  15  0.00020484
  16  0.000340977
  17  3.74335e-06
  18  0.000132782
  19  0.000115296
  20  1.20969
  21  6.99858e-06
  22  5.37108
  23  40.4233
  24  0.220806
  25  0.163721
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  9.938e-01  1.637e-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.117e+00  2.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.11
Ra Dec: 120.888 20.768
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.12e-08 +/- 1.56e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 8.20e-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) = 7282.49298385
delta logL = 0.000445890450465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7282.49297776
delta logL = 0.000451976927252

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    115.79       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9702       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99376       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=   7282.493     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      232 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          116.07        86.230        .18695E-03    .10642E-04
   2  alpha         1.9693        .96165        .31099E-01    .27735E-05
   3  Normalizat    1.1172        .20993        .27260E-03    .42122E-05
   4  Prefactor     .99374        .16168        .21957E-03    .17404E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 116.075
  alpha      = 1.96933
  Normalizat = 1.11721
  Prefactor  = 0.99374
 **********
 **   18 **HESSE 
 **********

 FCN=   7282.493     FROM HESSE     STATUS=OK            25 CALLS      257 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          116.07        85.842        .74780E-05   -1.3549    
   2  alpha         1.9693        .95771        .12440E-02   -.21389    
   3  Normalizat    1.1172        .21007        .10904E-04   -.89201    
   4  Prefactor     .99374        .16181        .43913E-04   -.92938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34614e-11
Minuit parameter uncertainties:
  1  85.9345
  2  0.984108
  3  0.210232
  4  0.161892
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75677': 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) = 7282.49297216
delta logL = 0.000457581053524

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.161e+02  8.593e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.969e+00  9.841e-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:  9.937e-01  1.619e-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.117e+00  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.11
Ra Dec: 120.888 20.768
Photon Index (Free Index): 1.97 +/- 0.98
Photon Flux (Free Index): 2.09e-08 +/- 1.81e-08
Energy Flux (Free Index): 1.12e-05 +/- 8.32e-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/75677/cmap_HighResolution_622684801_622944001_4FGL_J0803.5+2046_daily_bin1479.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.12e-08', energy_flux2='1.12e-05', photon_flux_error='1.56e-08', dlogl='4.58e-04', energy_flux='1.11e-05', photon_flux2='2.09e-08', job_status='DONE', time_completed='2021-08-28 23:17:49.812720', photon_index_error2='0.98', photon_index2='1.97', ts='4.11', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='8.32e-06', EG='1.12', time_epoch_completed='1630217869.81', return_code='0', job_id='75677', GAL2='0.99', EG2='1.12', return_code2='0', energy_flux_error='8.20e-06', photon_flux_error2='1.81e-08', ts2='4.11', photon_index='2.00' WHERE bin_id='1479' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:17:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 75677: <4FGL_J0803.5+2046_daily_bin1479> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin1479> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 23:06:28 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 23:06:30 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:06:30 2021
Terminated at Sat Aug 28 23:17:50 2021
Results reported at Sat Aug 28 23:17:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1479 120.888 20.7678 622684801 622944001 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 :                                   667.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            682 sec.

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

