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 219 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 = 17162
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin668
RA = 124.557, Dec = 42.3819
tmin = 642988801, tmax = 643593601
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='571800', job_status='RUN', time_executed='2021-07-13 14:58:34.455095', time_epoch_executed='1626213514.46' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='668'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571800

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571800/ft1_4FGL_J0818.2+4222_weekly_bin668.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571800/ft2_4FGL_J0818.2+4222_weekly_bin668.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571800/ft1_4FGL_J0818.2+4222_weekly_bin668.fits outfile=/scratch/kocevski/571800/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin668.fits ra=124.557 dec=42.3819 rad=12.0 tmin=642988801.0 tmax=643593601.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.02
user 7.15
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571800/ft1_filtered_4FGL_J0818.2+4222_weekly_bin668.fits" evtable="EVENTS" scfile=/scratch/kocevski/571800/ft2_4FGL_J0818.2+4222_weekly_bin668.fits sctable="SC_DATA" outfile=/scratch/kocevski/571800/ltcube_642988801_643593601_4FGL_J0818.2+4222_weekly_bin668.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/571800/ft2_4FGL_J0818.2+4222_weekly_bin668.fits
.....................!
real 30.04
user 28.60
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571800/ft1_filtered_4FGL_J0818.2+4222_weekly_bin668.fits evtable="EVENTS" scfile=/scratch/kocevski/571800/ft2_4FGL_J0818.2+4222_weekly_bin668.fits sctable="SC_DATA" expcube=/scratch/kocevski/571800/ltcube_642988801_643593601_4FGL_J0818.2+4222_weekly_bin668.fits outfile=/scratch/kocevski/571800/expmap_642988801_643593601_4FGL_J0818.2+4222_weekly_bin668.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/571800/ltcube_642988801_643593601_4FGL_J0818.2+4222_weekly_bin668.fits
.....................!
real 198.32
user 186.26
sys 5.12

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/571800/ft1_filtered_4FGL_J0818.2+4222_weekly_bin668.fits scfile=/scratch/kocevski/571800/ft2_4FGL_J0818.2+4222_weekly_bin668.fits outfile=/scratch/kocevski/571800/cmap_642988801_643593601_4FGL_J0818.2+4222_weekly_bin668.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.72
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571800/ft1_filtered_4FGL_J0818.2+4222_weekly_bin668.fits scfile=/scratch/kocevski/571800/ft2_4FGL_J0818.2+4222_weekly_bin668.fits outfile=/scratch/kocevski/571800/cmap_HighResolution_642988801_643593601_4FGL_J0818.2+4222_weekly_bin668.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.62
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8300       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.335       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.6551       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1990       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.530       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .86451       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6859       1.0000         .10000E-03   10000.    
    12 'norm      '    3.2961       1.0000         .10000E-03   10000.    
    13 'norm      '    .75235       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6888       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.828       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0725       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2640       1.0000         .10000E-03   10000.    
    20 'norm      '    3.8618       1.0000         .10000E-03   10000.    
    21 'norm      '    .55659       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10930E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    31.899       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11735E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .68940       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .28636E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1473       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95217       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=   17357.05     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3964 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8327        4.0586        .29488E-06   -.31398E-03
   2  Prefactor     .10000E-03    2.6295       -.84104E-06** at limit **
   3  Prefactor     16.335        16.078        .12703E-06   -.39231E-04
   4  Prefactor     .10000E-03    3.6368        .56067E-06** at limit **
   5  Prefactor     .10000E-03    2.1413        .49146E-06** at limit **
   6  norm          .10000E-03    2.9312        .10460E-05** at limit **
   7  norm          1.6551        1.2841        .80943E-07   -.33036E-03
   8  Prefactor     1.2039        3.1480        .11774E-05   -.69515E-03
   9  Prefactor     33.525        19.046       -.17762E-05   -.48802E-03
  10  Prefactor     .86454        2.5761        .11801E-05   -.10501E-02
  11  norm          1.6859        1.6035        .41844E-07   -.10302E-03
  12  norm          3.2961        1.1393        .25754E-07   -.41266E-05
  13  norm          .75227        .37497       -.34588E-07   -.19537E-03
  14  Prefactor     .10000E-03    23.532        .51267E-06** at limit **
  15  Prefactor     4.6880        5.1333        .18386E-05   -.19482E-02
  16  Prefactor     .10000E-03    .67018       -.18271E-06** at limit **
  17  Prefactor     13.826        18.223       -.13398E-05   -.16327E-03
  18  Prefactor     6.0725        6.2734        .38733E-06   -.44837E-05
  19  Prefactor     3.2645        3.8840        .37452E-07   -.13917E-03
  20  norm          3.8630        3.5161       -.31206E-06   -.76985E-04
  21  norm          .55589        1.9644       -.15666E-06   -.60355E-03
  22  Prefactor     .10000E-03    .50424       -.39453E-07** at limit **
  23  Prefactor     31.915        44.735        .92838E-05    .45960E-03
  24  Prefactor     .10000E-03    6.3693        .21070E-06** at limit **
  25  Prefactor     .10000E-03    .57029        .17122E-06** at limit **
  26  Prefactor     .10000E-03    3.8024       -.66889E-06** at limit **
  27  norm          .68899        .30162       -.22132E-07    .96186E-04
  28  Prefactor     .10000E-03    .76180       -.90338E-07** at limit **
  29  Normalizat    1.1474        .11443       -.91984E-06    .10667E-03
  30  Prefactor     .95208        .86879E-01    .14470E-07   -.16465E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.83274
  Prefactor  = 0.0001
  Prefactor  = 16.3353
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.65514
  Prefactor  = 1.20385
  Prefactor  = 33.5255
  Prefactor  = 0.864537
  norm       = 1.68592
  norm       = 3.29612
  norm       = 0.752272
  Prefactor  = 0.0001
  Prefactor  = 4.68803
  Prefactor  = 0.0001
  Prefactor  = 13.8256
  Prefactor  = 6.07247
  Prefactor  = 3.26455
  norm       = 3.86303
  norm       = 0.555894
  Prefactor  = 0.000100001
  Prefactor  = 31.915
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.688991
  Prefactor  = 0.000100002
  Normalizat = 1.14735
  Prefactor  = 0.952081
 **********
 **   18 **HESSE 
 **********

 FCN=   17357.05     FROM HESSE     STATUS=OK           598 CALLS     4562 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8327        4.0727        .24174E-03   -1.5371    
   2  Prefactor     .10000E-03    2.6485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.335        16.077        .99096E-04   -1.4899    
   4  Prefactor     .10000E-03    3.6685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.1496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.9665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.6551        1.2729        .12722E-03   -1.5451    
   8  Prefactor     1.2039        3.1507        .36710E-03   -1.5489    
   9  Prefactor     33.525        19.132        .69203E-04   -1.4549    
  10  Prefactor     .86454        2.5830        .33639E-03   -1.5522    
  11  norm          1.6859        1.5977        .15667E-03   -1.5448    
  12  norm          3.2961        1.1372        .79317E-04   -1.5345    
  13  norm          .75227        .36638        .52459E-04   -1.5535    
  14  Prefactor     .10000E-03    23.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6880        5.6700        .92922E-03   -1.5275    
  16  Prefactor     .10000E-03    .69462        .21037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.826        18.192        .10771E-03   -1.4964    
  18  Prefactor     6.0725        6.2497        .16293E-03   -1.5215    
  19  Prefactor     3.2645        3.8585        .22415E-03   -1.5347    
  20  norm          3.8630        3.4662        .20535E-03   -1.5315    
  21  norm          .55589        3.7854        .32611E-02   -1.5559    
  22  Prefactor     .10000E-03    1.9194        .17642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     31.915        47.344        .70945E-04   -1.4577    
  24  Prefactor     .10000E-03    6.3753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.4950        .19223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.8170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .68899        .27511        .42848E-04   -1.5542    
  28  Prefactor     .10000E-03    5.6835        .20282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1474        .13071        .25869E-03   -.88246    
  30  Prefactor     .95208        .10100        .22306E-03   -.94344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03852e-07
