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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin399
RA = 124.557, Dec = 42.3819
tmin = 480297601, tmax = 480902401
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='569209', job_status='RUN', time_executed='2021-07-12 07:37:15.106020', time_epoch_executed='1626100635.11' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569209

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569209/ft1_4FGL_J0818.2+4222_weekly_bin399.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569209/ft2_4FGL_J0818.2+4222_weekly_bin399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569209/ft1_4FGL_J0818.2+4222_weekly_bin399.fits outfile=/scratch/kocevski/569209/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin399.fits ra=124.557 dec=42.3819 rad=12.0 tmin=480297601.0 tmax=480902401.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.64
user 7.28
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/569209/ft1_filtered_4FGL_J0818.2+4222_weekly_bin399.fits" evtable="EVENTS" scfile=/scratch/kocevski/569209/ft2_4FGL_J0818.2+4222_weekly_bin399.fits sctable="SC_DATA" outfile=/scratch/kocevski/569209/ltcube_480297601_480902401_4FGL_J0818.2+4222_weekly_bin399.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/569209/ft2_4FGL_J0818.2+4222_weekly_bin399.fits
.....................!
real 30.74
user 30.00
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569209/ft1_filtered_4FGL_J0818.2+4222_weekly_bin399.fits evtable="EVENTS" scfile=/scratch/kocevski/569209/ft2_4FGL_J0818.2+4222_weekly_bin399.fits sctable="SC_DATA" expcube=/scratch/kocevski/569209/ltcube_480297601_480902401_4FGL_J0818.2+4222_weekly_bin399.fits outfile=/scratch/kocevski/569209/expmap_480297601_480902401_4FGL_J0818.2+4222_weekly_bin399.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/569209/ltcube_480297601_480902401_4FGL_J0818.2+4222_weekly_bin399.fits
.....................!
real 192.26
user 185.86
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/569209/ft1_filtered_4FGL_J0818.2+4222_weekly_bin399.fits scfile=/scratch/kocevski/569209/ft2_4FGL_J0818.2+4222_weekly_bin399.fits outfile=/scratch/kocevski/569209/cmap_480297601_480902401_4FGL_J0818.2+4222_weekly_bin399.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.69
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/569209/ft1_filtered_4FGL_J0818.2+4222_weekly_bin399.fits scfile=/scratch/kocevski/569209/ft2_4FGL_J0818.2+4222_weekly_bin399.fits outfile=/scratch/kocevski/569209/cmap_HighResolution_480297601_480902401_4FGL_J0818.2+4222_weekly_bin399.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.65
user 0.43
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.889       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0120       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.9671       1.0000         .10000E-03   10000.    
     6 'norm      '    6.8769       1.0000         .10000E-03   10000.    
     7 'norm      '    3.1537       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17941       1.0000         .10000E-03   10000.    
    11 'norm      '    .20655E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.1006       1.0000         .10000E-03   10000.    
    13 'norm      '    .80476       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.555       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4179       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.837       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3233       1.0000         .10000E-03   10000.    
    20 'norm      '    2.8895       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .94196       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.3012       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.0101       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.8408       1.0000         .10000E-03   10000.    
    27 'norm      '    .93199       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.3552       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .78955       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0856       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=   16653.62     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     3442 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6291       -.69493E-07** at limit **
   2  Prefactor     .10000E-03    6.4321        .82925E-06** at limit **
   3  Prefactor     15.888        14.429       -.39688E-06    .16347E-04
   4  Prefactor     2.0108        4.7601        .92119E-07   -.79465E-03
   5  Prefactor     9.9672        8.1024       -.13344E-06   -.55442E-06
   6  norm          6.8765        5.4891       -.87319E-08   -.18252E-03
   7  norm          3.1538        1.6198       -.13849E-07    .34932E-05
   8  Prefactor     .10000E-03    3.1347        .14552E-06** at limit **
   9  Prefactor     .10000E-03    9.0142       -.10920E-05** at limit **
  10  Prefactor     .16907        .78662        .14848E-06   -.47215E-03
  11  norm          .10000E-03    .79316       -.62905E-07** at limit **
  12  norm          3.1002        1.0130        .28902E-08    .98514E-04
  13  norm          .80493        .33257       -.54464E-08   -.18311E-03
  14  Prefactor     26.554        16.594       -.88520E-06    .45080E-04
  15  Prefactor     1.4184        2.0716        .12937E-06   -.16198E-02
  16  Prefactor     .10000E-03    .55238       -.32022E-07** at limit **
  17  Prefactor     17.837        15.267       -.75944E-06    .28012E-04
  18  Prefactor     .10000E-03    1.6631       -.16118E-07** at limit **
  19  Prefactor     3.3231        2.8928       -.36168E-06    .99994E-04
  20  norm          2.8895        2.9468       -.83057E-06    .67746E-04
  21  norm          .10000E-03    .86975        .60752E-07** at limit **
  22  Prefactor     .94232        1.4249        .14146E-06    .57845E-05
  23  Prefactor     .10000E-03    44.807        .27959E-05** at limit **
  24  Prefactor     1.2473        56.073       -.23396E-04   -.65655E-04
  25  Prefactor     3.0098        1.8784       -.33976E-06    .17223E-03
  26  Prefactor     7.8394        10.225        .10422E-04   -.84452E-04
  27  norm          .93156        .44382        .94016E-08   -.28890E-03
  28  Prefactor     2.3582        3.3595       -.12007E-06   -.56678E-04
  29  Normalizat    .78960        .11077       -.20445E-06    .11517E-03
  30  Prefactor     1.0856        .85781E-01    .29551E-06    .14198E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8884
  Prefactor  = 2.01082
  Prefactor  = 9.96723
  norm       = 6.87652
  norm       = 3.15381
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.169068
  norm       = 0.0001
  norm       = 3.10022
  norm       = 0.804927
  Prefactor  = 26.5537
  Prefactor  = 1.41837
  Prefactor  = 0.0001
  Prefactor  = 17.837
  Prefactor  = 0.0001
  Prefactor  = 3.32313
  norm       = 2.88948
  norm       = 0.0001
  Prefactor  = 0.942321
  Prefactor  = 0.0001
  Prefactor  = 1.24727
  Prefactor  = 3.00976
  Prefactor  = 7.83938
  norm       = 0.931556
  Prefactor  = 2.35819
  Normalizat = 0.789597
  Prefactor  = 1.08565
 **********
 **   18 **HESSE 
 **********

 FCN=   16653.62     FROM HESSE     STATUS=OK           604 CALLS     4046 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.6146        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.888        14.430        .10048E-03   -1.4911    
   4  Prefactor     2.0108        5.4991        .14593E-02   -1.5424    
   5  Prefactor     9.9672        8.0961        .12692E-03   -1.5076    
   6  norm          6.8765        5.5020        .76497E-03   -1.5183    
   7  norm          3.1538        1.6195        .11144E-03   -1.5353    
   8  Prefactor     .10000E-03    3.2687        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.0304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .16907        6.8103        .21363E-02   -1.5626    
  11  norm          .10000E-03    4.4532        .22113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1002        1.0041        .23030E-04   -1.5356    
  13  norm          .80493        .32678        .44991E-04   -1.5529    
  14  Prefactor     26.554        16.596        .77739E-04   -1.4677    
  15  Prefactor     1.4184        3.7188        .18173E-02   -1.5470    
  16  Prefactor     .10000E-03    1.2384        .18422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.837        15.276        .94832E-04   -1.4863    
  18  Prefactor     .10000E-03    1.6784        .16245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.3231        2.8962        .19960E-03   -1.5343    
  20  norm          2.8895        2.9312        .21380E-03   -1.5368    
  21  norm          .10000E-03    .87438        .11750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .94232        1.3923        .17436E-03   -1.5514    
  23  Prefactor     .10000E-03    45.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.2473        57.906        .38731E-03   -1.5485    
  25  Prefactor     3.0098        1.8654        .12985E-03   -1.5361    
  26  Prefactor     7.8394        10.254        .14320E-03   -1.5148    
  27  norm          .93156        .51611        .42947E-04   -1.5515    
  28  Prefactor     2.3582        3.9441        .19741E-03   -1.5401    
  29  Normalizat    .78960        .12605        .28168E-03   -1.0046    
  30  Prefactor     1.0856        .98694E-01    .20070E-03   -.89927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71349e-09
