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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin448
RA = 124.557, Dec = 42.3819
tmin = 509932801, tmax = 510537601
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='571482', job_status='RUN', time_executed='2021-07-12 07:44:04.678679', time_epoch_executed='1626101044.68' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='448'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571482

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571482/ft1_4FGL_J0818.2+4222_weekly_bin448.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571482/ft2_4FGL_J0818.2+4222_weekly_bin448.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571482/ft1_4FGL_J0818.2+4222_weekly_bin448.fits outfile=/scratch/kocevski/571482/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin448.fits ra=124.557 dec=42.3819 rad=12.0 tmin=509932801.0 tmax=510537601.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 10.95
user 8.44
sys 0.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/571482/ft2_4FGL_J0818.2+4222_weekly_bin448.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/571482/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin448.fits evtable="EVENTS" outfile="/scratch/kocevski/571482/ft1_filtered_4FGL_J0818.2+4222_weekly_bin448.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.49
user 0.37
sys 0.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571482/ft1_filtered_4FGL_J0818.2+4222_weekly_bin448.fits" evtable="EVENTS" scfile=/scratch/kocevski/571482/ft2_4FGL_J0818.2+4222_weekly_bin448.fits sctable="SC_DATA" outfile=/scratch/kocevski/571482/ltcube_509932801_510537601_4FGL_J0818.2+4222_weekly_bin448.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/571482/ft2_4FGL_J0818.2+4222_weekly_bin448.fits
.....................!
real 34.79
user 31.83
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571482/ft1_filtered_4FGL_J0818.2+4222_weekly_bin448.fits evtable="EVENTS" scfile=/scratch/kocevski/571482/ft2_4FGL_J0818.2+4222_weekly_bin448.fits sctable="SC_DATA" expcube=/scratch/kocevski/571482/ltcube_509932801_510537601_4FGL_J0818.2+4222_weekly_bin448.fits outfile=/scratch/kocevski/571482/expmap_509932801_510537601_4FGL_J0818.2+4222_weekly_bin448.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/571482/ltcube_509932801_510537601_4FGL_J0818.2+4222_weekly_bin448.fits
.....................!
real 112126.14
user 186.44
sys 4.91

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/571482/ft1_filtered_4FGL_J0818.2+4222_weekly_bin448.fits scfile=/scratch/kocevski/571482/ft2_4FGL_J0818.2+4222_weekly_bin448.fits outfile=/scratch/kocevski/571482/cmap_509932801_510537601_4FGL_J0818.2+4222_weekly_bin448.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 1.95
user 0.42
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571482/ft1_filtered_4FGL_J0818.2+4222_weekly_bin448.fits scfile=/scratch/kocevski/571482/ft2_4FGL_J0818.2+4222_weekly_bin448.fits outfile=/scratch/kocevski/571482/cmap_HighResolution_509932801_510537601_4FGL_J0818.2+4222_weekly_bin448.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.36
user 0.42
sys 0.20

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36443       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .89902       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.512       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.166       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.4244       1.0000         .10000E-03   10000.    
     6 'norm      '    80.318       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4822       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10750E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.5833       1.0000         .10000E-03   10000.    
    12 'norm      '    .28162       1.0000         .10000E-03   10000.    
    13 'norm      '    .35662       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9186       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .90017       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.7529       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0038       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10644E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13309E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.4587       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.3474       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3219       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .88018       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=   19682.59     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     3432 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37299        1.6044       -.11653E-06   -.29330E-03
   2  Prefactor     .89993        3.5586        .78124E-07   -.14620E-03
   3  Prefactor     23.523        15.376        .16961E-05    .20950E-03
   4  Prefactor     10.166        7.4322       -.19644E-06   -.56802E-04
   5  Prefactor     8.4249        7.4276        .38250E-06   -.56048E-03
   6  norm          80.320        12.131        .56884E-07   -.14353E-05
   7  norm          1.4821        1.1812        .93723E-08   -.49600E-04
   8  Prefactor     .10000E-03    1.1027       -.76417E-08** at limit **
   9  Prefactor     .10000E-03    26.671       -.16684E-05** at limit **
  10  Prefactor     .10000E-03    1.1294        .14037E-07** at limit **
  11  norm          5.5833        2.7802        .48007E-07   -.98750E-06
  12  norm          .28148        .77227        .47657E-06   -.21015E-02
  13  norm          .35674        .33297        .66791E-07   -.74380E-03
  14  Prefactor     .10000E-03    10.154        .23929E-05** at limit **
  15  Prefactor     4.9191        10.422       -.67892E-06   -.16526E-03
  16  Prefactor     .89949        1.5750        .42771E-06   -.28053E-03
  17  Prefactor     .10000E-03    13.241       -.26927E-05** at limit **
  18  Prefactor     .10000E-03    2.0322       -.49371E-09** at limit **
  19  Prefactor     .10000E-03    1.5241        .16719E-08** at limit **
  20  norm          .10000E-03    1.1122        .14734E-07** at limit **
  21  norm          4.7526        3.3790        .41662E-07   -.12708E-03
  22  Prefactor     1.0038        1.0265        .30532E-07   -.93108E-04
  23  Prefactor     .10000E-03    14.036       -.23267E-05** at limit **
  24  Prefactor     .10000E-03    17.758        .48898E-05** at limit **
  25  Prefactor     .10000E-03    .61413        .23809E-07** at limit **
  26  Prefactor     .10000E-03    8.1021       -.55515E-06** at limit **
  27  norm          1.4585        .52466       -.53784E-08   -.13531E-03
  28  Prefactor     4.3471        3.8856        .11795E-06   -.45643E-03
  29  Normalizat    1.3219        .11567       -.35168E-06   -.95949E-04
  30  Prefactor     .88022        .85548E-01   -.23524E-06   -.79361E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.372993
  Prefactor  = 0.899931
  Prefactor  = 23.5228
  Prefactor  = 10.1657
  Prefactor  = 8.42492
  norm       = 80.3204
  norm       = 1.48214
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.58327
  norm       = 0.281478
  norm       = 0.356743
  Prefactor  = 0.0001
  Prefactor  = 4.91913
  Prefactor  = 0.899493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.7526
  Prefactor  = 1.00379
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.45847
  Prefactor  = 4.34714
  Normalizat = 1.32188
  Prefactor  = 0.880217
 **********
 **   18 **HESSE 
 **********

 FCN=   19682.59     FROM HESSE     STATUS=OK           602 CALLS     4034 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37299        5.0256        .34954E-02   -1.5586    
   2  Prefactor     .89993        16.800        .50408E-02   -1.5518    
   3  Prefactor     23.523        15.459        .82609E-04   -1.4738    
   4  Prefactor     10.166        7.4029        .12567E-03   -1.5070    
   5  Prefactor     8.4249        7.6363        .69058E-03   -1.5127    
   6  norm          80.320        12.123        .44814E-04   -1.3913    
   7  norm          1.4821        1.1838        .12933E-03   -1.5464    
   8  Prefactor     .10000E-03    1.1051        .14384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.4926        .28181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.5833        2.7864        .15232E-03   -1.5235    
  12  norm          .28148        .93815        .22320E-03   -1.5602    
  13  norm          .35674        .28441        .71399E-03   -1.5589    
  14  Prefactor     .10000E-03    10.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.9191        9.4374        .18135E-03   -1.5264    
  16  Prefactor     .89949        1.3978        .19753E-02   -1.5518    
  17  Prefactor     .10000E-03    13.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.0402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.5285        .16912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.1221        .14442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.7526        3.3819        .18456E-03   -1.5272    
  22  Prefactor     1.0038        1.0157        .13795E-03   -1.5508    
  23  Prefactor     .10000E-03    14.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.5668        .21020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.1483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.4585        .57464        .46613E-04   -1.5466    
  28  Prefactor     4.3471        4.2930        .19319E-03   -1.5291    
  29  Normalizat    1.3219        .13316        .26702E-03   -.82916    
  30  Prefactor     .88022        .99573E-01    .24290E-03   -.96836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8723e-07
