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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin528
RA = 124.557, Dec = 42.3819
tmin = 558316801, tmax = 558921601
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='571608', job_status='RUN', time_executed='2021-07-12 07:44:11.910997', time_epoch_executed='1626101051.91' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='528'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571608

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571608/ft1_4FGL_J0818.2+4222_weekly_bin528.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571608/ft2_4FGL_J0818.2+4222_weekly_bin528.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571608/ft1_4FGL_J0818.2+4222_weekly_bin528.fits outfile=/scratch/kocevski/571608/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin528.fits ra=124.557 dec=42.3819 rad=12.0 tmin=558316801.0 tmax=558921601.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.27
user 7.67
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571608/ft1_filtered_4FGL_J0818.2+4222_weekly_bin528.fits" evtable="EVENTS" scfile=/scratch/kocevski/571608/ft2_4FGL_J0818.2+4222_weekly_bin528.fits sctable="SC_DATA" outfile=/scratch/kocevski/571608/ltcube_558316801_558921601_4FGL_J0818.2+4222_weekly_bin528.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/571608/ft2_4FGL_J0818.2+4222_weekly_bin528.fits
.....................!
real 30.82
user 28.97
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571608/ft1_filtered_4FGL_J0818.2+4222_weekly_bin528.fits evtable="EVENTS" scfile=/scratch/kocevski/571608/ft2_4FGL_J0818.2+4222_weekly_bin528.fits sctable="SC_DATA" expcube=/scratch/kocevski/571608/ltcube_558316801_558921601_4FGL_J0818.2+4222_weekly_bin528.fits outfile=/scratch/kocevski/571608/expmap_558316801_558921601_4FGL_J0818.2+4222_weekly_bin528.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/571608/ltcube_558316801_558921601_4FGL_J0818.2+4222_weekly_bin528.fits
.....................!
real 112117.74
user 186.61
sys 4.76

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/571608/ft1_filtered_4FGL_J0818.2+4222_weekly_bin528.fits scfile=/scratch/kocevski/571608/ft2_4FGL_J0818.2+4222_weekly_bin528.fits outfile=/scratch/kocevski/571608/cmap_558316801_558921601_4FGL_J0818.2+4222_weekly_bin528.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.74
user 0.42
sys 0.17

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

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

