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 197 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 = 17095
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin107
RA = 124.695, Dec = 31.8862
tmin = 303696001, tmax = 304300801
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='571980', job_status='RUN', time_executed='2021-07-13 15:00:58.714013', time_epoch_executed='1626213658.71' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='107'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571980

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571980/ft1_4FGL_J0818.7+3153_weekly_bin107.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571980/ft2_4FGL_J0818.7+3153_weekly_bin107.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571980/ft1_4FGL_J0818.7+3153_weekly_bin107.fits outfile=/scratch/kocevski/571980/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin107.fits ra=124.695 dec=31.8862 rad=12.0 tmin=303696001.0 tmax=304300801.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.51
user 7.06
sys 0.36

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/571980/ft2_4FGL_J0818.7+3153_weekly_bin107.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/571980/ft2_4FGL_J0818.7+3153_weekly_bin107.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/571980/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin107.fits evtable="EVENTS" outfile="/scratch/kocevski/571980/ft1_filtered_4FGL_J0818.7+3153_weekly_bin107.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.57
user 0.38
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571980/ft1_filtered_4FGL_J0818.7+3153_weekly_bin107.fits" evtable="EVENTS" scfile=/scratch/kocevski/571980/ft2_4FGL_J0818.7+3153_weekly_bin107.fits sctable="SC_DATA" outfile=/scratch/kocevski/571980/ltcube_303696001_304300801_4FGL_J0818.7+3153_weekly_bin107.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/571980/ft2_4FGL_J0818.7+3153_weekly_bin107.fits
.....................!
real 36.61
user 36.13
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571980/ft1_filtered_4FGL_J0818.7+3153_weekly_bin107.fits evtable="EVENTS" scfile=/scratch/kocevski/571980/ft2_4FGL_J0818.7+3153_weekly_bin107.fits sctable="SC_DATA" expcube=/scratch/kocevski/571980/ltcube_303696001_304300801_4FGL_J0818.7+3153_weekly_bin107.fits outfile=/scratch/kocevski/571980/expmap_303696001_304300801_4FGL_J0818.7+3153_weekly_bin107.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/571980/ltcube_303696001_304300801_4FGL_J0818.7+3153_weekly_bin107.fits
.....................!
real 191.87
user 185.58
sys 5.53

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 183 point sources and 0 extended sources

