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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin578
RA = 124.557, Dec = 42.3819
tmin = 588556801, tmax = 589161601
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='571675', job_status='RUN', time_executed='2021-07-13 14:54:31.249974', time_epoch_executed='1626213271.25' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='578'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571675

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571675/ft1_4FGL_J0818.2+4222_weekly_bin578.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571675/ft2_4FGL_J0818.2+4222_weekly_bin578.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571675/ft1_4FGL_J0818.2+4222_weekly_bin578.fits outfile=/scratch/kocevski/571675/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin578.fits ra=124.557 dec=42.3819 rad=12.0 tmin=588556801.0 tmax=589161601.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 7.80
user 7.42
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571675/ft1_filtered_4FGL_J0818.2+4222_weekly_bin578.fits" evtable="EVENTS" scfile=/scratch/kocevski/571675/ft2_4FGL_J0818.2+4222_weekly_bin578.fits sctable="SC_DATA" outfile=/scratch/kocevski/571675/ltcube_588556801_589161601_4FGL_J0818.2+4222_weekly_bin578.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/571675/ft2_4FGL_J0818.2+4222_weekly_bin578.fits
.....................!
real 32.52
user 32.05
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571675/ft1_filtered_4FGL_J0818.2+4222_weekly_bin578.fits evtable="EVENTS" scfile=/scratch/kocevski/571675/ft2_4FGL_J0818.2+4222_weekly_bin578.fits sctable="SC_DATA" expcube=/scratch/kocevski/571675/ltcube_588556801_589161601_4FGL_J0818.2+4222_weekly_bin578.fits outfile=/scratch/kocevski/571675/expmap_588556801_589161601_4FGL_J0818.2+4222_weekly_bin578.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/571675/ltcube_588556801_589161601_4FGL_J0818.2+4222_weekly_bin578.fits
.....................!
real 192.92
user 185.89
sys 5.99

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/571675/ft1_filtered_4FGL_J0818.2+4222_weekly_bin578.fits scfile=/scratch/kocevski/571675/ft2_4FGL_J0818.2+4222_weekly_bin578.fits outfile=/scratch/kocevski/571675/cmap_588556801_589161601_4FGL_J0818.2+4222_weekly_bin578.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.68
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571675/ft1_filtered_4FGL_J0818.2+4222_weekly_bin578.fits scfile=/scratch/kocevski/571675/ft2_4FGL_J0818.2+4222_weekly_bin578.fits outfile=/scratch/kocevski/571675/cmap_HighResolution_588556801_589161601_4FGL_J0818.2+4222_weekly_bin578.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.60
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6819       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .49506E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.102       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4852       1.0000         .10000E-03   10000.    
     6 'norm      '    8.7605       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4119       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    52.628       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3725       1.0000         .10000E-03   10000.    
    11 'norm      '    6.4185       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3976       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2242       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.402       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7067       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9857       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6297       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.0547       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3323       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .25526E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11354E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10855E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.4708       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0858       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .89482       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14549.05     FROM MIGRAD    STATUS=CONVERGED   1391 CALLS     4584 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6822        4.1912        .21049E-03   -.11774E-04
   2  Prefactor     .10000E-03    34.331        .38050E-02** at limit **
   3  Prefactor     .10000E-03    5.4428        .18142E-02** at limit **
   4  Prefactor     13.104        6.9670        .11066E-03   -.84242E-05
   5  Prefactor     4.4876        10.962        .19012E-03   -.63147E-04
   6  norm          8.7612        6.9038        .13542E-03    .39959E-04
   7  norm          1.4119        1.1234        .36453E-04   -.10229E-04
   8  Prefactor     .10000E-03    3.8391        .36285E-03** at limit **
   9  Prefactor     52.635        28.871        .55286E-04   -.30845E-04
  10  Prefactor     3.3708        3.9608        .22035E-03    .94625E-04
  11  norm          6.4186        2.5622        .11756E-03    .11992E-04
  12  norm          2.3977        .99325        .74422E-04   -.14970E-04
  13  norm          1.2239        .44438        .45206E-04    .84399E-03
  14  Prefactor     22.409        22.245        .84628E-04    .75229E-04
  15  Prefactor     .10000E-03    26.308        .51935E-02** at limit **
  16  Prefactor     2.7040        2.0480        .14211E-03    .42367E-03
  17  Prefactor     .10000E-03    12.848        .18142E-02** at limit **
  18  Prefactor     4.9847        7.8982        .90053E-03   -.38101E-04
  19  Prefactor     4.6300        4.8425        .18705E-03    .11426E-04
  20  norm          .10000E-03    1.9433        .16333E-02** at limit **
  21  norm          4.0554        3.9101        .20024E-03    .31680E-04
  22  Prefactor     3.3326        2.1028        .13201E-03    .28712E-03
  23  Prefactor     .10000E-03    16.773        .18142E-02** at limit **
  24  Prefactor     .10000E-03    20.807        .16920    ** at limit **
  25  Prefactor     .10000E-03    3.2233        .22150E-02** at limit **
  26  Prefactor     .10000E-03    19.184        .18142E-02** at limit **
  27  norm          .10000E-03    .19001        .75352E-03** at limit **
  28  Prefactor     1.4712        2.2045        .21231E-03    .55657E-03
  29  Normalizat    1.0856        .15103        .27085E-03    .49446E-03
  30  Prefactor     .89487        .10630        .22058E-03    .38407E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.68217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1041
  Prefactor  = 4.48759
  norm       = 8.76119
  norm       = 1.41193
  Prefactor  = 0.0001
  Prefactor  = 52.635
  Prefactor  = 3.37083
  norm       = 6.41865
  norm       = 2.39773
  norm       = 1.22393
  Prefactor  = 22.4094
  Prefactor  = 0.000100001
  Prefactor  = 2.70403
  Prefactor  = 0.0001
  Prefactor  = 4.98466
  Prefactor  = 4.63001
  norm       = 0.0001
  norm       = 4.0554
  Prefactor  = 3.33263
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.47122
  Normalizat = 1.0856
  Prefactor  = 0.894871
 **********
 **   18 **HESSE 
 **********

 FCN=   14549.05     FROM HESSE     STATUS=OK           568 CALLS     5152 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6822        4.1910        .84195E-05   -1.5324    
   2  Prefactor     .10000E-03    35.462        .15220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.4433        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.104        6.9667        .44264E-05   -1.4984    
   5  Prefactor     4.4876        10.960        .76047E-05   -1.5284    
   6  norm          8.7612        6.9036        .54170E-05   -1.5116    
   7  norm          1.4119        1.1234        .72906E-05   -1.5470    
   8  Prefactor     .10000E-03    3.8392        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     52.635        28.869        .11057E-04   -1.4256    
  10  Prefactor     3.3708        3.9584        .88138E-05   -1.5341    
  11  norm          6.4186        2.5621        .47024E-05   -1.5201    
  12  norm          2.3977        .99324        .29769E-05   -1.5398    
  13  norm          1.2239        .44419        .18082E-05   -1.5487    
  14  Prefactor     22.409        22.245        .33851E-05   -1.4761    
  15  Prefactor     .10000E-03    26.652        .10387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7040        2.0451        .56844E-05   -1.5379    
  17  Prefactor     .10000E-03    12.850        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.9847        7.8945        .36021E-04   -1.5261    
  19  Prefactor     4.6300        4.8422        .74821E-05   -1.5278    
  20  norm          .10000E-03    1.9438        .32665E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.0554        3.9097        .80096E-05   -1.5305    
  22  Prefactor     3.3326        2.1026        .52805E-05   -1.5343    
  23  Prefactor     .10000E-03    16.774        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.783        .16932       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.2400        .44299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    19.188        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .19008        .15070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.4712        2.2017        .84924E-05   -1.5465    
  29  Normalizat    1.0856        .15109        .10834E-04   -.90216    
  30  Prefactor     .89487        .10638        .88233E-05   -.96321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27099e-09
