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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin320
RA = 124.695, Dec = 31.8862
tmin = 432518401, tmax = 433123201
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='574095', job_status='RUN', time_executed='2021-07-13 14:55:27.761593', time_epoch_executed='1626213327.76' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574095

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574095/ft1_4FGL_J0818.7+3153_weekly_bin320.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574095/ft2_4FGL_J0818.7+3153_weekly_bin320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574095/ft1_4FGL_J0818.7+3153_weekly_bin320.fits outfile=/scratch/kocevski/574095/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin320.fits ra=124.695 dec=31.8862 rad=12.0 tmin=432518401.0 tmax=433123201.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 11.97
user 11.26
sys 0.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574095/ft1_filtered_4FGL_J0818.7+3153_weekly_bin320.fits" evtable="EVENTS" scfile=/scratch/kocevski/574095/ft2_4FGL_J0818.7+3153_weekly_bin320.fits sctable="SC_DATA" outfile=/scratch/kocevski/574095/ltcube_432518401_433123201_4FGL_J0818.7+3153_weekly_bin320.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/574095/ft2_4FGL_J0818.7+3153_weekly_bin320.fits
.....................!
real 30.07
user 29.29
sys 0.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574095/ft1_filtered_4FGL_J0818.7+3153_weekly_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/574095/ft2_4FGL_J0818.7+3153_weekly_bin320.fits sctable="SC_DATA" expcube=/scratch/kocevski/574095/ltcube_432518401_433123201_4FGL_J0818.7+3153_weekly_bin320.fits outfile=/scratch/kocevski/574095/expmap_432518401_433123201_4FGL_J0818.7+3153_weekly_bin320.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/574095/ltcube_432518401_433123201_4FGL_J0818.7+3153_weekly_bin320.fits
.....................!
real 191.29
user 185.94
sys 4.56

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/574095/ft1_filtered_4FGL_J0818.7+3153_weekly_bin320.fits scfile=/scratch/kocevski/574095/ft2_4FGL_J0818.7+3153_weekly_bin320.fits outfile=/scratch/kocevski/574095/cmap_432518401_433123201_4FGL_J0818.7+3153_weekly_bin320.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574095/ft1_filtered_4FGL_J0818.7+3153_weekly_bin320.fits scfile=/scratch/kocevski/574095/ft2_4FGL_J0818.7+3153_weekly_bin320.fits outfile=/scratch/kocevski/574095/cmap_HighResolution_432518401_433123201_4FGL_J0818.7+3153_weekly_bin320.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574095/ft1_filtered_4FGL_J0818.7+3153_weekly_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/574095/ft2_4FGL_J0818.7+3153_weekly_bin320.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574095/Model_4FGL_J0818.7+3153_weekly_bin320.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/574095/ft1_filtered_4FGL_J0818.7+3153_weekly_bin320.fits.....................!
real 123.34
user 121.35
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75386       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7360       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6136       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.6915       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .95412       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.389       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10132       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0336       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.6421       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2118       1.0000         .10000E-03   10000.    
    16 'norm      '    .44115       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0615       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6394       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9603       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0605       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96150       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=   14561.95     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2438 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76550        4.5453        .19088E-05   -.55001E-03
   2  norm          1.7340        2.3776        .14498E-05    .10538E-02
   3  Prefactor     2.5769        47.178       -.15149E-04    .37885E-04
   4  Prefactor     .10000E-03    6.4231       -.18336E-06** at limit **
   5  Prefactor     .10000E-03    14.434        .13428E-05** at limit **
   6  norm          2.6908        5.2586        .43447E-05    .88649E-05
   7  norm          .10000E-03    25.792        .14620E-06** at limit **
   8  Prefactor     .10000E-03    1.4787       -.96121E-07** at limit **
   9  Prefactor     .10000E-03    6.3912        .31046E-06** at limit **
  10  norm          .95416        .35387       -.61995E-08   -.61860E-04
  11  Prefactor     11.388        17.095       -.63735E-06    .10362E-03
  12  Prefactor     .10259E-03    9.7784       -.18819E-05** at limit **
  13  Prefactor     4.0259        10.251       -.90574E-07   -.16758E-04
  14  Prefactor     6.6460        13.570        .14732E-05    .10529E-03
  15  Prefactor     2.2126        1.9948        .39724E-08   -.71347E-05
  16  norm          .44065        .69927       -.25718E-06   -.15876E-02
  17  Prefactor     3.0612        24.241        .16359E-05   -.21340E-04
  18  Prefactor     .10000E-03    3.8723       -.62809E-07** at limit **
  19  Prefactor     9.6385        8.0948        .32267E-06    .26560E-04
  20  Prefactor     3.9600        2.3328        .21049E-07    .15969E-04
  21  Normalizat    1.0606        .11907        .16535E-06    .32928E-03
  22  Prefactor     .96145        .91126E-01   -.16960E-06    .42246E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.765504
  norm       = 1.73401
  Prefactor  = 2.5769
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.69077
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.954157
  Prefactor  = 11.3883
  Prefactor  = 0.000102589
  Prefactor  = 4.02588
  Prefactor  = 6.64598
  Prefactor  = 2.2126
  norm       = 0.440653
  Prefactor  = 3.0612
  Prefactor  = 0.0001
  Prefactor  = 9.63847
  Prefactor  = 3.96
  Normalizat = 1.06061
  Prefactor  = 0.961452
 **********
 **   18 **HESSE 
 **********

 FCN=   14561.95     FROM HESSE     STATUS=OK           362 CALLS     2800 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76550        15.470        .46488E-02   -1.5533    
   2  norm          1.7340        2.3682        .20082E-03   -1.5445    
   3  Prefactor     2.5769        46.873        .25231E-03   -1.5387    
   4  Prefactor     .10000E-03    6.4528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.6908        5.3064        .12417E-02   -1.5380    
   7  norm          .10000E-03    25.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5133        .28616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.3976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .95416        .35206        .41045E-04   -1.5513    
  11  Prefactor     11.388        17.067        .11871E-03   -1.5033    
  12  Prefactor     .10259E-03    10.972        .10962       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.0259        9.9430        .20078E-03   -1.5307    
  14  Prefactor     6.6460        13.004        .15570E-03   -1.5192    
  15  Prefactor     2.2126        1.9450        .13709E-03   -1.5410    
  16  norm          .44065        .61691        .10955E-02   -1.5575    
  17  Prefactor     3.0612        23.910        .23185E-03   -1.5358    
  18  Prefactor     .10000E-03    3.9182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.6385        8.1015        .64536E-03   -1.5087    
  20  Prefactor     3.9600        2.3313        .13714E-03   -1.5310    
  21  Normalizat    1.0606        .13868        .25794E-03   -.91027    
  22  Prefactor     .96145        .10688        .21390E-03   -.94026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91023e-09
