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


Performing analysis on: 4FGL_J0115.8+2519_daily_bin1007
RA = 18.9539, Dec = 25.3324
tmin = 500342401, tmax = 500601601
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='501341', job_status='RUN', time_executed='2021-08-13 20:51:08.482223', time_epoch_executed='1628913068.48' WHERE source_name='4FGL J0115.8+2519' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/501341

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/501341/ft1_4FGL_J0115.8+2519_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/501341/ft2_4FGL_J0115.8+2519_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/501341/ft1_4FGL_J0115.8+2519_daily_bin1007.fits outfile=/scratch/kocevski/501341/ft1_filteredMKT_4FGL_J0115.8+2519_daily_bin1007.fits ra=18.9539 dec=25.3324 rad=12.0 tmin=500342401.0 tmax=500601601.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.47
user 4.49
sys 1.94

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/501341/ft1_filtered_4FGL_J0115.8+2519_daily_bin1007.fits" evtable="EVENTS" scfile=/scratch/kocevski/501341/ft2_4FGL_J0115.8+2519_daily_bin1007.fits sctable="SC_DATA" outfile=/scratch/kocevski/501341/ltcube_500342401_500601601_4FGL_J0115.8+2519_daily_bin1007.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/501341/ft2_4FGL_J0115.8+2519_daily_bin1007.fits
.....................!
real 14.19
user 11.94
sys 2.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/501341/ft1_filtered_4FGL_J0115.8+2519_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/501341/ft2_4FGL_J0115.8+2519_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/501341/ltcube_500342401_500601601_4FGL_J0115.8+2519_daily_bin1007.fits outfile=/scratch/kocevski/501341/expmap_500342401_500601601_4FGL_J0115.8+2519_daily_bin1007.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/501341/ltcube_500342401_500601601_4FGL_J0115.8+2519_daily_bin1007.fits
.....................!
real 193.02
user 185.77
sys 6.92

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/501341/ft1_filtered_4FGL_J0115.8+2519_daily_bin1007.fits scfile=/scratch/kocevski/501341/ft2_4FGL_J0115.8+2519_daily_bin1007.fits outfile=/scratch/kocevski/501341/cmap_500342401_500601601_4FGL_J0115.8+2519_daily_bin1007.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 2.21
user 0.37
sys 1.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/501341/ft1_filtered_4FGL_J0115.8+2519_daily_bin1007.fits scfile=/scratch/kocevski/501341/ft2_4FGL_J0115.8+2519_daily_bin1007.fits outfile=/scratch/kocevski/501341/cmap_HighResolution_500342401_500601601_4FGL_J0115.8+2519_daily_bin1007.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 2.35
user 0.37
sys 1.97

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    82.061       1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.273       1.0000         .10000E-03   10000.    
     3 'norm      '    .73570       1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4966       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2574       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1859       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2223       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.042       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.464       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .44707       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    50.336       1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.313       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0024       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.265       1.0000         .10000E-03   10000.    
    19 'norm      '    13.171       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3334       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .69892       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=   6170.807     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2409 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     82.061        73.304        .11085E-02   -.19995E-03
   2  Prefactor     41.273        31.227        .15599E-02   -.30404E-03
   3  norm          .73638        1.7633        .30708E-01    .11292E-02
   4  norm          .10000E-03    2.5833        .90712E-02** at limit **
   5  Prefactor     4.4935        10.164        .47467E-02    .25633E-03
   6  Prefactor     6.2571        10.964        .40118E-02    .20449E-02
   7  Prefactor     .10000E-03    22.546        .90712E-02** at limit **
   8  norm          2.1859        .87693        .69601E-02    .28836E-03
   9  norm          1.2221        1.4555        .10194E-01    .85730E-03
  10  Prefactor     .10000E-03    9.1403        .90712E-02** at limit **
  11  Prefactor     21.042        32.118        .21829E-02    .53726E-04
  12  Prefactor     11.464        6.6279        .29580E-02    .13317E-02
  13  Prefactor     .46398        3.3351        .78971E-01    .43009E-03
  14  Prefactor     .10000E-03    6.6108        .90712E-02** at limit **
  15  Prefactor     50.337        36.451        .14131E-02   -.13345E-02
  16  Prefactor     30.314        59.008        .18193E-02   -.57512E-03
  17  norm          3.0025        .89046        .58564E-02    .23719E-03
  18  Prefactor     23.266        12.421        .20761E-02    .54824E-03
  19  norm          13.171        6.7191        .27593E-02   -.16547E-03
  20  Prefactor     .10000E-03    71.953        .90712E-02** at limit **
  21  Normalizat    1.3335        .20946        .60598E-01    .14296E-03
  22  Prefactor     .69882        .13193        .42387E-01    .14805E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 82.0608
  Prefactor  = 41.273
  norm       = 0.736378
  norm       = 0.0001
  Prefactor  = 4.49355
  Prefactor  = 6.25708
  Prefactor  = 0.0001
  norm       = 2.18592
  norm       = 1.22213
  Prefactor  = 0.0001
  Prefactor  = 21.042
  Prefactor  = 11.4641
  Prefactor  = 0.463985
  Prefactor  = 0.0001
  Prefactor  = 50.3371
  Prefactor  = 30.3138
  norm       = 3.00246
  Prefactor  = 23.266
  norm       = 13.1706
  Prefactor  = 0.0001
  Normalizat = 1.3335
  Prefactor  = 0.698817
 **********
 **   18 **HESSE 
 **********

 FCN=   6170.807     FROM HESSE     STATUS=OK           342 CALLS     2751 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     82.061        73.407        .44339E-04   -1.3894    
   2  Prefactor     41.273        31.270        .62396E-04   -1.4422    
   3  norm          .73638        1.4428        .15643E-02   -1.5536    
   4  norm          .10000E-03    2.5834        .12330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.4935        10.161        .18987E-03   -1.5284    
   6  Prefactor     6.2571        10.933        .80236E-03   -1.5208    
   7  Prefactor     .10000E-03    22.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1859        .87505        .44311E-04   -1.5412    
   9  norm          1.2221        1.4181        .95277E-04   -1.5487    
  10  Prefactor     .10000E-03    9.1613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.042        32.106        .87317E-04   -1.4790    
  12  Prefactor     11.464        6.6248        .11832E-03   -1.5031    
  13  Prefactor     .46398        17.925        .26616E-02   -1.5572    
  14  Prefactor     .10000E-03    6.6428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     50.337        36.452        .28262E-03   -1.4288    
  16  Prefactor     30.314        59.020        .72772E-04   -1.4606    
  17  norm          3.0025        .89108        .38393E-04   -1.5361    
  18  Prefactor     23.266        12.427        .83045E-04   -1.4743    
  19  norm          13.171        6.7204        .11037E-03   -1.4982    
  20  Prefactor     .10000E-03    71.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3335        .24169        .26801E-03   -.82572    
  22  Prefactor     .69882        .15228        .22991E-03   -1.0357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00985e-08
