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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin445
RA = 124.695, Dec = 31.8862
tmin = 508118401, tmax = 508723201
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='574287', job_status='RUN', time_executed='2021-07-13 14:57:05.779004', time_epoch_executed='1626213425.78' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574287

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574287/ft1_4FGL_J0818.7+3153_weekly_bin445.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574287/ft2_4FGL_J0818.7+3153_weekly_bin445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574287/ft1_4FGL_J0818.7+3153_weekly_bin445.fits outfile=/scratch/kocevski/574287/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin445.fits ra=124.695 dec=31.8862 rad=12.0 tmin=508118401.0 tmax=508723201.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.87
user 7.43
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574287/ft2_4FGL_J0818.7+3153_weekly_bin445.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/574287/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin445.fits evtable="EVENTS" outfile="/scratch/kocevski/574287/ft1_filtered_4FGL_J0818.7+3153_weekly_bin445.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.56
user 0.37
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574287/ft1_filtered_4FGL_J0818.7+3153_weekly_bin445.fits" evtable="EVENTS" scfile=/scratch/kocevski/574287/ft2_4FGL_J0818.7+3153_weekly_bin445.fits sctable="SC_DATA" outfile=/scratch/kocevski/574287/ltcube_508118401_508723201_4FGL_J0818.7+3153_weekly_bin445.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/574287/ft2_4FGL_J0818.7+3153_weekly_bin445.fits
.....................!
real 29.18
user 28.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574287/ft1_filtered_4FGL_J0818.7+3153_weekly_bin445.fits evtable="EVENTS" scfile=/scratch/kocevski/574287/ft2_4FGL_J0818.7+3153_weekly_bin445.fits sctable="SC_DATA" expcube=/scratch/kocevski/574287/ltcube_508118401_508723201_4FGL_J0818.7+3153_weekly_bin445.fits outfile=/scratch/kocevski/574287/expmap_508118401_508723201_4FGL_J0818.7+3153_weekly_bin445.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/574287/ltcube_508118401_508723201_4FGL_J0818.7+3153_weekly_bin445.fits
.....................!
real 192.62
user 186.51
sys 5.45

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/574287/ft1_filtered_4FGL_J0818.7+3153_weekly_bin445.fits scfile=/scratch/kocevski/574287/ft2_4FGL_J0818.7+3153_weekly_bin445.fits outfile=/scratch/kocevski/574287/cmap_508118401_508723201_4FGL_J0818.7+3153_weekly_bin445.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.60
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574287/ft1_filtered_4FGL_J0818.7+3153_weekly_bin445.fits scfile=/scratch/kocevski/574287/ft2_4FGL_J0818.7+3153_weekly_bin445.fits outfile=/scratch/kocevski/574287/cmap_HighResolution_508118401_508723201_4FGL_J0818.7+3153_weekly_bin445.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.59
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574287/ft1_filtered_4FGL_J0818.7+3153_weekly_bin445.fits evtable="EVENTS" scfile=/scratch/kocevski/574287/ft2_4FGL_J0818.7+3153_weekly_bin445.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574287/Model_4FGL_J0818.7+3153_weekly_bin445.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/574287/ft1_filtered_4FGL_J0818.7+3153_weekly_bin445.fits.....................!
real 128.06
user 125.59
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/574287/ft1_filtered_4FGL_J0818.7+3153_weekly_bin445.fits', '/scratch/kocevski/574287/ft2_4FGL_J0818.7+3153_weekly_bin445.fits', expMap='/scratch/kocevski/574287/expmap_508118401_508723201_4FGL_J0818.7+3153_weekly_bin445.fits', expCube='/scratch/kocevski/574287/ltcube_508118401_508723201_4FGL_J0818.7+3153_weekly_bin445.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/574287/Model_4FGL_J0818.7+3153_weekly_bin445.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/574287/ft1_filtered_4FGL_J0818.7+3153_weekly_bin445.fits
Spacecraft file(s): /scratch/kocevski/574287/ft2_4FGL_J0818.7+3153_weekly_bin445.fits
Exposure map: /scratch/kocevski/574287/expmap_508118401_508723201_4FGL_J0818.7+3153_weekly_bin445.fits
Exposure cube: /scratch/kocevski/574287/ltcube_508118401_508723201_4FGL_J0818.7+3153_weekly_bin445.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/574287/Model_4FGL_J0818.7+3153_weekly_bin445.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) = 15470.0221821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20539E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.256       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.369       1.0000         .10000E-03   10000.    
     6 'norm      '    33.674       1.0000         .10000E-03   10000.    
     7 'norm      '    51.367       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9191       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.133       1.0000         .10000E-03   10000.    
    10 'norm      '    .36573       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0248       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1049       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.900       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.234       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7534       1.0000         .10000E-03   10000.    
    16 'norm      '    1.3237       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .53331E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0692       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20285E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1669       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91434       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0498       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=   15470.02     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2459 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.000        .44200E-06** at limit **
   2  norm          .10000E-03    1.2443       -.42550E-07** at limit **
   3  Prefactor     .10000E-03    13.574       -.36143E-07** at limit **
   4  Prefactor     15.262        9.1857        .54709E-06    .29060E-03
   5  Prefactor     11.370        21.026        .13461E-06   -.32723E-04
   6  norm          33.673        8.9524        .78211E-07   -.10141E-03
   7  norm          51.353        42.335       -.11477E-05   -.34578E-03
   8  Prefactor     2.9194        2.7924        .62423E-06    .76861E-03
   9  Prefactor     14.139        15.055       -.30902E-06    .21807E-03
  10  norm          .36571        .25489        .23032E-07    .87959E-03
  11  Prefactor     .94505        29.406       -.44564E-05    .46797E-03
  12  Prefactor     5.1053        12.991        .24655E-06    .99439E-05
  13  Prefactor     10.899        7.5737       -.91683E-07    .88628E-04
  14  Prefactor     15.236        12.210       -.27504E-06   -.97413E-04
  15  Prefactor     1.7534        1.4639        .17169E-06    .52876E-03
  16  norm          1.3233        .82547        .89988E-07    .53482E-03
  17  Prefactor     .10006E-03    6.1493       -.13209E-05** at limit **
  18  Prefactor     6.0732        6.1011        .32826E-06    .10735E-03
  19  Prefactor     .10010E-03    6.1544        .12174E-05** at limit **
  20  Prefactor     1.1669        1.6031        .82825E-06    .13693E-02
  21  Normalizat    .91434        .11973       -.10721E-05   -.35539E-03
  22  Prefactor     1.0498        .95350E-01   -.28166E-07   -.44424E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2616
  Prefactor  = 11.37
  norm       = 33.6725
  norm       = 51.3529
  Prefactor  = 2.91937
  Prefactor  = 14.1385
  norm       = 0.365711
  Prefactor  = 0.945051
  Prefactor  = 5.10527
  Prefactor  = 10.8988
  Prefactor  = 15.2364
  Prefactor  = 1.75341
  norm       = 1.32335
  Prefactor  = 0.000100059
  Prefactor  = 6.07324
  Prefactor  = 0.000100097
  Prefactor  = 1.16693
  Normalizat = 0.914344
  Prefactor  = 1.04977
 **********
 **   18 **HESSE 
 **********

 FCN=   15470.02     FROM HESSE     STATUS=OK           368 CALLS     2827 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.708        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.2775        .26981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.262        9.1994        .51271E-03   -1.4926    
   5  Prefactor     11.370        20.982        .11882E-03   -1.5033    
   6  norm          33.673        8.9649        .69055E-04   -1.4547    
   7  norm          51.353        42.704        .27979E-03   -1.4274    
   8  Prefactor     2.9194        2.7947        .19125E-03   -1.5366    
   9  Prefactor     14.139        15.899        .10654E-03   -1.4956    
  10  norm          .36571        .23549        .49896E-03   -1.5587    
  11  Prefactor     .94505        178.66        .85335E-02   -1.5514    
  12  Prefactor     5.1053        12.968        .17795E-03   -1.5256    
  13  Prefactor     10.899        7.4708        .12135E-03   -1.5048    
  14  Prefactor     15.236        12.187        .10262E-03   -1.4927    
  15  Prefactor     1.7534        1.4514        .12579E-03   -1.5443    
  16  norm          1.3233        .81205        .79056E-04   -1.5478    
  17  Prefactor     .10006E-03    37.908        .54266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.0732        6.0796        .16297E-03   -1.5215    
  19  Prefactor     .10010E-03    5.9516        .87141E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1669        1.6076        .18327E-03   -1.5492    
  21  Normalizat    .91434        .13838        .27249E-03   -.95958    
  22  Prefactor     1.0498        .10955        .21173E-03   -.91088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22555e-08
