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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin597
RA = 124.557, Dec = 42.3819
tmin = 600048001, tmax = 600652801
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='571694', job_status='RUN', time_executed='2021-07-13 14:56:32.565310', time_epoch_executed='1626213392.57' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571694

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571694/ft1_4FGL_J0818.2+4222_weekly_bin597.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571694/ft2_4FGL_J0818.2+4222_weekly_bin597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571694/ft1_4FGL_J0818.2+4222_weekly_bin597.fits outfile=/scratch/kocevski/571694/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin597.fits ra=124.557 dec=42.3819 rad=12.0 tmin=600048001.0 tmax=600652801.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.62
user 8.18
sys 0.32

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571694/ft1_filtered_4FGL_J0818.2+4222_weekly_bin597.fits evtable="EVENTS" scfile=/scratch/kocevski/571694/ft2_4FGL_J0818.2+4222_weekly_bin597.fits sctable="SC_DATA" expcube=/scratch/kocevski/571694/ltcube_600048001_600652801_4FGL_J0818.2+4222_weekly_bin597.fits outfile=/scratch/kocevski/571694/expmap_600048001_600652801_4FGL_J0818.2+4222_weekly_bin597.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/571694/ltcube_600048001_600652801_4FGL_J0818.2+4222_weekly_bin597.fits
.....................!
real 199.63
user 193.18
sys 5.09

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/571694/ft1_filtered_4FGL_J0818.2+4222_weekly_bin597.fits scfile=/scratch/kocevski/571694/ft2_4FGL_J0818.2+4222_weekly_bin597.fits outfile=/scratch/kocevski/571694/cmap_600048001_600652801_4FGL_J0818.2+4222_weekly_bin597.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.62
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571694/ft1_filtered_4FGL_J0818.2+4222_weekly_bin597.fits scfile=/scratch/kocevski/571694/ft2_4FGL_J0818.2+4222_weekly_bin597.fits outfile=/scratch/kocevski/571694/cmap_HighResolution_600048001_600652801_4FGL_J0818.2+4222_weekly_bin597.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.64
user 0.42
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    52.431       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.674       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .78574E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    16.004       1.0000         .10000E-03   10000.    
     7 'norm      '    2.4436       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8141       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9940       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5678       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2445       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3386       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .71205       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3098       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .27151E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    13.296       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.8753       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    38.621       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.1716       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.1388       1.0000         .10000E-03   10000.    
    27 'norm      '    .34682E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.1609       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0408       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .99043       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=   14061.26     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     4014 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3334        .48368E-07** at limit **
   2  Prefactor     .10000E-03    4.6428        .22421E-07** at limit **
   3  Prefactor     52.428        25.152       -.84877E-06   -.11920E-03
   4  Prefactor     10.675        8.9850        .90654E-06   -.62465E-03
   5  Prefactor     .10000E-03    5.2526        .83027E-06** at limit **
   6  norm          16.004        8.3577        .85559E-07   -.17266E-03
   7  norm          2.4435        1.5540       -.18323E-07   -.99876E-04
   8  Prefactor     .10000E-03    2.8810       -.33301E-07** at limit **
   9  Prefactor     3.8030        59.133       -.12337E-04   -.12346E-03
  10  Prefactor     1.9945        3.9156        .48727E-06   -.45815E-03
  11  norm          2.5679        2.0130       -.28797E-08   -.55738E-04
  12  norm          1.2445        .79681       -.26789E-08    .16504E-04
  13  norm          1.3385        .47645        .93256E-08    .16645E-03
  14  Prefactor     .10000E-03    5.4233       -.14475E-07** at limit **
  15  Prefactor     .72123        4.4181        .10780E-07   -.21045E-03
  16  Prefactor     3.3098        1.9370       -.13078E-07    .97337E-05
  17  Prefactor     .10000E-03    7.9331       -.15597E-07** at limit **
  18  Prefactor     .10000E-03    2.1051        .16091E-07** at limit **
  19  Prefactor     .10004E-03    2.2197        .66537E-06** at limit **
  20  norm          13.296        4.8351        .11482E-06   -.57918E-03
  21  norm          .10000E-03    1.3290       -.34684E-07** at limit **
  22  Prefactor     2.8747        1.7000       -.10834E-07   -.13358E-03
  23  Prefactor     .10000E-03    14.134       -.28967E-06** at limit **
  24  Prefactor     38.625        34.543        .14327E-05    .12010E-03
  25  Prefactor     2.1698        2.5614       -.69390E-07   -.41037E-03
  26  Prefactor     6.1366        13.765        .82295E-06   -.32665E-03
  27  norm          .10013E-03    .15328        .46145E-09** at limit **
  28  Prefactor     4.1873        2.7718        .21468E-08   -.15077E-03
  29  Normalizat    1.0408        .12993        .17835E-06   -.19583E-03
  30  Prefactor     .99044        .96710E-01   -.76525E-07   -.19183E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.4276
  Prefactor  = 10.6751
  Prefactor  = 0.000100001
  norm       = 16.0042
  norm       = 2.4435
  Prefactor  = 0.0001
  Prefactor  = 3.80296
  Prefactor  = 1.99454
  norm       = 2.5679
  norm       = 1.24455
  norm       = 1.33853
  Prefactor  = 0.0001
  Prefactor  = 0.721233
  Prefactor  = 3.30976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100041
  norm       = 13.2955
  norm       = 0.0001
  Prefactor  = 2.87475
  Prefactor  = 0.0001
  Prefactor  = 38.6253
  Prefactor  = 2.16984
  Prefactor  = 6.1366
  norm       = 0.000100132
  Prefactor  = 4.18727
  Normalizat = 1.0408
  Prefactor  = 0.990438
 **********
 **   18 **HESSE 
 **********

 FCN=   14061.26     FROM HESSE     STATUS=OK           608 CALLS     4622 TOTAL
                     EDM=   .93E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3678        .17686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.6771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     52.428        25.127        .55390E-04   -1.4259    
   4  Prefactor     10.675        9.6723        .61316E-03   -1.5054    
   5  Prefactor     .10000E-03    26.230        .51373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          16.004        8.4059        .50059E-03   -1.4908    
   7  norm          2.4435        1.5524        .11156E-03   -1.5395    
   8  Prefactor     .10000E-03    2.9026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.8030        63.574        .20667E-03   -1.5318    
  10  Prefactor     1.9945        3.9592        .29337E-03   -1.5426    
  11  norm          2.5679        2.0124        .14359E-03   -1.5387    
  12  norm          1.2445        .79970        .81692E-04   -1.5485    
  13  norm          1.3385        .47131        .44874E-04   -1.5477    
  14  Prefactor     .10000E-03    5.4282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .72123        13.607        .44558E-02   -1.5538    
  16  Prefactor     3.3098        1.9211        .11766E-03   -1.5344    
  17  Prefactor     .10000E-03    7.9583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.1104        .16800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10004E-03    14.503        .33383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.296        4.9162        .54925E-03   -1.4979    
  21  norm          .10000E-03    1.3390        .13346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.8747        1.6979        .11313E-03   -1.5369    
  23  Prefactor     .10000E-03    14.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     38.625        35.544        .64495E-04   -1.4464    
  25  Prefactor     2.1698        2.5516        .18866E-03   -1.5413    
  26  Prefactor     6.1366        15.428        .81018E-03   -1.5212    
  27  norm          .10013E-03    .34470        .13966E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.1873        3.1411        .13226E-03   -1.5299    
  29  Normalizat    1.0408        .15122        .27763E-03   -.91676    
  30  Prefactor     .99044        .11162        .22347E-03   -.93049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.3493e-08