This is gtbin version HEAD
real 0.65
user 0.43
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.2176       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7649       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .36323E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .39628       1.0000         .10000E-03   10000.    
     6 'norm      '    8.8587       1.0000         .10000E-03   10000.    
     7 'norm      '    1.1327       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0091       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.151       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4463       1.0000         .10000E-03   10000.    
    11 'norm      '    2.8799       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8476       1.0000         .10000E-03   10000.    
    13 'norm      '    .40453       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15712E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5419       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.382       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .47326E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2406       1.0000         .10000E-03   10000.    
    20 'norm      '    2.7027       1.0000         .10000E-03   10000.    
    21 'norm      '    2.0310       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.3096       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10757E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12899E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.0578       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .26221E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    .69238E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0566       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0733       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26643.64     FROM MIGRAD    STATUS=CONVERGED    846 CALLS     3561 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.2269        3.6705         .0000        .38880E-02
   2  Prefactor     .10000E-03    1.9781         .0000    ** at limit **
   3  Prefactor     5.7582        13.060         .0000        .10508E-02
   4  Prefactor     .37699E-01    1.6693         .0000        .41761E-03
   5  Prefactor     .43103        2.8969         .0000        .71902E-03
   6  norm          8.8824        4.9997         .0000        .43172E-02
   7  norm          1.1319        .87694         .0000        .12048E-02
   8  Prefactor     2.0046        3.1517         .0000        .52689E-01
   9  Prefactor     14.277        17.911         .0000        .20173E-02
  10  Prefactor     2.4481        2.2441         .0000        .28375E-02
  11  norm          2.8800        1.9224         .0000        .14640E-02
  12  norm          1.8478        .77264         .0000        .14072E-03
  13  norm          .40431        .21103         .0000        .99047E-03
  14  Prefactor     .10000E-03    4.9845         .0000    ** at limit **
  15  Prefactor     6.5838        6.2297         .0000        .33464E-03
  16  Prefactor     .10000E-03    .50181         .0000    ** at limit **
  17  Prefactor     19.404        14.152         .0000       -.19311E-02
  18  Prefactor     .10000E-03    1.2813         .0000    ** at limit **
  19  Prefactor     4.2579        3.7165         .0000        .71439E-03
  20  norm          2.7022        2.3913         .0000        .18467E-02
  21  norm          2.0311        2.0779         .0000        .11784E-02
  22  Prefactor     1.3102        1.0267         .0000        .23766E-02
  23  Prefactor     .10020E-03    61.196         .0000    ** at limit **
  24  Prefactor     .10000E-03    6.9395         .0000    ** at limit **
  25  Prefactor     3.0596        1.5904         .0000        .17602E-02
  26  Prefactor     .10001E-03    4.0209         .0000    ** at limit **
  27  norm          .69297E-01    .12562         .0000        .12476E-01
  28  Prefactor     .10000E-03    .65471         .0000    ** at limit **
  29  Normalizat    1.0564        .94586E-01     .0000        .74826E-04
  30  Prefactor     1.0732        .72236E-01     .0000        .48802E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.2269
  Prefactor  = 0.0001
  Prefactor  = 5.75819
  Prefactor  = 0.0376994
  Prefactor  = 0.431029
  norm       = 8.88242
  norm       = 1.13189
  Prefactor  = 2.00461
  Prefactor  = 14.2775
  Prefactor  = 2.44808
  norm       = 2.87997
  norm       = 1.84778
  norm       = 0.40431
  Prefactor  = 0.0001
  Prefactor  = 6.5838
  Prefactor  = 0.0001
  Prefactor  = 19.4037
  Prefactor  = 0.0001
  Prefactor  = 4.25792
  norm       = 2.70221
  norm       = 2.03108
  Prefactor  = 1.3102
  Prefactor  = 0.000100197
  Prefactor  = 0.0001
  Prefactor  = 3.05964
  Prefactor  = 0.000100015
  norm       = 0.069297
  Prefactor  = 0.0001
  Normalizat = 1.05636
  Prefactor  = 1.0732
 **********
 **   18 **HESSE 
 **********

 FCN=   26643.64     FROM HESSE     STATUS=OK           632 CALLS     4193 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.2269        3.6724        .66003E-03   -1.5100    
   2  Prefactor     .10000E-03    1.9933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.7582        13.042        .16728E-03   -1.5228    
   4  Prefactor     .37699E-01    2.7514        .66636E-01   -1.5669    
   5  Prefactor     .43103        31.654        .51890E-02   -1.5577    
   6  norm          8.8824        4.9999        .67334E-03   -1.5112    
   7  norm          1.1319        .86030        .12887E-03   -1.5495    
   8  Prefactor     2.0046        3.1188        .14604E-02   -1.5425    
   9  Prefactor     14.277        17.808        .10648E-03   -1.4952    
  10  Prefactor     2.4481        2.2172        .21594E-03   -1.5395    
  11  norm          2.8800        1.9134        .17560E-03   -1.5369    
  12  norm          1.8478        .77186        .88284E-04   -1.5436    
  13  norm          .40431        .21313        .50640E-04   -1.5581    
  14  Prefactor     .10000E-03    5.0058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.5838        6.0166        .15690E-03   -1.5195    
  16  Prefactor     .10000E-03    1.0295        .21493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.404        14.143        .90976E-04   -1.4827    
  18  Prefactor     .10000E-03    1.3116        .69662E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.2579        3.7080        .19567E-03   -1.5295    
  20  norm          2.7022        2.3787        .22719E-03   -1.5379    
  21  norm          2.0311        2.0673        .22841E-03   -1.5423    
  22  Prefactor     1.3102        1.0073        .13916E-03   -1.5479    
  23  Prefactor     .10020E-03    61.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.9549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.0596        1.5822        .13963E-03   -1.5358    
  26  Prefactor     .10001E-03    3.8399        .10403       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .69297E-01    .13276        .70982E-03   -1.5655    
  28  Prefactor     .10000E-03    1.4496        .23964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0564        .10781        .27037E-03   -.91165    
  30  Prefactor     1.0732        .82964E-01    .21685E-03   -.90328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41681e-07
