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/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 52 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 = 17213
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin442
RA = 124.695, Dec = 31.8862
tmin = 506304001, tmax = 506908801
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='574283', job_status='RUN', time_executed='2021-07-13 14:54:38.388121', time_epoch_executed='1626213278.39' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='442'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574283

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574283/ft1_4FGL_J0818.7+3153_weekly_bin442.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574283/ft2_4FGL_J0818.7+3153_weekly_bin442.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574283/ft1_4FGL_J0818.7+3153_weekly_bin442.fits outfile=/scratch/kocevski/574283/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin442.fits ra=124.695 dec=31.8862 rad=12.0 tmin=506304001.0 tmax=506908801.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 7.52
user 7.19
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/574283/ft2_4FGL_J0818.7+3153_weekly_bin442.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574283/ft2_4FGL_J0818.7+3153_weekly_bin442.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/574283/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin442.fits evtable="EVENTS" outfile="/scratch/kocevski/574283/ft1_filtered_4FGL_J0818.7+3153_weekly_bin442.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.59
user 0.39
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574283/ft1_filtered_4FGL_J0818.7+3153_weekly_bin442.fits" evtable="EVENTS" scfile=/scratch/kocevski/574283/ft2_4FGL_J0818.7+3153_weekly_bin442.fits sctable="SC_DATA" outfile=/scratch/kocevski/574283/ltcube_506304001_506908801_4FGL_J0818.7+3153_weekly_bin442.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/574283/ft2_4FGL_J0818.7+3153_weekly_bin442.fits
.....................!
real 29.91
user 29.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574283/ft1_filtered_4FGL_J0818.7+3153_weekly_bin442.fits evtable="EVENTS" scfile=/scratch/kocevski/574283/ft2_4FGL_J0818.7+3153_weekly_bin442.fits sctable="SC_DATA" expcube=/scratch/kocevski/574283/ltcube_506304001_506908801_4FGL_J0818.7+3153_weekly_bin442.fits outfile=/scratch/kocevski/574283/expmap_506304001_506908801_4FGL_J0818.7+3153_weekly_bin442.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/574283/ltcube_506304001_506908801_4FGL_J0818.7+3153_weekly_bin442.fits
.....................!
real 192.30
user 187.45
sys 4.35

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 183 point sources and 0 extended sources

