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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin522
RA = 124.557, Dec = 42.3819
tmin = 554688001, tmax = 555292801
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='571599', job_status='RUN', time_executed='2021-07-12 07:46:30.828255', time_epoch_executed='1626101190.83' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='522'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571599

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571599/ft1_4FGL_J0818.2+4222_weekly_bin522.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571599/ft2_4FGL_J0818.2+4222_weekly_bin522.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571599/ft1_4FGL_J0818.2+4222_weekly_bin522.fits outfile=/scratch/kocevski/571599/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin522.fits ra=124.557 dec=42.3819 rad=12.0 tmin=554688001.0 tmax=555292801.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 46.19
user 7.64
sys 0.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/571599/ft2_4FGL_J0818.2+4222_weekly_bin522.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/571599/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin522.fits evtable="EVENTS" outfile="/scratch/kocevski/571599/ft1_filtered_4FGL_J0818.2+4222_weekly_bin522.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 3.74
user 0.39
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571599/ft1_filtered_4FGL_J0818.2+4222_weekly_bin522.fits" evtable="EVENTS" scfile=/scratch/kocevski/571599/ft2_4FGL_J0818.2+4222_weekly_bin522.fits sctable="SC_DATA" outfile=/scratch/kocevski/571599/ltcube_554688001_555292801_4FGL_J0818.2+4222_weekly_bin522.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/571599/ft2_4FGL_J0818.2+4222_weekly_bin522.fits
.....................!
real 46.56
user 28.05
sys 0.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571599/ft1_filtered_4FGL_J0818.2+4222_weekly_bin522.fits evtable="EVENTS" scfile=/scratch/kocevski/571599/ft2_4FGL_J0818.2+4222_weekly_bin522.fits sctable="SC_DATA" expcube=/scratch/kocevski/571599/ltcube_554688001_555292801_4FGL_J0818.2+4222_weekly_bin522.fits outfile=/scratch/kocevski/571599/expmap_554688001_555292801_4FGL_J0818.2+4222_weekly_bin522.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/571599/ltcube_554688001_555292801_4FGL_J0818.2+4222_weekly_bin522.fits
.....................!
real 210.49
user 186.57
sys 4.17

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/571599/ft1_filtered_4FGL_J0818.2+4222_weekly_bin522.fits scfile=/scratch/kocevski/571599/ft2_4FGL_J0818.2+4222_weekly_bin522.fits outfile=/scratch/kocevski/571599/cmap_554688001_555292801_4FGL_J0818.2+4222_weekly_bin522.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.58
user 0.42
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571599/ft1_filtered_4FGL_J0818.2+4222_weekly_bin522.fits scfile=/scratch/kocevski/571599/ft2_4FGL_J0818.2+4222_weekly_bin522.fits outfile=/scratch/kocevski/571599/cmap_HighResolution_554688001_555292801_4FGL_J0818.2+4222_weekly_bin522.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.18
user 0.43
sys 0.19

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/571599/ft1_filtered_4FGL_J0818.2+4222_weekly_bin522.fits', '/scratch/kocevski/571599/ft2_4FGL_J0818.2+4222_weekly_bin522.fits', expMap='/scratch/kocevski/571599/expmap_554688001_555292801_4FGL_J0818.2+4222_weekly_bin522.fits', expCube='/scratch/kocevski/571599/ltcube_554688001_555292801_4FGL_J0818.2+4222_weekly_bin522.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/571599/Model_4FGL_J0818.2+4222_weekly_bin522.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/571599/ft1_filtered_4FGL_J0818.2+4222_weekly_bin522.fits
Spacecraft file(s): /scratch/kocevski/571599/ft2_4FGL_J0818.2+4222_weekly_bin522.fits
Exposure map: /scratch/kocevski/571599/expmap_554688001_555292801_4FGL_J0818.2+4222_weekly_bin522.fits
Exposure cube: /scratch/kocevski/571599/ltcube_554688001_555292801_4FGL_J0818.2+4222_weekly_bin522.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/571599/Model_4FGL_J0818.2+4222_weekly_bin522.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) = 25069.9743308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.882       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9656       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3097       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1195       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .72998       1.0000         .10000E-03   10000.    
     6 'norm      '    .10410E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5296       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4566       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7716       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6503       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3643       1.0000         .10000E-03   10000.    
    13 'norm      '    .77652       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0949       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0201       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.416       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4683       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1909       1.0000         .10000E-03   10000.    
    20 'norm      '    5.3196       1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .17186E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.9876       1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.162       1.0000         .10000E-03   10000.    
    27 'norm      '    .99799       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1768       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1305       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   25069.84     FROM MIGRAD    STATUS=CONVERGED     91 CALLS     2805 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.881        1.0010        .24814E-08    .11321E-03
   2  Prefactor     2.9659        1.0190       -.75640E-07    .13060E-03
   3  Prefactor     8.3101        1.0047       -.29711E-07    .22838E-03
   4  Prefactor     1.1197        3.1936        .38346E-06    .37838E-04
   5  Prefactor     .72872        1.1925        .16527E-06   -.92690E-04
   6  norm          .10000E-03    4.7299       -.60292E-06** at limit **
   7  norm          1.5295        .93462        .59669E-07    .39936E-04
   8  Prefactor     2.4558        3.7738        .32686E-06   -.95946E-03
   9  Prefactor     .10000E-03    9.7088       -.21339E-05** at limit **
  10  Prefactor     2.7710        1.7023       -.12201E-05   -.15851E-02
  11  norm          1.6502        2.0395       -.16970E-07   -.21218E-04
  12  norm          2.3644        .94849        .12512E-06    .13232E-03
  13  norm          .77664        .34648        .72908E-08   -.41197E-04
  14  Prefactor     4.0949        1.0090       -.33963E-07    .12260E-03
  15  Prefactor     3.0222        1.0483       -.37675E-07   -.27835E-04
  16  Prefactor     .10000E-03    1.3411       -.37975E-06** at limit **
  17  Prefactor     31.404        1.5860        .22031E-06   -.39255E-02
  18  Prefactor     2.4718        3.2807        .26852E-05   -.16164E-02
  19  Prefactor     5.1909        1.2583       -.23115E-06    .17827E-03
  20  norm          5.3196        2.2419       -.14353E-05   -.34426E-02
  21  norm          .10000E-03    2.0163        .58985E-07** at limit **
  22  Prefactor     .10000E-03    .97374       -.27194E-06** at limit **
  23  Prefactor     .10000E-03    6.3015        .27854E-07** at limit **
  24  Prefactor     .10000E-03    92.165       -.69500E-06** at limit **
  25  Prefactor     1.9888        1.8097       -.38116E-06   -.14367E-03
  26  Prefactor     18.163        1.2014        .20689E-06   -.23936E-02
  27  norm          .99804        .31659       -.32837E-07   -.14126E-03
  28  Prefactor     .10000E-03    6.2802        .73545E-06** at limit **
  29  Normalizat    1.1767        .11961        .85041E-07   -.19321E-04
  30  Prefactor     1.1306        .92987E-01    .14091E-08   -.29999E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 20.8814
  Prefactor  = 2.96589
  Prefactor  = 8.31005
  Prefactor  = 1.11968
  Prefactor  = 0.728718
  norm       = 0.000100001
  norm       = 1.52951
  Prefactor  = 2.45578
  Prefactor  = 0.0001
  Prefactor  = 2.77102
  norm       = 1.65018
  norm       = 2.36441
  norm       = 0.776638
  Prefactor  = 4.09493
  Prefactor  = 3.02223
  Prefactor  = 0.0001
  Prefactor  = 31.4036
  Prefactor  = 2.4718
  Prefactor  = 5.19091
  norm       = 5.3196
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 1.98877
  Prefactor  = 18.1625
  norm       = 0.998036
  Prefactor  = 0.0001
  Normalizat = 1.17666
  Prefactor  = 1.13061
 **********
 **   18 **HESSE 
 **********

 FCN=   25069.84     FROM HESSE     STATUS=OK           694 CALLS     3499 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.881        5.3901        .21913E-02   -1.4794    
   2  Prefactor     2.9659        5.5140        .58948E-02   -1.5364    
   3  Prefactor     8.3101        13.064        .34768E-02   -1.5131    
   4  Prefactor     1.1197        3.3712        .11103E-01   -1.5496    
   5  Prefactor     .72872        2.7753        .12176       -1.5537    
   6  norm          .10000E-03    10.204        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5295        .93753        .86285E-02   -1.5461    
   8  Prefactor     2.4558        4.2310        .65239E-02   -1.5395    
   9  Prefactor     .10000E-03    9.8866        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7710        2.9831        .61114E-02   -1.5375    
  11  norm          1.6502        2.0725        .82167E-02   -1.5451    
  12  norm          2.3644        .95764        .66626E-02   -1.5400    
  13  norm          .77664        .38832        .12352E-01   -1.5532    
  14  Prefactor     4.0949        14.616        .49807E-02   -1.5303    
  15  Prefactor     3.0222        7.8358        .58382E-02   -1.5360    
  16  Prefactor     .10000E-03    .57983        .37085E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.404        18.072        .17872E-02   -1.4587    
  18  Prefactor     2.4718        5.1866        .65070E-02   -1.5394    
  19  Prefactor     5.1909        4.0572        .44110E-02   -1.5252    
  20  norm          5.3196        3.0204        .43564E-02   -1.5247    
  21  norm          .10000E-03    1.9524        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .46508        .36246E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.782        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.9042        .16314       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.9888        1.8803        .73477E-02   -1.5426    
  26  Prefactor     18.163        13.557        .23495E-02   -1.4855    
  27  norm          .99804        .35714        .10945E-01   -1.5508    
  28  Prefactor     .10000E-03    .82327        .71646E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1767        .10820        .65564E-01   -.87327    
  30  Prefactor     1.1306        .80630E-01    .52376E-01   -.88494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.09251e-06
