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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin441
RA = 124.557, Dec = 42.3819
tmin = 505699201, tmax = 506304001
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='569295', job_status='RUN', time_executed='2021-07-12 07:37:42.367930', time_epoch_executed='1626100662.37' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569295

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569295/ft1_4FGL_J0818.2+4222_weekly_bin441.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569295/ft2_4FGL_J0818.2+4222_weekly_bin441.fits


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

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

Done.
real 8.28
user 7.92
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/569295/ft2_4FGL_J0818.2+4222_weekly_bin441.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/569295/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin441.fits evtable="EVENTS" outfile="/scratch/kocevski/569295/ft1_filtered_4FGL_J0818.2+4222_weekly_bin441.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.55
user 0.38
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/569295/ft1_filtered_4FGL_J0818.2+4222_weekly_bin441.fits" evtable="EVENTS" scfile=/scratch/kocevski/569295/ft2_4FGL_J0818.2+4222_weekly_bin441.fits sctable="SC_DATA" outfile=/scratch/kocevski/569295/ltcube_505699201_506304001_4FGL_J0818.2+4222_weekly_bin441.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/569295/ft2_4FGL_J0818.2+4222_weekly_bin441.fits
.....................!
real 29.39
user 28.97
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569295/ft1_filtered_4FGL_J0818.2+4222_weekly_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/569295/ft2_4FGL_J0818.2+4222_weekly_bin441.fits sctable="SC_DATA" expcube=/scratch/kocevski/569295/ltcube_505699201_506304001_4FGL_J0818.2+4222_weekly_bin441.fits outfile=/scratch/kocevski/569295/expmap_505699201_506304001_4FGL_J0818.2+4222_weekly_bin441.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/569295/ltcube_505699201_506304001_4FGL_J0818.2+4222_weekly_bin441.fits
.....................!
real 193.49
user 187.58
sys 5.37

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/569295/ft1_filtered_4FGL_J0818.2+4222_weekly_bin441.fits scfile=/scratch/kocevski/569295/ft2_4FGL_J0818.2+4222_weekly_bin441.fits outfile=/scratch/kocevski/569295/cmap_505699201_506304001_4FGL_J0818.2+4222_weekly_bin441.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.60
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/569295/ft1_filtered_4FGL_J0818.2+4222_weekly_bin441.fits scfile=/scratch/kocevski/569295/ft2_4FGL_J0818.2+4222_weekly_bin441.fits outfile=/scratch/kocevski/569295/cmap_HighResolution_505699201_506304001_4FGL_J0818.2+4222_weekly_bin441.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.43
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .56577E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5111       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2154       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.822       1.0000         .10000E-03   10000.    
     6 'norm      '    53.588       1.0000         .10000E-03   10000.    
     7 'norm      '    1.5939       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4163       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6716       1.0000         .10000E-03   10000.    
    12 'norm      '    .65678       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0941       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4138       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.257       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6800       1.0000         .10000E-03   10000.    
    20 'norm      '    2.1809       1.0000         .10000E-03   10000.    
    21 'norm      '    7.8997       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .62434       1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.717       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12446E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.9014       1.0000         .10000E-03   10000.    
    27 'norm      '    .95533       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.4465       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0938       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .92409       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=   15826.84     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     3397 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    2.7364       -.63965E-06** at limit **
   2  Prefactor     .10000E-03    5.2470        .71556E-07** at limit **
   3  Prefactor     2.5313        31.678       -.16455E-05    .12295E-04
   4  Prefactor     1.2004        16.077        .32033E-05    .79048E-04
   5  Prefactor     12.821        11.199       -.32091E-06   -.21091E-03
   6  norm          53.587        12.045        .83979E-07   -.22191E-04
   7  norm          1.5957        1.3738       -.19244E-06   -.77196E-03
   8  Prefactor     .10000E-03    1.9379       -.43301E-06** at limit **
   9  Prefactor     1.3953        86.945        .98990E-06   -.11140E-03
  10  Prefactor     .10000E-03    1.1447       -.78263E-07** at limit **
  11  norm          2.6717        2.0061        .37253E-07   -.10326E-04
  12  norm          .65705        .88155       -.37355E-07   -.73891E-03
  13  norm          1.0940        .34583       -.38235E-07   -.18151E-02
  14  Prefactor     .10000E-03    9.5901        .56353E-07** at limit **
  15  Prefactor     3.4138        4.4608        .11840E-05   -.28521E-03
  16  Prefactor     .10000E-03    .53881       -.12398E-07** at limit **
  17  Prefactor     15.246        18.444       -.80416E-08   -.17357E-03
  18  Prefactor     .10000E-03    4.2362       -.47791E-06** at limit **
  19  Prefactor     1.6800        2.8712        .17751E-06   -.43807E-04
  20  norm          2.1808        2.0476        .12666E-07   -.32692E-04
  21  norm          7.8995        3.6027        .20007E-07   -.32725E-04
  22  Prefactor     .62406        1.0674        .12227E-06   -.18553E-03
  23  Prefactor     24.717        24.590        .30501E-07   -.24148E-04
  24  Prefactor     .10000E-03    42.973        .39074E-06** at limit **
  25  Prefactor     .10000E-03    .83481        .47725E-07** at limit **
  26  Prefactor     2.9001        9.3408        .42299E-05   -.12265E-03
  27  norm          .95613        .45488        .30944E-08    .16206E-03
  28  Prefactor     3.4404        3.2613        .47842E-07   -.74543E-04
  29  Normalizat    1.0939        .11901       -.84558E-07   -.33738E-03
  30  Prefactor     .92400        .88743E-01   -.63391E-06   -.58634E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 2.53129
  Prefactor  = 1.20042
  Prefactor  = 12.8209
  norm       = 53.5872
  norm       = 1.59567
  Prefactor  = 0.0001
  Prefactor  = 1.3953
  Prefactor  = 0.0001
  norm       = 2.67172
  norm       = 0.65705
  norm       = 1.09402
  Prefactor  = 0.0001
  Prefactor  = 3.41375
  Prefactor  = 0.0001
  Prefactor  = 15.246
  Prefactor  = 0.0001
  Prefactor  = 1.68
  norm       = 2.1808
  norm       = 7.89955
  Prefactor  = 0.62406
  Prefactor  = 24.7166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.90011
  norm       = 0.956132
  Prefactor  = 3.44044
  Normalizat = 1.09389
  Prefactor  = 0.924004
 **********
 **   18 **HESSE 
 **********

 FCN=   15826.84     FROM HESSE     STATUS=OK           600 CALLS     3997 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    17.424        .38998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.3359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5313        30.985        .25785E-03   -1.5390    
   4  Prefactor     1.2004        15.741        .40978E-03   -1.5489    
   5  Prefactor     12.821        11.202        .11187E-03   -1.4992    
   6  norm          53.587        12.041        .54792E-04   -1.4243    
   7  norm          1.5957        1.3560        .12616E-03   -1.5455    
   8  Prefactor     .10000E-03    1.9618        .17149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3953        89.873        .36373E-03   -1.5472    
  10  Prefactor     .10000E-03    1.1627        .13133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6717        1.9728        .14623E-03   -1.5381    
  12  norm          .65705        .68707        .12927E-02   -1.5546    
  13  norm          1.0940        .34711        .39763E-04   -1.5499    
  14  Prefactor     .10000E-03    9.6231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4138        4.4661        .10947E-02   -1.5338    
  16  Prefactor     .10000E-03    .54977        .90082E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.246        18.459        .10254E-03   -1.4927    
  18  Prefactor     .10000E-03    4.2899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.6800        2.8402        .27082E-03   -1.5449    
  20  norm          2.1808        2.0475        .16891E-03   -1.5413    
  21  norm          7.8995        3.6004        .14266E-03   -1.5146    
  22  Prefactor     .62406        1.0226        .16055E-03   -1.5550    
  23  Prefactor     24.717        24.568        .80573E-04   -1.4713    
  24  Prefactor     .10000E-03    43.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .86003        .22424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.9001        9.3487        .11928E-02   -1.5367    
  27  norm          .95613        .50102        .44673E-04   -1.5512    
  28  Prefactor     3.4404        3.6315        .16585E-03   -1.5337    
  29  Normalizat    1.0939        .13742        .26425E-03   -.89948    
  30  Prefactor     .92400        .10240        .22307E-03   -.95307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30347e-09