Setting source of interest to:
4FGL J0818.7+3153 @ 124.695 31.8862

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/574283/ft1_filtered_4FGL_J0818.7+3153_weekly_bin442.fits scfile=/scratch/kocevski/574283/ft2_4FGL_J0818.7+3153_weekly_bin442.fits outfile=/scratch/kocevski/574283/cmap_506304001_506908801_4FGL_J0818.7+3153_weekly_bin442.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=124.695 yref=31.8862 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.67
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574283/ft1_filtered_4FGL_J0818.7+3153_weekly_bin442.fits scfile=/scratch/kocevski/574283/ft2_4FGL_J0818.7+3153_weekly_bin442.fits outfile=/scratch/kocevski/574283/cmap_HighResolution_506304001_506908801_4FGL_J0818.7+3153_weekly_bin442.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=124.695 yref=31.8862 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.43
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574283/ft1_filtered_4FGL_J0818.7+3153_weekly_bin442.fits evtable="EVENTS" scfile=/scratch/kocevski/574283/ft2_4FGL_J0818.7+3153_weekly_bin442.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574283/Model_4FGL_J0818.7+3153_weekly_bin442.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/574283/ft1_filtered_4FGL_J0818.7+3153_weekly_bin442.fits.....................!
real 134.35
user 132.82
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/574283/ft1_filtered_4FGL_J0818.7+3153_weekly_bin442.fits', '/scratch/kocevski/574283/ft2_4FGL_J0818.7+3153_weekly_bin442.fits', expMap='/scratch/kocevski/574283/expmap_506304001_506908801_4FGL_J0818.7+3153_weekly_bin442.fits', expCube='/scratch/kocevski/574283/ltcube_506304001_506908801_4FGL_J0818.7+3153_weekly_bin442.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/574283/Model_4FGL_J0818.7+3153_weekly_bin442.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0818.7+3153'

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.482e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  2.794e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/574283/ft1_filtered_4FGL_J0818.7+3153_weekly_bin442.fits
Spacecraft file(s): /scratch/kocevski/574283/ft2_4FGL_J0818.7+3153_weekly_bin442.fits
Exposure map: /scratch/kocevski/574283/expmap_506304001_506908801_4FGL_J0818.7+3153_weekly_bin442.fits
Exposure cube: /scratch/kocevski/574283/ltcube_506304001_506908801_4FGL_J0818.7+3153_weekly_bin442.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/574283/Model_4FGL_J0818.7+3153_weekly_bin442.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 15457.8808702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1012       1.0000         .10000E-03   10000.    
     2 'norm      '    10.961       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0992       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    46.029       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .45017       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11344E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .77909       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0993       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.041       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21034       1.0000         .10000E-03   10000.    
    16 'norm      '    .46707       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .73864       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.578       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .44503       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0117       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0367       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15457.73     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2151 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1008        6.4341        .93952E-07   -.85946E-04
   2  norm          10.963        3.4778        .36338E-06    .37038E-03
   3  Prefactor     .10000E-03    9.3097       -.52117E-06** at limit **
   4  Prefactor     2.0869        12.405       -.69224E-05   -.21257E-03
   5  Prefactor     .10000E-03    8.3568        .22748E-06** at limit **
   6  norm          46.029        10.457        .11550E-06    .47962E-04
   7  norm          .10000E-03    84.728       -.15375E-05** at limit **
   8  Prefactor     .45053        1.5600        .10498E-05   -.95954E-03
   9  Prefactor     .10000E-03    40.866        .12424E-05** at limit **
  10  norm          .77919        .29259       -.21570E-07   -.27843E-03
  11  Prefactor     1.0973        31.047       -.92634E-08   -.93585E-04
  12  Prefactor     11.041        14.354        .13560E-06   -.17085E-05
  13  Prefactor     .10000E-03    2.9115        .18780E-07** at limit **
  14  Prefactor     .10000E-03    11.174        .44681E-06** at limit **
  15  Prefactor     .20979        .70316       -.60782E-07   -.17833E-03
  16  norm          .46658        .62768        .55913E-07   -.80352E-04
  17  Prefactor     .10000E-03    4.8199        .42103E-07** at limit **
  18  Prefactor     .76621        3.2536        .78175E-07   -.23677E-03
  19  Prefactor     14.577        10.113       -.54139E-07   -.33551E-04
  20  Prefactor     .44516        1.2782        .66787E-06   -.90328E-03
  21  Normalizat    1.0116        .11976       -.52644E-06    .45532E-04
  22  Prefactor     1.0368        .95045E-01    .17395E-06   -.20024E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.1008
  norm       = 10.9631
  Prefactor  = 0.0001
  Prefactor  = 2.0869
  Prefactor  = 0.0001
  norm       = 46.0285
  norm       = 0.0001
  Prefactor  = 0.450526
  Prefactor  = 0.0001
  norm       = 0.779185
  Prefactor  = 1.0973
  Prefactor  = 11.0409
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.209789
  norm       = 0.466579
  Prefactor  = 0.0001
  Prefactor  = 0.766206
  Prefactor  = 14.5775
  Prefactor  = 0.44516
  Normalizat = 1.01164
  Prefactor  = 1.03678
 **********
 **   18 **HESSE 
 **********

 FCN=   15457.73     FROM HESSE     STATUS=OK           358 CALLS     2509 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1008        6.4453        .19907E-03   -1.5303    
   2  norm          10.963        3.4918        .11960E-03   -1.5046    
   3  Prefactor     .10000E-03    9.3273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0869        13.940        .28485E-03   -1.5419    
   5  Prefactor     .10000E-03    8.3645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          46.029        10.459        .59098E-04   -1.4350    
   7  norm          .10000E-03    84.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .45053        1.7671        .31370E-03   -1.5574    
   9  Prefactor     .10000E-03    41.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .77919        .29104        .39596E-04   -1.5531    
  11  Prefactor     1.0973        33.321        .45357E-03   -1.5498    
  12  Prefactor     11.041        14.353        .12057E-03   -1.5043    
  13  Prefactor     .10000E-03    11.362        .39184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .20979        2.2364        .17328E-02   -1.5616    
  16  norm          .46658        .50353        .10421E-02   -1.5571    
  17  Prefactor     .10000E-03    4.8320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .76621        9.2710        .41197E-02   -1.5533    
  19  Prefactor     14.577        10.141        .10490E-03   -1.4944    
  20  Prefactor     .44516        1.3571        .24993E-03   -1.5575    
  21  Normalizat    1.0116        .13540        .26700E-03   -.92642    
  22  Prefactor     1.0368        .10831        .21736E-03   -.91513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3924e-07
