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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin105
RA = 124.695, Dec = 31.8862
tmin = 302486401, tmax = 303091201
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='571977', job_status='RUN', time_executed='2021-07-13 15:01:01.753932', time_epoch_executed='1626213661.75' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571977

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571977/ft1_4FGL_J0818.7+3153_weekly_bin105.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571977/ft2_4FGL_J0818.7+3153_weekly_bin105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571977/ft1_4FGL_J0818.7+3153_weekly_bin105.fits outfile=/scratch/kocevski/571977/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin105.fits ra=124.695 dec=31.8862 rad=12.0 tmin=302486401.0 tmax=303091201.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.54
user 7.19
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571977/ft1_filtered_4FGL_J0818.7+3153_weekly_bin105.fits" evtable="EVENTS" scfile=/scratch/kocevski/571977/ft2_4FGL_J0818.7+3153_weekly_bin105.fits sctable="SC_DATA" outfile=/scratch/kocevski/571977/ltcube_302486401_303091201_4FGL_J0818.7+3153_weekly_bin105.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/571977/ft2_4FGL_J0818.7+3153_weekly_bin105.fits
.....................!
real 32.86
user 32.22
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571977/ft1_filtered_4FGL_J0818.7+3153_weekly_bin105.fits evtable="EVENTS" scfile=/scratch/kocevski/571977/ft2_4FGL_J0818.7+3153_weekly_bin105.fits sctable="SC_DATA" expcube=/scratch/kocevski/571977/ltcube_302486401_303091201_4FGL_J0818.7+3153_weekly_bin105.fits outfile=/scratch/kocevski/571977/expmap_302486401_303091201_4FGL_J0818.7+3153_weekly_bin105.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/571977/ltcube_302486401_303091201_4FGL_J0818.7+3153_weekly_bin105.fits
.....................!
real 193.99
user 186.49
sys 5.31

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/571977/ft1_filtered_4FGL_J0818.7+3153_weekly_bin105.fits scfile=/scratch/kocevski/571977/ft2_4FGL_J0818.7+3153_weekly_bin105.fits outfile=/scratch/kocevski/571977/cmap_302486401_303091201_4FGL_J0818.7+3153_weekly_bin105.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.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571977/ft1_filtered_4FGL_J0818.7+3153_weekly_bin105.fits scfile=/scratch/kocevski/571977/ft2_4FGL_J0818.7+3153_weekly_bin105.fits outfile=/scratch/kocevski/571977/cmap_HighResolution_302486401_303091201_4FGL_J0818.7+3153_weekly_bin105.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.61
user 0.43
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/571977/ft1_filtered_4FGL_J0818.7+3153_weekly_bin105.fits', '/scratch/kocevski/571977/ft2_4FGL_J0818.7+3153_weekly_bin105.fits', expMap='/scratch/kocevski/571977/expmap_302486401_303091201_4FGL_J0818.7+3153_weekly_bin105.fits', expCube='/scratch/kocevski/571977/ltcube_302486401_303091201_4FGL_J0818.7+3153_weekly_bin105.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/571977/Model_4FGL_J0818.7+3153_weekly_bin105.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/571977/ft1_filtered_4FGL_J0818.7+3153_weekly_bin105.fits
Spacecraft file(s): /scratch/kocevski/571977/ft2_4FGL_J0818.7+3153_weekly_bin105.fits
Exposure map: /scratch/kocevski/571977/expmap_302486401_303091201_4FGL_J0818.7+3153_weekly_bin105.fits
Exposure cube: /scratch/kocevski/571977/ltcube_302486401_303091201_4FGL_J0818.7+3153_weekly_bin105.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/571977/Model_4FGL_J0818.7+3153_weekly_bin105.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) = 16952.1402925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7980       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2236       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    39.268       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10914E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    26.827       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0750       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9405       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0232       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .40332       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1718       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5357       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .52334       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2195       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1331       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.

 FCN=   16952.00     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2442 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7971        8.4124       -.41811E-07   -.20736E-03
   2  norm          1.2226        2.9438       -.61921E-06   -.30973E-03
   3  Prefactor     .10000E-03    35.071        .10159E-05** at limit **
   4  Prefactor     39.271        17.928        .89927E-06    .31658E-04
   5  Prefactor     .10000E-03    6.9845        .30990E-05** at limit **
   6  norm          .10003E-03    3.7048        .85140E-06** at limit **
   7  norm          26.826        54.054       -.11359E-05    .42697E-06
   8  Prefactor     .10000E-03    1.0070       -.25714E-06** at limit **
   9  Prefactor     .10000E-03    5.5090       -.70287E-06** at limit **
  10  norm          1.0750        .37166        .31184E-07    .18805E-03
  11  Prefactor     .10000E-03    17.773       -.22388E-05** at limit **
  12  Prefactor     1.9424        9.6298        .11357E-05   -.16256E-03
  13  Prefactor     .10000E-03    1.6892       -.32321E-06** at limit **
  14  Prefactor     4.0271        14.069        .36025E-06    .41732E-05
  15  Prefactor     .40351        .88837        .10974E-07   -.12336E-03
  16  norm          1.1714        .96221       -.93547E-07   -.16629E-03
  17  Prefactor     .10000E-03    8.6931       -.17916E-06** at limit **
  18  Prefactor     2.5367        6.8732       -.84214E-08   -.13450E-04
  19  Prefactor     .10000E-03    6.8211       -.22257E-05** at limit **
  20  Prefactor     .52381        2.0544       -.17717E-06   -.23096E-03
  21  Normalizat    1.2195        .12700       -.48579E-06   -.47957E-04
  22  Prefactor     1.1331        .99282E-01    .28668E-06   -.20717E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.79715
  norm       = 1.22262
  Prefactor  = 0.0001
  Prefactor  = 39.271
  Prefactor  = 0.0001
  norm       = 0.000100033
  norm       = 26.8265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.07503
  Prefactor  = 0.0001
  Prefactor  = 1.94238
  Prefactor  = 0.0001
  Prefactor  = 4.02711
  Prefactor  = 0.403505
  norm       = 1.17141
  Prefactor  = 0.0001
  Prefactor  = 2.5367
  Prefactor  = 0.0001
  Prefactor  = 0.523811
  Normalizat = 1.21949
  Prefactor  = 1.1331
 **********
 **   18 **HESSE 
 **********

 FCN=   16952.00     FROM HESSE     STATUS=OK           350 CALLS     2792 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7971        8.7340        .67567E-03   -1.5115    
   2  norm          1.2226        2.9807        .31377E-03   -1.5487    
   3  Prefactor     .10000E-03    35.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     39.271        17.664        .63963E-04   -1.4454    
   5  Prefactor     .10000E-03    6.9983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10003E-03    18.052        .46604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          26.826        54.103        .77345E-04   -1.4672    
   8  Prefactor     .10000E-03    1.0280        .12748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.5127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0750        .36541        .45181E-04   -1.5501    
  11  Prefactor     .10000E-03    17.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9424        33.384        .14902E-02   -1.5429    
  13  Prefactor     .10000E-03    1.6914        .16523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0271        13.763        .20105E-03   -1.5307    
  15  Prefactor     .40351        .82017        .17619E-02   -1.5581    
  16  norm          1.1714        .91582        .96749E-04   -1.5492    
  17  Prefactor     .10000E-03    8.7226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.5367        6.8211        .25648E-03   -1.5389    
  19  Prefactor     .10000E-03    6.8262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .52381        2.4751        .38645E-02   -1.5563    
  21  Normalizat    1.2195        .15104        .28301E-03   -.86003    
  22  Prefactor     1.1331        .11846        .23033E-03   -.88416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59125e-07
