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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1438
RA = 120.888, Dec = 20.7678
tmin = 612057601, tmax = 612316801
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='75612', job_status='RUN', time_executed='2021-08-28 23:06:48.842007', time_epoch_executed='1630217208.84' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75612

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75612/ft1_4FGL_J0803.5+2046_daily_bin1438.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75612/ft2_4FGL_J0803.5+2046_daily_bin1438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75612/ft1_4FGL_J0803.5+2046_daily_bin1438.fits outfile=/scratch/kocevski/75612/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1438.fits ra=120.888 dec=20.7678 rad=12.0 tmin=612057601.0 tmax=612316801.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.85
user 4.26
sys 0.51

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75612/ft1_filtered_4FGL_J0803.5+2046_daily_bin1438.fits" evtable="EVENTS" scfile=/scratch/kocevski/75612/ft2_4FGL_J0803.5+2046_daily_bin1438.fits sctable="SC_DATA" outfile=/scratch/kocevski/75612/ltcube_612057601_612316801_4FGL_J0803.5+2046_daily_bin1438.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/75612/ft2_4FGL_J0803.5+2046_daily_bin1438.fits
.....................!
real 14.46
user 13.54
sys 0.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75612/ft1_filtered_4FGL_J0803.5+2046_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/75612/ft2_4FGL_J0803.5+2046_daily_bin1438.fits sctable="SC_DATA" expcube=/scratch/kocevski/75612/ltcube_612057601_612316801_4FGL_J0803.5+2046_daily_bin1438.fits outfile=/scratch/kocevski/75612/expmap_612057601_612316801_4FGL_J0803.5+2046_daily_bin1438.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/75612/ltcube_612057601_612316801_4FGL_J0803.5+2046_daily_bin1438.fits
.....................!
real 191.88
user 185.90
sys 5.48

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/75612/ft1_filtered_4FGL_J0803.5+2046_daily_bin1438.fits scfile=/scratch/kocevski/75612/ft2_4FGL_J0803.5+2046_daily_bin1438.fits outfile=/scratch/kocevski/75612/cmap_612057601_612316801_4FGL_J0803.5+2046_daily_bin1438.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.77
user 0.38
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75612/ft1_filtered_4FGL_J0803.5+2046_daily_bin1438.fits scfile=/scratch/kocevski/75612/ft2_4FGL_J0803.5+2046_daily_bin1438.fits outfile=/scratch/kocevski/75612/cmap_HighResolution_612057601_612316801_4FGL_J0803.5+2046_daily_bin1438.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.83
user 0.36
sys 0.45

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8001       1.0000         .10000E-03   10000.    
     2 'norm      '    .18443       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4435       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.972       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0204       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.371       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12357E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20559E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.482       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .29376E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.797       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2455       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.9165       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .64097       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=   7034.784     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2969 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8010        17.817        .11200E-04    .23727E-03
   2  norm          .18453        .72495        .26092E-06   -.12094E-03
   3  norm          1.4430        1.4709       -.14689E-07    .30969E-03
   4  Prefactor     18.977        13.192        .47336E-06    .48068E-03
   5  norm          2.0191        4.0135        .21264E-07   -.32654E-05
   6  Prefactor     .10000E-03    43.153        .18441E-05** at limit **
   7  Prefactor     32.376        24.389        .32721E-06    .47291E-04
   8  Prefactor     .10000E-03    117.82       -.18830E-04** at limit **
   9  Prefactor     .13900E-03    2.6915       -.19466E-05** at limit **
  10  Prefactor     .10000E-03    12.376       -.11908E-06** at limit **
  11  norm          .10000E-03    12.347       -.13472E-06** at limit **
  12  Prefactor     26.475        19.765       -.30242E-06    .23902E-03
  13  Prefactor     .10000E-03    1012.6        .18563E-04** at limit **
  14  norm          .10000E-03    184.77        .16557E-04** at limit **
  15  Prefactor     .10000E-03    19.618       -.13296E-05** at limit **
  16  Prefactor     .10000E-03    9.7780        .49978E-07** at limit **
  17  Prefactor     .10000E-03    6.3780        .46427E-08** at limit **
  18  Prefactor     .10000E-03    7.2802       -.22660E-07** at limit **
  19  Prefactor     41.794        27.843        .30020E-06    .34838E-04
  20  norm          .10000E-03    .40458       -.30921E-07** at limit **
  21  Prefactor     2.2455        7.9541        .39119E-06    .21791E-04
  22  Prefactor     .10000E-03    2.3494       -.22875E-07** at limit **
  23  Prefactor     .10000E-03    16.283        .10908E-05** at limit **
  24  Normalizat    1.9166        .21818        .57786E-06    .41866E-03
  25  Prefactor     .64096        .15086       -.14743E-05    .29096E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.801
  norm       = 0.184528
  norm       = 1.44302
  Prefactor  = 18.9774
  norm       = 2.01907
  Prefactor  = 0.0001
  Prefactor  = 32.3757
  Prefactor  = 0.000100001
  Prefactor  = 0.000139
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.4754
  Prefactor  = 0.000100003
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.7938
  norm       = 0.0001
  Prefactor  = 2.24545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.91658
  Prefactor  = 0.640956
 **********
 **   18 **HESSE 
 **********

 FCN=   7034.784     FROM HESSE     STATUS=OK           429 CALLS     3398 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8010        17.881        .15579E-02   -1.5440    
   2  norm          .18453        1.1602        .13493E-02   -1.5622    
   3  norm          1.4430        1.4651        .90683E-04   -1.5468    
   4  Prefactor     18.977        13.119        .91953E-04   -1.4836    
   5  norm          2.0191        3.9611        .20990E-03   -1.5424    
   6  Prefactor     .10000E-03    43.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.376        24.178        .70427E-04   -1.4569    
   8  Prefactor     .10000E-03    118.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .13900E-03    6.2964        .36637E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    12.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.475        19.803        .77847E-04   -1.4678    
  13  Prefactor     .10000E-03    1025.3        .21399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    185.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.7821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.3788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.2895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     41.794        28.100        .62005E-04   -1.4414    
  20  norm          .10000E-03    .40873        .51902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.2455        7.9474        .27424E-03   -1.5408    
  22  Prefactor     .10000E-03    2.3653        .12554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.9166        .26160        .24577E-03   -.66658    
  25  Prefactor     .64096        .17769        .28709E-03   -1.0589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40358e-08
