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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1518
RA = 120.888, Dec = 20.7678
tmin = 632793601, tmax = 633052801
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='76690', job_status='RUN', time_executed='2021-08-28 23:12:45.525102', time_epoch_executed='1630217565.53' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1518'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/76690

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/76690/ft1_4FGL_J0803.5+2046_daily_bin1518.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/76690/ft2_4FGL_J0803.5+2046_daily_bin1518.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/76690/ft1_4FGL_J0803.5+2046_daily_bin1518.fits outfile=/scratch/kocevski/76690/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1518.fits ra=120.888 dec=20.7678 rad=12.0 tmin=632793601.0 tmax=633052801.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 10.43
user 3.37
sys 7.00

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/76690/ft2_4FGL_J0803.5+2046_daily_bin1518.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/76690/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1518.fits evtable="EVENTS" outfile="/scratch/kocevski/76690/ft1_filtered_4FGL_J0803.5+2046_daily_bin1518.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 7.37
user 0.32
sys 7.01

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/76690/ft1_filtered_4FGL_J0803.5+2046_daily_bin1518.fits" evtable="EVENTS" scfile=/scratch/kocevski/76690/ft2_4FGL_J0803.5+2046_daily_bin1518.fits sctable="SC_DATA" outfile=/scratch/kocevski/76690/ltcube_632793601_633052801_4FGL_J0803.5+2046_daily_bin1518.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/76690/ft2_4FGL_J0803.5+2046_daily_bin1518.fits
.....................!
real 25.02
user 16.52
sys 8.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/76690/ft1_filtered_4FGL_J0803.5+2046_daily_bin1518.fits evtable="EVENTS" scfile=/scratch/kocevski/76690/ft2_4FGL_J0803.5+2046_daily_bin1518.fits sctable="SC_DATA" expcube=/scratch/kocevski/76690/ltcube_632793601_633052801_4FGL_J0803.5+2046_daily_bin1518.fits outfile=/scratch/kocevski/76690/expmap_632793601_633052801_4FGL_J0803.5+2046_daily_bin1518.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/76690/ltcube_632793601_633052801_4FGL_J0803.5+2046_daily_bin1518.fits
.....................!
real 200.49
user 185.46
sys 14.29

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/76690/ft1_filtered_4FGL_J0803.5+2046_daily_bin1518.fits scfile=/scratch/kocevski/76690/ft2_4FGL_J0803.5+2046_daily_bin1518.fits outfile=/scratch/kocevski/76690/cmap_632793601_633052801_4FGL_J0803.5+2046_daily_bin1518.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 7.31
user 0.38
sys 6.89

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/76690/ft1_filtered_4FGL_J0803.5+2046_daily_bin1518.fits scfile=/scratch/kocevski/76690/ft2_4FGL_J0803.5+2046_daily_bin1518.fits outfile=/scratch/kocevski/76690/cmap_HighResolution_632793601_633052801_4FGL_J0803.5+2046_daily_bin1518.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 7.34
user 0.40
sys 6.90

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7060       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.032       1.0000         .10000E-03   10000.    
     5 'norm      '    4.1918       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.767       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0892       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0301       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.0776       1.0000         .10000E-03   10000.    
    20 'norm      '    .11307E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.086       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82224       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0739       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=   6672.563     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2950 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.4189       -.26222E-08** at limit **
   2  norm          .10000E-03    .38087       -.18924E-08** at limit **
   3  norm          1.7061        1.7028       -.28860E-06   -.61363E-04
   4  Prefactor     14.031        12.371        .14243E-05   -.13217E-03
   5  norm          4.1946        4.7186        .27677E-06   -.78140E-04
   6  Prefactor     28.769        46.710       -.32758E-06    .31281E-05
   7  Prefactor     .10000E-03    42.775        .13491E-05** at limit **
   8  Prefactor     .10000E-03    12.462        .11603E-05** at limit **
   9  Prefactor     5.0893        3.2128       -.30534E-07   -.15940E-04
  10  Prefactor     .10000E-03    14.120       -.10762E-05** at limit **
  11  norm          .10000E-03    6.9406       -.14845E-06** at limit **
  12  Prefactor     4.0300        7.5185        .15493E-06   -.96405E-05
  13  Prefactor     .10000E-03    32.156       -.21641E-05** at limit **
  14  norm          .10000E-03    24.251        .66685E-06** at limit **
  15  Prefactor     .10000E-03    13.532        .11621E-06** at limit **
  16  Prefactor     .10000E-03    11.324       -.58238E-06** at limit **
  17  Prefactor     .10000E-03    254.34       -.26759E-05** at limit **
  18  Prefactor     .10000E-03    7.1999        .16594E-06** at limit **
  19  Prefactor     9.0964        27.032        .17573E-05   -.93519E-07
  20  norm          .10000E-03    .60704       -.17694E-06** at limit **
  21  Prefactor     19.090        11.427        .42287E-06    .61669E-04
  22  Prefactor     .10000E-03    6.5749        .12115E-06** at limit **
  23  Prefactor     .10000E-03    25.504        .58411E-06** at limit **
  24  Normalizat    .82212        .19177        .15736E-06    .29377E-04
  25  Prefactor     1.0740        .13474       -.20076E-06    .61219E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.70612
  Prefactor  = 14.031
  norm       = 4.19458
  Prefactor  = 28.7695
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.08926
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.03
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.09641
  norm       = 0.000100001
  Prefactor  = 19.0899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.822123
  Prefactor  = 1.07402
 **********
 **   18 **HESSE 
 **********

 FCN=   6672.563     FROM HESSE     STATUS=OK           429 CALLS     3379 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.4366        .16770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .39928        .98409E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7061        1.6999        .85883E-04   -1.5447    
   4  Prefactor     14.031        12.307        .53464E-03   -1.4959    
   5  norm          4.1946        4.6743        .16401E-03   -1.5298    
   6  Prefactor     28.769        46.598        .74697E-04   -1.4635    
   7  Prefactor     .10000E-03    43.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.0893        3.2150        .11065E-03   -1.5257    
  10  Prefactor     .10000E-03    14.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.9478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.0300        7.5020        .20087E-03   -1.5306    
  13  Prefactor     .10000E-03    32.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    24.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    264.86        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.2229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.0964        28.443        .13303E-03   -1.5105    
  20  norm          .10000E-03    1.2835        .20612E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.090        11.536        .91679E-04   -1.4834    
  22  Prefactor     .10000E-03    6.6515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .82212        .22142        .30467E-03   -.99253    
  25  Prefactor     1.0740        .15526        .20158E-03   -.90301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52862e-11
