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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin413
RA = 124.695, Dec = 31.8862
tmin = 488764801, tmax = 489369601
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='574240', job_status='RUN', time_executed='2021-07-13 14:57:00.499641', time_epoch_executed='1626213420.5' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='413'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574240

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574240/ft1_4FGL_J0818.7+3153_weekly_bin413.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574240/ft2_4FGL_J0818.7+3153_weekly_bin413.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574240/ft1_4FGL_J0818.7+3153_weekly_bin413.fits outfile=/scratch/kocevski/574240/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin413.fits ra=124.695 dec=31.8862 rad=12.0 tmin=488764801.0 tmax=489369601.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 8.63
user 8.02
sys 0.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574240/ft1_filtered_4FGL_J0818.7+3153_weekly_bin413.fits" evtable="EVENTS" scfile=/scratch/kocevski/574240/ft2_4FGL_J0818.7+3153_weekly_bin413.fits sctable="SC_DATA" outfile=/scratch/kocevski/574240/ltcube_488764801_489369601_4FGL_J0818.7+3153_weekly_bin413.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/574240/ft2_4FGL_J0818.7+3153_weekly_bin413.fits
.....................!
real 31.00
user 29.40
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574240/ft1_filtered_4FGL_J0818.7+3153_weekly_bin413.fits evtable="EVENTS" scfile=/scratch/kocevski/574240/ft2_4FGL_J0818.7+3153_weekly_bin413.fits sctable="SC_DATA" expcube=/scratch/kocevski/574240/ltcube_488764801_489369601_4FGL_J0818.7+3153_weekly_bin413.fits outfile=/scratch/kocevski/574240/expmap_488764801_489369601_4FGL_J0818.7+3153_weekly_bin413.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/574240/ltcube_488764801_489369601_4FGL_J0818.7+3153_weekly_bin413.fits
.....................!
real 191.88
user 185.16
sys 5.99

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/574240/ft1_filtered_4FGL_J0818.7+3153_weekly_bin413.fits scfile=/scratch/kocevski/574240/ft2_4FGL_J0818.7+3153_weekly_bin413.fits outfile=/scratch/kocevski/574240/cmap_488764801_489369601_4FGL_J0818.7+3153_weekly_bin413.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574240/ft1_filtered_4FGL_J0818.7+3153_weekly_bin413.fits scfile=/scratch/kocevski/574240/ft2_4FGL_J0818.7+3153_weekly_bin413.fits outfile=/scratch/kocevski/574240/cmap_HighResolution_488764801_489369601_4FGL_J0818.7+3153_weekly_bin413.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.58
user 0.39
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574240/ft1_filtered_4FGL_J0818.7+3153_weekly_bin413.fits evtable="EVENTS" scfile=/scratch/kocevski/574240/ft2_4FGL_J0818.7+3153_weekly_bin413.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574240/Model_4FGL_J0818.7+3153_weekly_bin413.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/574240/ft1_filtered_4FGL_J0818.7+3153_weekly_bin413.fits.....................!
real 119.91
user 118.29
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.3372       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .70887       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10670E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.1634       1.0000         .10000E-03   10000.    
     7 'norm      '    .13747E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .67915       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.398       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9431       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4227       1.0000         .10000E-03   10000.    
    16 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.534       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .57321       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .83086E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4159       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0846       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87533       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=   14147.33     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2112 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1655       -.19265E-06** at limit **
   2  norm          2.3415        2.2265       -.73681E-07    .18631E-03
   3  Prefactor     .10000E-03    4.8576        .75574E-08** at limit **
   4  Prefactor     .68595        21.670       -.69949E-05    .82600E-04
   5  Prefactor     .10000E-03    14.345       -.30413E-06** at limit **
   6  norm          8.1626        8.1214       -.50240E-06    .33534E-04
   7  norm          .10000E-03    46.996       -.89348E-06** at limit **
   8  Prefactor     .10000E-03    1.8276       -.38992E-07** at limit **
   9  Prefactor     .10000E-03    5.9512       -.71046E-07** at limit **
  10  norm          .67911        .26891        .93115E-08    .29211E-03
  11  Prefactor     14.423        14.255       -.12693E-05   -.15903E-03
  12  Prefactor     .10000E-03    3.7565       -.54048E-07** at limit **
  13  Prefactor     .10000E-03    3.1500        .19454E-06** at limit **
  14  Prefactor     2.9301        11.518        .16055E-05    .18770E-03
  15  Prefactor     1.4221        1.5050       -.39623E-06    .55155E-03
  16  norm          .10000E-03    .21319        .17327E-07** at limit **
  17  Prefactor     11.534        10.855        .10208E-06    .56015E-04
  18  Prefactor     .54933        4.2461        .14968E-05    .14737E-03
  19  Prefactor     .10020E-03    4.4121       -.74237E-06** at limit **
  20  Prefactor     1.4157        1.3116        .13210E-07   -.21759E-03
  21  Normalizat    1.0847        .11358        .30434E-06    .23501E-03
  22  Prefactor     .87527        .89502E-01    .34913E-06    .14391E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.34153
  Prefactor  = 0.0001
  Prefactor  = 0.685949
  Prefactor  = 0.0001
  norm       = 8.16259
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.679113
  Prefactor  = 14.4225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.93015
  Prefactor  = 1.42212
  norm       = 0.0001
  Prefactor  = 11.5344
  Prefactor  = 0.549328
  Prefactor  = 0.000100197
  Prefactor  = 1.41567
  Normalizat = 1.08475
  Prefactor  = 0.875271
 **********
 **   18 **HESSE 
 **********

 FCN=   14147.33     FROM HESSE     STATUS=OK           358 CALLS     2470 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3415        2.1902        .15500E-03   -1.5402    
   3  Prefactor     .10000E-03    4.8617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .68595        24.357        .41712E-02   -1.5542    
   5  Prefactor     .10000E-03    14.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.1626        8.1239        .14032E-03   -1.5136    
   7  norm          .10000E-03    47.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.9042        .31350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.9670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .67911        .27106        .37633E-04   -1.5543    
  11  Prefactor     14.423        14.439        .10556E-03   -1.4948    
  12  Prefactor     .10000E-03    3.7613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.1783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9301        12.065        .23675E-03   -1.5366    
  15  Prefactor     1.4221        1.5145        .14527E-03   -1.5469    
  16  norm          .10000E-03    .21324        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.534        10.852        .11796E-03   -1.5029    
  18  Prefactor     .54933        13.356        .40590E-02   -1.5560    
  19  Prefactor     .10020E-03    5.5262        .76184E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.4157        1.3312        .12757E-03   -1.5470    
  21  Normalizat    1.0847        .13150        .23497E-03   -.90243    
  22  Prefactor     .87527        .10327        .21125E-03   -.97011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02064e-09