Minuit parameter uncertainties:
  1  6.44642
  2  3.49184
  3  2.01363e-05
  4  10.7906
  5  7.03424e-06
  6  10.4596
  7  0.000136917
  8  1.76735
  9  0.000130069
  10  0.291038
  11  12.1004
  12  14.3572
  13  5.74374e-05
  14  1.74578e-05
  15  1.36965
  16  0.50353
  17  1.30422e-06
  18  5.33116
  19  10.1419
  20  1.35717
  21  0.135446
  22  0.108329
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.104e+01  1.436e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  2.794e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  1.037e+00  1.083e-01  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.012e+00  1.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.86
Ra Dec: 124.695 31.886
Photon Flux Upper Limit: 4.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574283/likelihoodResults_506304001_506908801_4FGL_J0818.7+3153_weekly_bin442.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) = 15457.64431
delta logL = 0.0837883247077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15457.6239
delta logL = 0.104198342511

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4943       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8098       1.0000          .0000       10.000    
     3 'Normalizat'    .99669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0443       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15457.62     FROM MIGRAD    STATUS=FAILED       108 CALLS      314 TOTAL
                     EDM=   .59E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4786        191.22        .10815E-02   -.22212E-03
   2  Index         2.8125        6.3007        .87264E-02    .16880E-02
   3  Normalizat    .99659        .11412        .26878E-03    .88232E-04
   4  Prefactor     1.0444        .79680E-01    .21667E-03   -.14094E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15457.62     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      398 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4786        191.22        .18651E-03   -.22212E-03
   2  Index         2.8125        6.3007        .14711E-02    .16880E-02
   3  Normalizat    .99659        .11412        .12513E-03    .88232E-04
   4  Prefactor     1.0444        .79680E-01    .77716E-04   -.14094E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15457.62     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      429 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4787        197.74        .43259E-04   -.18606E-03
   2  Index         2.8125        6.2742        .17453E-02   -.36348E-04
   3  Normalizat    .99659        .17742        .10751E-04    .80365E-04
   4  Prefactor     1.0444        .12906        .86667E-05   -.10651E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.47868
  Index      = 2.81249
  Normalizat = 0.996592
  Prefactor  = 1.04439
 **********
 **   18 **HESSE 
 **********

 FCN=   15457.62     FROM HESSE     STATUS=OK            25 CALLS      454 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4787        26.356        .17304E-05   -1.5335    
   2  Index         2.8125        2.2575        .69811E-04   -.45282    
   3  Normalizat    .99659        .14032        .21502E-05   -.93145    
   4  Prefactor     1.0444        .11183        .17333E-05   -.91264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.73345e-11
Minuit parameter uncertainties:
  1  19.1619
  2  2.3651
  3  0.140368
  4  0.111852
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574283': 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) = 15457.6238975
delta logL = 0.104200799236

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  3.479e+00  1.916e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.812e+00  2.365e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  2.794e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  1.044e+00  1.119e-01  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  9.966e-01  1.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 124.695 31.886
Photon Index (Free Index): 2.81 +/- 2.37
Photon Flux (Free Index): 2.24e-08 +/- 3.58e-08
Energy Flux (Free Index): 4.98e-06 +/- 5.72e-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/574283/cmap_HighResolution_506304001_506908801_4FGL_J0818.7+3153_weekly_bin442.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-03', comment='SUCCESS', energy_flux2='4.98e-06', dlogl='1.04e-01', photon_flux2='2.24e-08', job_status='DONE', time_completed='2021-07-13 15:23:20.849401', photon_index_error2='2.37', photon_index2='2.81', ts='0.86', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='4.91e-08', energy_flux_error2='5.72e-06', EG='1.01', time_epoch_completed='1626215000.85', return_code='0', job_id='574283', GAL2='1.04', EG2='1.00', return_code2='0', photon_flux_error2='3.58e-08', ts2='1.08', photon_index='2.13' WHERE bin_id='442' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:23:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 574283: <4FGL_J0818.7+3153_weekly_bin442> in cluster <slac> Done

Job <4FGL_J0818.7+3153_weekly_bin442> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Jul 12 07:48:05 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:54:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 12 07:54:58 2021
Terminated at Tue Jul 13 15:23:21 2021
Results reported at Tue Jul 13 15:23:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin442 124.695 31.8862 506304001 506908801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0818.7+3153 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1238.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             51.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1971 sec.
    Turnaround time :                            113716 sec.

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