Minuit parameter uncertainties:
  1  1.2558e-06
  2  5.29357e-07
  3  1.7
  4  12.3088
  5  4.67472
  6  46.657
  7  1.60391e-05
  8  5.89763e-05
  9  3.21509
  10  7.21975e-05
  11  7.44342e-06
  12  7.50371
  13  0.000210607
  14  5.39888e-05
  15  8.27148e-06
  16  3.08741e-05
  17  0.000404305
  18  4.43988e-06
  19  28.4856
  20  6.82231e-05
  21  11.5376
  22  5.51756e-06
  23  4.00135e-05
  24  0.221659
  25  0.155321
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  5.399e-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.074e+00  1.553e-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:  8.221e-01  2.217e-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: 2.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/76690/likelihoodResults_632793601_633052801_4FGL_J0803.5+2046_daily_bin1518.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) = 6672.5636297
delta logL = -0.000195604038709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6672.54551394
delta logL = 0.0179201555138

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3238       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .80581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0807       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=   6672.546     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      244 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3239        29.013        .67265E-02   -.54920E-03
   2  alpha         5.0000        4.1867        .46267    ** at limit **
   3  Normalizat    .80581        .20805        .69511E-01    .93736E-05
   4  Prefactor     1.0807        .13834        .38371E-01   -.14589E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.32386
  alpha      = 5
  Normalizat = 0.805806
  Prefactor  = 1.08068
 **********
 **   18 **HESSE 
 **********

 FCN=   6672.546     FROM HESSE     STATUS=OK            31 CALLS      275 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3239        17.374        .26906E-03   -1.5403    
   2  alpha         5.0000        3.3976        .11525        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .80581        .22308        .30757E-03   -.99854    
   4  Prefactor     1.0807        .15826        .20105E-03   -.90086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93117e-09
Minuit parameter uncertainties:
  1  12.713
  2  7.93895e-07
  3  0.223333
  4  0.158325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/76690': 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) = 6672.54551394
delta logL = 0.0179201636365

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  2.324e+00  1.271e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  5.000e+00  7.939e-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:  1.081e+00  1.583e-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:  8.058e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-05', job_status='DONE', photon_flux_upper_limit='2.40e-08', time_completed='2021-08-28 23:26:20.932988', job_id='76690', GAL2='1.08', fit_tolerance='1e-08', EG2='0.81', EG='0.82', time_epoch_completed='1630218380.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.79e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1518' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:26:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 76690: <4FGL_J0803.5+2046_daily_bin1518> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1518 120.888 20.7678 632793601 633052801 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 :                                   916.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            956 sec.

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