Minuit parameter uncertainties:
  1  11.3538
  2  0.925178
  3  1.46518
  4  13.1206
  5  3.9616
  6  3.63806e-05
  7  24.1855
  8  0.000718396
  9  0.0313438
  10  4.04567e-06
  11  1.51986e-05
  12  19.8074
  13  0.0034673
  14  0.00084372
  15  3.5344e-05
  16  8.75028e-07
  17  3.64356e-07
  18  1.50041e-07
  19  28.1089
  20  8.50362e-07
  21  7.95113
  22  8.86255e-07
  23  2.1231e-05
  24  0.261796
  25  0.17785
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  8.437e-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:  6.410e-01  1.778e-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.917e+00  2.618e-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: 4.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.18e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75612/likelihoodResults_612057601_612316801_4FGL_J0803.5+2046_daily_bin1438.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) = 7034.78388275
delta logL = -2.55517479673e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7033.82410913
delta logL = 0.959748068689

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.973       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68045       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=   7033.824     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      307 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.973        14.655        .24304E-02   -.77285E-03
   2  alpha         5.0000        .80854        .46267    ** at limit **
   3  Normalizat    1.8089        .21081        .56794E-01   -.10690E-03
   4  Prefactor     .68042        .14831        .63112E-01   -.28832E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.9728
  alpha      = 5
  Normalizat = 1.80888
  Prefactor  = 0.680419
 **********
 **   18 **HESSE 
 **********

 FCN=   7033.824     FROM HESSE     STATUS=OK            27 CALLS      334 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.973        13.957        .97217E-04   -1.4884    
   2  alpha         5.0000        .94180        .61493E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.8089        .24854        .25111E-03   -.69432    
   4  Prefactor     .68042        .17445        .27920E-03   -1.0430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82765e-10
Minuit parameter uncertainties:
  1  13.9595
  2  7.926e-07
  3  0.248718
  4  0.174586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75612': 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) = 7033.82410897
delta logL = 0.959748236291

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.697e+01  1.396e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  5.000e+00  7.926e-07  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:  6.804e-01  1.746e-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.809e+00  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.02
Ra Dec: 120.888 20.768
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 8.81e-08 +/- 7.24e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.24e-05

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/75612/cmap_HighResolution_612057601_612316801_4FGL_J0803.5+2046_daily_bin1438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.18e-05', comment='SUCCESS', energy_flux2='1.51e-05', dlogl='9.60e-01', photon_flux2='8.81e-08', job_status='DONE', time_completed='2021-08-28 23:19:57.129359', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='4.15e-08', energy_flux_error2='1.24e-05', EG='1.92', time_epoch_completed='1630217997.13', return_code='0', job_id='75612', GAL2='0.68', EG2='1.81', return_code2='0', photon_flux_error2='7.24e-08', ts2='2.02', photon_index='2.00' WHERE bin_id='1438' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:19:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 75612: <4FGL_J0803.5+2046_daily_bin1438> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1438 120.888 20.7678 612057601 612316801 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 :                                   788.08 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             356.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            814 sec.

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

