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


Performing analysis on: 4FGL_J0115.8+2519_weekly_bin324
RA = 18.9539, Dec = 25.3324
tmin = 434937601, tmax = 435542401
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='124869', job_status='RUN', time_executed='2021-07-03 19:12:37.838771', time_epoch_executed='1625364757.84' WHERE source_name='4FGL J0115.8+2519' and cadence='weekly' and bin_id='324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/124869

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/124869/ft1_4FGL_J0115.8+2519_weekly_bin324.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/124869/ft2_4FGL_J0115.8+2519_weekly_bin324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/124869/ft1_4FGL_J0115.8+2519_weekly_bin324.fits outfile=/scratch/kocevski/124869/ft1_filteredMKT_4FGL_J0115.8+2519_weekly_bin324.fits ra=18.9539 dec=25.3324 rad=12.0 tmin=434937601.0 tmax=435542401.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 12.88
user 11.30
sys 0.41

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/124869/ft2_4FGL_J0115.8+2519_weekly_bin324.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/124869/ft2_4FGL_J0115.8+2519_weekly_bin324.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/124869/ft1_filteredMKT_4FGL_J0115.8+2519_weekly_bin324.fits evtable="EVENTS" outfile="/scratch/kocevski/124869/ft1_filtered_4FGL_J0115.8+2519_weekly_bin324.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.83
user 0.38
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/124869/ft1_filtered_4FGL_J0115.8+2519_weekly_bin324.fits" evtable="EVENTS" scfile=/scratch/kocevski/124869/ft2_4FGL_J0115.8+2519_weekly_bin324.fits sctable="SC_DATA" outfile=/scratch/kocevski/124869/ltcube_434937601_435542401_4FGL_J0115.8+2519_weekly_bin324.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/124869/ft2_4FGL_J0115.8+2519_weekly_bin324.fits
.....................!
real 36.83
user 36.07
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/124869/ft1_filtered_4FGL_J0115.8+2519_weekly_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/124869/ft2_4FGL_J0115.8+2519_weekly_bin324.fits sctable="SC_DATA" expcube=/scratch/kocevski/124869/ltcube_434937601_435542401_4FGL_J0115.8+2519_weekly_bin324.fits outfile=/scratch/kocevski/124869/expmap_434937601_435542401_4FGL_J0115.8+2519_weekly_bin324.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/124869/ltcube_434937601_435542401_4FGL_J0115.8+2519_weekly_bin324.fits
.....................!
real 192.92
user 185.97
sys 5.14

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

Setting source of interest to:
4FGL J0115.8+2519 @ 18.9539 25.3324

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/124869/ft1_filtered_4FGL_J0115.8+2519_weekly_bin324.fits scfile=/scratch/kocevski/124869/ft2_4FGL_J0115.8+2519_weekly_bin324.fits outfile=/scratch/kocevski/124869/cmap_434937601_435542401_4FGL_J0115.8+2519_weekly_bin324.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=18.9539 yref=25.3324 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.69
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/124869/ft1_filtered_4FGL_J0115.8+2519_weekly_bin324.fits scfile=/scratch/kocevski/124869/ft2_4FGL_J0115.8+2519_weekly_bin324.fits outfile=/scratch/kocevski/124869/cmap_HighResolution_434937601_435542401_4FGL_J0115.8+2519_weekly_bin324.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=18.9539 yref=25.3324 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.98
user 0.44
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/124869/ft1_filtered_4FGL_J0115.8+2519_weekly_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/124869/ft2_4FGL_J0115.8+2519_weekly_bin324.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/124869/Model_4FGL_J0115.8+2519_weekly_bin324.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/124869/ft1_filtered_4FGL_J0115.8+2519_weekly_bin324.fits.....................!
real 74.84
user 69.72
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/124869/ft1_filtered_4FGL_J0115.8+2519_weekly_bin324.fits', '/scratch/kocevski/124869/ft2_4FGL_J0115.8+2519_weekly_bin324.fits', expMap='/scratch/kocevski/124869/expmap_434937601_435542401_4FGL_J0115.8+2519_weekly_bin324.fits', expCube='/scratch/kocevski/124869/ltcube_434937601_435542401_4FGL_J0115.8+2519_weekly_bin324.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/124869/Model_4FGL_J0115.8+2519_weekly_bin324.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0115.8+2519'

4FGL J0115.8+2519
   Spectrum: PowerLaw
