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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin667
RA = 124.557, Dec = 42.3819
tmin = 642384001, tmax = 642988801
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='571799', job_status='RUN', time_executed='2021-07-13 14:56:54.581187', time_epoch_executed='1626213414.58' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571799

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571799/ft1_4FGL_J0818.2+4222_weekly_bin667.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571799/ft2_4FGL_J0818.2+4222_weekly_bin667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571799/ft1_4FGL_J0818.2+4222_weekly_bin667.fits outfile=/scratch/kocevski/571799/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin667.fits ra=124.557 dec=42.3819 rad=12.0 tmin=642384001.0 tmax=642988801.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 9.19
user 7.33
sys 0.30

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571799/ft1_filtered_4FGL_J0818.2+4222_weekly_bin667.fits evtable="EVENTS" scfile=/scratch/kocevski/571799/ft2_4FGL_J0818.2+4222_weekly_bin667.fits sctable="SC_DATA" expcube=/scratch/kocevski/571799/ltcube_642384001_642988801_4FGL_J0818.2+4222_weekly_bin667.fits outfile=/scratch/kocevski/571799/expmap_642384001_642988801_4FGL_J0818.2+4222_weekly_bin667.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/571799/ltcube_642384001_642988801_4FGL_J0818.2+4222_weekly_bin667.fits
.....................!
real 199.89
user 185.61
sys 4.28

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/571799/ft1_filtered_4FGL_J0818.2+4222_weekly_bin667.fits scfile=/scratch/kocevski/571799/ft2_4FGL_J0818.2+4222_weekly_bin667.fits outfile=/scratch/kocevski/571799/cmap_642384001_642988801_4FGL_J0818.2+4222_weekly_bin667.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.60
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571799/ft1_filtered_4FGL_J0818.2+4222_weekly_bin667.fits scfile=/scratch/kocevski/571799/ft2_4FGL_J0818.2+4222_weekly_bin667.fits outfile=/scratch/kocevski/571799/cmap_HighResolution_642384001_642988801_4FGL_J0818.2+4222_weekly_bin667.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.59
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15528E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.438       1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.608       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.7316       1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.404       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .91211E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10320E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4659       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4132       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8285       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10603E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.115       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.6993       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12666E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.7294       1.0000         .10000E-03   10000.    
    21 'norm      '    .13660E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.7227       1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.314       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .29446       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.3256       1.0000         .10000E-03   10000.    
    27 'norm      '    .68335       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.1823       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .92724       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0586       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=   16275.10     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     4016 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5548        .40333E-07** at limit **
   2  Prefactor     11.437        9.6926       -.60079E-07   -.43526E-03
   3  Prefactor     48.606        21.510       -.14411E-05   -.10049E-03
   4  Prefactor     .10000E-03    2.0923        .17353E-06** at limit **
   5  Prefactor     .10000E-03    7.4579        .28435E-05** at limit **
   6  norm          3.7311        5.5709        .10024E-06   -.16418E-02
   7  norm          .10000E-03    .53938        .30845E-07** at limit **
   8  Prefactor     .10000E-03    2.1232       -.92824E-08** at limit **
   9  Prefactor     18.395        24.302       -.86538E-05   -.25907E-03
  10  Prefactor     .10055E-03    1.1216        .95117E-06** at limit **
  11  norm          .10000E-03    .75378        .91456E-08** at limit **
  12  norm          1.4656        .83575       -.59946E-08   -.41178E-04
  13  norm          1.4131        .43304        .24276E-07   -.25703E-02
  14  Prefactor     .10000E-03    5.8400       -.64884E-06** at limit **
  15  Prefactor     6.8229        8.1584        .40244E-06   -.10461E-02
  16  Prefactor     .10000E-03    .77953       -.90817E-07** at limit **
  17  Prefactor     16.111        21.689       -.29199E-05   -.12875E-03
  18  Prefactor     6.6953        7.7673        .94338E-06   -.10917E-02
  19  Prefactor     .10000E-03    8.0166       -.93622E-06** at limit **
  20  norm          4.7301        3.7782        .86374E-06    .23867E-03
  21  norm          .10002E-03    1.4253       -.61058E-06** at limit **
  22  Prefactor     2.7226        1.7237       -.16347E-06   -.25402E-03
  23  Prefactor     25.314        31.528       -.19580E-06    .26819E-04
  24  Prefactor     .10000E-03    28.451       -.17496E-05** at limit **
  25  Prefactor     .29401        1.3260       -.10144E-06   -.13028E-02
  26  Prefactor     4.3220        8.9867        .29512E-06    .16582E-05
  27  norm          .68353        .44726       -.98017E-07    .17983E-03
  28  Prefactor     1.1797        3.4398        .73653E-06   -.67641E-03
  29  Normalizat    .92735        .12177        .48400E-06   -.39099E-03
  30  Prefactor     1.0585        .90471E-01    .12070E-06   -.40264E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 11.4369
  Prefactor  = 48.6055
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.73113
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3948
  Prefactor  = 0.000100551
  norm       = 0.0001
  norm       = 1.46564
  norm       = 1.4131
  Prefactor  = 0.0001
  Prefactor  = 6.82288
  Prefactor  = 0.0001
  Prefactor  = 16.1112
  Prefactor  = 6.69526
  Prefactor  = 0.0001
  norm       = 4.73008
  norm       = 0.000100017
  Prefactor  = 2.72259
  Prefactor  = 25.3139
  Prefactor  = 0.0001
  Prefactor  = 0.294011
  Prefactor  = 4.32196
  norm       = 0.683534
  Prefactor  = 1.17969
  Normalizat = 0.927348
  Prefactor  = 1.05849
 **********
 **   18 **HESSE 
 **********

 FCN=   16275.10     FROM HESSE     STATUS=OK           604 CALLS     4620 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3161        .30910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.437        9.7761        .59228E-03   -1.5031    
   3  Prefactor     48.606        21.549        .57516E-04   -1.4312    
   4  Prefactor     .10000E-03    2.0992        .18021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.6004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.7311        7.6208        .10452E-02   -1.5322    
   7  norm          .10000E-03    .55111        .91462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.1366        .18141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.395        24.560        .93362E-04   -1.4850    
  10  Prefactor     .10055E-03    20.522        .24356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.3420        .21380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4656        .82367        .84887E-04   -1.5466    
  13  norm          1.4131        .42701        .42942E-04   -1.5470    
  14  Prefactor     .10000E-03    5.8527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8229        8.2811        .76770E-03   -1.5185    
  16  Prefactor     .10000E-03    1.4192        .21084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.111        21.767        .99772E-04   -1.4905    
  18  Prefactor     6.6953        8.3181        .77514E-03   -1.5190    
  19  Prefactor     .10000E-03    8.3855        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.7301        3.7586        .18503E-03   -1.5273    
  21  norm          .10002E-03    9.8307        .29093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.7226        1.7114        .12410E-03   -1.5378    
  23  Prefactor     25.314        31.506        .79619E-04   -1.4701    
  24  Prefactor     .10000E-03    28.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .29401        1.4291        .29101E-03   -1.5600    
  26  Prefactor     4.3220        8.9495        .19369E-03   -1.5292    
  27  norm          .68353        .47435        .48416E-03   -1.5543    
  28  Prefactor     1.1797        3.7933        .27473E-03   -1.5491    
  29  Normalizat    .92735        .14079        .28616E-03   -.95506    
  30  Prefactor     1.0585        .10444        .21144E-03   -.90805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49344e-08
