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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin598
RA = 124.557, Dec = 42.3819
tmin = 600652801, tmax = 601257601
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='571695', job_status='RUN', time_executed='2021-07-13 14:56:34.155967', time_epoch_executed='1626213394.16' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571695

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571695/ft1_4FGL_J0818.2+4222_weekly_bin598.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571695/ft2_4FGL_J0818.2+4222_weekly_bin598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571695/ft1_4FGL_J0818.2+4222_weekly_bin598.fits outfile=/scratch/kocevski/571695/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin598.fits ra=124.557 dec=42.3819 rad=12.0 tmin=600652801.0 tmax=601257601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 7.92
user 7.37
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/571695/ft2_4FGL_J0818.2+4222_weekly_bin598.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/571695/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin598.fits evtable="EVENTS" outfile="/scratch/kocevski/571695/ft1_filtered_4FGL_J0818.2+4222_weekly_bin598.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.58
user 0.38
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571695/ft1_filtered_4FGL_J0818.2+4222_weekly_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/571695/ft2_4FGL_J0818.2+4222_weekly_bin598.fits sctable="SC_DATA" expcube=/scratch/kocevski/571695/ltcube_600652801_601257601_4FGL_J0818.2+4222_weekly_bin598.fits outfile=/scratch/kocevski/571695/expmap_600652801_601257601_4FGL_J0818.2+4222_weekly_bin598.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/571695/ltcube_600652801_601257601_4FGL_J0818.2+4222_weekly_bin598.fits
.....................!
real 191.25
user 185.17
sys 5.47

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/571695/ft1_filtered_4FGL_J0818.2+4222_weekly_bin598.fits scfile=/scratch/kocevski/571695/ft2_4FGL_J0818.2+4222_weekly_bin598.fits outfile=/scratch/kocevski/571695/cmap_600652801_601257601_4FGL_J0818.2+4222_weekly_bin598.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 0.59
user 0.40
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .60530       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.2480       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.452       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0932       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.333       1.0000         .10000E-03   10000.    
     7 'norm      '    4.0685       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.376       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11007E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    4.0015       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0767       1.0000         .10000E-03   10000.    
    13 'norm      '    .96376       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8741       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .85447       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .42665       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.3078       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3475       1.0000         .10000E-03   10000.    
    20 'norm      '    4.9103       1.0000         .10000E-03   10000.    
    21 'norm      '    .79477       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .61834E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.261       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .88414       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .25382       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.7327       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .99649       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0840       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=   16545.33     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3440 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65227        8.1789       -.63187E-05   -.31609E-03
   2  Prefactor     6.2492        6.8737       -.74306E-07   -.11796E-04
   3  Prefactor     13.451        13.408       -.18868E-07    .62962E-05
   4  Prefactor     3.0940        3.7730        .10782E-05   -.27521E-03
   5  Prefactor     .10000E-03    3.2073        .13207E-06** at limit **
   6  norm          12.334        9.4213       -.11778E-06   -.52653E-05
   7  norm          4.0687        1.7103       -.36523E-07    .53890E-04
   8  Prefactor     .10000E-03    1.2498        .20935E-07** at limit **
   9  Prefactor     17.378        18.629       -.79161E-06   -.29117E-04
  10  Prefactor     .10000E-03    1.1650        .38444E-06** at limit **
  11  norm          4.0017        2.5266       -.60763E-07   -.72898E-04
  12  norm          1.0767        1.1500        .57969E-07    .12488E-03
  13  norm          .96393        .37076       -.29031E-08   -.13666E-03
  14  Prefactor     6.8757        15.013       -.79876E-06   -.14465E-04
  15  Prefactor     .86130        11.644        .55689E-06   -.54055E-04
  16  Prefactor     .42530        1.5493        .85601E-07   -.27789E-03
  17  Prefactor     9.3074        15.848        .17008E-07    .16610E-04
  18  Prefactor     .10000E-03    2.9504       -.12714E-06** at limit **
  19  Prefactor     9.3478        5.1025       -.86020E-07   -.83313E-04
  20  norm          4.9107        3.6128       -.22122E-07    .13067E-03
  21  norm          .79527        2.6395        .54059E-06    .62282E-05
  22  Prefactor     .10055E-03    .82329       -.11360E-05** at limit **
  23  Prefactor     .10000E-03    10.436       -.14389E-05** at limit **
  24  Prefactor     17.261        17.790       -.28887E-06   -.84050E-04
  25  Prefactor     .88266        2.3170        .43482E-07   -.34104E-03
  26  Prefactor     .10000E-03    7.3205        .92714E-06** at limit **
  27  norm          .25395        .45511        .55101E-07    .92482E-03
  28  Prefactor     5.7324        4.0674       -.78406E-08    .27430E-03
  29  Normalizat    .99671        .12729       -.73608E-06   -.74105E-04
  30  Prefactor     1.0838        .95848E-01    .60673E-06   -.10231E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.652274
  Prefactor  = 6.24922
  Prefactor  = 13.4512
  Prefactor  = 3.09399
  Prefactor  = 0.0001
  norm       = 12.3341
  norm       = 4.06868
  Prefactor  = 0.0001
  Prefactor  = 17.3777
  Prefactor  = 0.000100001
  norm       = 4.00173
  norm       = 1.07668
  norm       = 0.963927
  Prefactor  = 6.87573
  Prefactor  = 0.8613
  Prefactor  = 0.425302
  Prefactor  = 9.30744
  Prefactor  = 0.0001
  Prefactor  = 9.34783
  norm       = 4.91074
  norm       = 0.79527
  Prefactor  = 0.000100547
  Prefactor  = 0.0001
  Prefactor  = 17.2606
  Prefactor  = 0.882665
  Prefactor  = 0.0001
  norm       = 0.25395
  Prefactor  = 5.73236
  Normalizat = 0.996711
  Prefactor  = 1.08378
 **********
 **   18 **HESSE 
 **********

 FCN=   16545.33     FROM HESSE     STATUS=OK           616 CALLS     4056 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65227        9.1888        .40002E-02   -1.5546    
   2  Prefactor     6.2492        6.8761        .16059E-03   -1.5208    
   3  Prefactor     13.451        13.430        .10921E-03   -1.4974    
   4  Prefactor     3.0940        6.3104        .11529E-02   -1.5356    
   5  Prefactor     .10000E-03    3.2184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.334        9.4311        .11407E-03   -1.5005    
   7  norm          4.0687        1.7175        .10462E-03   -1.5305    
   8  Prefactor     .10000E-03    1.2536        .14038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.378        18.609        .96083E-04   -1.4874    
  10  Prefactor     .10000E-03    12.838        .25348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.0017        2.5019        .15100E-03   -1.5308    
  12  norm          1.0767        1.1166        .13184E-03   -1.5500    
  13  norm          .96393        .36231        .45561E-04   -1.5512    
  14  Prefactor     6.8757        15.011        .15302E-03   -1.5183    
  15  Prefactor     .86130        10.856        .50566E-03   -1.5522    
  16  Prefactor     .42530        1.4886        .27237E-03   -1.5578    
  17  Prefactor     9.3074        15.787        .13136E-03   -1.5098    
  18  Prefactor     .10000E-03    2.9685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.3478        5.0926        .13108E-03   -1.5096    
  20  norm          4.9107        3.5942        .18151E-03   -1.5265    
  21  norm          .79527        2.6889        .37275E-03   -1.5530    
  22  Prefactor     .10055E-03    1.0847        .32427E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     17.261        17.739        .96403E-04   -1.4877    
  25  Prefactor     .88266        2.3507        .29323E-03   -1.5520    
  26  Prefactor     .10000E-03    7.3237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .25395        .37078        .80575E-03   -1.5607    
  28  Prefactor     5.7324        3.7532        .14868E-03   -1.5229    
  29  Normalizat    .99671        .14146        .28634E-03   -.93141    
  30  Prefactor     1.0838        .10876        .21658E-03   -.89987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.79124e-08