Minuit parameter uncertainties:
  1  6.88411
  2  2.36831
  3  22.0003
  4  5.96583e-06
  5  0.00020887
  6  5.30737
  7  2.47633e-05
  8  4.52148e-06
  9  6.62207e-06
  10  0.352058
  11  17.0747
  12  0.0106616
  13  9.94708
  14  13.0095
  15  1.94508
  16  0.616922
  17  17.1196
  18  2.4343e-06
  19  8.10245
  20  2.33132
  21  0.138723
  22  0.106902
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.026e-04  1.066e-02  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:  9.615e-01  1.069e-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.061e+00  1.387e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/574095/likelihoodResults_432518401_433123201_4FGL_J0818.7+3153_weekly_bin320.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) = 14561.9470552
delta logL = -1.70082221302e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14561.9470552
delta logL = -1.70041585079e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96366E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1347       1.0000          .0000       10.000    
     3 'Normalizat'    1.0606       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96145       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=   14561.74     FROM MIGRAD    STATUS=CONVERGED    134 CALLS      317 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1129        51.740        .90712E-02    .22740E-02
   2  Index         3.1514        3.3748        .83096E-01    .45209E-03
   3  Normalizat    1.0422        .29087E-01    .58782E-01    .12245E-03
   4  Prefactor     .96697        .22898E-01    .45783E-01    .34707E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11292
  Index      = 3.15135
  Normalizat = 1.04222
  Prefactor  = 0.966972
 **********
 **   18 **HESSE 
 **********

 FCN=   14561.74     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      348 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1129        136.74        .19552E-03   -1.5497    
   2  Index         3.1514        6.2706        .11035E-01   -.37872    
   3  Normalizat    1.0422        .10343        .25996E-03   -.91629    
   4  Prefactor     .96697        .80130E-01    .21334E-03   -.93839    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1398e-05
Minuit parameter uncertainties:
  1  24.7296
  2  7.85715
  3  0.103455
  4  0.0801402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574095': 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) = 14561.7390712
delta logL = 0.207967009699

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.113e+00  2.473e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  3.151e+00  7.857e+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:  9.670e-01  8.014e-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.042e+00  1.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/574095/cmap_HighResolution_432518401_433123201_4FGL_J0818.7+3153_weekly_bin320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-03', job_status='DONE', photon_flux_upper_limit='4.15e-08', time_completed='2021-07-13 15:24:11.858546', job_id='574095', GAL2='0.97', fit_tolerance='1e-08', EG2='1.04', EG='1.06', time_epoch_completed='1626215051.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.08e-01', ts2='0.43', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='320' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:24:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 574095: <4FGL_J0818.7+3153_weekly_bin320> in cluster <slac> Done

Job <4FGL_J0818.7+3153_weekly_bin320> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Jul 12 07:47:47 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:52:09 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:52:09 2021
Terminated at Tue Jul 13 15:24:12 2021
Results reported at Tue Jul 13 15:24:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin320 124.695 31.8862 432518401 433123201 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 :                                   1199.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             50.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2171 sec.
    Turnaround time :                            113785 sec.

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