Minuit parameter uncertainties:
  1  2.73817
  2  7.77874
  3  15.4616
  4  7.40353
  5  7.63717
  6  12.1231
  7  1.18383
  8  2.70813e-07
  9  8.58209e-05
  10  5.9236e-06
  11  2.78649
  12  0.938203
  13  0.284412
  14  9.1697e-05
  15  9.44021
  16  1.39783
  17  0.000110454
  18  1.30527e-06
  19  3.4215e-07
  20  7.69369e-07
  21  3.38204
  22  1.01571
  23  0.000108535
  24  0.000259297
  25  7.28283e-06
  26  2.1092e-05
  27  0.574643
  28  4.29329
  29  0.133192
  30  0.0995934
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  3.567e-01  2.844e-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:  8.802e-01  9.959e-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.322e+00  1.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.45
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.78e-08 +/- 1.42e-08
Energy Flux (Fixed Index): 1.00e-05 +/- 8.00e-06

TS (Fixed Index): 2.45
Ra Dec: 124.557 42.382
Photon Flux Upper Limit: 4.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/571482/likelihoodResults_509932801_510537601_4FGL_J0818.2+4222_weekly_bin448.txt

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) = 19682.276468
delta logL = 0.31149657875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19682.2741453
delta logL = 0.313819335635

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34318       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5281       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3285       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87728       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=   19682.27     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34351        .32385        .10613E-01    .48192E-02
   2  alpha         1.5280        .41536        .46001       -.10544E-03
   3  Normalizat    1.3286        .10999        .60242E-01    .16748E-02
   4  Prefactor     .87726        .84247E-01    .44715E-01    .18939E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.343508
  alpha      = 1.52804
  Normalizat = 1.32857
  Prefactor  = 0.877255
 **********
 **   18 **HESSE 
 **********

 FCN=   19682.27     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34351        .26957        .62296E-03   -1.5591    
   2  alpha         1.5280        .52161        .20539E-01   -.39931    
   3  Normalizat    1.3286        .12664        .26643E-03   -.82718    
   4  Prefactor     .87726        .96967E-01    .24323E-03   -.96940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06197e-08
