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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin434
RA = 124.557, Dec = 42.3819
tmin = 501465601, tmax = 502070401
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='569282', job_status='RUN', time_executed='2021-07-12 07:40:35.629734', time_epoch_executed='1626100835.63' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569282

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569282/ft1_4FGL_J0818.2+4222_weekly_bin434.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569282/ft2_4FGL_J0818.2+4222_weekly_bin434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569282/ft1_4FGL_J0818.2+4222_weekly_bin434.fits outfile=/scratch/kocevski/569282/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin434.fits ra=124.557 dec=42.3819 rad=12.0 tmin=501465601.0 tmax=502070401.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.51
user 7.19
sys 0.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/569282/ft2_4FGL_J0818.2+4222_weekly_bin434.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/569282/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin434.fits evtable="EVENTS" outfile="/scratch/kocevski/569282/ft1_filtered_4FGL_J0818.2+4222_weekly_bin434.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 1.66
user 0.41
sys 0.22

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/569282/ft1_filtered_4FGL_J0818.2+4222_weekly_bin434.fits" evtable="EVENTS" scfile=/scratch/kocevski/569282/ft2_4FGL_J0818.2+4222_weekly_bin434.fits sctable="SC_DATA" outfile=/scratch/kocevski/569282/ltcube_501465601_502070401_4FGL_J0818.2+4222_weekly_bin434.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/569282/ft2_4FGL_J0818.2+4222_weekly_bin434.fits
.....................!
real 33.82
user 31.98
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569282/ft1_filtered_4FGL_J0818.2+4222_weekly_bin434.fits evtable="EVENTS" scfile=/scratch/kocevski/569282/ft2_4FGL_J0818.2+4222_weekly_bin434.fits sctable="SC_DATA" expcube=/scratch/kocevski/569282/ltcube_501465601_502070401_4FGL_J0818.2+4222_weekly_bin434.fits outfile=/scratch/kocevski/569282/expmap_501465601_502070401_4FGL_J0818.2+4222_weekly_bin434.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/569282/ltcube_501465601_502070401_4FGL_J0818.2+4222_weekly_bin434.fits
.....................!
real 205.02
user 188.45
sys 5.18

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/569282/ft1_filtered_4FGL_J0818.2+4222_weekly_bin434.fits scfile=/scratch/kocevski/569282/ft2_4FGL_J0818.2+4222_weekly_bin434.fits outfile=/scratch/kocevski/569282/cmap_501465601_502070401_4FGL_J0818.2+4222_weekly_bin434.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 2.17
user 0.44
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/569282/ft1_filtered_4FGL_J0818.2+4222_weekly_bin434.fits scfile=/scratch/kocevski/569282/ft2_4FGL_J0818.2+4222_weekly_bin434.fits outfile=/scratch/kocevski/569282/cmap_HighResolution_501465601_502070401_4FGL_J0818.2+4222_weekly_bin434.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=124.557 yref=42.3819 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.77
user 0.43
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2721       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .45880       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    36.856       1.0000         .10000E-03   10000.    
     7 'norm      '    4.3029       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.699       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8094       1.0000         .10000E-03   10000.    
    11 'norm      '    10.674       1.0000         .10000E-03   10000.    
    12 'norm      '    .64282       1.0000         .10000E-03   10000.    
    13 'norm      '    .68096       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8344       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2127       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.878       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0850       1.0000         .10000E-03   10000.    
    20 'norm      '    5.7699       1.0000         .10000E-03   10000.    
    21 'norm      '    3.9872       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2679       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.4999       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .73748       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11990E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0040       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .99189       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=   18001.64     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3945 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2718        2.3312        .74309E-06   -.48439E-02
   2  Prefactor     .10000E-03    3.3408        .16903E-06** at limit **
   3  Prefactor     .10000E-03    13.126       -.10660E-05** at limit **
   4  Prefactor     .45766        2.7918       -.22110E-06   -.11372E-03
   5  Prefactor     .10000E-03    5.7931       -.38611E-06** at limit **
   6  norm          36.856        9.7378        .14363E-06    .73365E-05
   7  norm          4.3030        1.7116       -.70009E-07    .65163E-04
   8  Prefactor     .10000E-03    1.7538       -.10059E-06** at limit **
   9  Prefactor     39.711        23.943        .78707E-05    .39381E-03
  10  Prefactor     1.8095        1.7968       -.77941E-07   -.23088E-03
  11  norm          10.674        3.0822        .12166E-06    .89103E-04
  12  norm          .64276        .84979        .58388E-07   -.55507E-03
  13  norm          .68095        .28061       -.38226E-07   -.78795E-03
  14  Prefactor     .10000E-03    11.409       -.37886E-05** at limit **
  15  Prefactor     3.8344        4.5838        .24184E-06   -.13609E-02
  16  Prefactor     1.2127        1.0810        .54078E-07   -.13956E-03
  17  Prefactor     14.876        11.015       -.36784E-07   -.10181E-04
  18  Prefactor     .10000E-03    2.9607       -.83399E-07** at limit **
  19  Prefactor     7.0849        4.8599        .15902E-06   -.94618E-03
  20  norm          5.7698        3.2664        .16159E-07   -.12578E-03
  21  norm          3.9872        3.0325        .33460E-07   -.12994E-03
  22  Prefactor     1.2676        1.2733        .60871E-07   -.53102E-03
  23  Prefactor     .10000E-03    9.2127        .25529E-05** at limit **
  24  Prefactor     .10000E-03    18.746        .86947E-05** at limit **
  25  Prefactor     1.4985        2.0544        .25271E-06   -.55655E-03
  26  Prefactor     .10000E-03    22.226       -.56404E-05** at limit **
  27  norm          .73719        .32236        .11674E-08   -.66121E-03
  28  Prefactor     .10000E-03    .86434        .44180E-07** at limit **
  29  Normalizat    1.0040        .11321       -.11000E-05    .14924E-03
  30  Prefactor     .99192        .85515E-01   -.22479E-07    .36082E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.27184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.457657
  Prefactor  = 0.0001
  norm       = 36.8563
  norm       = 4.30301
  Prefactor  = 0.0001
  Prefactor  = 39.7112
  Prefactor  = 1.80954
  norm       = 10.6742
  norm       = 0.642756
  norm       = 0.68095
  Prefactor  = 0.0001
  Prefactor  = 3.83435
  Prefactor  = 1.21271
  Prefactor  = 14.8763
  Prefactor  = 0.0001
  Prefactor  = 7.08487
  norm       = 5.76981
  norm       = 3.9872
  Prefactor  = 1.26765
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.49846
  Prefactor  = 0.0001
  norm       = 0.737194
  Prefactor  = 0.0001
  Normalizat = 1.00395
  Prefactor  = 0.991917
 **********
 **   18 **HESSE 
 **********

 FCN=   18001.64     FROM HESSE     STATUS=OK           600 CALLS     4545 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2718        3.9673        .11193E-02   -1.5346    
   2  Prefactor     .10000E-03    3.3842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .45766        13.455        .41962E-02   -1.5573    
   5  Prefactor     .10000E-03    5.8438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          36.856        9.7404        .66016E-04   -1.4493    
   7  norm          4.3030        1.7008        .10435E-03   -1.5293    
   8  Prefactor     .10000E-03    1.7785        .17353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.711        24.070        .63616E-04   -1.4447    
  10  Prefactor     1.8095        1.7875        .17167E-03   -1.5439    
  11  norm          10.674        3.0436        .11982E-03   -1.5054    
  12  norm          .64276        .69396        .13483E-02   -1.5548    
  13  norm          .68095        .27768        .43562E-04   -1.5543    
  14  Prefactor     .10000E-03    11.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8344        4.7155        .10305E-02   -1.5316    
  16  Prefactor     1.2127        1.0643        .12546E-03   -1.5488    
  17  Prefactor     14.876        11.008        .10384E-03   -1.4936    
  18  Prefactor     .10000E-03    3.0089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.0849        4.9059        .75354E-03   -1.5176    
  20  norm          5.7698        3.2596        .16721E-03   -1.5228    
  21  norm          3.9872        3.0261        .19448E-03   -1.5309    
  22  Prefactor     1.2676        1.2452        .14407E-03   -1.5483    
  23  Prefactor     .10000E-03    9.2222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.4985        2.0380        .20903E-03   -1.5463    
  26  Prefactor     .10000E-03    22.934        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .73719        .29495        .44791E-04   -1.5536    
  28  Prefactor     .10000E-03    2.5304        .21815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0040        .12715        .27321E-03   -.92898    
  30  Prefactor     .99192        .97816E-01    .21971E-03   -.92999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38489e-07
