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


Performing analysis on: 4FGL_J0115.8+2519_daily_bin984
RA = 18.9539, Dec = 25.3324
tmin = 494380801, tmax = 494640001
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='501308', job_status='RUN', time_executed='2021-08-13 20:49:06.530667', time_epoch_executed='1628912946.53' WHERE source_name='4FGL J0115.8+2519' and cadence='daily' and bin_id='984'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/501308

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/501308/ft1_4FGL_J0115.8+2519_daily_bin984.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/501308/ft2_4FGL_J0115.8+2519_daily_bin984.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/501308/ft1_4FGL_J0115.8+2519_daily_bin984.fits outfile=/scratch/kocevski/501308/ft1_filteredMKT_4FGL_J0115.8+2519_daily_bin984.fits ra=18.9539 dec=25.3324 rad=12.0 tmin=494380801.0 tmax=494640001.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.34
user 3.41
sys 2.88

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/501308/ft1_filtered_4FGL_J0115.8+2519_daily_bin984.fits" evtable="EVENTS" scfile=/scratch/kocevski/501308/ft2_4FGL_J0115.8+2519_daily_bin984.fits sctable="SC_DATA" outfile=/scratch/kocevski/501308/ltcube_494380801_494640001_4FGL_J0115.8+2519_daily_bin984.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/501308/ft2_4FGL_J0115.8+2519_daily_bin984.fits
.....................!
real 15.37
user 11.89
sys 3.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/501308/ft1_filtered_4FGL_J0115.8+2519_daily_bin984.fits evtable="EVENTS" scfile=/scratch/kocevski/501308/ft2_4FGL_J0115.8+2519_daily_bin984.fits sctable="SC_DATA" expcube=/scratch/kocevski/501308/ltcube_494380801_494640001_4FGL_J0115.8+2519_daily_bin984.fits outfile=/scratch/kocevski/501308/expmap_494380801_494640001_4FGL_J0115.8+2519_daily_bin984.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/501308/ltcube_494380801_494640001_4FGL_J0115.8+2519_daily_bin984.fits
.....................!
real 194.47
user 185.36
sys 7.98

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/501308/ft1_filtered_4FGL_J0115.8+2519_daily_bin984.fits scfile=/scratch/kocevski/501308/ft2_4FGL_J0115.8+2519_daily_bin984.fits outfile=/scratch/kocevski/501308/cmap_494380801_494640001_4FGL_J0115.8+2519_daily_bin984.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 3.18
user 0.37
sys 2.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/501308/ft1_filtered_4FGL_J0115.8+2519_daily_bin984.fits scfile=/scratch/kocevski/501308/ft2_4FGL_J0115.8+2519_daily_bin984.fits outfile=/scratch/kocevski/501308/cmap_HighResolution_494380801_494640001_4FGL_J0115.8+2519_daily_bin984.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 3.20
user 0.37
sys 2.81

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11495E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.4604       1.0000         .10000E-03   10000.    
     4 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7116       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.157       1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5987       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10669E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3444       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.436       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.389       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26491E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0852       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2762       1.0000         .10000E-03   10000.    
    19 'norm      '    19.326       1.0000         .10000E-03   10000.    
    20 'Prefactor '    82.045       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .40747       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2687       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=   6964.099     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2401 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.899       -.18855E-07** at limit **
   2  Prefactor     .10000E-03    7.0577        .12709E-07** at limit **
   3  norm          4.4609        2.2375        .52177E-07    .29854E-04
   4  norm          .10000E-03    2.2679       -.11617E-06** at limit **
   5  Prefactor     3.7118        8.8902        .86779E-05   -.63430E-03
   6  Prefactor     .10000E-03    3.0857        .88578E-07** at limit **
   7  Prefactor     34.007        42.010       -.13342E-05   -.15958E-03
   8  norm          .10000E-03    .41432        .53968E-06** at limit **
   9  norm          .10000E-03    .66201        .22682E-06** at limit **
  10  Prefactor     4.5984        22.628       -.10779E-05   -.11757E-03
  11  Prefactor     .10000E-03    12.831        .12402E-06** at limit **
  12  Prefactor     .10001E-03    2.6298        .70531E-06** at limit **
  13  Prefactor     7.3456        6.2895        .30284E-06   -.10891E-03
  14  Prefactor     20.426        12.036       -.43623E-06    .15333E-03
  15  Prefactor     26.387        25.981       -.26072E-06    .35998E-04
  16  Prefactor     .10102E-03    897.81       -.90145E-04** at limit **
  17  norm          2.0848        .79384       -.16062E-06    .30502E-02
  18  Prefactor     1.2740        14.142        .37718E-05    .39112E-04
  19  norm          19.327        7.3802        .24432E-06    .18965E-03
  20  Prefactor     81.961        187.19       -.12816E-04   -.90839E-04
  21  Normalizat    .40728        .21054       -.63723E-05   -.10362E-03
  22  Prefactor     1.2687        .13724        .82960E-06   -.25058E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.46088
  norm       = 0.0001
  Prefactor  = 3.71182
  Prefactor  = 0.0001
  Prefactor  = 34.0067
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.59837
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 7.34565
  Prefactor  = 20.4259
  Prefactor  = 26.3869
  Prefactor  = 0.000101021
  norm       = 2.08478
  Prefactor  = 1.27404
  norm       = 19.3268
  Prefactor  = 81.9606
  Normalizat = 0.407277
  Prefactor  = 1.2687
 **********
 **   18 **HESSE 
 **********

 FCN=   6964.099     FROM HESSE     STATUS=OK           344 CALLS     2745 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.0609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.4609        2.2390        .86003E-04   -1.5286    
   4  norm          .10000E-03    2.2694        .12274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.7118        9.2141        .10481E-02   -1.5323    
   6  Prefactor     .10000E-03    3.1016        .14316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.007        38.944        .68566E-04   -1.4541    
   8  norm          .10000E-03    .78989        .97606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.2254        .12783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5984        22.721        .18770E-03   -1.5279    
  11  Prefactor     .10000E-03    12.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    20.423        .25201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.3456        6.1123        .14800E-03   -1.5166    
  14  Prefactor     20.426        11.938        .88601E-04   -1.4804    
  15  Prefactor     26.387        25.965        .77983E-04   -1.4680    
  16  Prefactor     .10102E-03    975.61        .39919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0848        .78682        .43582E-04   -1.5419    
  18  Prefactor     1.2740        14.310        .39332E-03   -1.5482    
  19  norm          19.327        7.3748        .91107E-04   -1.4828    
  20  Prefactor     81.961        189.66        .22172E-03   -1.3895    
  21  Normalizat    .40728        .21488        .41498E-03   -1.1693    
  22  Prefactor     1.2687        .14382        .17172E-03   -.84243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39517e-09
