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


Performing analysis on: 4FGL_J0115.8+2519_weekly_bin589
RA = 18.9539, Dec = 25.3324
tmin = 595209601, tmax = 595814401
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='126539', job_status='RUN', time_executed='2021-07-03 19:22:02.872470', time_epoch_executed='1625365322.87' WHERE source_name='4FGL J0115.8+2519' and cadence='weekly' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/126539

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/126539/ft1_4FGL_J0115.8+2519_weekly_bin589.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/126539/ft2_4FGL_J0115.8+2519_weekly_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/126539/ft1_4FGL_J0115.8+2519_weekly_bin589.fits outfile=/scratch/kocevski/126539/ft1_filteredMKT_4FGL_J0115.8+2519_weekly_bin589.fits ra=18.9539 dec=25.3324 rad=12.0 tmin=595209601.0 tmax=595814401.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 5.89
user 5.49
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/126539/ft2_4FGL_J0115.8+2519_weekly_bin589.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/126539/ft1_filteredMKT_4FGL_J0115.8+2519_weekly_bin589.fits evtable="EVENTS" outfile="/scratch/kocevski/126539/ft1_filtered_4FGL_J0115.8+2519_weekly_bin589.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.38
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/126539/ft1_filtered_4FGL_J0115.8+2519_weekly_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/126539/ft2_4FGL_J0115.8+2519_weekly_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/126539/ltcube_595209601_595814401_4FGL_J0115.8+2519_weekly_bin589.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/126539/ft2_4FGL_J0115.8+2519_weekly_bin589.fits
.....................!
real 27.95
user 27.12
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/126539/ft1_filtered_4FGL_J0115.8+2519_weekly_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/126539/ft2_4FGL_J0115.8+2519_weekly_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/126539/ltcube_595209601_595814401_4FGL_J0115.8+2519_weekly_bin589.fits outfile=/scratch/kocevski/126539/expmap_595209601_595814401_4FGL_J0115.8+2519_weekly_bin589.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/126539/ltcube_595209601_595814401_4FGL_J0115.8+2519_weekly_bin589.fits
.....................!
real 191.28
user 185.51
sys 5.32

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/126539/ft1_filtered_4FGL_J0115.8+2519_weekly_bin589.fits scfile=/scratch/kocevski/126539/ft2_4FGL_J0115.8+2519_weekly_bin589.fits outfile=/scratch/kocevski/126539/cmap_595209601_595814401_4FGL_J0115.8+2519_weekly_bin589.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 1.11
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/126539/ft1_filtered_4FGL_J0115.8+2519_weekly_bin589.fits scfile=/scratch/kocevski/126539/ft2_4FGL_J0115.8+2519_weekly_bin589.fits outfile=/scratch/kocevski/126539/cmap_HighResolution_595209601_595814401_4FGL_J0115.8+2519_weekly_bin589.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 1.12
user 0.41
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/126539/ft1_filtered_4FGL_J0115.8+2519_weekly_bin589.fits', '/scratch/kocevski/126539/ft2_4FGL_J0115.8+2519_weekly_bin589.fits', expMap='/scratch/kocevski/126539/expmap_595209601_595814401_4FGL_J0115.8+2519_weekly_bin589.fits', expCube='/scratch/kocevski/126539/ltcube_595209601_595814401_4FGL_J0115.8+2519_weekly_bin589.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/126539/Model_4FGL_J0115.8+2519_weekly_bin589.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/126539/ft1_filtered_4FGL_J0115.8+2519_weekly_bin589.fits
Spacecraft file(s): /scratch/kocevski/126539/ft2_4FGL_J0115.8+2519_weekly_bin589.fits
Exposure map: /scratch/kocevski/126539/expmap_595209601_595814401_4FGL_J0115.8+2519_weekly_bin589.fits
Exposure cube: /scratch/kocevski/126539/ltcube_595209601_595814401_4FGL_J0115.8+2519_weekly_bin589.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/126539/Model_4FGL_J0115.8+2519_weekly_bin589.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) = 3178.49784421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5790       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .75924E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.2496       1.0000         .10000E-03   10000.    
     9 'norm      '    3.7315       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .34911E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10686E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.342       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23879E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11813E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.4839       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    64.274       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13041E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96602       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0742       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=   3178.492     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2326 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.176       -.28276E-04** at limit **
   2  Prefactor     1.5855        128.84        .17635E-05   -.65749E-04
   3  norm          .10000E-03    .95971        .11307E-06** at limit **
   4  norm          .10000E-03    4.2579       -.81264E-07** at limit **
   5  Prefactor     .10244E-03    24.011        .64288E-05** at limit **
   6  Prefactor     .10000E-03    18.495        .77566E-06** at limit **
   7  Prefactor     .10000E-03    71.084       -.48885E-04** at limit **
   8  norm          9.2490        2.3018       -.22372E-06   -.38995E-03
   9  norm          3.7323        3.0966       -.39233E-07   -.32011E-03
  10  Prefactor     .10000E-03    168.13        .32177E-04** at limit **
  11  Prefactor     .10000E-03    86.225        .33553E-04** at limit **
  12  Prefactor     .10000E-03    4.7675       -.23686E-06** at limit **
  13  Prefactor     .10000E-03    15.867       -.49347E-06** at limit **
  14  Prefactor     32.420        42.365        .23468E-04   -.72143E-05
  15  Prefactor     .10001E-03    382.37       -.99938E-04** at limit **
  16  Prefactor     .10000E-03    207.11        .11903E-03** at limit **
  17  norm          2.4853        2.5142       -.10902E-05   -.35030E-03
  18  Prefactor     .10000E-03    35.203        .34798E-04** at limit **
  19  norm          64.340        125.12        .70908E-04   -.38063E-05
  20  Prefactor     .10000E-03    1058.0       -.12342E-02** at limit **
  21  Normalizat    .96500        .32325       -.59026E-05   -.45540E-03
  22  Prefactor     1.0744        .20672       -.13484E-05   -.61315E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.58552
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000102436
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.24897
  norm       = 3.73232
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.42
  Prefactor  = 0.000100008
  Prefactor  = 0.000100001
  norm       = 2.48533
  Prefactor  = 0.0001
  norm       = 64.3396
  Prefactor  = 0.0001
  Normalizat = 0.965001
  Prefactor  = 1.07442
 **********
 **   18 **HESSE 
 **********

 FCN=   3178.492     FROM HESSE     STATUS=OK           332 CALLS     2658 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5855        129.81        .33804E-03   -1.5456    
   3  norm          .10000E-03    .96767        .53928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.2599        .11361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10244E-03    256.77        .49754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    71.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.2490        2.2999        .40412E-04   -1.5100    
   9  norm          3.7323        3.0807        .85149E-04   -1.5322    
  10  Prefactor     .10000E-03    173.95        .42649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    86.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.7718        .12021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.420        42.319        .70459E-04   -1.4569    
  15  Prefactor     .10001E-03    383.92        .20063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    207.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.4853        2.5102        .86835E-04   -1.5393    
  18  Prefactor     .10000E-03    35.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          64.340        124.96        .25028E-03   -1.4102    
  20  Prefactor     .10000E-03    1057.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96500        .35966        .34119E-03   -.94212    
  22  Prefactor     1.0744        .23812        .21349E-03   -.90288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.49586e-09
