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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin489
RA = 124.557, Dec = 42.3819
tmin = 534729601, tmax = 535334401
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='571549', job_status='RUN', time_executed='2021-07-12 07:46:22.734426', time_epoch_executed='1626101182.73' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571549

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571549/ft1_4FGL_J0818.2+4222_weekly_bin489.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571549/ft2_4FGL_J0818.2+4222_weekly_bin489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571549/ft1_4FGL_J0818.2+4222_weekly_bin489.fits outfile=/scratch/kocevski/571549/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin489.fits ra=124.557 dec=42.3819 rad=12.0 tmin=534729601.0 tmax=535334401.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 51.81
user 8.80
sys 0.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/571549/ft2_4FGL_J0818.2+4222_weekly_bin489.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/571549/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin489.fits evtable="EVENTS" outfile="/scratch/kocevski/571549/ft1_filtered_4FGL_J0818.2+4222_weekly_bin489.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.69
user 0.37
sys 0.22

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571549/ft1_filtered_4FGL_J0818.2+4222_weekly_bin489.fits" evtable="EVENTS" scfile=/scratch/kocevski/571549/ft2_4FGL_J0818.2+4222_weekly_bin489.fits sctable="SC_DATA" outfile=/scratch/kocevski/571549/ltcube_534729601_535334401_4FGL_J0818.2+4222_weekly_bin489.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/571549/ft2_4FGL_J0818.2+4222_weekly_bin489.fits
.....................!
real 48.38
user 30.23
sys 0.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571549/ft1_filtered_4FGL_J0818.2+4222_weekly_bin489.fits evtable="EVENTS" scfile=/scratch/kocevski/571549/ft2_4FGL_J0818.2+4222_weekly_bin489.fits sctable="SC_DATA" expcube=/scratch/kocevski/571549/ltcube_534729601_535334401_4FGL_J0818.2+4222_weekly_bin489.fits outfile=/scratch/kocevski/571549/expmap_534729601_535334401_4FGL_J0818.2+4222_weekly_bin489.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/571549/ltcube_534729601_535334401_4FGL_J0818.2+4222_weekly_bin489.fits
.....................!
real 212.81
user 185.85
sys 5.25

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/571549/ft1_filtered_4FGL_J0818.2+4222_weekly_bin489.fits scfile=/scratch/kocevski/571549/ft2_4FGL_J0818.2+4222_weekly_bin489.fits outfile=/scratch/kocevski/571549/cmap_534729601_535334401_4FGL_J0818.2+4222_weekly_bin489.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.73
user 0.43
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571549/ft1_filtered_4FGL_J0818.2+4222_weekly_bin489.fits scfile=/scratch/kocevski/571549/ft2_4FGL_J0818.2+4222_weekly_bin489.fits outfile=/scratch/kocevski/571549/cmap_HighResolution_534729601_535334401_4FGL_J0818.2+4222_weekly_bin489.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 2.09
user 0.42
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/571549/ft1_filtered_4FGL_J0818.2+4222_weekly_bin489.fits', '/scratch/kocevski/571549/ft2_4FGL_J0818.2+4222_weekly_bin489.fits', expMap='/scratch/kocevski/571549/expmap_534729601_535334401_4FGL_J0818.2+4222_weekly_bin489.fits', expCube='/scratch/kocevski/571549/ltcube_534729601_535334401_4FGL_J0818.2+4222_weekly_bin489.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/571549/Model_4FGL_J0818.2+4222_weekly_bin489.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/571549/ft1_filtered_4FGL_J0818.2+4222_weekly_bin489.fits
Spacecraft file(s): /scratch/kocevski/571549/ft2_4FGL_J0818.2+4222_weekly_bin489.fits
Exposure map: /scratch/kocevski/571549/expmap_534729601_535334401_4FGL_J0818.2+4222_weekly_bin489.fits
Exposure cube: /scratch/kocevski/571549/ltcube_534729601_535334401_4FGL_J0818.2+4222_weekly_bin489.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/571549/Model_4FGL_J0818.2+4222_weekly_bin489.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5485       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5975       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .38573E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.741       1.0000         .10000E-03   10000.    
     6 'norm      '    14.188       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20433       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2155       1.0000         .10000E-03   10000.    
    11 'norm      '    .72974       1.0000         .10000E-03   10000.    
    12 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1015       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7929       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.289       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0989       1.0000         .10000E-03   10000.    
    20 'norm      '    .38775       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .47027       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12882E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .17394       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.034       1.0000         .10000E-03   10000.    
    27 'norm      '    .18175       1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.243       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .89329       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1254       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=   14579.72     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     2849 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5483        2.4978        .25183E-07    .41790E-05
   2  Prefactor     .10000E-03    2.4828        .80173E-07** at limit **
   3  Prefactor     1.6177        2.2808        .37668E-06   -.25378E-03
   4  Prefactor     .10000E-03    36.283       -.57977E-05** at limit **
   5  Prefactor     20.747        7.0170        .36299E-05   -.39235E-02
   6  norm          14.187        1.9940        .87115E-06    .25965E-02
   7  norm          .10000E-03    1.0623        .48687E-06** at limit **
   8  Prefactor     .20185        .52665       -.12959E-05    .44139E-03
   9  Prefactor     .10004E-03    92.781       -.97555E-05** at limit **
  10  Prefactor     1.2162        2.9540       -.41272E-06    .32503E-03
  11  norm          .72970        2.8258        .68026E-06    .11528E-03
  12  norm          .10000E-03    1.6657       -.80858E-06** at limit **
  13  norm          1.1017        .41242       -.21829E-06   -.15617E-03
  14  Prefactor     .10000E-03    4.3410        .53284E-06** at limit **
  15  Prefactor     4.7924        3.4892        .19855E-05   -.38390E-02
  16  Prefactor     .10000E-03    .51424        .27627E-06** at limit **
  17  Prefactor     36.286        1.0379       -.26642E-07   -.12783E-03
  18  Prefactor     .10000E-03    2.7847       -.56689E-06** at limit **
  19  Prefactor     3.0991        1.5211        .23893E-05    .48385E-02
  20  norm          .38881        1.0593        .26920E-05    .38533E-03
  21  norm          .10000E-03    1.4774       -.58118E-06** at limit **
  22  Prefactor     .47016        1.7929        .15429E-05   -.60748E-04
  23  Prefactor     .10000E-03    15.268        .39010E-06** at limit **
  24  Prefactor     .10002E-03    64.827        .10283E-04** at limit **
  25  Prefactor     .17234        3.0043       -.50919E-05   -.12346E-02
  26  Prefactor     10.026        7.2068       -.54349E-05   -.10160E-02
  27  norm          .18227        .33069        .88560E-06   -.30773E-04
  28  Prefactor     11.238        3.6007       -.19486E-05    .96676E-03
  29  Normalizat    .89335        .13769        .21384E-06   -.49412E-04
  30  Prefactor     1.1254        .10956       -.10905E-05   -.49064E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.54833
  Prefactor  = 0.0001
  Prefactor  = 1.61772
  Prefactor  = 0.0001
  Prefactor  = 20.7471
  norm       = 14.1868
  norm       = 0.0001
  Prefactor  = 0.201851
  Prefactor  = 0.000100044
  Prefactor  = 1.2162
  norm       = 0.729698
  norm       = 0.0001
  norm       = 1.10173
  Prefactor  = 0.0001
  Prefactor  = 4.79236
  Prefactor  = 0.0001
  Prefactor  = 36.286
  Prefactor  = 0.0001
  Prefactor  = 3.09911
  norm       = 0.38881
  norm       = 0.0001
  Prefactor  = 0.470164
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.172338
  Prefactor  = 10.0258
  norm       = 0.182271
  Prefactor  = 11.2383
  Normalizat = 0.893349
  Prefactor  = 1.12535
 **********
 **   18 **HESSE 
 **********

 FCN=   14579.72     FROM HESSE     STATUS=OK           692 CALLS     3541 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5483        2.5285        .85590E-02   -1.5459    
   2  Prefactor     .10000E-03    2.4735        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6177        51.038        .83880E-02   -1.5454    
   4  Prefactor     .10000E-03    4.0322        .97696E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.747        11.574        .21987E-02   -1.4797    
   6  norm          14.187        7.8067        .26584E-02   -1.4954    
   7  norm          .10000E-03    1.0275        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .20185        2.6661        .69258E-01   -1.5618    
   9  Prefactor     .10004E-03    121.70        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2162        3.0387        .10244E-01   -1.5487    
  11  norm          .72970        2.1391        .49383E-01   -1.5537    
  12  norm          .10000E-03    .44809        .27672E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1017        .42338        .10147E-01   -1.5498    
  14  Prefactor     .10000E-03    4.3321        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.7924        5.3782        .45942E-02   -1.5270    
  16  Prefactor     .10000E-03    .49831        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     36.286        19.436        .16632E-02   -1.4502    
  18  Prefactor     .10000E-03    2.7798        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.0991        3.0292        .57592E-02   -1.5356    
  20  norm          .38881        2.4220        .55019E-01   -1.5583    
  21  norm          .10000E-03    1.4685        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .47016        1.4006        .36999E-01   -1.5571    
  23  Prefactor     .10000E-03    15.278        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10002E-03    64.468        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .17234        .69097        .62097E-01   -1.5625    
  26  Prefactor     10.026        10.002        .31625E-02   -1.5075    
  27  norm          .18227        .40683        .18880E-01   -1.5623    
  28  Prefactor     11.238        4.3448        .29870E-02   -1.5037    
  29  Normalizat    .89335        .12837        .64024E-01   -.96694    
  30  Prefactor     1.1254        .96034E-01    .36694E-01   -.88660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84274e-08
