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


Performing analysis on: 4FGL_J0115.8+2519_daily_bin1499
RA = 18.9539, Dec = 25.3324
tmin = 627868801, tmax = 628128001
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='504190', job_status='RUN', time_executed='2021-08-13 21:00:34.234675', time_epoch_executed='1628913634.23' WHERE source_name='4FGL J0115.8+2519' and cadence='daily' and bin_id='1499'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504190

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504190/ft1_4FGL_J0115.8+2519_daily_bin1499.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504190/ft2_4FGL_J0115.8+2519_daily_bin1499.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504190/ft1_4FGL_J0115.8+2519_daily_bin1499.fits outfile=/scratch/kocevski/504190/ft1_filteredMKT_4FGL_J0115.8+2519_daily_bin1499.fits ra=18.9539 dec=25.3324 rad=12.0 tmin=627868801.0 tmax=628128001.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 10.84
user 2.30
sys 8.38

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/504190/ft2_4FGL_J0115.8+2519_daily_bin1499.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/504190/ft1_filteredMKT_4FGL_J0115.8+2519_daily_bin1499.fits evtable="EVENTS" outfile="/scratch/kocevski/504190/ft1_filtered_4FGL_J0115.8+2519_daily_bin1499.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 8.85
user 0.33
sys 8.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504190/ft1_filtered_4FGL_J0115.8+2519_daily_bin1499.fits" evtable="EVENTS" scfile=/scratch/kocevski/504190/ft2_4FGL_J0115.8+2519_daily_bin1499.fits sctable="SC_DATA" outfile=/scratch/kocevski/504190/ltcube_627868801_628128001_4FGL_J0115.8+2519_daily_bin1499.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/504190/ft2_4FGL_J0115.8+2519_daily_bin1499.fits
.....................!
real 23.80
user 14.22
sys 9.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504190/ft1_filtered_4FGL_J0115.8+2519_daily_bin1499.fits evtable="EVENTS" scfile=/scratch/kocevski/504190/ft2_4FGL_J0115.8+2519_daily_bin1499.fits sctable="SC_DATA" expcube=/scratch/kocevski/504190/ltcube_627868801_628128001_4FGL_J0115.8+2519_daily_bin1499.fits outfile=/scratch/kocevski/504190/expmap_627868801_628128001_4FGL_J0115.8+2519_daily_bin1499.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/504190/ltcube_627868801_628128001_4FGL_J0115.8+2519_daily_bin1499.fits
.....................!
real 202.48
user 186.88
sys 14.97

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/504190/ft1_filtered_4FGL_J0115.8+2519_daily_bin1499.fits scfile=/scratch/kocevski/504190/ft2_4FGL_J0115.8+2519_daily_bin1499.fits outfile=/scratch/kocevski/504190/cmap_627868801_628128001_4FGL_J0115.8+2519_daily_bin1499.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 8.69
user 0.39
sys 8.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504190/ft1_filtered_4FGL_J0115.8+2519_daily_bin1499.fits scfile=/scratch/kocevski/504190/ft2_4FGL_J0115.8+2519_daily_bin1499.fits outfile=/scratch/kocevski/504190/cmap_HighResolution_627868801_628128001_4FGL_J0115.8+2519_daily_bin1499.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 8.53
user 0.38
sys 8.11

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    172.90       1.0000         .10000E-03   10000.    
     2 'Prefactor '    135.59       1.0000         .10000E-03   10000.    
     3 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    16.150       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.750       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11804E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11487E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .11906E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    76.667       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .41632E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.348       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11669E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.5014       1.0000         .10000E-03   10000.    
    16 'Prefactor '    284.73       1.0000         .10000E-03   10000.    
    17 'norm      '    .11129E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.916       1.0000         .10000E-03   10000.    
    19 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1014.6       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99268       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86823       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1369.968     FROM MIGRAD    STATUS=CONVERGED    269 CALLS     2010 TOTAL
                     EDM=   .74E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     163.70        136.44       -.17563E-05    .89290E-06
   2  Prefactor     134.63        76.646       -.10687E-05    .85698E-05
   3  norm          .10000E-03    3.7648        .28462E-07** at limit **
   4  norm          16.132        16.684        .56276E-08    .21037E-05
   5  Prefactor     17.764        30.249       -.11542E-05    .45353E-05
   6  Prefactor     .10000E-03    32.722       -.30546E-06** at limit **
   7  Prefactor     .10000E-03    40.537        .42057E-06** at limit **
   8  norm          .10000E-03    5.2768        .19580E-06** at limit **
   9  norm          .10000E-03    3.1783        .50103E-07** at limit **
  10  Prefactor     .10000E-03    21.586       -.10573E-06** at limit **
  11  Prefactor     81.583        141.53       -.44994E-05   -.46596E-05
  12  Prefactor     .10000E-03    52.520        .58445E-05** at limit **
  13  Prefactor     12.315        37.058       -.31824E-05    .11111E-04
  14  Prefactor     .10000E-03    22.542       -.67241E-06** at limit **
  15  Prefactor     7.9619        905.19        .31215E-04    .16676E-05
  16  Prefactor     198.25        463.07        .73661E-05   -.60339E-05
  17  norm          .10000E-03    3.5917        .45879E-06** at limit **
  18  Prefactor     51.223        67.037       -.52303E-06    .76433E-06
  19  norm          .10000E-03    25.161        .10442E-06** at limit **
  20  Prefactor     1210.9        1501.6        .73718E-05   -.38453E-05
  21  Normalizat    .99959        .58385        .28184E-05    .38968E-05
  22  Prefactor     .86849        .35708       -.13671E-05    .48879E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 163.703
  Prefactor  = 134.631
  norm       = 0.0001
  norm       = 16.1316
  Prefactor  = 17.7637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 81.5834
  Prefactor  = 0.0001
  Prefactor  = 12.3146
  Prefactor  = 0.0001
  Prefactor  = 7.96193
  Prefactor  = 198.254
  norm       = 0.0001
  Prefactor  = 51.2228
  norm       = 0.0001
  Prefactor  = 1210.85
  Normalizat = 0.99959
  Prefactor  = 0.868494
 **********
 **   18 **HESSE 
 **********

 FCN=   1369.968     FROM HESSE     STATUS=OK           394 CALLS     2404 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     163.70        136.17        .76717E-03   -1.3142    
   2  Prefactor     134.63        76.256        .86469E-03   -1.3382    
   3  norm          .10000E-03    3.7276        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          16.132        16.727        .24916E-02   -1.4904    
   5  Prefactor     17.764        30.068        .23766E-02   -1.4865    
   6  Prefactor     .10000E-03    32.110        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    40.276        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.6606        .16006E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.1486        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.499        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     81.583        143.47        .11465E-02   -1.3899    
  12  Prefactor     .10000E-03    51.708        .10623E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.315        36.785        .28499E-02   -1.5006    
  14  Prefactor     .10000E-03    23.014        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.9619        888.38        .34371E-02   -1.6272    
  16  Prefactor     198.25        459.75        .60125E-03   -1.2883    
  17  norm          .10000E-03    3.5202        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     51.223        67.020        .14793E-02   -1.4275    
  19  norm          .10000E-03    25.159        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1210.9        1497.0        .33120E-03   -.85998    
  21  Normalizat    .99959        .49208        .72340E-01   -.93044    
  22  Prefactor     .86849        .30092        .44599E-01   -.97251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56569e-11