Minuit parameter uncertainties:
  1  5.39027
  2  5.51495
  3  13.0689
  4  3.37173
  5  2.77579
  6  0.000152531
  7  0.937537
  8  4.23154
  9  4.14864e-05
  10  2.98326
  11  2.07255
  12  0.957649
  13  0.38832
  14  14.6291
  15  7.83847
  16  7.69799e-08
  17  18.0749
  18  5.1875
  19  4.05742
  20  3.02051
  21  5.68743e-06
  22  6.61876e-07
  23  0.000188083
  24  0.000394388
  25  1.8804
  26  13.5596
  27  0.357136
  28  4.71855e-06
  29  0.108222
  30  0.0806382
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  7.766e-01  3.883e-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.131e+00  8.064e-02  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:  1.177e+00  1.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.53
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.88e-08 +/- 1.94e-08
Energy Flux (Fixed Index): 2.18e-05 +/- 1.09e-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) = 25067.7074416
delta logL = 2.13148405695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 25067.6974559
delta logL = 2.14146973844

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .65296       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7247       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1478       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=   25067.70     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      231 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65294        2.0809        .92217E-02    .30408E-02
   2  alpha         2.7250        1.7307        .34348        .18408E-03
   3  Normalizat    1.1326        .29855E-01    .66577E-01   -.13929E-03
   4  Prefactor     1.1476        .22956E-01    .52003E-01   -.21280E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.652937
  alpha      = 2.72502
  Normalizat = 1.13263
  Prefactor  = 1.14756
 **********
 **   18 **HESSE 
 **********

 FCN=   25067.70     FROM HESSE     STATUS=OK            35 CALLS      266 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65294        .37213        .41807E-03   -1.5546    
   2  alpha         2.7250        .43018        .12467E-01    .90128E-01
   3  Normalizat    1.1326        .11936        .29454E-03   -.88711    
   4  Prefactor     1.1476        .92854E-01    .22991E-03   -.87961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.18821e-09