252    Prefactor:  2.767e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  1.918e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
254        Scale:  2.499e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/124869/ft1_filtered_4FGL_J0115.8+2519_weekly_bin324.fits
Spacecraft file(s): /scratch/kocevski/124869/ft2_4FGL_J0115.8+2519_weekly_bin324.fits
Exposure map: /scratch/kocevski/124869/expmap_434937601_435542401_4FGL_J0115.8+2519_weekly_bin324.fits
Exposure cube: /scratch/kocevski/124869/ltcube_434937601_435542401_4FGL_J0115.8+2519_weekly_bin324.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/124869/Model_4FGL_J0115.8+2519_weekly_bin324.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) = 7261.72412126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    114.80       1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.854       1.0000         .10000E-03   10000.    
     3 'norm      '    5.2101       1.0000         .10000E-03   10000.    
     4 'norm      '    5.5644       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.5465       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0993       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.725       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1636       1.0000         .10000E-03   10000.    
     9 'norm      '    8.3627       1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.129       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.965       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4434       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6298       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7763       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3672       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.6595       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95859       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94118       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7261.721     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2333 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     114.81        69.724        .51067E-05    .65412E-06
   2  Prefactor     51.854        38.381        .30201E-06   -.23182E-05
   3  norm          5.2100        3.1568       -.20020E-06   -.35954E-04
   4  norm          5.5646        7.3409        .29967E-05   -.32707E-04
   5  Prefactor     8.5498        13.466       -.70766E-06   -.68694E-04
   6  Prefactor     2.0990        17.600       -.23205E-05   -.19442E-03
   7  Prefactor     14.718        29.645       -.94290E-05   -.17902E-04
   8  norm          1.1637        .59834        .27956E-06    .48423E-03
   9  norm          8.3630        1.9876       -.19885E-07   -.93653E-04
  10  Prefactor     32.131        19.013        .63019E-06   -.39539E-06
  11  Prefactor     18.937        41.388       -.51713E-04   -.48231E-04
  12  Prefactor     3.4469        5.4593        .50898E-05   -.20644E-03
  13  Prefactor     2.6305        7.2592        .34764E-05   -.44891E-03
  14  Prefactor     6.7750        10.547        .20414E-05   -.20853E-03
  15  Prefactor     .10000E-03    39.034        .48522E-04** at limit **
  16  Prefactor     .10000E-03    20.710       -.18917E-05** at limit **
  17  norm          1.3672        .62666       -.63045E-07   -.60295E-03
  18  Prefactor     .10000E-03    1.7034       -.55135E-07** at limit **
  19  norm          7.6600        6.1147        .31193E-05   -.18253E-03
  20  Prefactor     .10000E-03    44.883       -.54289E-04** at limit **
  21  Normalizat    .95834        .19919        .17662E-05   -.24635E-03
  22  Prefactor     .94132        .12320        .52908E-07   -.21711E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 114.806
  Prefactor  = 51.8544
  norm       = 5.21
  norm       = 5.56457
  Prefactor  = 8.54976
  Prefactor  = 2.09905
  Prefactor  = 14.7183
  norm       = 1.16369
  norm       = 8.36302
  Prefactor  = 32.1306
  Prefactor  = 18.9367
  Prefactor  = 3.44691
  Prefactor  = 2.63047
  Prefactor  = 6.77498
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.36719
  Prefactor  = 0.0001
  norm       = 7.66003
  Prefactor  = 0.0001
  Normalizat = 0.958341
  Prefactor  = 0.941319
 **********
 **   18 **HESSE 
 **********

 FCN=   7261.721     FROM HESSE     STATUS=OK           350 CALLS     2683 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     114.81        69.748        .18775E-03   -1.3561    
   2  Prefactor     51.854        38.409        .55695E-04   -1.4267    
   3  norm          5.2100        3.1526        .11382E-03   -1.5251    
   4  norm          5.5646        7.3293        .17031E-03   -1.5236    
   5  Prefactor     8.5498        13.491        .13712E-03   -1.5123    
   6  Prefactor     2.0990        17.546        .28484E-03   -1.5418    
   7  Prefactor     14.718        29.595        .10438E-03   -1.4940    
   8  norm          1.1637        .59473        .44378E-04   -1.5492    
   9  norm          8.3630        1.9778        .54023E-04   -1.5130    
  10  Prefactor     32.131        19.025        .70691E-04   -1.4574    
  11  Prefactor     18.937        41.236        .91971E-04   -1.4837    
  12  Prefactor     3.4469        5.3991        .21796E-03   -1.5337    
  13  Prefactor     2.6305        7.2130        .25146E-03   -1.5384    
  14  Prefactor     6.7750        10.513        .15414E-03   -1.5187    
  15  Prefactor     .10000E-03    39.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3672        .62035        .43769E-04   -1.5474    
  18  Prefactor     .10000E-03    1.7070        .10861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.6600        6.1075        .14490E-03   -1.5154    
  20  Prefactor     .10000E-03    44.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .95834        .23246        .30781E-03   -.94439    
  22  Prefactor     .94132        .14441        .20319E-03   -.94712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61528e-10
