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 93 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 = 17062
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin258
RA = 124.557, Dec = 42.3819
tmin = 395020801, tmax = 395625601
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='568978', job_status='RUN', time_executed='2021-07-12 07:38:15.754561', time_epoch_executed='1626100695.75' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='258'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/568978

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

Retrieving the FT1 file...

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

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

Retrieving 120 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/568978/ft1_4FGL_J0818.2+4222_weekly_bin258.fits


Retrieving the FT1 file...

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

Retrieving 120 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/568978/ft2_4FGL_J0818.2+4222_weekly_bin258.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/568978/ft1_4FGL_J0818.2+4222_weekly_bin258.fits outfile=/scratch/kocevski/568978/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin258.fits ra=124.557 dec=42.3819 rad=12.0 tmin=395020801.0 tmax=395625601.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 15.75
user 13.16
sys 0.42

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/568978/ft2_4FGL_J0818.2+4222_weekly_bin258.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/568978/ft2_4FGL_J0818.2+4222_weekly_bin258.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/568978/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin258.fits evtable="EVENTS" outfile="/scratch/kocevski/568978/ft1_filtered_4FGL_J0818.2+4222_weekly_bin258.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 4.11
user 0.41
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/568978/ft1_filtered_4FGL_J0818.2+4222_weekly_bin258.fits" evtable="EVENTS" scfile=/scratch/kocevski/568978/ft2_4FGL_J0818.2+4222_weekly_bin258.fits sctable="SC_DATA" outfile=/scratch/kocevski/568978/ltcube_395020801_395625601_4FGL_J0818.2+4222_weekly_bin258.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/568978/ft2_4FGL_J0818.2+4222_weekly_bin258.fits
.....................!
real 30.78
user 29.56
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/568978/ft1_filtered_4FGL_J0818.2+4222_weekly_bin258.fits evtable="EVENTS" scfile=/scratch/kocevski/568978/ft2_4FGL_J0818.2+4222_weekly_bin258.fits sctable="SC_DATA" expcube=/scratch/kocevski/568978/ltcube_395020801_395625601_4FGL_J0818.2+4222_weekly_bin258.fits outfile=/scratch/kocevski/568978/expmap_395020801_395625601_4FGL_J0818.2+4222_weekly_bin258.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/568978/ltcube_395020801_395625601_4FGL_J0818.2+4222_weekly_bin258.fits
.....................!
real 200.22
user 187.31
sys 4.48

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