Minuit parameter uncertainties:
  1  136.435
  2  76.3114
  3  1.66814e-07
  4  16.7318
  5  30.094
  6  2.44286e-05
  7  5.68124e-06
  8  2.35001e-06
  9  1.27787e-06
  10  1.56106e-06
  11  144.09
  12  0.000138676
  13  36.8532
  14  2.75969e-05
  15  170.872
  16  468.521
  17  1.49422e-06
  18  67.1187
  19  1.76373e-06
  20  1555.25
  21  0.494339
  22  0.301495
Done.

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

Extracting fit parameters...

4FGL J0115.8+2519
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  1.387e-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:  8.685e-01  3.015e-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.996e-01  4.943e-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: 2.69e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504190/likelihoodResults_627868801_628128001_4FGL_J0115.8+2519_daily_bin1499.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) = 1369.96773642
delta logL = -9.1284813152e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1369.96764513
delta logL = 4.94310370414e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10456E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0774       1.0000          .0000       10.000    
     3 'Normalizat'    .99959       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86848       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=   1369.968     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      240 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2408        .90712E-02** at limit **
   2  Index         2.0682        8.5968        .50000        .11314E-05
   3  Normalizat    .99959        .46748E-02    .72340E-01    .16150E-04
   4  Prefactor     .86849        .30052E-02    .44602E-01    .33617E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.06822
  Normalizat = 0.999589
  Prefactor  = 0.868494
 **********
 **   18 **HESSE 
 **********

 FCN=   1369.968     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      271 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    964.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0682        7.6884        .50000       -.62655    
   3  Normalizat    .99959        .51181E-01    .32007E-03   -.93044    
   4  Prefactor     .86849        .32938E-01    .21804E-03   -.97251    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1335e-08
Minuit parameter uncertainties:
  1  0.00143995
  2  428.019
  3  0.0511836
  4  0.0329383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504190': 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) = 1369.96764509
delta logL = 4.60418050352e-08

Extracting fit parameters...

4FGL J0115.8+2519
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  1.440e-03  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.068e+00  4.280e+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:  8.685e-01  3.294e-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.996e-01  5.118e-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/504190/cmap_HighResolution_627868801_628128001_4FGL_J0115.8+2519_daily_bin1499.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.01e-02', job_status='DONE', photon_flux_upper_limit='2.69e-07', time_completed='2021-08-13 21:09:04.126454', job_id='504190', GAL2='0.87', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1628914144.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='4.60e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='1499' AND source_name='4FGL J0115.8+2519' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:09:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 504190: <4FGL_J0115.8+2519_daily_bin1499> in cluster <slac> Done

Job <4FGL_J0115.8+2519_daily_bin1499> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 13 20:55:29 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 20:55:57 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:55:57 2021
Terminated at Fri Aug 13 21:09:05 2021
Results reported at Fri Aug 13 21:09:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0115.8+2519_daily_bin1499 18.9539 25.3324 627868801 628128001 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 :                                   634.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             224.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            816 sec.

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

