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 90 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 = 17076
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin125
RA = 124.557, Dec = 42.3819
tmin = 314582401, tmax = 315187201
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='567805', job_status='RUN', time_executed='2021-07-12 07:31:05.850914', time_epoch_executed='1626100265.85' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/567805

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/567805/ft1_4FGL_J0818.2+4222_weekly_bin125.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/567805/ft2_4FGL_J0818.2+4222_weekly_bin125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/567805/ft1_4FGL_J0818.2+4222_weekly_bin125.fits outfile=/scratch/kocevski/567805/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin125.fits ra=124.557 dec=42.3819 rad=12.0 tmin=314582401.0 tmax=315187201.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 11.92
user 7.07
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/567805/ft1_filtered_4FGL_J0818.2+4222_weekly_bin125.fits" evtable="EVENTS" scfile=/scratch/kocevski/567805/ft2_4FGL_J0818.2+4222_weekly_bin125.fits sctable="SC_DATA" outfile=/scratch/kocevski/567805/ltcube_314582401_315187201_4FGL_J0818.2+4222_weekly_bin125.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/567805/ft2_4FGL_J0818.2+4222_weekly_bin125.fits
.....................!
real 31.82
user 28.01
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/567805/ft1_filtered_4FGL_J0818.2+4222_weekly_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/567805/ft2_4FGL_J0818.2+4222_weekly_bin125.fits sctable="SC_DATA" expcube=/scratch/kocevski/567805/ltcube_314582401_315187201_4FGL_J0818.2+4222_weekly_bin125.fits outfile=/scratch/kocevski/567805/expmap_314582401_315187201_4FGL_J0818.2+4222_weekly_bin125.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/567805/ltcube_314582401_315187201_4FGL_J0818.2+4222_weekly_bin125.fits
.....................!
real 215.54
user 186.01
sys 5.59

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/567805/ft1_filtered_4FGL_J0818.2+4222_weekly_bin125.fits scfile=/scratch/kocevski/567805/ft2_4FGL_J0818.2+4222_weekly_bin125.fits outfile=/scratch/kocevski/567805/cmap_314582401_315187201_4FGL_J0818.2+4222_weekly_bin125.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.37
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/567805/ft1_filtered_4FGL_J0818.2+4222_weekly_bin125.fits scfile=/scratch/kocevski/567805/ft2_4FGL_J0818.2+4222_weekly_bin125.fits outfile=/scratch/kocevski/567805/cmap_HighResolution_314582401_315187201_4FGL_J0818.2+4222_weekly_bin125.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.09
user 0.43
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41165       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6998       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12378E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.740       1.0000         .10000E-03   10000.    
     6 'norm      '    .52629       1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7512       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .76460       1.0000         .10000E-03   10000.    
    12 'norm      '    3.6512       1.0000         .10000E-03   10000.    
    13 'norm      '    .98629       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .82274       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .38486       1.0000         .10000E-03   10000.    
    20 'norm      '    14.199       1.0000         .10000E-03   10000.    
    21 'norm      '    12.839       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13523       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10879E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .14427E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .26682       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10913E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0069       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0270       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=   15446.88     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     3469 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .41657        2.2850        .42967E-06   -.87295E-04
   2  Prefactor     1.6976        7.6582        .33012E-06   -.35078E-04
   3  Prefactor     .10000E-03    7.4897       -.96527E-06** at limit **
   4  Prefactor     .10003E-03    6.7220        .57018E-05** at limit **
   5  Prefactor     11.741        9.5211        .18347E-07   -.11791E-03
   6  norm          .53109        3.1904       -.66880E-06   -.75193E-04
   7  norm          .10000E-03    .79147        .79020E-07** at limit **
   8  Prefactor     2.7488        1.2038        .12992E-07   -.11857E-02
   9  Prefactor     .10000E-03    12.101        .18735E-06** at limit **
  10  Prefactor     .10000E-03    2.1147       -.31869E-05** at limit **
  11  norm          .76329        2.0385        .13818E-06   -.13861E-03
  12  norm          3.6518        1.2908        .75814E-08   -.35167E-03
  13  norm          .98643        .33683       -.61424E-07   -.25045E-02
  14  Prefactor     .10000E-03    7.2186        .78629E-06** at limit **
  15  Prefactor     .10000E-03    5.1377        .70583E-07** at limit **
  16  Prefactor     .10000E-03    .71877        .21676E-06** at limit **
  17  Prefactor     .10000E-03    13.465        .88148E-06** at limit **
  18  Prefactor     .83033        3.5460        .10307E-05   -.21838E-04
  19  Prefactor     .38769        2.6654       -.14960E-06   -.10559E-03
  20  norm          14.199        5.2199       -.14875E-08   -.21497E-03
  21  norm          12.837        5.3113       -.66946E-07   -.20113E-03
  22  Prefactor     .13530        .53299       -.23644E-06   -.58278E-03
  23  Prefactor     .10000E-03    25.075       -.38774E-06** at limit **
  24  Prefactor     .10000E-03    25.971        .10135E-05** at limit **
  25  Prefactor     .10000E-03    .34708        .15822E-08** at limit **
  26  Prefactor     .10000E-03    25.369        .54654E-06** at limit **
  27  norm          .26673        .20994        .19874E-06    .59415E-02
  28  Prefactor     .10000E-03    1.5646        .25050E-05** at limit **
  29  Normalizat    1.0070        .11548       -.92730E-06   -.12973E-02
  30  Prefactor     1.0270        .91570E-01    .57112E-07   -.12755E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.416569
  Prefactor  = 1.69761
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 11.7411
  norm       = 0.531085
  norm       = 0.0001
  Prefactor  = 2.74876
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.763286
  norm       = 3.6518
  norm       = 0.986433
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.830332
  Prefactor  = 0.387691
  norm       = 14.1985
  norm       = 12.8371
  Prefactor  = 0.135304
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.266726
  Prefactor  = 0.000100001
  Normalizat = 1.00701
  Prefactor  = 1.02699
 **********
 **   18 **HESSE 
 **********

 FCN=   15446.88     FROM HESSE     STATUS=OK           604 CALLS     4073 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .41657        8.0611        .36188E-02   -1.5579    
   2  Prefactor     1.6976        7.7436        .32267E-03   -1.5447    
   3  Prefactor     .10000E-03    7.4603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    19.441        .39631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.741        9.6396        .11692E-03   -1.5023    
   6  norm          .53109        13.967        .42160E-02   -1.5562    
   7  norm          .10000E-03    .82405        .21547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.7488        5.1068        .12271E-02   -1.5376    
   9  Prefactor     .10000E-03    12.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5051        .22847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .76329        2.0128        .27545E-03   -1.5533    
  12  norm          3.6518        1.2782        .79121E-04   -1.5326    
  13  norm          .98643        .33230        .40282E-04   -1.5509    
  14  Prefactor     .10000E-03    7.2229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.2013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.5622        .20237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.718        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .83033        11.365        .43899E-02   -1.5526    
  19  Prefactor     .38769        11.176        .38603E-02   -1.5583    
  20  norm          14.199        5.1967        .10629E-03   -1.4954    
  21  norm          12.837        5.2794        .11179E-03   -1.4991    
  22  Prefactor     .13530        2.1774        .16851E-02   -1.5634    
  23  Prefactor     .10000E-03    25.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    26.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .34961        .71480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    26.225        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .26673        .19366        .48161E-03   -1.5605    
  28  Prefactor     .10000E-03    3.5080        .18857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0070        .12982        .26186E-03   -.92796    
  30  Prefactor     1.0270        .10499        .21101E-03   -.91835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10502e-07