Setting source of interest to:
4FGL J0818.2+4222 @ 124.557 42.3819

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/568978/ft1_filtered_4FGL_J0818.2+4222_weekly_bin258.fits scfile=/scratch/kocevski/568978/ft2_4FGL_J0818.2+4222_weekly_bin258.fits outfile=/scratch/kocevski/568978/cmap_395020801_395625601_4FGL_J0818.2+4222_weekly_bin258.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.557 yref=42.3819 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 1.41
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/568978/ft1_filtered_4FGL_J0818.2+4222_weekly_bin258.fits scfile=/scratch/kocevski/568978/ft2_4FGL_J0818.2+4222_weekly_bin258.fits outfile=/scratch/kocevski/568978/cmap_HighResolution_395020801_395625601_4FGL_J0818.2+4222_weekly_bin258.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.557 yref=42.3819 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 1.78
user 0.43
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/568978/ft1_filtered_4FGL_J0818.2+4222_weekly_bin258.fits evtable="EVENTS" scfile=/scratch/kocevski/568978/ft2_4FGL_J0818.2+4222_weekly_bin258.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/568978/Model_4FGL_J0818.2+4222_weekly_bin258.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/568978/ft1_filtered_4FGL_J0818.2+4222_weekly_bin258.fits.....................!
real 166.11
user 137.11
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/568978/ft1_filtered_4FGL_J0818.2+4222_weekly_bin258.fits', '/scratch/kocevski/568978/ft2_4FGL_J0818.2+4222_weekly_bin258.fits', expMap='/scratch/kocevski/568978/expmap_395020801_395625601_4FGL_J0818.2+4222_weekly_bin258.fits', expCube='/scratch/kocevski/568978/ltcube_395020801_395625601_4FGL_J0818.2+4222_weekly_bin258.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/568978/Model_4FGL_J0818.2+4222_weekly_bin258.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0818.2+4222'

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.121e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.996e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  8.301e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/568978/ft1_filtered_4FGL_J0818.2+4222_weekly_bin258.fits
Spacecraft file(s): /scratch/kocevski/568978/ft2_4FGL_J0818.2+4222_weekly_bin258.fits
Exposure map: /scratch/kocevski/568978/expmap_395020801_395625601_4FGL_J0818.2+4222_weekly_bin258.fits
Exposure cube: /scratch/kocevski/568978/ltcube_395020801_395625601_4FGL_J0818.2+4222_weekly_bin258.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/568978/Model_4FGL_J0818.2+4222_weekly_bin258.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) = 16056.8529922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .54738       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.766       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.214       1.0000         .10000E-03   10000.    
     6 'norm      '    .26745E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .57713       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6809       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10812E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4390       1.0000         .10000E-03   10000.    
    11 'norm      '    4.5753       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7649       1.0000         .10000E-03   10000.    
    13 'norm      '    1.7201       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6041       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.2596       1.0000         .10000E-03   10000.    
    21 'norm      '    6.2022       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15456E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1058       1.0000         .10000E-03   10000.    
    24 'Prefactor '    24.922       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.7450       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .22669E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .94457       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1972       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16056.78     FROM MIGRAD    STATUS=CONVERGED    813 CALLS     3471 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52135        2.6014        .41424E-06   -.31499E-03
   2  Prefactor     .10000E-03    2.5285        .42874E-07** at limit **
   3  Prefactor     38.758        22.895        .22676E-06    .25834E-04
   4  Prefactor     .10000E-03    4.5406       -.24603E-06** at limit **
   5  Prefactor     19.209        12.875       -.73470E-06   -.22840E-03
   6  norm          .10036E-03    3.3885       -.14395E-07** at limit **
   7  norm          .57611        1.7119        .16705E-05   -.48181E-03
   8  Prefactor     1.6764        4.4142        .10014E-05   -.19588E-03
   9  Prefactor     .10000E-03    71.991        .12464E-05** at limit **
  10  Prefactor     2.4385        3.7363        .73710E-06   -.21836E-03
  11  norm          4.5750        2.6757        .40232E-07   -.75926E-04
  12  norm          1.7648        .93283       -.11930E-07   -.58598E-04
  13  norm          1.7199        .47683       -.10683E-07    .77103E-04
  14  Prefactor     .10000E-03    14.104        .12076E-06** at limit **
  15  Prefactor     .10000E-03    4.3014       -.78096E-08** at limit **
  16  Prefactor     .10000E-03    .92598       -.15126E-07** at limit **
  17  Prefactor     1.5827        28.336       -.66465E-05   -.17862E-03
  18  Prefactor     .10000E-03    1.7616       -.89126E-07** at limit **
  19  Prefactor     .10000E-03    1.6628        .19188E-07** at limit **
  20  norm          2.2588        3.5882        .41614E-06   -.28556E-03
  21  norm          6.2017        3.6045        .12078E-07   -.65318E-04
  22  Prefactor     .10000E-03    .59881       -.14743E-07** at limit **
  23  Prefactor     2.1051        103.11        .72502E-06   -.55779E-05
  24  Prefactor     24.922        21.189        .12155E-06    .25751E-05
  25  Prefactor     2.7447        2.0296        .13926E-06   -.10810E-03
  26  Prefactor     .10000E-03    24.209        .41789E-06** at limit **
  27  norm          .10000E-03    .64435E-01    .14074E-07** at limit **
  28  Prefactor     .10000E-03    .64865        .15631E-07** at limit **
  29  Normalizat    .94459        .12929       -.72465E-07   -.18144E-03
  30  Prefactor     1.1973        .98337E-01   -.59844E-06   -.16092E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.521351
  Prefactor  = 0.0001
  Prefactor  = 38.7584
  Prefactor  = 0.0001
  Prefactor  = 19.2095
  norm       = 0.000100363
  norm       = 0.576111
  Prefactor  = 1.67643
  Prefactor  = 0.0001
  Prefactor  = 2.43851
  norm       = 4.57502
  norm       = 1.76477
  norm       = 1.71993
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.58272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.25879
  norm       = 6.20169
  Prefactor  = 0.0001
  Prefactor  = 2.10506
  Prefactor  = 24.9223
  Prefactor  = 2.74466
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.944588
  Prefactor  = 1.19726
 **********
 **   18 **HESSE 
 **********

 FCN=   16056.78     FROM HESSE     STATUS=OK           606 CALLS     4077 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52135        9.4751        .39123E-02   -1.5564    
   2  Prefactor     .10000E-03    2.5363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     38.758        22.867        .64375E-04   -1.4462    
   4  Prefactor     .10000E-03    4.5756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.209        12.882        .91373E-04   -1.4831    
   6  norm          .10036E-03    4.1073        .77412E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .57611        1.7586        .27821E-03   -1.5556    
   8  Prefactor     1.6764        4.3786        .32491E-03   -1.5449    
   9  Prefactor     .10000E-03    72.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4385        3.7109        .26198E-03   -1.5396    
  11  norm          4.5750        2.6730        .15124E-03   -1.5280    
  12  norm          1.7648        .93651        .85081E-04   -1.5442    
  13  norm          1.7199        .47388        .43065E-04   -1.5446    
  14  Prefactor     .10000E-03    14.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.3210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.1433        .23224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.5827        32.790        .33464E-03   -1.5456    
  18  Prefactor     .10000E-03    1.7645        .16418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.6712        .15956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.2588        3.5757        .27329E-03   -1.5407    
  21  norm          6.2017        3.5983        .16119E-03   -1.5210    
  22  Prefactor     .10000E-03    4.0795        .18395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.1051        102.95        .28434E-03   -1.5418    
  24  Prefactor     24.922        21.161        .80241E-04   -1.4709    
  25  Prefactor     2.7447        2.0312        .14792E-03   -1.5377    
  26  Prefactor     .10000E-03    25.069        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .74703E-01    .62616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    .65581        .99574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .94459        .14485        .30096E-03   -.94911    
  30  Prefactor     1.1973        .11218        .21414E-03   -.86416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.84192e-08
