/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 6 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 = 7558
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0115.8+2519_daily_bin9
RA = 18.9539, Dec = 25.3324
tmin = 241660801, tmax = 241920001
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='496840', job_status='RUN', time_executed='2021-08-13 20:34:25.276302', time_epoch_executed='1628912065.28' WHERE source_name='4FGL J0115.8+2519' and cadence='daily' and bin_id='9'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496840

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496840/ft1_4FGL_J0115.8+2519_daily_bin9.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496840/ft2_4FGL_J0115.8+2519_daily_bin9.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496840/ft1_4FGL_J0115.8+2519_daily_bin9.fits outfile=/scratch/kocevski/496840/ft1_filteredMKT_4FGL_J0115.8+2519_daily_bin9.fits ra=18.9539 dec=25.3324 rad=12.0 tmin=241660801.0 tmax=241920001.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 6.22
user 1.30
sys 4.81

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496840/ft2_4FGL_J0115.8+2519_daily_bin9.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/496840/ft1_filteredMKT_4FGL_J0115.8+2519_daily_bin9.fits evtable="EVENTS" outfile="/scratch/kocevski/496840/ft1_filtered_4FGL_J0115.8+2519_daily_bin9.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 5.25
user 0.34
sys 4.83

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496840/ft1_filtered_4FGL_J0115.8+2519_daily_bin9.fits" evtable="EVENTS" scfile=/scratch/kocevski/496840/ft2_4FGL_J0115.8+2519_daily_bin9.fits sctable="SC_DATA" outfile=/scratch/kocevski/496840/ltcube_241660801_241920001_4FGL_J0115.8+2519_daily_bin9.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/496840/ft2_4FGL_J0115.8+2519_daily_bin9.fits
.....................!
real 22.42
user 16.69
sys 5.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496840/ft1_filtered_4FGL_J0115.8+2519_daily_bin9.fits evtable="EVENTS" scfile=/scratch/kocevski/496840/ft2_4FGL_J0115.8+2519_daily_bin9.fits sctable="SC_DATA" expcube=/scratch/kocevski/496840/ltcube_241660801_241920001_4FGL_J0115.8+2519_daily_bin9.fits outfile=/scratch/kocevski/496840/expmap_241660801_241920001_4FGL_J0115.8+2519_daily_bin9.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/496840/ltcube_241660801_241920001_4FGL_J0115.8+2519_daily_bin9.fits
.....................!
real 196.79
user 184.87
sys 11.46

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/496840/ft1_filtered_4FGL_J0115.8+2519_daily_bin9.fits scfile=/scratch/kocevski/496840/ft2_4FGL_J0115.8+2519_daily_bin9.fits outfile=/scratch/kocevski/496840/cmap_241660801_241920001_4FGL_J0115.8+2519_daily_bin9.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 5.14
user 0.37
sys 4.67

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496840/ft1_filtered_4FGL_J0115.8+2519_daily_bin9.fits scfile=/scratch/kocevski/496840/ft2_4FGL_J0115.8+2519_daily_bin9.fits outfile=/scratch/kocevski/496840/cmap_HighResolution_241660801_241920001_4FGL_J0115.8+2519_daily_bin9.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 5.10
user 0.37
sys 4.59

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.2313       1.0000         .10000E-03   10000.    
     4 'norm      '    16.861       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.422       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0277       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.5329       1.0000         .10000E-03   10000.    
     8 'norm      '    .87295       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.728       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1552       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.121       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.259       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.890       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8764       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3858       1.0000         .10000E-03   10000.    
    19 'norm      '    .30783E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76691       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1543       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=   7110.540     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2460 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.074        .90712E-02** at limit **
   2  Prefactor     .10000E-03    7.7030        .90712E-02** at limit **
   3  norm          3.2314        2.4646        .56336E-02    .30491E-03
   4  norm          16.861        9.2146        .24385E-02   -.14155E-03
   5  Prefactor     16.423        12.906        .24708E-02    .29686E-03
   6  Prefactor     4.0261        10.893        .50233E-02   -.41576E-03
   7  Prefactor     8.5304        27.644        .34308E-02    .28028E-03
   8  norm          .87296        .53364        .10298E-01   -.75152E-04
   9  norm          .10000E-03    .52923        .90712E-02** at limit **
  10  Prefactor     .10000E-03    3.8589        .90712E-02** at limit **
  11  Prefactor     38.729        45.514        .16101E-02   -.69229E-03
  12  Prefactor     .10000E-03    9.0105        .90712E-02** at limit **
  13  Prefactor     2.1551        4.7117        .70157E-02    .91326E-03
  14  Prefactor     22.122        14.786        .21291E-02    .14601E-02
  15  Prefactor     27.258        32.521        .19183E-02    .23917E-03
  16  Prefactor     18.891        160.04        .23038E-02   -.73444E-04
  17  norm          2.8764        .90697        .59914E-02    .21792E-02
  18  Prefactor     8.3858        13.654        .34609E-02   -.13424E-03
  19  norm          .10026E-03    4.2409        .54012E-01** at limit **
  20  Prefactor     .10001E-03    114.05        .90712E-02** at limit **
  21  Normalizat    .76690        .20285        .76358E-01    .13822E-03
  22  Prefactor     1.1543        .13239        .35814E-01    .54329E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.23145
  norm       = 16.8607
  Prefactor  = 16.423
  Prefactor  = 4.02607
  Prefactor  = 8.53037
  norm       = 0.872961
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.7292
  Prefactor  = 0.000100001
  Prefactor  = 2.15512
  Prefactor  = 22.1225
  Prefactor  = 27.2583
  Prefactor  = 18.8907
  norm       = 2.8764
  Prefactor  = 8.38575
  norm       = 0.000100257
  Prefactor  = 0.000100009
  Normalizat = 0.7669
  Prefactor  = 1.15426
 **********
 **   18 **HESSE 
 **********

 FCN=   7110.540     FROM HESSE     STATUS=OK           344 CALLS     2804 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.7068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2314        2.4606        .11193E-03   -1.5348    
   4  norm          16.861        9.2133        .97539E-04   -1.4886    
   5  Prefactor     16.423        12.960        .98833E-04   -1.4897    
   6  Prefactor     4.0261        10.876        .20093E-03   -1.5307    
   7  Prefactor     8.5304        27.615        .13723E-03   -1.5124    
   8  norm          .87296        .53473        .45328E-04   -1.5521    
   9  norm          .10000E-03    .55323        .11953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.8598        .16178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     38.729        45.228        .64406E-04   -1.4463    
  12  Prefactor     .10000E-03    9.1938        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.1551        4.6912        .25894E-03   -1.5414    
  14  Prefactor     22.122        14.769        .85162E-04   -1.4767    
  15  Prefactor     27.258        32.510        .76732E-04   -1.4663    
  16  Prefactor     18.891        160.19        .92152E-04   -1.4838    
  17  norm          2.8764        .90877        .41126E-04   -1.5369    
  18  Prefactor     8.3858        13.633        .13844E-03   -1.5129    
  19  norm          .10026E-03    25.454        .33674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    114.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .76690        .22879        .33801E-03   -1.0131    
  22  Prefactor     1.1543        .15064        .19134E-03   -.87751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9072e-08