Minuit parameter uncertainties:
  1  3.67249
  2  9.01626e-08
  3  13.0483
  4  0.643304
  5  7.39075
  6  5.00018
  7  0.86031
  8  3.11904
  9  17.8148
  10  2.21728
  11  1.91345
  12  0.771861
  13  0.21313
  14  2.68381e-07
  15  6.01714
  16  1.25463e-07
  17  14.1457
  18  1.23198e-05
  19  3.70818
  20  2.37876
  21  2.0674
  22  1.00733
  23  0.00699893
  24  1.10461e-07
  25  1.58225
  26  0.000477897
  27  0.132763
  28  1.76717e-08
  29  0.10783
  30  0.0829738
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  4.043e-01  2.131e-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.073e+00  8.297e-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.056e+00  1.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.74
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.02e-08 +/- 1.06e-08
Energy Flux (Fixed Index): 1.14e-05 +/- 5.99e-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) = 26642.3693458
delta logL = 1.27193296625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26642.3062018
delta logL = 1.33507697243

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10468       1.0000         .10000E-03   10000.    
     2 'alpha     '    .98864       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0618       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0784       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=   26642.31     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      227 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10465        .10028        .77866E-02    .28921E-02
   2  alpha         .98847        .31103        .48056       -.30766E-03
   3  Normalizat    1.0619        .87530E-01    .61011E-01    .15316E-04
   4  Prefactor     1.0783        .71108E-01    .38473E-01    .52234E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.104649
  alpha      = 0.988471
  Normalizat = 1.06189
  Prefactor  = 1.07832
 **********
 **   18 **HESSE 
 **********

 FCN=   26642.31     FROM HESSE     STATUS=OK            35 CALLS      262 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10465        .17725        .39234E-03   -1.5643    
   2  alpha         .98847        .66085        .19858E-01   -.64928    
   3  Normalizat    1.0619        .10012        .26984E-03   -.90985    
   4  Prefactor     1.0783        .81507E-01    .21653E-03   -.90162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.89751e-10
Minuit parameter uncertainties:
  1  0.177251
  2  0.673628
  3  0.100134
  4  0.0815168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571608': 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) = 26642.3062015
delta logL = 1.33507721593

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.046e-01  1.773e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  9.885e-01  6.736e-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.078e+00  8.152e-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.062e+00  1.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.41
Ra Dec: 124.557 42.382
Photon Index (Free Index): 0.99 +/- 0.67
Photon Flux (Free Index): 3.85e-09 +/- 4.80e-09
Energy Flux (Free Index): 2.55e-05 +/- 2.41e-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/571608/cmap_HighResolution_558316801_558921601_4FGL_J0818.2+4222_weekly_bin528.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.02e-08', energy_flux2='2.55e-05', photon_flux_error='1.06e-08', dlogl='1.34e+00', energy_flux='1.14e-05', photon_flux2='3.85e-09', job_status='DONE', time_completed='2021-07-13 15:29:06.568954', photon_index_error2='0.67', photon_index2='0.99', ts='13.74', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='2.41e-05', EG='1.06', time_epoch_completed='1626215346.57', return_code='0', job_id='571608', GAL2='1.08', EG2='1.06', return_code2='0', energy_flux_error='5.99e-06', photon_flux_error2='4.80e-09', ts2='16.41', photon_index='2.00' WHERE bin_id='528' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:29:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 571608: <4FGL_J0818.2+4222_weekly_bin528> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin528 124.557 42.3819 558316801 558921601 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 :                                   2346.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             311.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                22
    Run time :                                   2517 sec.
    Turnaround time :                            114495 sec.

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

