aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/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 9 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 = 17017
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0803.5+2046_weekly_bin649
RA = 120.888, Dec = 20.7678
tmin = 631497601, tmax = 632102401
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='396906', job_status='RUN', time_executed='2021-07-11 21:32:39.551641', time_epoch_executed='1626064359.55' WHERE source_name='4FGL J0803.5+2046' and cadence='weekly' and bin_id='649'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/396906

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/396906/ft1_4FGL_J0803.5+2046_weekly_bin649.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/396906/ft2_4FGL_J0803.5+2046_weekly_bin649.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/396906/ft1_4FGL_J0803.5+2046_weekly_bin649.fits outfile=/scratch/kocevski/396906/ft1_filteredMKT_4FGL_J0803.5+2046_weekly_bin649.fits ra=120.888 dec=20.7678 rad=12.0 tmin=631497601.0 tmax=632102401.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.51
user 5.13
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/396906/ft2_4FGL_J0803.5+2046_weekly_bin649.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/396906/ft1_filteredMKT_4FGL_J0803.5+2046_weekly_bin649.fits evtable="EVENTS" outfile="/scratch/kocevski/396906/ft1_filtered_4FGL_J0803.5+2046_weekly_bin649.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.57
user 0.39
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/396906/ft1_filtered_4FGL_J0803.5+2046_weekly_bin649.fits" evtable="EVENTS" scfile=/scratch/kocevski/396906/ft2_4FGL_J0803.5+2046_weekly_bin649.fits sctable="SC_DATA" outfile=/scratch/kocevski/396906/ltcube_631497601_632102401_4FGL_J0803.5+2046_weekly_bin649.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/396906/ft2_4FGL_J0803.5+2046_weekly_bin649.fits
.....................!
real 34.68
user 34.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/396906/ft1_filtered_4FGL_J0803.5+2046_weekly_bin649.fits evtable="EVENTS" scfile=/scratch/kocevski/396906/ft2_4FGL_J0803.5+2046_weekly_bin649.fits sctable="SC_DATA" expcube=/scratch/kocevski/396906/ltcube_631497601_632102401_4FGL_J0803.5+2046_weekly_bin649.fits outfile=/scratch/kocevski/396906/expmap_631497601_632102401_4FGL_J0803.5+2046_weekly_bin649.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/396906/ltcube_631497601_632102401_4FGL_J0803.5+2046_weekly_bin649.fits
.....................!
real 193.10
user 187.34
sys 5.31

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/396906/ft1_filtered_4FGL_J0803.5+2046_weekly_bin649.fits scfile=/scratch/kocevski/396906/ft2_4FGL_J0803.5+2046_weekly_bin649.fits outfile=/scratch/kocevski/396906/cmap_631497601_632102401_4FGL_J0803.5+2046_weekly_bin649.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.60
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/396906/ft1_filtered_4FGL_J0803.5+2046_weekly_bin649.fits scfile=/scratch/kocevski/396906/ft2_4FGL_J0803.5+2046_weekly_bin649.fits outfile=/scratch/kocevski/396906/cmap_HighResolution_631497601_632102401_4FGL_J0803.5+2046_weekly_bin649.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.61
user 0.44
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    67.847       1.0000         .10000E-03   10000.    
     2 'norm      '    .33378E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    6.9562       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    20.573       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8702       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11648E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .14550E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.673       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-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 '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.599       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1832       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4191       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    120.54       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .53687       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84900       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=   1704.337     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2836 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          67.836        53.495       -.10856E-04   -.12050E-04
   2  norm          .36067E-01    2.0364        .39073E-06   -.63349E-03
   3  norm          6.9567        4.4616       -.92081E-07   -.81837E-05
   4  Prefactor     .10000E-03    28.477        .26986E-05** at limit **
   5  norm          20.571        12.693       -.51903E-06    .12536E-03
   6  Prefactor     .10000E-03    63.738        .41933E-04** at limit **
   7  Prefactor     .10000E-03    28.753        .19069E-05** at limit **
   8  Prefactor     .10000E-03    41.490       -.40118E-04** at limit **
   9  Prefactor     5.8696        5.4621       -.30771E-06   -.15467E-03
  10  Prefactor     .10000E-03    112.43       -.85017E-04** at limit **
  11  norm          .10000E-03    77.415        .43412E-04** at limit **
  12  Prefactor     27.661        22.775       -.13316E-05   -.37773E-03
  13  Prefactor     .10000E-03    96.061       -.96141E-05** at limit **
  14  norm          .10000E-03    89.601        .14350E-04** at limit **
  15  Prefactor     .10000E-03    27.558        .99922E-05** at limit **
  16  Prefactor     .10000E-03    28.334        .52485E-05** at limit **
  17  Prefactor     .10000E-03    24.061       -.62390E-05** at limit **
  18  Prefactor     13.582        29.384       -.12006E-04   -.13633E-04
  19  Prefactor     .10000E-03    29.137       -.81019E-06** at limit **
  20  norm          1.1838        2.4257       -.60086E-06   -.27532E-03
  21  Prefactor     3.4041        30.190       -.43601E-05   -.56584E-04
  22  Prefactor     .10000E-03    9.7929        .30269E-06** at limit **
  23  Prefactor     120.53        88.086       -.32799E-05    .13154E-04
  24  Normalizat    .53722        .36240        .71019E-05   -.16927E-04
  25  Prefactor     .84880        .26667        .20049E-05   -.47992E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 67.8356
  norm       = 0.0360665
  norm       = 6.95673
  Prefactor  = 0.0001
  norm       = 20.571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.86958
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.6612
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5818
  Prefactor  = 0.0001
  norm       = 1.18377
  Prefactor  = 3.40407
  Prefactor  = 0.0001
  Prefactor  = 120.535
  Normalizat = 0.537223
  Prefactor  = 0.8488
 **********
 **   18 **HESSE 
 **********

 FCN=   1704.337     FROM HESSE     STATUS=OK           417 CALLS     3253 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          67.836        53.439        .48729E-04   -1.4059    
   2  norm          .36067E-01    22.652        .11357E-02   -1.5670    
   3  norm          6.9567        4.4541        .67031E-04   -1.5180    
   4  Prefactor     .10000E-03    28.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          20.571        12.689        .88305E-04   -1.4801    
   6  Prefactor     .10000E-03    63.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    41.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.8696        5.4630        .87714E-04   -1.5223    
  10  Prefactor     .10000E-03    112.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    77.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.661        22.751        .76156E-04   -1.4656    
  13  Prefactor     .10000E-03    96.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    89.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    27.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.582        29.412        .10862E-03   -1.4971    
  19  Prefactor     .10000E-03    29.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1838        2.3718        .85662E-04   -1.5490    
  21  Prefactor     3.4041        29.833        .21877E-03   -1.5339    
  22  Prefactor     .10000E-03    9.8352        .12608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     120.53        88.210        .36655E-04   -1.3508    
  24  Normalizat    .53722        .42301        .32011E-03   -1.1072    
  25  Prefactor     .84880        .31954        .19805E-03   -.97954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66688e-09