Minuit parameter uncertainties:
  1  4.07305
  2  3.76402e-05
  3  16.0814
  4  3.40563e-05
  5  2.24446e-05
  6  5.22021e-05
  7  1.27293
  8  3.15111
  9  19.1354
  10  2.58333
  11  1.5977
  12  1.13725
  13  0.366385
  14  8.35779e-05
  15  5.67063
  16  2.99775e-06
  17  18.1995
  18  6.25036
  19  3.85875
  20  3.4664
  21  2.90124
  22  7.72645e-05
  23  47.3997
  24  1.68289e-05
  25  9.82875e-06
  26  3.62235e-05
  27  0.275115
  28  0.000213049
  29  0.13075
  30  0.10102
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  7.523e-01  3.664e-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.521e-01  1.010e-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.147e+00  1.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.16
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.76e-08 +/- 1.83e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 1.03e-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) = 17356.5741329
delta logL = 0.471945442958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17356.5732864
delta logL = 0.472791877306

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .75558       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3754       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1290       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95719       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=   17356.57     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      223 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .75559        3.5199        .99656E-02    .14644E-02
   2  alpha         2.3754        3.6366        .29874        .13429E-03
   3  Normalizat    1.1290        .39812E-01    .58867E-01    .28270E-04
   4  Prefactor     .95719        .29207E-01    .45730E-01    .19997E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.755585
  alpha      = 2.37539
  Normalizat = 1.12897
  Prefactor  = 0.957189
 **********
 **   18 **HESSE 
 **********

 FCN=   17356.57     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .75559        .33483        .44909E-04   -1.5534    
   2  alpha         2.3754        .38674        .14744E-01   -.49863E-01
   3  Normalizat    1.1290        .12480        .26034E-03   -.88827    
   4  Prefactor     .95719        .98329E-01    .22240E-03   -.94170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05683e-11
Minuit parameter uncertainties:
  1  0.334827
  2  0.388303
  3  0.124834
  4  0.0983469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571800': 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) = 17356.5732864
delta logL = 0.472791881039

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  7.556e-01  3.348e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.375e+00  3.883e-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.572e-01  9.835e-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.129e+00  1.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.10
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.38 +/- 0.39
Photon Flux (Free Index): 5.81e-08 +/- 2.91e-08
Energy Flux (Free Index): 1.93e-05 +/- 8.09e-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/571800/cmap_HighResolution_642988801_643593601_4FGL_J0818.2+4222_weekly_bin668.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.76e-08', energy_flux2='1.93e-05', photon_flux_error='1.83e-08', dlogl='4.73e-01', energy_flux='2.12e-05', photon_flux2='5.81e-08', job_status='DONE', time_completed='2021-07-13 15:27:51.616202', photon_index_error2='0.39', photon_index2='2.38', ts='10.16', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='8.09e-06', EG='1.15', time_epoch_completed='1626215271.62', return_code='0', job_id='571800', GAL2='0.96', EG2='1.13', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='2.91e-08', ts2='11.10', photon_index='2.00' WHERE bin_id='668' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:27:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 571800: <4FGL_J0818.2+4222_weekly_bin668> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin668 124.557 42.3819 642988801 643593601 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 :                                   1721.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             13.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2224 sec.
    Turnaround time :                            114411 sec.

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