Minuit parameter uncertainties:
  1  69.798
  2  38.4268
  3  3.15273
  4  7.33045
  5  13.4959
  6  12.1421
  7  29.6246
  8  0.594728
  9  1.97778
  10  19.0283
  11  41.2977
  12  5.39985
  13  7.21542
  14  10.5157
  15  0.000334021
  16  5.34823e-06
  17  0.62035
  18  1.97886e-06
  19  6.10802
  20  7.13316e-06
  21  0.2327
  22  0.144471
Done.

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

Extracting fit parameters...

4FGL J0115.8+2519
   Spectrum: PowerLaw
252    Prefactor:  3.447e+00  5.400e+00  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  1.918e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
254        Scale:  2.499e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  9.413e-01  1.445e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  9.583e-01  2.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.63
Ra Dec: 18.954 25.332
Photon Flux Upper Limit: 8.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/124869/likelihoodResults_434937601_435542401_4FGL_J0115.8+2519_weekly_bin324.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) = 7261.12757398
delta logL = 0.592946753789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7261.07787477
delta logL = 0.642645965503

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9223       1.0000         .10000E-03   10000.    
     2 'Index     '    .79822       1.0000          .0000       10.000    
     3 'Normalizat'    .96247       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94450       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7261.078     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      209 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9127        2.2985        .74920E-02   -.14920E-03
   2  Index         .79603        .56021        .34691       -.63118E-04
   3  Normalizat    .96248        .18560        .69426E-01    .19983E-04
   4  Prefactor     .94454        .12230        .45570E-01    .65505E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.91267
  Index      = 0.796025
  Normalizat = 0.962479
  Prefactor  = 0.944536
 **********
 **   18 **HESSE 
 **********

 FCN=   7261.078     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9127        3.6745        .13593E-03   -1.5431    
   2  Index         .79603        .79954        .17048E-01   -.99875    
   3  Normalizat    .96248        .21668        .30714E-03   -.94298    
   4  Prefactor     .94454        .14300        .20292E-03   -.94602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.85689e-09
Minuit parameter uncertainties:
  1  3.67495
  2  0.811645
  3  0.216882
  4  0.143054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/124869': 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) = 7261.07787164
delta logL = 0.642649093902

Extracting fit parameters...

4FGL J0115.8+2519
   Spectrum: PowerLaw
252    Prefactor:  1.913e+00  3.675e+00  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  7.960e-01  8.116e-01  0.000e+00  1.000e+01 (-1.000e+00)
254        Scale:  2.499e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  9.445e-01  1.431e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  9.625e-01  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.91
Ra Dec: 18.954 25.332
Photon Index (Free Index): 0.80 +/- 0.81
Photon Flux (Free Index): 3.76e-09 +/- 5.13e-09
Energy Flux (Free Index): 8.43e-05 +/- 1.20e-04

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/124869/cmap_HighResolution_434937601_435542401_4FGL_J0115.8+2519_weekly_bin324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.13e-03', comment='SUCCESS', energy_flux2='8.43e-05', dlogl='6.43e-01', photon_flux2='3.76e-09', job_status='DONE', time_completed='2021-07-03 19:25:51.578222', photon_index_error2='0.81', photon_index2='0.80', ts='0.63', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='8.23e-08', energy_flux_error2='1.20e-04', EG='0.96', time_epoch_completed='1625365551.58', return_code='0', job_id='124869', GAL2='0.94', EG2='0.96', return_code2='0', photon_flux_error2='5.13e-09', ts2='1.91', photon_index='1.92' WHERE bin_id='324' AND source_name='4FGL J0115.8+2519' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 19:25:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 124869: <4FGL_J0115.8+2519_weekly_bin324> in cluster <slac> Done

Job <4FGL_J0115.8+2519_weekly_bin324> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Jul  3 19:10:45 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 19:10:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 19:10:45 2021
Terminated at Sat Jul  3 19:25:53 2021
Results reported at Sat Jul  3 19:25:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0115.8+2519_weekly_bin324 18.9539 25.3324 434937601 435542401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0115.8+2519 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   763.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             245.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            908 sec.

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