Minuit parameter uncertainties:
  1  0.000123051
  2  7.88064e-07
  3  1.76089e-07
  4  9.2003
  5  20.9951
  6  8.96525
  7  42.7298
  8  2.79484
  9  15.9033
  10  0.235492
  11  26.0656
  12  12.9753
  13  7.47148
  14  12.1889
  15  1.45143
  16  0.812053
  17  0.0030035
  18  6.08018
  19  0.00151673
  20  1.60762
  21  0.138434
  22  0.109574
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  5.105e+00  1.298e+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.050e+00  1.096e-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.143e-01  1.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/574287/likelihoodResults_508118401_508723201_4FGL_J0818.7+3153_weekly_bin445.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) = 15469.379905
delta logL = 0.635725785613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15469.3316832
delta logL = 0.683947639167

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1338       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3446       1.0000          .0000       10.000    
     3 'Normalizat'    .88032       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0642       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.

 FCN=   15469.33     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      270 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1298        13.678        .10951E-01    .23370E-02
   2  Index         3.3456        1.7396        .10065        .44749E-03
   3  Normalizat    .88035        .25547E-01    .44650E-01    .44322E-04
   4  Prefactor     1.0642        .20955E-01    .39142E-01    .10789E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.12981
  Index      = 3.3456
  Normalizat = 0.880346
  Prefactor  = 1.06418
 **********
 **   18 **HESSE 
 **********

 FCN=   15469.33     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      303 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1298        41.580        .11126E-03   -1.5495    
   2  Index         3.3456        3.7763        .56751E-02   -.33724    
   3  Normalizat    .88035        .12007        .27713E-03   -.97154    
   4  Prefactor     1.0642        .95243E-01    .21041E-03   -.90620    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.37703e-09