Minuit parameter uncertainties:
  1  0.372131
  2  0.432351
  3  0.119386
  4  0.0928675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571599': 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) = 25067.6974514
delta logL = 2.14147426407

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  6.529e-01  3.721e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.725e+00  4.324e-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.148e+00  9.287e-02  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:  1.133e+00  1.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.86
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.73 +/- 0.43
Photon Flux (Free Index): 8.02e-08 +/- 2.94e-08
Energy Flux (Free Index): 1.97e-05 +/- 7.23e-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/571599/cmap_HighResolution_554688001_555292801_4FGL_J0818.2+4222_weekly_bin522.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.88e-08', energy_flux2='1.97e-05', photon_flux_error='1.94e-08', dlogl='2.14e+00', energy_flux='2.18e-05', photon_flux2='8.02e-08', job_status='DONE', time_completed='2021-07-13 15:26:20.902775', photon_index_error2='0.43', photon_index2='2.73', ts='8.53', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='7.23e-06', EG='1.18', time_epoch_completed='1626215180.9', return_code='0', job_id='571599', GAL2='1.15', EG2='1.13', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='2.94e-08', ts2='12.86', photon_index='2.00' WHERE bin_id='522' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:26:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 571599: <4FGL_J0818.2+4222_weekly_bin522> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin522> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Jul 12 07:40:51 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:41:38 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:41:38 2021
Terminated at Tue Jul 13 15:26:21 2021
Results reported at Tue Jul 13 15:26:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin522 124.557 42.3819 554688001 555292801 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 :                                   1948.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             110.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   2364 sec.
    Turnaround time :                            114330 sec.

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