Setting source of interest to:
4FGL J0818.7+3153 @ 124.695 31.8862

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/571980/ft1_filtered_4FGL_J0818.7+3153_weekly_bin107.fits scfile=/scratch/kocevski/571980/ft2_4FGL_J0818.7+3153_weekly_bin107.fits outfile=/scratch/kocevski/571980/cmap_303696001_304300801_4FGL_J0818.7+3153_weekly_bin107.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.695 yref=31.8862 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571980/ft1_filtered_4FGL_J0818.7+3153_weekly_bin107.fits scfile=/scratch/kocevski/571980/ft2_4FGL_J0818.7+3153_weekly_bin107.fits outfile=/scratch/kocevski/571980/cmap_HighResolution_303696001_304300801_4FGL_J0818.7+3153_weekly_bin107.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.695 yref=31.8862 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/571980/ft1_filtered_4FGL_J0818.7+3153_weekly_bin107.fits evtable="EVENTS" scfile=/scratch/kocevski/571980/ft2_4FGL_J0818.7+3153_weekly_bin107.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/571980/Model_4FGL_J0818.7+3153_weekly_bin107.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/571980/ft1_filtered_4FGL_J0818.7+3153_weekly_bin107.fits.....................!
real 128.28
user 126.59
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/571980/ft1_filtered_4FGL_J0818.7+3153_weekly_bin107.fits', '/scratch/kocevski/571980/ft2_4FGL_J0818.7+3153_weekly_bin107.fits', expMap='/scratch/kocevski/571980/expmap_303696001_304300801_4FGL_J0818.7+3153_weekly_bin107.fits', expCube='/scratch/kocevski/571980/ltcube_303696001_304300801_4FGL_J0818.7+3153_weekly_bin107.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/571980/Model_4FGL_J0818.7+3153_weekly_bin107.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0818.7+3153'

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.482e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  2.794e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/571980/ft1_filtered_4FGL_J0818.7+3153_weekly_bin107.fits
Spacecraft file(s): /scratch/kocevski/571980/ft2_4FGL_J0818.7+3153_weekly_bin107.fits
Exposure map: /scratch/kocevski/571980/expmap_303696001_304300801_4FGL_J0818.7+3153_weekly_bin107.fits
Exposure cube: /scratch/kocevski/571980/ltcube_303696001_304300801_4FGL_J0818.7+3153_weekly_bin107.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/571980/Model_4FGL_J0818.7+3153_weekly_bin107.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) = 15436.8980535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3029       1.0000         .10000E-03   10000.    
     2 'norm      '    3.9882       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .62406       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .68529E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .31981       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.115       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.315       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23032E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.085       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .41733       1.0000         .10000E-03   10000.    
    16 'norm      '    .17317       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.2718       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0881       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15671E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .27625       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0595       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0834       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15436.81     FROM MIGRAD    STATUS=FAILED       945 CALLS     2625 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3029        4.6777        .38692E-03   -.17982E-04
   2  norm          3.9887        2.9969        .17711E-03   -.19514E-04
   3  Prefactor     .10000E-03    49.105        .18142E-02** at limit **
   4  Prefactor     .10000E-03    10.679        .18142E-02** at limit **
   5  Prefactor     .10000E-03    7.9919        .18142E-02** at limit **
   6  norm          .10000E-03    2.7711        .18142E-02** at limit **
   7  norm          .10000E-03    19.753        .18142E-02** at limit **
   8  Prefactor     .62562        3.1791        .28443E-02    .82180E-02
   9  Prefactor     .10000E-03    66.571        .37468E-02** at limit **
  10  norm          .31999        .27858        .60611E-03    .77266E-02
  11  Prefactor     13.099        15.163        .11061E-03   -.71539E-04
  12  Prefactor     16.313        13.894        .99156E-04    .61225E-04
  13  Prefactor     .10000E-03    5.6176        .69706E-01** at limit **
  14  Prefactor     12.085        11.813        .11523E-03   -.43804E-04
  15  Prefactor     .41816        1.1837        .21534E-03    .85740E-04
  16  norm          .17326        .67003        .13598E-02    .76122E-03
  17  Prefactor     8.2725        19.062        .13939E-03    .35070E-04
  18  Prefactor     3.0890        5.5313        .23079E-03   -.37437E-05
  19  Prefactor     .10000E-03    7.3981        .84693E-01** at limit **
  20  Prefactor     .27538        3.9549        .22501E-02    .24155E-03
  21  Normalizat    1.0594        .14503        .26911E-03   -.14279E-04
  22  Prefactor     1.0834        .11105        .21372E-03    .10000E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15436.81     FROM SIMPLEX   STATUS=PROGRESS    1013 CALLS     3638 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3029        4.6777        .34321E-06   -1.5480    
   2  norm          3.9887        2.9969        .34078E-06   -1.5309    
   3  Prefactor     .10000E-03    49.105        .11435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.679        .13433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.9919        .40988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.7711        .81574E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    19.753        .60817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .62562        3.1791        .34334E-06   -1.5550    
   9  Prefactor     .10000E-03    66.571        .14124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .31999        .27858        .34440E-06   -1.5595    
  11  Prefactor     13.099        15.163        .33138E-06   -1.4984    
  12  Prefactor     16.313        13.894        .32970E-06   -1.4900    
  13  Prefactor     .10000E-03    5.6176        .30417E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.085        11.813        .33273E-06   -1.5013    
  15  Prefactor     .41816        1.1837        .34485E-06   -1.5579    
  16  norm          .17326        .67003        .34581E-06   -1.5625    
  17  Prefactor     8.2725        19.062        .33714E-06   -1.5133    
  18  Prefactor     3.0890        5.5313        .34041E-06   -1.5356    
  19  Prefactor     .10000E-03    7.3981        .27752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .27538        3.9549        .34599E-06   -1.5603    
  21  Normalizat    1.0594        .14503        .20159E-06   -.91065    
  22  Prefactor     1.0834        .11105        .19886E-06   -.89998    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15436.81     FROM MIGRAD    STATUS=CONVERGED    361 CALLS     3999 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3029        4.6770        .15477E-04    .21743E-05
   2  norm          3.9887        2.9956        .70842E-05    .12838E-05
   3  Prefactor     .10000E-03    49.125        .36285E-03** at limit **
   4  Prefactor     .10000E-03    10.683        .36285E-03** at limit **
   5  Prefactor     .10000E-03    7.9921        .36285E-03** at limit **
   6  norm          .10000E-03    2.7717        .36285E-03** at limit **
   7  norm          .10000E-03    19.753        .36285E-03** at limit **
   8  Prefactor     .62562        3.1500        .56887E-03    .32395E-03
   9  Prefactor     .10000E-03    67.055        .74935E-03** at limit **
  10  norm          .31999        .27805        .12122E-03   -.16881E-04
  11  Prefactor     13.099        15.156        .44242E-05    .20557E-06
  12  Prefactor     16.313        13.893        .39663E-05     .0000    
  13  Prefactor     .10000E-03    5.0358        .75103E-01** at limit **
  14  Prefactor     12.085        11.762        .46094E-05    .19731E-05
  15  Prefactor     .41815        1.1826        .86134E-05   -.10031E-04
  16  norm          .17326        .66515        .54390E-04    .24664E-04
  17  Prefactor     8.2725        19.061        .55757E-05   -.32623E-05
  18  Prefactor     3.0890        5.5226        .92316E-05    .98519E-06
  19  Prefactor     .10000E-03    6.7468        .90056E-01** at limit **
  20  Prefactor     .27538        3.9585        .90004E-04    .89935E-05
  21  Normalizat    1.0594        .14485        .10764E-04   -.42245E-06
  22  Prefactor     1.0834        .11115        .85489E-05   -.10639E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.30294
  norm       = 3.98867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.625615
  Prefactor  = 0.0001
  norm       = 0.319994
  Prefactor  = 13.0994
  Prefactor  = 16.313
  Prefactor  = 0.000100004
  Prefactor  = 12.085
  Prefactor  = 0.418154
  norm       = 0.173263
  Prefactor  = 8.27249
  Prefactor  = 3.08904
  Prefactor  = 0.0001
  Prefactor  = 0.275378
  Normalizat = 1.05942
  Prefactor  = 1.08342
 **********
 **   18 **HESSE 
 **********

 FCN=   15436.81     FROM HESSE     STATUS=OK           344 CALLS     4343 TOTAL
                     EDM=   .29E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3029        4.6771        .15477E-04   -1.5480    
   2  norm          3.9887        2.9956        .70842E-05   -1.5309    
   3  Prefactor     .10000E-03    49.126        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.683        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.9921        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.7717        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    19.753        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .62562        3.1419        .11377E-03   -1.5550    
   9  Prefactor     .10000E-03    67.075        .14987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .31999        .27794        .48489E-05   -1.5595    
  11  Prefactor     13.099        15.156        .44242E-05   -1.4984    
  12  Prefactor     16.313        13.893        .39663E-05   -1.4900    
  13  Prefactor     .10000E-03    5.1861        .73503E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.085        11.764        .92187E-06   -1.5013    
  15  Prefactor     .41815        1.1828        .17227E-05   -1.5579    
  16  norm          .17326        .66492        .10878E-04   -1.5625    
  17  Prefactor     8.2725        19.033        .11151E-05   -1.5133    
  18  Prefactor     3.0890        5.5218        .18463E-05   -1.5356    
  19  Prefactor     .10000E-03    6.9385        .88376E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .27538        3.9579        .18001E-04   -1.5603    
  21  Normalizat    1.0594        .14493        .21529E-05   -.91065    
  22  Prefactor     1.0834        .11119        .17098E-05   -.89998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89422e-13