Minuit parameter uncertainties:
  1  0.000283041
  2  0.000103457
  3  2.46069
  4  9.21404
  5  12.9626
  6  10.8809
  7  27.656
  8  0.534728
  9  1.25467e-05
  10  3.02561e-05
  11  45.2684
  12  0.00015874
  13  4.69201
  14  14.7712
  15  32.5315
  16  110.421
  17  0.908779
  18  13.6385
  19  0.00511902
  20  0.00204669
  21  0.229075
  22  0.150699
Done.

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

Extracting fit parameters...

4FGL J0115.8+2519
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  1.587e-04  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.154e+00  1.507e-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:  7.669e-01  2.291e-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: 7.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/496840/likelihoodResults_241660801_241920001_4FGL_J0115.8+2519_daily_bin9.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) = 7110.54071601
delta logL = -0.000519213558619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7110.54019595
delta logL = 8.47971023177e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10580E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9891       1.0000          .0000       10.000    
     3 'Normalizat'    .76687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1543       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=   7110.540     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      232 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    .24330E-01    .52304E-01** at limit **
   2  Index         2.0847        5.7163        .50000       -.79271E-04
   3  Normalizat    .76690        .37804E-03    .76358E-01    .10439E-04
   4  Prefactor     1.1543        .25867E-03    .35814E-01    .19556E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100086
  Index      = 2.08465
  Normalizat = 0.766901
  Prefactor  = 1.15426
 **********
 **   18 **HESSE 
 **********

 FCN=   7110.540     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    6.5626        .32952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0847        8.3203        .50000       -.62250    
   3  Normalizat    .76690        .28598E-02    .33801E-03   -1.0131    
   4  Prefactor     1.1543        .19609E-02    .19134E-03   -.87751    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.0714e-07
Minuit parameter uncertainties:
  1  0.00150165
  2  45.1027
  3  0.00285977
  4  0.00196091
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496840': 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) = 7110.54019398
delta logL = 2.82144992525e-06

Extracting fit parameters...

4FGL J0115.8+2519
   Spectrum: PowerLaw
252    Prefactor:  1.001e-04  1.502e-03  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.085e+00  4.510e+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:  1.154e+00  1.961e-03  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:  7.669e-01  2.860e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/496840/cmap_HighResolution_241660801_241920001_4FGL_J0115.8+2519_daily_bin9.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-03', job_status='DONE', photon_flux_upper_limit='7.58e-08', time_completed='2021-08-13 20:47:07.885386', job_id='496840', GAL2='1.15', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1628912827.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='2.82e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='9' AND source_name='4FGL J0115.8+2519' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 20:47:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 496840: <4FGL_J0115.8+2519_daily_bin9> in cluster <slac> Done

Job <4FGL_J0115.8+2519_daily_bin9> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 13 20:31:00 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 20:32:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 20:32:49 2021
Terminated at Fri Aug 13 20:47:09 2021
Results reported at Fri Aug 13 20:47:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0115.8+2519_daily_bin9 18.9539 25.3324 241660801 241920001 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 :                                   835.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            969 sec.

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