Minuit parameter uncertainties:
  1  3.6651
  2  7.25271
  3  7.61411e-05
  4  0.00140461
  5  9.64091
  6  5.44806
  7  8.35483e-07
  8  5.10763
  9  2.47714e-05
  10  0.000103417
  11  2.01299
  12  1.27823
  13  0.332296
  14  3.57113e-05
  15  2.04027e-05
  16  4.09281e-05
  17  0.000188397
  18  6.14498
  19  4.16344
  20  5.19682
  21  5.2796
  22  1.0852
  23  0.000105358
  24  0.000274189
  25  6.58528e-07
  26  0.000419598
  27  0.193664
  28  0.000142726
  29  0.129859
  30  0.10501
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  9.864e-01  3.323e-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.027e+00  1.050e-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.007e+00  1.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.91
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.92e-08 +/- 1.66e-08
Energy Flux (Fixed Index): 2.77e-05 +/- 9.34e-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) = 15446.8565074
delta logL = 0.0241549305974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15446.8562136
delta logL = 0.0244487391919

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99167       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9276       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0258       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=   15446.86     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .99168        5.4683        .91911E-02    .24865E-03
   2  alpha         1.9276        3.4478        .34249        .24589E-04
   3  Normalizat    1.0102        .89420E-01    .46001E-01    .26669E-04
   4  Prefactor     1.0258        .56494E-01    .41604E-01    .15380E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.991682
  alpha      = 1.92761
  Normalizat = 1.01015
  Prefactor  = 1.02581
 **********
 **   18 **HESSE 
 **********

 FCN=   15446.86     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .99168        .33603        .40730E-04   -1.5509    
   2  alpha         1.9276        .30692        .12989E-01   -.23100    
   3  Normalizat    1.0102        .12592        .26151E-03   -.92691    
   4  Prefactor     1.0258        .10237        .21112E-03   -.91874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.10853e-12
Minuit parameter uncertainties:
  1  0.336035
  2  0.307736
  3  0.125959
  4  0.102387
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/567805': 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) = 15446.8562136
delta logL = 0.0244487416912

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  9.917e-01  3.360e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.928e+00  3.077e-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.026e+00  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.010e+00  1.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.95
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.93 +/- 0.31
Photon Flux (Free Index): 4.63e-08 +/- 2.02e-08
Energy Flux (Free Index): 2.95e-05 +/- 1.34e-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/567805/cmap_HighResolution_314582401_315187201_4FGL_J0818.2+4222_weekly_bin125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.92e-08', energy_flux2='2.95e-05', photon_flux_error='1.66e-08', dlogl='2.44e-02', energy_flux='2.77e-05', photon_flux2='4.63e-08', job_status='DONE', time_completed='2021-07-13 15:06:00.496061', photon_index_error2='0.31', photon_index2='1.93', ts='23.91', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.34e-05', EG='1.01', time_epoch_completed='1626213960.5', return_code='0', job_id='567805', GAL2='1.03', EG2='1.01', return_code2='0', energy_flux_error='9.34e-06', photon_flux_error2='2.02e-08', ts2='23.95', photon_index='2.00' WHERE bin_id='125' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:06:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 567805: <4FGL_J0818.2+4222_weekly_bin125> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin125> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Jul 12 07:26:44 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:27:00 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:27:00 2021
Terminated at Tue Jul 13 15:06:01 2021
Results reported at Tue Jul 13 15:06:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin125 124.557 42.3819 314582401 315187201 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 :                                   1460.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             322.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2026 sec.
    Turnaround time :                            113957 sec.

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