Minuit parameter uncertainties:
  1  8.73529
  2  2.98111
  3  2.91733e-05
  4  17.6659
  5  3.08291e-06
  6  0.00153351
  7  54.2017
  8  3.51023e-07
  9  1.17179e-07
  10  0.365413
  11  8.08467e-06
  12  16.1154
  13  6.83304e-08
  14  13.774
  15  0.820192
  16  0.915833
  17  8.53673e-07
  18  6.82316
  19  4.96005e-06
  20  2.27721
  21  0.151095
  22  0.118485
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.942e+00  1.612e+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.133e+00  1.185e-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.219e+00  1.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/571977/likelihoodResults_302486401_303091201_4FGL_J0818.7+3153_weekly_bin105.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): 102
logL (Free Index) = 16951.6123525
delta logL = 0.389775742893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16951.607095
delta logL = 0.39503319377

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5926       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2125       1.0000          .0000       10.000    
     3 'Normalizat'    1.1885       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1441       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.

 FCN=   16951.61     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      258 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5860        37.115        .84044E-02    .23687E-02
   2  Index         3.2142        2.4012        .95572E-01    .48554E-03
   3  Normalizat    1.1884        .31425E-01    .64698E-01    .16633E-04
   4  Prefactor     1.1441        .24413E-01    .51873E-01    .14300E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.58596
  Index      = 3.21419
  Normalizat = 1.18843
  Prefactor  = 1.14406
 **********
 **   18 **HESSE 
 **********

 FCN=   16951.61     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      291 TOTAL
                     EDM=   .62E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5860        98.759        .17975E-03   -1.5456    
   2  Index         3.2142        6.6069        .79554E-02   -.36523    
   3  Normalizat    1.1884        .12779        .28620E-03   -.86961    
   4  Prefactor     1.1441        .97847E-01    .22934E-03   -.88070    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.20777e-06
Minuit parameter uncertainties:
  1  25.0728
  2  5.69022
  3  0.127822
  4  0.0978627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571977': 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): 102
logL (Free Index) = 16951.6070938
delta logL = 0.395034460307

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.586e+00  2.507e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  3.214e+00  5.690e+00  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.144e+00  9.786e-02  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.188e+00  1.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 124.695 31.886

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/571977/cmap_HighResolution_302486401_303091201_4FGL_J0818.7+3153_weekly_bin105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-03', job_status='DONE', photon_flux_upper_limit='4.62e-08', time_completed='2021-07-13 15:30:07.327192', job_id='571977', GAL2='1.14', fit_tolerance='1e-08', EG2='1.19', EG='1.22', time_epoch_completed='1626215407.33', return_code2='102', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='3.95e-01', ts2='0.84', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='105' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:30:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 571977: <4FGL_J0818.7+3153_weekly_bin105> in cluster <slac> Done

Job <4FGL_J0818.7+3153_weekly_bin105> 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) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 13 14:55:02 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:02 2021
Terminated at Tue Jul 13 15:30:18 2021
Results reported at Tue Jul 13 15:30:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin105 124.695 31.8862 302486401 303091201 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 :                                   1305.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             228.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2115 sec.
    Turnaround time :                            114535 sec.

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

