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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin615
RA = 124.557, Dec = 42.3819
tmin = 610934401, tmax = 611539201
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='571716', job_status='RUN', time_executed='2021-07-13 14:55:38.781545', time_epoch_executed='1626213338.78' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571716

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571716/ft1_4FGL_J0818.2+4222_weekly_bin615.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571716/ft2_4FGL_J0818.2+4222_weekly_bin615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571716/ft1_4FGL_J0818.2+4222_weekly_bin615.fits outfile=/scratch/kocevski/571716/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin615.fits ra=124.557 dec=42.3819 rad=12.0 tmin=610934401.0 tmax=611539201.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.55
user 7.19
sys 0.30

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571716/ft1_filtered_4FGL_J0818.2+4222_weekly_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/571716/ft2_4FGL_J0818.2+4222_weekly_bin615.fits sctable="SC_DATA" expcube=/scratch/kocevski/571716/ltcube_610934401_611539201_4FGL_J0818.2+4222_weekly_bin615.fits outfile=/scratch/kocevski/571716/expmap_610934401_611539201_4FGL_J0818.2+4222_weekly_bin615.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/571716/ltcube_610934401_611539201_4FGL_J0818.2+4222_weekly_bin615.fits
.....................!
real 191.94
user 186.44
sys 4.94

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/571716/ft1_filtered_4FGL_J0818.2+4222_weekly_bin615.fits scfile=/scratch/kocevski/571716/ft2_4FGL_J0818.2+4222_weekly_bin615.fits outfile=/scratch/kocevski/571716/cmap_610934401_611539201_4FGL_J0818.2+4222_weekly_bin615.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.61
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571716/ft1_filtered_4FGL_J0818.2+4222_weekly_bin615.fits scfile=/scratch/kocevski/571716/ft2_4FGL_J0818.2+4222_weekly_bin615.fits outfile=/scratch/kocevski/571716/cmap_HighResolution_610934401_611539201_4FGL_J0818.2+4222_weekly_bin615.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.60
user 0.41
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0931       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8896       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1138       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.5494       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3481       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6785       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.069       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.7761       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6147       1.0000         .10000E-03   10000.    
    13 'norm      '    1.5086       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1254       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5506       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10799E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.5329       1.0000         .10000E-03   10000.    
    20 'norm      '    3.2853       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.1498       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11861E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .42032       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .98903       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .99262       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=   16503.10     FROM MIGRAD    STATUS=CONVERGED    798 CALLS     3451 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0939        4.0652       -.36118E-06   -.12210E-03
   2  Prefactor     .10000E-03    6.4712        .42224E-05** at limit **
   3  Prefactor     2.8620        16.697       -.11321E-05   -.62067E-05
   4  Prefactor     1.1195        .87188        .14272E-06   -.20146E-02
   5  Prefactor     .10000E-03    2.8383       -.43868E-07** at limit **
   6  norm          9.5492        8.1952       -.21186E-06   -.42167E-04
   7  norm          1.3478        1.1708       -.13039E-06   -.29518E-03
   8  Prefactor     6.6774        4.7589       -.32863E-05   -.29461E-03
   9  Prefactor     10.057        22.228        .31069E-04    .49002E-04
  10  Prefactor     .10000E-03    .94770       -.64113E-07** at limit **
  11  norm          5.7760        2.8054        .38413E-07   -.34286E-04
  12  norm          1.6147        .95481        .98678E-08   -.33728E-04
  13  norm          1.5085        .38834       -.69753E-07   -.44631E-03
  14  Prefactor     5.1249        9.0992       -.32437E-06   -.57430E-05
  15  Prefactor     .10000E-03    4.5580        .31832E-07** at limit **
  16  Prefactor     2.5509        1.7862        .53129E-07   -.26467E-04
  17  Prefactor     .10123E-03    6.9166       -.46863E-06** at limit **
  18  Prefactor     .10000E-03    3.5177        .37691E-07** at limit **
  19  Prefactor     7.5330        4.8982       -.18843E-06   -.20007E-04
  20  norm          3.2852        3.1058        .12450E-06   -.87801E-04
  21  norm          .10000E-03    .93177       -.12442E-07** at limit **
  22  Prefactor     .10000E-03    .53158        .73411E-07** at limit **
  23  Prefactor     .10000E-03    9.0903        .12233E-06** at limit **
  24  Prefactor     .10000E-03    6.5884       -.42964E-05** at limit **
  25  Prefactor     1.1495        1.4584        .14578E-06   -.44323E-05
  26  Prefactor     .10000E-03    14.471        .39454E-07** at limit **
  27  norm          .42026        .25739        .13431E-07   -.42873E-03
  28  Prefactor     .10000E-03    .86092        .74118E-07** at limit **
  29  Normalizat    .98909        .11264       -.12663E-05   -.38475E-04
  30  Prefactor     .99259        .86853E-01   -.70445E-07   -.19873E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.09394
  Prefactor  = 0.0001
  Prefactor  = 2.86204
  Prefactor  = 1.11949
  Prefactor  = 0.0001
  norm       = 9.54919
  norm       = 1.34776
  Prefactor  = 6.67735
  Prefactor  = 10.0572
  Prefactor  = 0.0001
  norm       = 5.77602
  norm       = 1.61468
  norm       = 1.50855
  Prefactor  = 5.12489
  Prefactor  = 0.0001
  Prefactor  = 2.55091
  Prefactor  = 0.000101232
  Prefactor  = 0.0001
  Prefactor  = 7.53295
  norm       = 3.2852
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.14947
  Prefactor  = 0.0001
  norm       = 0.420255
  Prefactor  = 0.0001
  Normalizat = 0.989093
  Prefactor  = 0.992586
 **********
 **   18 **HESSE 
 **********

 FCN=   16503.10     FROM HESSE     STATUS=OK           604 CALLS     4055 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0939        4.0988        .45675E-03   -1.5499    
   2  Prefactor     .10000E-03    6.5548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8620        16.936        .23907E-03   -1.5370    
   4  Prefactor     1.1195        6.6833        .22334E-02   -1.5496    
   5  Prefactor     .10000E-03    2.8477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.5492        8.1940        .12968E-03   -1.5090    
   7  norm          1.3478        1.1624        .12532E-03   -1.5476    
   8  Prefactor     6.6774        4.7584        .15527E-03   -1.5191    
   9  Prefactor     10.057        22.235        .12627E-03   -1.5074    
  10  Prefactor     .10000E-03    .95784        .12202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.7760        2.7982        .14232E-03   -1.5227    
  12  norm          1.6147        .95360        .91847E-04   -1.5454    
  13  norm          1.5085        .38852        .38844E-04   -1.5462    
  14  Prefactor     5.1249        9.0904        .17759E-03   -1.5255    
  15  Prefactor     .10000E-03    4.5934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.5509        1.7755        .13584E-03   -1.5389    
  17  Prefactor     .10123E-03    8.1109        .10292       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.5626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.5330        4.8982        .14612E-03   -1.5159    
  20  norm          3.2852        3.0955        .21122E-03   -1.5345    
  21  norm          .10000E-03    .93768        .12105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.3754        .18024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.0959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.5914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.1495        1.4270        .16639E-03   -1.5494    
  26  Prefactor     .10000E-03    14.993        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .42026        .24190        .46981E-04   -1.5578    
  28  Prefactor     .10000E-03    1.5401        .21882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .98909        .12684        .26573E-03   -.93397    
  30  Prefactor     .99259        .99120E-01    .21190E-03   -.92977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02348e-08