Minuit parameter uncertainties:
  1  6.91633e-06
  2  2.58157e-07
  3  2.23908
  4  7.96156e-06
  5  9.21761
  6  4.92536e-06
  7  38.9731
  8  2.32122e-05
  9  6.55414e-06
  10  20.4553
  11  8.97332e-06
  12  0.000844961
  13  6.11287
  14  11.9394
  15  25.976
  16  0.0642018
  17  0.786827
  18  8.54202
  19  7.37518
  20  191.088
  21  0.215319
  22  0.143864
Done.

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

Extracting fit parameters...

4FGL J0115.8+2519
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  8.450e-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.269e+00  1.439e-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:  4.073e-01  2.153e-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: 6.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/501308/likelihoodResults_494380801_494640001_4FGL_J0115.8+2519_daily_bin984.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) = 6964.09949341
delta logL = -0.000232033828979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6964.09922549
delta logL = 3.5884699173e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14293E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0886       1.0000          .0000       10.000    
     3 'Normalizat'    .40775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2684       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=   6963.895     FROM MIGRAD    STATUS=CONVERGED    230 CALLS      405 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .20763E-02    .14632E-04** at limit **
   2  Index         5.8134        .55243        .59595E-02    .45002E-04
   3  Normalizat    .37070        .20770        .21706E-02   -.13064E-03
   4  Prefactor     1.2842        .14406        .17075E-03   -.33969E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 5.81336
  Normalizat = 0.3707
  Prefactor  = 1.28423
 **********
 **   18 **HESSE 
 **********

 FCN=   6963.895     FROM HESSE     STATUS=OK            25 CALLS      430 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .20429E-02    .58528E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.8134        .53654        .23838E-03    .16340    
   3  Normalizat    .37070        .20671        .86822E-04   -1.1884    
   4  Prefactor     1.2842        .14358        .34151E-04   -.83777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03252e-10
Minuit parameter uncertainties:
  1  6.34542e-08
  2  0.537604
  3  0.207133
  4  0.143621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/501308': 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) = 6963.89474659
delta logL = 0.204514791127

Extracting fit parameters...

4FGL J0115.8+2519
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  6.345e-08  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  5.813e+00  5.376e-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.284e+00  1.436e-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:  3.707e-01  2.071e-01  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/501308/cmap_HighResolution_494380801_494640001_4FGL_J0115.8+2519_daily_bin984.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-03', job_status='DONE', photon_flux_upper_limit='6.02e-08', time_completed='2021-08-13 21:01:20.775633', job_id='501308', GAL2='1.28', fit_tolerance='1e-08', EG2='0.37', EG='0.41', time_epoch_completed='1628913680.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='2.05e-01', ts2='0.44', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='984' AND source_name='4FGL J0115.8+2519' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:01:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 501308: <4FGL_J0115.8+2519_daily_bin984> in cluster <slac> Done

Job <4FGL_J0115.8+2519_daily_bin984> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 13 20:45:29 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 20:48:10 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:48:10 2021
Terminated at Fri Aug 13 21:01:21 2021
Results reported at Fri Aug 13 21:01:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0115.8+2519_daily_bin984 18.9539 25.3324 494380801 494640001 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 :                                   772.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             318.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            952 sec.

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