Minuit parameter uncertainties:
  1  0.000708088
  2  1.03564e-05
  3  17.7233
  4  8.69632
  5  11.2035
  6  12.042
  7  1.35602
  8  3.13912e-05
  9  22.4308
  10  3.77858e-06
  11  1.97289
  12  0.687082
  13  0.347109
  14  2.00467e-05
  15  4.4665
  16  4.62098e-07
  17  18.466
  18  5.16937e-05
  19  2.84046
  20  2.04754
  21  3.60051
  22  1.02258
  23  24.5778
  24  0.000234035
  25  1.43937e-06
  26  9.35336
  27  0.501017
  28  3.63175
  29  0.13747
  30  0.102419
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.094e+00  3.471e-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:  9.240e-01  1.024e-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.094e+00  1.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 50.52
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 5.46e-08 +/- 1.73e-08
Energy Flux (Fixed Index): 3.08e-05 +/- 9.76e-06

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) = 15824.2258306
delta logL = 2.61902959287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15824.2053252
delta logL = 2.63953501494

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77157       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3412       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1142       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92287       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=   15824.21     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      211 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77174        .28465        .85563E-02    .68463E-03
   2  alpha         1.3413        .20926        .26029       -.10544E-03
   3  Normalizat    1.1143        .11131        .59289E-01    .13008E-02
   4  Prefactor     .92283        .87602E-01    .45296E-01    .14078E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.771739
  alpha      = 1.34125
  Normalizat = 1.11427
  Prefactor  = 0.922829
 **********
 **   18 **HESSE 
 **********

 FCN=   15824.21     FROM HESSE     STATUS=OK            29 CALLS      240 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77174        .37119        .37222E-04   -1.5532    
   2  alpha         1.3413        .28401        .10879E-01   -.48194    
   3  Normalizat    1.1143        .12827        .26221E-03   -.89295    
   4  Prefactor     .92283        .10109        .22337E-03   -.95348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.65605e-10