Minuit parameter uncertainties:
  1  0.269574
  2  0.526178
  3  0.126672
  4  0.0969857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571482': 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) = 19682.2741442
delta logL = 0.31382038067

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  3.435e-01  2.696e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.528e+00  5.262e-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:  8.773e-01  9.699e-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.329e+00  1.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.08
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.53 +/- 0.53
Photon Flux (Free Index): 1.20e-08 +/- 1.09e-08
Energy Flux (Free Index): 1.88e-05 +/- 2.00e-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/571482/cmap_HighResolution_509932801_510537601_4FGL_J0818.2+4222_weekly_bin448.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-05', comment='SUCCESS', photon_flux='1.78e-08', energy_flux2='1.88e-05', photon_flux_error='1.42e-08', dlogl='3.14e-01', energy_flux='1.00e-05', photon_flux2='1.20e-08', job_status='DONE', time_completed='2021-07-13 15:26:18.062915', photon_index_error2='0.53', photon_index2='1.53', ts='2.45', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='4.79e-08', energy_flux_error2='2.00e-05', EG='1.32', time_epoch_completed='1626215178.06', return_code='0', job_id='571482', GAL2='0.88', EG2='1.33', return_code2='0', energy_flux_error='8.00e-06', photon_flux_error2='1.09e-08', ts2='3.08', photon_index='2.00' WHERE bin_id='448' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:26:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 571482: <4FGL_J0818.2+4222_weekly_bin448> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin448> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Jul 12 07:40:43 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:40:53 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:40:53 2021
Terminated at Tue Jul 13 15:26:19 2021
Results reported at Tue Jul 13 15:26:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin448 124.557 42.3819 509932801 510537601 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 :                                   2129.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             310.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2411 sec.
    Turnaround time :                            114336 sec.

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