Minuit parameter uncertainties:
  1  4.09987
  2  3.97972e-06
  3  13.9301
  4  5.47126
  5  8.92809e-06
  6  8.19499
  7  1.16237
  8  4.75869
  9  22.2535
  10  3.31233e-06
  11  2.79822
  12  0.953609
  13  0.388525
  14  9.09283
  15  1.23882e-07
  16  1.77555
  17  0.0063241
  18  3.91447e-07
  19  4.89842
  20  3.09568
  21  1.39137e-06
  22  7.78836e-06
  23  3.00304e-06
  24  3.09785e-06
  25  1.427
  26  3.3e-05
  27  0.2419
  28  7.16971e-06
  29  0.126878
  30  0.099138
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.509e+00  3.885e-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.926e-01  9.914e-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:  9.891e-01  1.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 61.13
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 7.53e-08 +/- 1.94e-08
Energy Flux (Fixed Index): 4.24e-05 +/- 1.09e-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) = 16502.1310702
delta logL = 0.968815369746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16502.1309553
delta logL = 0.968930255975

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4660       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6848       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0070       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98697       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16502.13     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      209 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4660        .41267         .0000       -.45728E-03
   2  alpha         1.6848        .20729         .0000       -.55812E-04
   3  Normalizat    1.0070        .10610         .0000        .26455E-04
   4  Prefactor     .98697        .84882E-01     .0000       -.43012E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.46601
  alpha      = 1.68477
  Normalizat = 1.00697
  Prefactor  = 0.98697
 **********
 **   18 **HESSE 
 **********

 FCN=   16502.13     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4660        .40978        .40172E-04   -1.5466    
   2  alpha         1.6848        .21932        .10329E-01   -.33216    
   3  Normalizat    1.0070        .12071        .26375E-03   -.92797    
   4  Prefactor     .98697        .96673E-01    .21251E-03   -.93165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47908e-10
Minuit parameter uncertainties:
  1  0.409777
  2  0.219632
  3  0.120747
  4  0.0966895
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571716': 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) = 16502.1309553
delta logL = 0.968930255975

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.466e+00  4.098e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.685e+00  2.196e-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.870e-01  9.669e-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.007e+00  1.207e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 63.13
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.68 +/- 0.22
Photon Flux (Free Index): 5.61e-08 +/- 1.98e-08
Energy Flux (Free Index): 5.97e-05 +/- 2.33e-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/571716/cmap_HighResolution_610934401_611539201_4FGL_J0818.2+4222_weekly_bin615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.53e-08', energy_flux2='5.97e-05', photon_flux_error='1.94e-08', dlogl='9.69e-01', energy_flux='4.24e-05', photon_flux2='5.61e-08', job_status='DONE', time_completed='2021-07-13 15:27:53.333141', photon_index_error2='0.22', photon_index2='1.68', ts='61.13', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.33e-05', EG='0.99', time_epoch_completed='1626215273.33', return_code='0', job_id='571716', GAL2='0.99', EG2='1.01', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='1.98e-08', ts2='63.13', photon_index='2.00' WHERE bin_id='615' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:27:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 571716: <4FGL_J0818.2+4222_weekly_bin615> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin615 124.557 42.3819 610934401 611539201 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 :                                   1536.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             51.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2339 sec.
    Turnaround time :                            114419 sec.

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