Minuit parameter uncertainties:
  1  1.88859e-05
  2  9.77742
  3  21.5522
  4  6.07199e-06
  5  6.78443e-05
  6  7.62277
  7  2.01877e-06
  8  2.65181e-05
  9  24.5737
  10  0.00673062
  11  2.54676e-06
  12  0.823672
  13  0.42701
  14  1.11716e-05
  15  8.28253
  16  4.60474e-06
  17  21.7779
  18  8.31955
  19  1.14821e-05
  20  3.75877
  21  0.000823518
  22  1.71145
  23  31.5263
  24  6.41425e-05
  25  1.29622
  26  8.95227
  27  0.47435
  28  3.79403
  29  0.14085
  30  0.104456
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.413e+00  4.270e-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.058e+00  1.045e-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:  9.273e-01  1.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.67
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 7.05e-08 +/- 2.13e-08
Energy Flux (Fixed Index): 3.97e-05 +/- 1.20e-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) = 16275.0201425
delta logL = 0.0799712763728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16275.0165452
delta logL = 0.0835685297443

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3948       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8819       1.0000          .0000       5.0000    
     3 'Normalizat'    .93343       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0573       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=   16275.02     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      202 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3947        6.6637        .91930E-02    .12473E-03
   2  alpha         1.8818        3.4344        .31706       -.33692E-06
   3  Normalizat    .93347        .16601        .45327E-01    .42533E-04
   4  Prefactor     1.0572        .11343        .39503E-01    .94176E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.39474
  alpha      = 1.88184
  Normalizat = 0.933475
  Prefactor  = 1.05723
 **********
 **   18 **HESSE 
 **********

 FCN=   16275.02     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .79E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3947        .42686        .43750E-04   -1.5472    
   2  alpha         1.8818        .28036        .11959E-01   -.24985    
   3  Normalizat    .93347        .12995        .28514E-03   -.95294    
   4  Prefactor     1.0572        .10191        .21159E-03   -.90846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.85404e-17
Minuit parameter uncertainties:
  1  0.426862
  2  0.280989
  3  0.12999
  4  0.101925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571799': 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) = 16275.0165452
delta logL = 0.0835685936254

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.395e+00  4.269e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.882e+00  2.810e-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.057e+00  1.019e-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:  9.335e-01  1.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 38.85
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.88 +/- 0.28
Photon Flux (Free Index): 6.25e-08 +/- 2.69e-08
Energy Flux (Free Index): 4.34e-05 +/- 1.68e-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/571799/cmap_HighResolution_642384001_642988801_4FGL_J0818.2+4222_weekly_bin667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.05e-08', energy_flux2='4.34e-05', photon_flux_error='2.13e-08', dlogl='8.36e-02', energy_flux='3.97e-05', photon_flux2='6.25e-08', job_status='DONE', time_completed='2021-07-13 15:24:34.813743', photon_index_error2='0.28', photon_index2='1.88', ts='38.67', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.68e-05', EG='0.93', time_epoch_completed='1626215074.81', return_code='0', job_id='571799', GAL2='1.06', EG2='0.93', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='2.69e-08', ts2='38.85', photon_index='2.00' WHERE bin_id='667' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:24:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0131>
Subject: Job 571799: <4FGL_J0818.2+4222_weekly_bin667> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin667> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Jul 12 07:41:08 2021
Job was executed on host(s) <bullet0131>, 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:24:36 2021
Results reported at Tue Jul 13 15:24:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin667 124.557 42.3819 642384001 642988801 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 :                                   1623.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             13.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2024 sec.
    Turnaround time :                            114208 sec.

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