Minuit parameter uncertainties:
  1  4.8969
  2  6.87699
  3  13.4329
  4  6.31172
  5  5.16161e-06
  6  9.43228
  7  1.71755
  8  6.22365e-06
  9  18.6147
  10  0.000256679
  11  2.50193
  12  1.11666
  13  0.362312
  14  15.0195
  15  6.11667
  16  1.48875
  17  15.7943
  18  1.65547e-06
  19  5.0928
  20  3.59437
  21  2.68928
  22  0.00153993
  23  2.35449e-05
  24  17.7448
  25  2.35095
  26  4.46733e-06
  27  0.370786
  28  3.75339
  29  0.141514
  30  0.108783
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  9.639e-01  3.623e-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.084e+00  1.088e-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.967e-01  1.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.54
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.81e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 2.71e-05 +/- 1.02e-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) = 16545.2558003
delta logL = 0.0765250862059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16545.2508502
delta logL = 0.0814752164333

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93744       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8550       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0032       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0820       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=   16545.25     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93732        7.0544        .10387E-01    .40143E-03
   2  alpha         1.8548        3.3574        .38906       -.46046E-04
   3  Normalizat    1.0033        .12934        .46207E-01   -.20986E-03
   4  Prefactor     1.0820        .84192E-01    .38312E-01   -.28654E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.937323
  alpha      = 1.85479
  Normalizat = 1.00332
  Prefactor  = 1.08197
 **********
 **   18 **HESSE 
 **********

 FCN=   16545.25     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93732        .36982        .46151E-04   -1.5514    
   2  alpha         1.8548        .34545        .14205E-01   -.26104    
   3  Normalizat    1.0033        .13118        .28552E-03   -.92919    
   4  Prefactor     1.0820        .10297        .21675E-03   -.90045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33158e-11
Minuit parameter uncertainties:
  1  0.369822
  2  0.346638
  3  0.13122
  4  0.102994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571695': 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) = 16545.2508495
delta logL = 0.0814759582208

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  9.373e-01  3.698e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.855e+00  3.466e-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.082e+00  1.030e-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:  1.003e+00  1.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.69
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.85 +/- 0.35
Photon Flux (Free Index): 4.10e-08 +/- 2.28e-08
Energy Flux (Free Index): 3.01e-05 +/- 1.44e-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/571695/cmap_HighResolution_600652801_601257601_4FGL_J0818.2+4222_weekly_bin598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.81e-08', energy_flux2='3.01e-05', photon_flux_error='1.81e-08', dlogl='8.15e-02', energy_flux='2.71e-05', photon_flux2='4.10e-08', job_status='DONE', time_completed='2021-07-13 15:26:45.093554', photon_index_error2='0.35', photon_index2='1.85', ts='19.54', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='1.00', time_epoch_completed='1626215205.09', return_code='0', job_id='571695', GAL2='1.08', EG2='1.00', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='2.28e-08', ts2='19.69', photon_index='2.00' WHERE bin_id='598' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:26:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 571695: <4FGL_J0818.2+4222_weekly_bin598> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin598 124.557 42.3819 600652801 601257601 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 :                                   1489.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             37.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2287 sec.
    Turnaround time :                            114345 sec.

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

