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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin635
RA = 124.557, Dec = 42.3819
tmin = 623030401, tmax = 623635201
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='571746', job_status='RUN', time_executed='2021-07-13 14:56:03.560856', time_epoch_executed='1626213363.56' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571746

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571746/ft1_4FGL_J0818.2+4222_weekly_bin635.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571746/ft2_4FGL_J0818.2+4222_weekly_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571746/ft1_4FGL_J0818.2+4222_weekly_bin635.fits outfile=/scratch/kocevski/571746/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin635.fits ra=124.557 dec=42.3819 rad=12.0 tmin=623030401.0 tmax=623635201.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 6.22
user 5.78
sys 0.28

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571746/ft1_filtered_4FGL_J0818.2+4222_weekly_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/571746/ft2_4FGL_J0818.2+4222_weekly_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/571746/ltcube_623030401_623635201_4FGL_J0818.2+4222_weekly_bin635.fits outfile=/scratch/kocevski/571746/expmap_623030401_623635201_4FGL_J0818.2+4222_weekly_bin635.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/571746/ltcube_623030401_623635201_4FGL_J0818.2+4222_weekly_bin635.fits
.....................!
real 192.10
user 186.73
sys 4.73

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/571746/ft1_filtered_4FGL_J0818.2+4222_weekly_bin635.fits scfile=/scratch/kocevski/571746/ft2_4FGL_J0818.2+4222_weekly_bin635.fits outfile=/scratch/kocevski/571746/cmap_623030401_623635201_4FGL_J0818.2+4222_weekly_bin635.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.64
user 0.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571746/ft1_filtered_4FGL_J0818.2+4222_weekly_bin635.fits scfile=/scratch/kocevski/571746/ft2_4FGL_J0818.2+4222_weekly_bin635.fits outfile=/scratch/kocevski/571746/cmap_HighResolution_623030401_623635201_4FGL_J0818.2+4222_weekly_bin635.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.63
user 0.42
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5167       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4957       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.169       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.4487       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0813       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6378       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.454       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3919       1.0000         .10000E-03   10000.    
    11 'norm      '    5.0115       1.0000         .10000E-03   10000.    
    12 'norm      '    .91082       1.0000         .10000E-03   10000.    
    13 'norm      '    .70042       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3316       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.2955       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2566       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1606       1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.182       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.7858       1.0000         .10000E-03   10000.    
    27 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.9602       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0494       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .98297       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   27758.62     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     3974 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5187        2.6572         .0000        .19814E-02
   2  Prefactor     4.4960        5.1523         .0000        .10690E-01
   3  Prefactor     25.170        13.405         .0000       -.11490E-02
   4  Prefactor     .10001E-03    3.1138         .0000    ** at limit **
   5  Prefactor     .10001E-03    2.0194         .0000    ** at limit **
   6  norm          4.4490        5.8300         .0000        .11318E-01
   7  norm          1.0813        .76170         .0000       -.73476E-03
   8  Prefactor     3.6386        3.4816         .0000        .23090E-01
   9  Prefactor     23.453        17.995         .0000        .28639E-02
  10  Prefactor     2.3923        2.5125         .0000        .77739E-01
  11  norm          5.0116        1.8947         .0000        .12053E-02
  12  norm          .91081        .56787         .0000        .14394E-03
  13  norm          .70052        .26734         .0000        .21105E-02
  14  Prefactor     .10000E-03    2.3668         .0000    ** at limit **
  15  Prefactor     .10000E-03    1.8812         .0000    ** at limit **
  16  Prefactor     2.3316        1.2387         .0000        .19082E-02
  17  Prefactor     .10001E-03    4.9604         .0000    ** at limit **
  18  Prefactor     8.2957        4.5448         .0000        .68327E-02
  19  Prefactor     .10003E-03    .93497         .0000    ** at limit **
  20  norm          .10000E-03    1.0032         .0000    ** at limit **
  21  norm          1.2569        2.4472         .0000        .73112E-02
  22  Prefactor     1.1608        1.1984         .0000        .61624E-02
  23  Prefactor     25.183        26.930         .0000       -.15630E-02
  24  Prefactor     .10000E-03    8.6917         .0000    ** at limit **
  25  Prefactor     .10000E-03    .37891         .0000    ** at limit **
  26  Prefactor     2.7852        7.8360         .0000        .80789E-02
  27  norm          .10000E-03    .99745E-01     .0000    ** at limit **
  28  Prefactor     5.9604        2.2532         .0000        .18292E-02
  29  Normalizat    1.0493        .90876E-01     .0000        .17977E-03
  30  Prefactor     .98303        .68031E-01     .0000        .13015E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.51868
  Prefactor  = 4.49596
  Prefactor  = 25.17
  Prefactor  = 0.000100006
  Prefactor  = 0.000100011
  norm       = 4.44904
  norm       = 1.08132
  Prefactor  = 3.6386
  Prefactor  = 23.4532
  Prefactor  = 2.39233
  norm       = 5.0116
  norm       = 0.910813
  norm       = 0.700516
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 2.33163
  Prefactor  = 0.000100007
  Prefactor  = 8.29572
  Prefactor  = 0.000100032
  norm       = 0.000100001
  norm       = 1.25693
  Prefactor  = 1.16081
  Prefactor  = 25.1827
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 2.7852
  norm       = 0.0001
  Prefactor  = 5.96036
  Normalizat = 1.04931
  Prefactor  = 0.983026
 **********
 **   18 **HESSE 
 **********

 FCN=   27758.62     FROM HESSE     STATUS=OK           602 CALLS     4576 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5187        2.6513        .25753E-03   -1.5391    
   2  Prefactor     4.4960        5.1455        .94945E-03   -1.5284    
   3  Prefactor     25.170        13.398        .79847E-04   -1.4704    
   4  Prefactor     .10001E-03    3.1584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    2.0243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.4490        5.8231        .95458E-03   -1.5286    
   7  norm          1.0813        .77454        .11832E-03   -1.5500    
   8  Prefactor     3.6386        3.4616        .10590E-02   -1.5326    
   9  Prefactor     23.453        17.948        .82711E-04   -1.4739    
  10  Prefactor     2.3923        2.4790        .12267E-02   -1.5399    
  11  norm          5.0116        1.8874        .13430E-03   -1.5260    
  12  norm          .91081        .57802        .94523E-04   -1.5517    
  13  norm          .70052        .25661        .49710E-03   -1.5541    
  14  Prefactor     .10000E-03    2.3696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.8896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.3316        1.2322        .12754E-03   -1.5403    
  17  Prefactor     .10001E-03    4.9888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.2957        4.5434        .69596E-03   -1.5132    
  19  Prefactor     .10003E-03    3.7539        .31055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.8115        .31545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2569        2.3847        .34105E-03   -1.5484    
  22  Prefactor     1.1608        1.1960        .21385E-03   -1.5492    
  23  Prefactor     25.183        26.850        .79826E-04   -1.4704    
  24  Prefactor     .10000E-03    8.7196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.4265        .19254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.7852        7.7653        .12189E-02   -1.5374    
  27  norm          .10000E-03    .39336        .89477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     5.9604        1.9813        .12654E-03   -1.5220    
  29  Normalizat    1.0493        .10528        .26387E-03   -.91396    
  30  Prefactor     .98303        .79476E-01    .21707E-03   -.93297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68059e-08