Minuit parameter uncertainties:
  1  4.67837
  2  2.99575
  3  4.61679e-07
  4  3.12194e-08
  5  1.45192e-08
  6  1.35583e-08
  7  2.73075e-08
  8  2.80402
  9  8.60864e-06
  10  0.277937
  11  15.1607
  12  13.896
  13  0.000302825
  14  11.7664
  15  1.18288
  16  0.664951
  17  19.0469
  18  5.52273
  19  6.35015e-05
  20  2.08778
  21  0.144984
  22  0.11121
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.631e+01  1.390e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  2.794e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  1.083e+00  1.112e-01  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.059e+00  1.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.68
Ra Dec: 124.695 31.886
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 1.76e-08 +/- 1.50e-08
Energy Flux (Fixed Index): 8.96e-06 +/- 7.64e-06

TS (Fixed Index): 3.68
Ra Dec: 124.695 31.886
Photon Flux Upper Limit: 5.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/571980/likelihoodResults_303696001_304300801_4FGL_J0818.7+3153_weekly_bin107.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) = 15436.8071391
delta logL = 0.00266899125745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15436.8053383
delta logL = 0.00446977364118

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.322       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1962       1.0000          .0000       10.000    
     3 'Normalizat'    1.0578       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0840       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15436.81     FROM MIGRAD    STATUS=FAILED        88 CALLS      257 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.323        18.938        .10232E-03   -.10333E-03
   2  Index         2.1964        .72953        .10686E-01    .11639E-02
   3  Normalizat    1.0578        .13812        .26929E-03    .86441E-03
   4  Prefactor     1.0840        .11016        .21367E-03    .11553E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15436.81     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      328 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.323        18.938        .18529E-03   -1.4925    
   2  Index         2.1964        .72953        .70313E-03   -.59526    
   3  Normalizat    1.0578        .13812        .26180E-03   -.91119    
   4  Prefactor     1.0840        .11016        .15630E-03   -.89981    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15436.81     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      356 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.323        17.137        .40929E-05   -.99996E-05
   2  Index         2.1964        .66062        .21372E-02    .46377E-04
   3  Normalizat    1.0578        .13785        .53859E-04   -.22797E-05
   4  Prefactor     1.0840        .11017        .42735E-04   -.19154E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3228
  Index      = 2.1964
  Normalizat = 1.05778
  Prefactor  = 1.08396
 **********
 **   18 **HESSE 
 **********

 FCN=   15436.81     FROM HESSE     STATUS=OK            25 CALLS      381 TOTAL
                     EDM=   .14E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.323        16.899        .81858E-06   -1.4925    
   2  Index         2.1964        .65066        .42744E-03   -.59526    
   3  Normalizat    1.0578        .13781        .10772E-04   -.91119    
   4  Prefactor     1.0840        .11017        .85469E-05   -.89981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39065e-13