Minuit parameter uncertainties:
  1  6.71045e-05
  2  28.7562
  3  3.83682e-06
  4  8.19242e-07
  5  0.0502364
  6  7.92585e-05
  7  1.30593e-06
  8  2.29992
  9  3.08083
  10  0.000733789
  11  0.000315037
  12  3.21269e-05
  13  8.00811e-05
  14  42.3587
  15  0.00359435
  16  0.000816309
  17  2.5103
  18  0.000104724
  19  125.472
  20  0.000617526
  21  0.360562
  22  0.238359
Done.

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

Extracting fit parameters...

4FGL J0115.8+2519
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  3.213e-05  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:  1.074e+00  2.384e-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.650e-01  3.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 18.954 25.332
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/126539/likelihoodResults_595209601_595814401_4FGL_J0115.8+2519_weekly_bin589.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) = 3178.4927159
delta logL = -0.000961766304044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3178.49175479
delta logL = -6.58742465021e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3178.492     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      239 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10058E-03    47.978        .12194E-02** at limit **
   2  Index         1.8627        9.0596        .50000        .26602E-04
   3  Normalizat    .96501        .25489E-01    .34119E-03    .67308E-05
   4  Prefactor     1.0744        .16845E-01    .21349E-03    .17599E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100582
  Index      = 1.86265
  Normalizat = 0.965007
  Prefactor  = 1.07442
 **********
 **   18 **HESSE 
 **********

 FCN=   3178.492     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10058E-03    204.58        .24389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8627        8.7477        .50000       -.67830    
   3  Normalizat    .96501        .54727E-01    .13648E-04   -.94212    
   4  Prefactor     1.0744        .36167E-01    .85398E-05   -.90288    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.90846e-08
Minuit parameter uncertainties:
  1  0.0219059
  2  335.703
  3  0.0547298
  4  0.0361675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/126539': 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) = 3178.49175377
delta logL = 3.56873442797e-07

Extracting fit parameters...

4FGL J0115.8+2519
   Spectrum: PowerLaw
252    Prefactor:  1.006e-04  2.191e-02  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  1.863e+00  3.357e+02  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:  1.074e+00  3.617e-02  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.650e-01  5.473e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 18.954 25.332

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/126539/cmap_HighResolution_595209601_595814401_4FGL_J0115.8+2519_weekly_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.30e-03', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2021-07-03 19:31:05.631301', job_id='126539', GAL2='1.07', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1625365865.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='3.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='589' AND source_name='4FGL J0115.8+2519' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 19:31:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 126539: <4FGL_J0115.8+2519_weekly_bin589> in cluster <slac> Done

Job <4FGL_J0115.8+2519_weekly_bin589> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Jul  3 19:16:48 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 19:16:50 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:16:50 2021
Terminated at Sat Jul  3 19:31:06 2021
Results reported at Sat Jul  3 19:31:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0115.8+2519_weekly_bin589 18.9539 25.3324 595209601 595814401 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 :                                   503.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             223.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            858 sec.

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