Minuit parameter uncertainties:
  1  3.96761
  2  5.12006e-06
  3  1.14117e-05
  4  4.96372
  5  3.17351e-05
  6  9.74085
  7  1.70086
  8  2.67412e-05
  9  24.0762
  10  1.78753
  11  3.04369
  12  0.693971
  13  0.277681
  14  5.33415e-05
  15  4.71597
  16  1.06431
  17  11.0099
  18  1.98929e-06
  19  4.90618
  20  3.2597
  21  3.02625
  22  1.24522
  23  5.61326e-05
  24  0.000270952
  25  2.03805
  26  8.40182e-05
  27  0.294949
  28  1.82216e-05
  29  0.127189
  30  0.0978335
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  6.810e-01  2.777e-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.919e-01  9.783e-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.004e+00  1.272e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.81
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.40e-08 +/- 1.39e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 7.81e-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) = 18000.7453372
delta logL = 0.890533706075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18000.7442453
delta logL = 0.891625601933

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58276       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5137       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98946       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=   18000.74     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      210 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58281        .25025        .95240E-02   -.16052E-02
   2  alpha         1.5134        .25841        .37611       -.49694E-04
   3  Normalizat    1.0151        .10529        .44195E-01    .13598E-03
   4  Prefactor     .98942        .84564E-01    .46135E-01   -.36099E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.582815
  alpha      = 1.51339
  Normalizat = 1.01514
  Prefactor  = 0.989423
 **********
 **   18 **HESSE 
 **********

 FCN=   18000.74     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58281        .29035        .42064E-04   -1.5555    
   2  alpha         1.5134        .34383        .14465E-01   -.40568    
   3  Normalizat    1.0151        .11904        .27193E-03   -.92525    
   4  Prefactor     .98942        .95704E-01    .22000E-03   -.93083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3478e-11