Minuit parameter uncertainties:
  1  2.52871
  2  1.00363e-06
  3  18.1894
  4  2.94891e-05
  5  11.5754
  6  7.80721
  7  9.86426e-07
  8  1.4669
  9  0.00464353
  10  3.03913
  11  2.13935
  12  1.35942e-06
  13  0.423383
  14  1.06165e-05
  15  5.37869
  16  1.42599e-07
  17  19.4397
  18  5.96953e-06
  19  3.02934
  20  1.94069
  21  3.95111e-06
  22  1.40067
  23  5.2112e-05
  24  0.00215122
  25  0.689972
  26  10.0035
  27  0.406833
  28  4.34489
  29  0.12841
  30  0.0960483
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.102e+00  4.234e-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.125e+00  9.605e-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:  8.933e-01  1.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.09
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 5.50e-08 +/- 2.11e-08
Energy Flux (Fixed Index): 3.10e-05 +/- 1.19e-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) = 14579.6138149
delta logL = 0.104193231737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14579.6043025
delta logL = 0.113705681899

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0598       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8272       1.0000          .0000       5.0000    
     3 'Normalizat'    .90211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1230       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=   14579.60     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0599        8.0819        .10460E-01    .45425E-03
   2  alpha         1.8274        3.3343        .36494       -.39341E-04
   3  Normalizat    .90210        .13732        .44929E-01    .37411E-04
   4  Prefactor     1.1230        .90965E-01    .36772E-01   -.38059E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.05989
  alpha      = 1.82744
  Normalizat = 0.902104
  Prefactor  = 1.12298
 **********
 **   18 **HESSE 
 **********

 FCN=   14579.60     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .89E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0599        .43089        .46495E-04   -1.5502    
   2  alpha         1.8274        .35167        .13444E-01   -.27238    
   3  Normalizat    .90210        .13259        .28179E-03   -.96386    
   4  Prefactor     1.1230        .10779        .20791E-03   -.88735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.91175e-13