Minuit parameter uncertainties:
  1  16.9043
  2  0.653366
  3  0.137856
  4  0.110193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571980': 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) = 15436.8053382
delta logL = 0.00446988014119

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.532e+01  1.690e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.196e+00  6.534e-01  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  2.794e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  1.084e+00  1.102e-01  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.058e+00  1.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.69
Ra Dec: 124.695 31.886
Photon Index (Free Index): 2.20 +/- 0.65
Photon Flux (Free Index): 1.92e-08 +/- 2.38e-08
Energy Flux (Free Index): 8.69e-06 +/- 7.74e-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/571980/cmap_HighResolution_303696001_304300801_4FGL_J0818.7+3153_weekly_bin107.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.11e-03', comment='SUCCESS', photon_flux='1.76e-08', energy_flux2='8.69e-06', photon_flux_error='1.50e-08', dlogl='4.47e-03', energy_flux='8.96e-06', photon_flux2='1.92e-08', job_status='DONE', time_completed='2021-07-13 15:33:37.040601', photon_index_error2='0.65', photon_index2='2.20', ts='3.68', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='5.41e-08', energy_flux_error2='7.74e-06', EG='1.06', time_epoch_completed='1626215617.04', return_code='0', job_id='571980', GAL2='1.08', EG2='1.06', return_code2='0', energy_flux_error='7.64e-06', photon_flux_error2='2.38e-08', ts2='3.69', photon_index='2.13' WHERE bin_id='107' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:33:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 571980: <4FGL_J0818.7+3153_weekly_bin107> in cluster <slac> Done

Job <4FGL_J0818.7+3153_weekly_bin107> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Jul 12 07:41:23 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 13 14:55:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 13 14:55:06 2021
Terminated at Tue Jul 13 15:33:39 2021
Results reported at Tue Jul 13 15:33:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin107 124.695 31.8862 303696001 304300801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0818.7+3153 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1527.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             253.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2316 sec.
    Turnaround time :                            114736 sec.

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