Minuit parameter uncertainties:
  1  7.53063e-07
  2  1.42628e-06
  3  25.1319
  4  9.67376
  5  0.000285979
  6  8.40657
  7  1.55247
  8  2.51294e-05
  9  31.1364
  10  3.95969
  11  2.01241
  12  0.799702
  13  0.471309
  14  1.75326e-06
  15  6.26672
  16  1.92114
  17  1.13743e-06
  18  1.40487e-06
  19  0.00153744
  20  4.91638
  21  2.03926e-06
  22  1.69797
  23  2.20723e-05
  24  35.5636
  25  2.55171
  26  15.4377
  27  0.000427427
  28  3.14121
  29  0.151284
  30  0.111643
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.339e+00  4.713e-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.904e-01  1.116e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.041e+00  1.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.72
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 6.68e-08 +/- 2.35e-08
Energy Flux (Fixed Index): 3.76e-05 +/- 1.33e-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) = 14061.0697586
delta logL = 0.188023599421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14061.0414847
delta logL = 0.216297518322

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3270       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2139       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99646       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=   14061.04     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      237 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3278        4.9939        .94122E-02   -.72503E-03
   2  alpha         2.2143        3.5747        .32475        .69308E-04
   3  Normalizat    1.0232        .69793E-01    .63222E-01    .67688E-03
   4  Prefactor     .99648        .40151E-01    .46223E-01    .10759E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.32778
  alpha      = 2.21431
  Normalizat = 1.02318
  Prefactor  = 0.996478
 **********
 **   18 **HESSE 
 **********

 FCN=   14061.04     FROM HESSE     STATUS=OK            29 CALLS      266 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3278        .43729        .41861E-04   -1.5478    
   2  alpha         2.2143        .33217        .11786E-01   -.11453    
   3  Normalizat    1.0232        .14190        .27962E-03   -.92258    
   4  Prefactor     .99648        .11026        .22280E-03   -.92847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93042e-10
Minuit parameter uncertainties:
  1  0.437288
  2  0.333166
  3  0.141948
  4  0.110288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571694': 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) = 14061.0414815
delta logL = 0.216300666973

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.328e+00  4.373e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.214e+00  3.332e-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.965e-01  1.103e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.023e+00  1.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.08
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.21 +/- 0.33
Photon Flux (Free Index): 8.40e-08 +/- 3.67e-08
Energy Flux (Free Index): 3.39e-05 +/- 1.18e-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/571694/cmap_HighResolution_600048001_600652801_4FGL_J0818.2+4222_weekly_bin597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.68e-08', energy_flux2='3.39e-05', photon_flux_error='2.35e-08', dlogl='2.16e-01', energy_flux='3.76e-05', photon_flux2='8.40e-08', job_status='DONE', time_completed='2021-07-13 15:26:56.365708', photon_index_error2='0.33', photon_index2='2.21', ts='25.72', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.18e-05', EG='1.04', time_epoch_completed='1626215216.37', return_code='0', job_id='571694', GAL2='1.00', EG2='1.02', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='3.67e-08', ts2='26.08', photon_index='2.00' WHERE bin_id='597' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:26:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 571694: <4FGL_J0818.2+4222_weekly_bin597> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin597 124.557 42.3819 600048001 600652801 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 :                                   1485.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             19.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   2296 sec.
    Turnaround time :                            114357 sec.

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