Minuit parameter uncertainties:
  1  4.44554
  2  1.31757e-06
  3  22.8723
  4  2.82007e-05
  5  12.8841
  6  0.00244145
  7  1.75876
  8  4.37946
  9  0.000241164
  10  3.71127
  11  2.67305
  12  0.936518
  13  0.473884
  14  8.24854e-06
  15  1.99175e-05
  16  4.37449e-05
  17  14.4164
  18  5.60396e-06
  19  4.56543e-07
  20  3.57604
  21  3.59839
  22  7.04787e-05
  23  29.4953
  24  21.167
  25  2.03128
  26  2.64588e-05
  27  4.2744e-08
  28  2.05187e-07
  29  0.144914
  30  0.112206
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.720e+00  4.739e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.996e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  8.301e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  1.197e+00  1.122e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  9.446e-01  1.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 52.52
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 8.59e-08 +/- 2.36e-08
Energy Flux (Fixed Index): 4.84e-05 +/- 1.33e-05

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) = 16056.1391936
delta logL = 0.641705119659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16056.1358021
delta logL = 0.645096648495

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6319       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7114       1.0000          .0000       5.0000    
     3 'Normalizat'    .96268       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1929       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16056.14     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      208 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6319        .48632        .82749E-02   -.39579E-02
   2  alpha         1.7114        .22401        .27432        .58060E-04
   3  Normalizat    .96269        .12160        .67491E-01    .23797E-03
   4  Prefactor     1.1929        .96150E-01    .34801E-01    .63308E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.63191
  alpha      = 1.71136
  Normalizat = 0.962686
  Prefactor  = 1.19288
 **********
 **   18 **HESSE 
 **********

 FCN=   16056.14     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6319        .49355        .44288E-04   -1.5452    
   2  alpha         1.7114        .25034        .10968E-01   -.32094    
   3  Normalizat    .96269        .13792        .29855E-03   -.94291    
   4  Prefactor     1.1929        .10935        .21457E-03   -.86551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98318e-10
Minuit parameter uncertainties:
  1  0.493552
  2  0.250803
  3  0.137966
  4  0.109371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/568978': 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) = 16056.1358021
delta logL = 0.645096648768

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.632e+00  4.936e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.711e+00  2.508e-01  0.000e+00  5.000e+00 ( 1.000e+00)
285         beta:  8.301e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  1.193e+00  1.094e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  9.627e-01  1.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 53.84
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.71 +/- 0.25
Photon Flux (Free Index): 6.37e-08 +/- 2.56e-08
Energy Flux (Free Index): 6.37e-05 +/- 2.57e-05

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/568978/cmap_HighResolution_395020801_395625601_4FGL_J0818.2+4222_weekly_bin258.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.59e-08', energy_flux2='6.37e-05', photon_flux_error='2.36e-08', dlogl='6.45e-01', energy_flux='4.84e-05', photon_flux2='6.37e-08', job_status='DONE', time_completed='2021-07-13 15:10:14.365914', photon_index_error2='0.25', photon_index2='1.71', ts='52.52', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='2.57e-05', EG='0.94', time_epoch_completed='1626214214.37', return_code='0', job_id='568978', GAL2='1.19', EG2='0.96', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='2.56e-08', ts2='53.84', photon_index='2.00' WHERE bin_id='258' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:10:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0013>
Subject: Job 568978: <4FGL_J0818.2+4222_weekly_bin258> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin258> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Jul 12 07:31:43 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:31:52 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:31:52 2021
Terminated at Tue Jul 13 15:10:15 2021
Results reported at Tue Jul 13 15:10:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin258 124.557 42.3819 395020801 395625601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0818.2+4222 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1516.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             142.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1987 sec.
    Turnaround time :                            113912 sec.

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