Minuit parameter uncertainties:
  1  0.371192
  2  0.284789
  3  0.12831
  4  0.101111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569295': 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) = 15824.205325
delta logL = 2.63953525305

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  7.717e-01  3.712e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.341e+00  2.848e-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:  9.228e-01  1.011e-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.114e+00  1.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 55.80
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.34 +/- 0.28
Photon Flux (Free Index): 2.56e-08 +/- 1.29e-08
Energy Flux (Free Index): 6.58e-05 +/- 3.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/569295/cmap_HighResolution_505699201_506304001_4FGL_J0818.2+4222_weekly_bin441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.46e-08', energy_flux2='6.58e-05', photon_flux_error='1.73e-08', dlogl='2.64e+00', energy_flux='3.08e-05', photon_flux2='2.56e-08', job_status='DONE', time_completed='2021-07-13 15:08:07.478632', photon_index_error2='0.28', photon_index2='1.34', ts='50.52', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='3.57e-05', EG='1.09', time_epoch_completed='1626214087.48', return_code='0', job_id='569295', GAL2='0.92', EG2='1.11', return_code2='0', energy_flux_error='9.76e-06', photon_flux_error2='1.29e-08', ts2='55.80', photon_index='2.00' WHERE bin_id='441' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:08:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 569295: <4FGL_J0818.2+4222_weekly_bin441> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin441> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Jul 12 07:32:17 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:35:04 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:35:04 2021
Terminated at Tue Jul 13 15:08:08 2021
Results reported at Tue Jul 13 15:08:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin441 124.557 42.3819 505699201 506304001 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 :                                   1484.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             323.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1668 sec.
    Turnaround time :                            113751 sec.

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