Minuit parameter uncertainties:
  1  1.112e-05
  2  2.19026
  3  4.97962e-06
  4  8.17803
  5  9.30245e-08
  6  8.12499
  7  0.000142459
  8  6.47802e-07
  9  1.54719e-05
  10  0.271057
  11  14.4422
  12  1.06995e-06
  13  1.66172e-05
  14  11.8955
  15  1.51458
  16  6.32442e-07
  17  10.8534
  18  5.41818
  19  0.00208819
  20  1.33123
  21  0.131541
  22  0.10329
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.070e-06  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:  8.753e-01  1.033e-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.085e+00  1.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/574240/likelihoodResults_488764801_489369601_4FGL_J0818.7+3153_weekly_bin413.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): 102
logL (Free Index) = 14147.331792
delta logL = -0.00126596833979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14147.3305272
delta logL = -1.18737625598e-06

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14147.33     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      236 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10141E-03    22.671        .18142E-02** at limit **
   2  Index         2.0467        5.9807        .50000        .56408E-04
   3  Normalizat    1.0847        .65489E-02    .23497E-03    .12967E-04
   4  Prefactor     .87527        .53741E-02    .21125E-03    .49297E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101407
  Index      = 2.04674
  Normalizat = 1.08475
  Prefactor  = 0.875271
 **********
 **   18 **HESSE 
 **********

 FCN=   14147.33     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10141E-03    106.47        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0467        5.8335        .50000       -.63187    
   3  Normalizat    1.0847        .14526E-01    .93987E-05   -.90243    
   4  Prefactor     .87527        .11919E-01    .84499E-05   -.97011    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.63915e-08
Minuit parameter uncertainties:
  1  0.0245197
  2  226.654
  3  0.0145257
  4  0.0119193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574240': 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) = 14147.3305249
delta logL = 1.17170748126e-06

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.014e-04  2.452e-02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.047e+00  2.267e+02  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:  8.753e-01  1.192e-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:  1.085e+00  1.453e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 124.695 31.886

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/574240/cmap_HighResolution_488764801_489369601_4FGL_J0818.7+3153_weekly_bin413.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-03', job_status='DONE', photon_flux_upper_limit='2.08e-08', time_completed='2021-07-13 15:24:18.013281', job_id='574240', GAL2='0.88', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1626215058.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.17e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='413' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:24:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 574240: <4FGL_J0818.7+3153_weekly_bin413> in cluster <slac> Done

Job <4FGL_J0818.7+3153_weekly_bin413> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Jul 12 07:48:01 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:54:13 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:13 2021
Terminated at Tue Jul 13 15:24:18 2021
Results reported at Tue Jul 13 15:24:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin413 124.695 31.8862 488764801 489369601 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 :                                   1114.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             50.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2041 sec.
    Turnaround time :                            113777 sec.

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