Minuit parameter uncertainties:
  1  0.430891
  2  0.352929
  3  0.132637
  4  0.107812
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571549': 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) = 14579.6043023
delta logL = 0.113705846043

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.060e+00  4.309e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.827e+00  3.529e-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.123e+00  1.078e-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.021e-01  1.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.35
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.83 +/- 0.35
Photon Flux (Free Index): 4.53e-08 +/- 2.61e-08
Energy Flux (Free Index): 3.51e-05 +/- 1.71e-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/571549/cmap_HighResolution_534729601_535334401_4FGL_J0818.2+4222_weekly_bin489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.50e-08', energy_flux2='3.51e-05', photon_flux_error='2.11e-08', dlogl='1.14e-01', energy_flux='3.10e-05', photon_flux2='4.53e-08', job_status='DONE', time_completed='2021-07-13 15:15:31.022550', photon_index_error2='0.35', photon_index2='1.83', ts='21.09', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.71e-05', EG='0.89', time_epoch_completed='1626214531.02', return_code='0', job_id='571549', GAL2='1.12', EG2='0.90', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='2.61e-08', ts2='21.35', photon_index='2.00' WHERE bin_id='489' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:15:31 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin489 124.557 42.3819 534729601 535334401 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 :                                   1300.18 sec.
    Max Memory :                                 622 MB
    Average Memory :                             111.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   1740 sec.
    Turnaround time :                            113684 sec.

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