Minuit parameter uncertainties:
  1  73.4884
  2  31.2826
  3  1.44285
  4  8.91183e-06
  5  10.165
  6  10.9367
  7  7.23493e-05
  8  0.875052
  9  1.41812
  10  1.58518e-05
  11  32.1322
  12  6.62527
  13  5.76909
  14  2.92886e-05
  15  36.4686
  16  59.1342
  17  0.891083
  18  12.4281
  19  6.72083
  20  8.3374e-05
  21  0.241895
  22  0.152372
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  6.988e-01  1.524e-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:  1.333e+00  2.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.92
Ra Dec: 18.954 25.332
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 5.98e-08 +/- 3.45e-08
Energy Flux (Fixed Index): 5.11e-05 +/- 2.95e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6170.79689247
delta logL = 0.0103866603804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6170.78992751
delta logL = 0.017351627167

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.659       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9927       1.0000          .0000       10.000    
     3 'Normalizat'    1.3287       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69995       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=   6170.790     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      236 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.658        7.6493        .12272E-03    .54360E-03
   2  Index         1.9927        .41714        .46358E-02    .11941E-03
   3  Normalizat    1.3287        .23438        .26837E-03   -.80276E-04
   4  Prefactor     .69995        .15039        .22970E-03   -.10339E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6584
  Index      = 1.99266
  Normalizat = 1.32868
  Prefactor  = 0.699949
 **********
 **   18 **HESSE 
 **********

 FCN=   6170.790     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.658        7.3798        .49089E-05   -1.5055    
   2  Index         1.9927        .40227        .18543E-03   -.64534    
   3  Normalizat    1.3287        .23439        .10735E-04   -.82714    
   4  Prefactor     .69995        .15048        .91880E-05   -1.0353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19523e-10
Minuit parameter uncertainties:
  1  7.38048
  2  0.402949
  3  0.234576
  4  0.150565
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/501341': 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) = 6170.7899275
delta logL = 0.0173516291425

Extracting fit parameters...

4FGL J0115.8+2519
   Spectrum: PowerLaw
252    Prefactor:  1.066e+01  7.380e+00  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  1.993e+00  4.029e-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:  6.999e-01  1.506e-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:  1.329e+00  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.96
Ra Dec: 18.954 25.332
Photon Index (Free Index): 1.99 +/- 0.40
Photon Flux (Free Index): 6.54e-08 +/- 4.65e-08
Energy Flux (Free Index): 4.61e-05 +/- 3.52e-05

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/501341/cmap_HighResolution_500342401_500601601_4FGL_J0115.8+2519_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.98e-08', energy_flux2='4.61e-05', photon_flux_error='3.45e-08', dlogl='1.74e-02', energy_flux='5.11e-05', photon_flux2='6.54e-08', job_status='DONE', time_completed='2021-08-13 21:01:24.519496', photon_index_error2='0.40', photon_index2='1.99', ts='11.92', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='3.52e-05', EG='1.33', time_epoch_completed='1628913684.52', return_code='0', job_id='501341', GAL2='0.70', EG2='1.33', return_code2='0', energy_flux_error='2.95e-05', photon_flux_error2='4.65e-08', ts2='11.96', photon_index='1.92' WHERE bin_id='1007' AND source_name='4FGL J0115.8+2519' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:01:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 501341: <4FGL_J0115.8+2519_daily_bin1007> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0115.8+2519_daily_bin1007 18.9539 25.3324 500342401 500601601 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 :                                   642.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            953 sec.

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