Minuit parameter uncertainties:
  1  5.2121e-07
  2  2.19495e-05
  3  14.4331
  4  5.50048
  5  8.09701
  6  5.50242
  7  1.61956
  8  3.07848e-06
  9  1.90087e-05
  10  2.14569
  11  6.89319e-05
  12  1.00415
  13  0.326779
  14  16.5991
  15  3.71942
  16  5.1577e-06
  17  15.2792
  18  2.0979e-06
  19  2.89629
  20  2.93135
  21  1.76723e-06
  22  1.39237
  23  7.99507e-05
  24  17.0138
  25  1.86544
  26  10.256
  27  0.516109
  28  3.94449
  29  0.1261
  30  0.0987108
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  8.049e-01  3.268e-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.086e+00  9.871e-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:  7.896e-01  1.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.01
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.02e-08 +/- 1.63e-08
Energy Flux (Fixed Index): 2.26e-05 +/- 9.19e-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) = 16653.4459444
delta logL = 0.169149265297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16653.4315184
delta logL = 0.183575221286

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77850       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1977       1.0000          .0000       5.0000    
     3 'Normalizat'    .78128       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0885       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=   16653.43     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      238 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77864        3.6087        .94157E-02    .10476E-02
   2  alpha         2.1979        3.5586        .36102        .63110E-04
   3  Normalizat    .78121        .42934E-01    .63981E-01    .58805E-04
   4  Prefactor     1.0885        .30979E-01    .38040E-01    .72966E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.778643
  alpha      = 2.19793
  Normalizat = 0.781206
  Prefactor  = 1.08855
 **********
 **   18 **HESSE 
 **********

 FCN=   16653.43     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77864        .31349        .42192E-04   -1.5531    
   2  alpha         2.1979        .33951        .13240E-01   -.12113    
   3  Normalizat    .78121        .11705        .28303E-03   -1.0077    
   4  Prefactor     1.0885        .96291E-01    .20043E-03   -.89833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83976e-12