Minuit parameter uncertainties:
  1  2.65144
  2  5.14601
  3  13.3994
  4  0.000265654
  5  0.00029373
  6  5.82384
  7  0.774549
  8  3.46177
  9  17.9522
  10  2.47912
  11  1.88745
  12  0.578022
  13  0.256615
  14  5.3388e-06
  15  0.000146042
  16  1.23225
  17  0.000378676
  18  4.54357
  19  0.0006943
  20  0.000155459
  21  2.38493
  22  1.19605
  23  26.8628
  24  0.00021803
  25  0.000135303
  26  7.7681
  27  4.92913e-07
  28  1.98133
  29  0.105301
  30  0.0794855
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  7.005e-01  2.566e-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.830e-01  7.949e-02  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.049e+00  1.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.44
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.50e-08 +/- 1.28e-08
Energy Flux (Fixed Index): 1.97e-05 +/- 7.22e-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) = 27758.5037335
delta logL = 0.120940626701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 27758.4952694
delta logL = 0.129404648887

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68780       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2131       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98602       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=   27758.50     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      218 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68777        2.3705        .10378E-01    .21878E-02
   2  alpha         2.2135        3.4857        .41499        .71339E-04
   3  Normalizat    1.0409        .28593E-01    .59869E-01    .59001E-04
   4  Prefactor     .98597        .20132E-01    .46092E-01    .30607E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.68777
  alpha      = 2.21347
  Normalizat = 1.04089
  Prefactor  = 0.985967
 **********
 **   18 **HESSE 
 **********

 FCN=   27758.50     FROM HESSE     STATUS=OK            35 CALLS      253 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68777        .26570        .47086E-03   -1.5542    
   2  alpha         2.2135        .46460        .16642E-01   -.11486    
   3  Normalizat    1.0409        .98271E-01    .26477E-03   -.91673    
   4  Prefactor     .98597        .77772E-01    .21674E-03   -.93199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54607e-09
Minuit parameter uncertainties:
  1  0.265698
  2  0.467357
  3  0.0982879
  4  0.077781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571746': 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) = 27758.4952688
delta logL = 0.129405300217

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  6.878e-01  2.657e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.213e+00  4.674e-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.860e-01  7.778e-02  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.041e+00  9.829e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.69
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.21 +/- 0.47
Photon Flux (Free Index): 4.35e-08 +/- 2.20e-08
Energy Flux (Free Index): 1.76e-05 +/- 7.50e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/571746/cmap_HighResolution_623030401_623635201_4FGL_J0818.2+4222_weekly_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.50e-08', energy_flux2='1.76e-05', photon_flux_error='1.28e-08', dlogl='1.29e-01', energy_flux='1.97e-05', photon_flux2='4.35e-08', job_status='DONE', time_completed='2021-07-13 15:43:17.364674', photon_index_error2='0.47', photon_index2='2.21', ts='15.44', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='7.50e-06', EG='1.05', time_epoch_completed='1626216197.36', return_code='0', job_id='571746', GAL2='0.99', EG2='1.04', return_code2='0', energy_flux_error='7.22e-06', photon_flux_error2='2.20e-08', ts2='15.69', photon_index='2.00' WHERE bin_id='635' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:43:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 571746: <4FGL_J0818.2+4222_weekly_bin635> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin635 124.557 42.3819 623030401 623635201 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 :                                   2533.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             41.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3232 sec.
    Turnaround time :                            115333 sec.

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