Minuit parameter uncertainties:
  1  4.19137
  2  0.000126341
  3  8.76964e-06
  4  6.96716
  5  10.9649
  6  6.90425
  7  1.12343
  8  1.17717e-05
  9  28.8765
  10  3.95868
  11  2.56218
  12  0.993247
  13  0.444187
  14  22.2537
  15  0.000348913
  16  2.04517
  17  8.82173e-06
  18  7.89616
  19  4.84264
  20  4.6461e-06
  21  3.90998
  22  2.10263
  23  5.12114e-05
  24  0.000264677
  25  0.000190302
  26  5.2826e-05
  27  2.87173e-06
  28  2.20179
  29  0.151148
  30  0.106405
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.224e+00  4.442e-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.949e-01  1.064e-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.086e+00  1.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.06
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 6.11e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 3.44e-05 +/- 1.25e-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) = 14547.9831762
delta logL = 1.06756332116

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14547.9824264
delta logL = 1.06831309542

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1278       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4944       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91063       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14547.98     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      252 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1277        .42183        .37664E-04    .19445E-02
   2  alpha         2.4944        .35125        .11014E-01    .86597E-04
   3  Normalizat    1.0442        .14235        .27515E-03    .45442E-03
   4  Prefactor     .91061        .10473        .21871E-03   -.21385E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.12773
  alpha      = 2.49441
  Normalizat = 1.04415
  Prefactor  = 0.910606
 **********
 **   18 **HESSE 
 **********

 FCN=   14547.98     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1277        .40974        .15066E-05   -1.5496    
   2  alpha         2.4944        .34086        .44057E-03   -.22346E-02
   3  Normalizat    1.0442        .14230        .11006E-04   -.91566    
   4  Prefactor     .91061        .10474        .87485E-05   -.95771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.68411e-10
Minuit parameter uncertainties:
  1  0.409741
  2  0.341921
  3  0.142355
  4  0.104767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571675': 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) = 14547.9824263
delta logL = 1.06831320716

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.128e+00  4.097e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.494e+00  3.419e-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.106e-01  1.048e-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.044e+00  1.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.20
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.49 +/- 0.34
Photon Flux (Free Index): 1.01e-07 +/- 4.01e-08
Energy Flux (Free Index): 2.99e-05 +/- 9.32e-06

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/571675/cmap_HighResolution_588556801_589161601_4FGL_J0818.2+4222_weekly_bin578.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.11e-08', energy_flux2='2.99e-05', photon_flux_error='2.22e-08', dlogl='1.07e+00', energy_flux='3.44e-05', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-07-13 15:28:21.284583', photon_index_error2='0.34', photon_index2='2.49', ts='21.06', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='9.32e-06', EG='1.09', time_epoch_completed='1626215301.28', return_code='0', job_id='571675', GAL2='0.91', EG2='1.04', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.01e-08', ts2='23.20', photon_index='2.00' WHERE bin_id='578' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:28:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0143>
Subject: Job 571675: <4FGL_J0818.2+4222_weekly_bin578> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin578> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Jul 12 07:40:58 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:42:32 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:42:32 2021
Terminated at Tue Jul 13 15:28:31 2021
Results reported at Tue Jul 13 15:28:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin578 124.557 42.3819 588556801 589161601 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 :                                   1634.00 sec.
    Max Memory :                                 1146 MB
    Average Memory :                             79.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2439 sec.
    Turnaround time :                            114453 sec.

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