Minuit parameter uncertainties:
  1  0.313496
  2  0.340579
  3  0.117089
  4  0.0963065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569209': 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) = 16653.4315178
delta logL = 0.183575793566

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  7.786e-01  3.135e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.198e+00  3.406e-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.089e+00  9.631e-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:  7.812e-01  1.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.34
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.20 +/- 0.34
Photon Flux (Free Index): 4.84e-08 +/- 2.22e-08
Energy Flux (Free Index): 2.00e-05 +/- 8.59e-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/569209/cmap_HighResolution_480297601_480902401_4FGL_J0818.2+4222_weekly_bin399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.02e-08', energy_flux2='2.00e-05', photon_flux_error='1.63e-08', dlogl='1.84e-01', energy_flux='2.26e-05', photon_flux2='4.84e-08', job_status='DONE', time_completed='2021-07-13 15:08:47.951890', photon_index_error2='0.34', photon_index2='2.20', ts='15.01', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='8.59e-06', EG='0.79', time_epoch_completed='1626214127.95', return_code='0', job_id='569209', GAL2='1.09', EG2='0.78', return_code2='0', energy_flux_error='9.19e-06', photon_flux_error2='2.22e-08', ts2='15.34', photon_index='2.00' WHERE bin_id='399' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:08:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 569209: <4FGL_J0818.2+4222_weekly_bin399> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin399 124.557 42.3819 480297601 480902401 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 :                                   1537.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             324.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1745 sec.
    Turnaround time :                            113799 sec.

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