Minuit parameter uncertainties:
  1  0.290346
  2  0.345125
  3  0.119074
  4  0.09572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569282': 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) = 18000.7442445
delta logL = 0.891626402452

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  5.828e-01  2.903e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.513e+00  3.451e-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.894e-01  9.572e-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.015e+00  1.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.62
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.51 +/- 0.35
Photon Flux (Free Index): 2.03e-08 +/- 1.20e-08
Energy Flux (Free Index): 3.29e-05 +/- 2.10e-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/569282/cmap_HighResolution_501465601_502070401_4FGL_J0818.2+4222_weekly_bin434.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.40e-08', energy_flux2='3.29e-05', photon_flux_error='1.39e-08', dlogl='8.92e-01', energy_flux='1.91e-05', photon_flux2='2.03e-08', job_status='DONE', time_completed='2021-07-13 15:16:49.678427', photon_index_error2='0.35', photon_index2='1.51', ts='17.81', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.10e-05', EG='1.00', time_epoch_completed='1626214609.68', return_code='0', job_id='569282', GAL2='0.99', EG2='1.02', return_code2='0', energy_flux_error='7.81e-06', photon_flux_error2='1.20e-08', ts2='19.62', photon_index='2.00' WHERE bin_id='434' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:16:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 569282: <4FGL_J0818.2+4222_weekly_bin434> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin434 124.557 42.3819 501465601 502070401 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 :                                   1759.00 sec.
    Max Memory :                                 622 MB
    Average Memory :                             614.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2196 sec.
    Turnaround time :                            114275 sec.

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