Minuit parameter uncertainties:
  1  13.7177
  2  4.378
  3  0.120103
  4  0.0952578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574287': 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): 102
logL (Free Index) = 15469.3316821
delta logL = 0.683948712496

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.130e+00  1.372e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  3.346e+00  4.378e+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.064e+00  9.526e-02  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:  8.803e-01  1.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 124.695 31.886
Photon Index (Free Index): 3.35 +/- 4.38
Photon Flux (Free Index): 3.33e-08 +/- 3.48e-08
Energy Flux (Free Index): 5.79e-06 +/- 6.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/574287/cmap_HighResolution_508118401_508723201_4FGL_J0818.7+3153_weekly_bin445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.20e-03', comment='SUCCESS', energy_flux2='5.79e-06', dlogl='6.84e-01', photon_flux2='3.33e-08', job_status='DONE', time_completed='2021-07-13 15:21:13.160388', photon_index_error2='4.38', photon_index2='3.35', ts='0.19', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='4.22e-08', energy_flux_error2='6.72e-06', EG='0.91', time_epoch_completed='1626214873.16', return_code='0', job_id='574287', GAL2='1.06', EG2='0.88', return_code2='102', photon_flux_error2='3.48e-08', ts2='1.63', photon_index='2.13' WHERE bin_id='445' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:21:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 574287: <4FGL_J0818.7+3153_weekly_bin445> in cluster <slac> Done

Job <4FGL_J0818.7+3153_weekly_bin445> 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) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:55:01 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:55:01 2021
Terminated at Tue Jul 13 15:21:14 2021
Results reported at Tue Jul 13 15:21:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin445 124.695 31.8862 508118401 508723201 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 :                                   1254.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             50.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1837 sec.
    Turnaround time :                            113589 sec.

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