Minuit parameter uncertainties:
  1  53.4766
  2  1.80591
  3  4.45435
  4  3.11142e-05
  5  12.6905
  6  4.42486e-05
  7  1.49312e-05
  8  1.65562e-05
  9  5.46341
  10  4.33989e-05
  11  0.00020909
  12  22.7576
  13  2.44674e-05
  14  2.31482e-05
  15  1.33665e-05
  16  1.38038e-05
  17  5.91184e-06
  18  29.4433
  19  2.74717e-05
  20  2.37195
  21  20.1681
  22  9.868e-06
  23  88.306
  24  0.425577
  25  0.320245
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  2.315e-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:  8.488e-01  3.202e-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.372e-01  4.256e-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: 9.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/396906/likelihoodResults_631497601_632102401_4FGL_J0803.5+2046_weekly_bin649.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) = 1704.33696104
delta logL = -5.10306736032e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1704.33691053
delta logL = -5.21658193975e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7658       1.0000          .0000       5.0000    
     3 'Normalizat'    .53717       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84884       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=   1704.337     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      272 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    6616.6        .18142E-01** at limit **
   2  alpha         2.0954        3.3175        .20000        .10104E-07
   3  Normalizat    .53722        .52746E-01    .32010E-03    .33971E-04
   4  Prefactor     .84880        .40799E-01    .19805E-03    .64186E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100012
  alpha      = 2.09537
  Normalizat = 0.537222
  Prefactor  = 0.848802
 **********
 **   18 **HESSE 
 **********

 FCN=   1704.337     FROM HESSE     STATUS=OK            23 CALLS      295 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    94.768        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0954        3.8916        .80000E-02   -.16257    
   3  Normalizat    .53722        .40448        .12804E-04   -1.1072    
   4  Prefactor     .84880        .31392        .39610E-04   -.97954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84066e-10
Minuit parameter uncertainties:
  1  0.0021316
  2  2242.58
  3  0.406722
  4  0.314584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/396906': 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) = 1704.33691001
delta logL = 5.05679054186e-10

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  2.132e-03  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  2.095e+00  2.243e+03  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:  8.488e-01  3.146e-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.372e-01  4.067e-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/396906/cmap_HighResolution_631497601_632102401_4FGL_J0803.5+2046_weekly_bin649.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-05', job_status='DONE', photon_flux_upper_limit='9.09e-08', time_completed='2021-07-11 21:40:40.945308', job_id='396906', GAL2='0.85', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1626064840.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='5.06e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='649' AND source_name='4FGL J0803.5+2046' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul 11 21:40:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 396906: <4FGL_J0803.5+2046_weekly_bin649> in cluster <slac> Done

Job <4FGL_J0803.5+2046_weekly_bin649> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Jul 11 21:30:26 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 11 21:32:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 11 21:32:20 2021
Terminated at Sun Jul 11 21:40:43 2021
Results reported at Sun Jul 11 21:40:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_weekly_bin649 120.888 20.7678 631497601 632102401 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 :                                   462.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             302.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   503 sec.
    Turnaround time :                            617 sec.

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

