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


Performing analysis on: 4FGL_J0115.1-0129_daily_bin894
RA = 18.7859, Dec = -1.4962
tmin = 471052801, tmax = 471312001
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='493723', job_status='RUN', time_executed='2021-08-13 20:24:09.228844', time_epoch_executed='1628911449.23' WHERE source_name='4FGL J0115.1-0129' and cadence='daily' and bin_id='894'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493723

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493723/ft1_4FGL_J0115.1-0129_daily_bin894.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493723/ft2_4FGL_J0115.1-0129_daily_bin894.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493723/ft1_4FGL_J0115.1-0129_daily_bin894.fits outfile=/scratch/kocevski/493723/ft1_filteredMKT_4FGL_J0115.1-0129_daily_bin894.fits ra=18.7859 dec=-1.4962 rad=12.0 tmin=471052801.0 tmax=471312001.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 12.07
user 3.78
sys 8.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/493723/ft2_4FGL_J0115.1-0129_daily_bin894.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/493723/ft2_4FGL_J0115.1-0129_daily_bin894.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/493723/ft1_filteredMKT_4FGL_J0115.1-0129_daily_bin894.fits evtable="EVENTS" outfile="/scratch/kocevski/493723/ft1_filtered_4FGL_J0115.1-0129_daily_bin894.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.63
user 0.34
sys 8.23

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/493723/ft1_filtered_4FGL_J0115.1-0129_daily_bin894.fits" evtable="EVENTS" scfile=/scratch/kocevski/493723/ft2_4FGL_J0115.1-0129_daily_bin894.fits sctable="SC_DATA" outfile=/scratch/kocevski/493723/ltcube_471052801_471312001_4FGL_J0115.1-0129_daily_bin894.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/493723/ft2_4FGL_J0115.1-0129_daily_bin894.fits
.....................!
real 23.40
user 13.94
sys 9.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493723/ft1_filtered_4FGL_J0115.1-0129_daily_bin894.fits evtable="EVENTS" scfile=/scratch/kocevski/493723/ft2_4FGL_J0115.1-0129_daily_bin894.fits sctable="SC_DATA" expcube=/scratch/kocevski/493723/ltcube_471052801_471312001_4FGL_J0115.1-0129_daily_bin894.fits outfile=/scratch/kocevski/493723/expmap_471052801_471312001_4FGL_J0115.1-0129_daily_bin894.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/493723/ltcube_471052801_471312001_4FGL_J0115.1-0129_daily_bin894.fits
.....................!
real 203.66
user 186.16
sys 14.66

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 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J0115.1-0129 @ 18.7859 -1.4962

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/493723/ft1_filtered_4FGL_J0115.1-0129_daily_bin894.fits scfile=/scratch/kocevski/493723/ft2_4FGL_J0115.1-0129_daily_bin894.fits outfile=/scratch/kocevski/493723/cmap_471052801_471312001_4FGL_J0115.1-0129_daily_bin894.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.7859 yref=-1.4962 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.50
user 0.38
sys 8.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/493723/ft1_filtered_4FGL_J0115.1-0129_daily_bin894.fits scfile=/scratch/kocevski/493723/ft2_4FGL_J0115.1-0129_daily_bin894.fits outfile=/scratch/kocevski/493723/cmap_HighResolution_471052801_471312001_4FGL_J0115.1-0129_daily_bin894.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.7859 yref=-1.4962 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.57
user 0.40
sys 8.03

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/493723/ft1_filtered_4FGL_J0115.1-0129_daily_bin894.fits evtable="EVENTS" scfile=/scratch/kocevski/493723/ft2_4FGL_J0115.1-0129_daily_bin894.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/493723/Model_4FGL_J0115.1-0129_daily_bin894.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/493723/ft1_filtered_4FGL_J0115.1-0129_daily_bin894.fits.....................!
real 74.84
user 62.86
sys 11.68

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/493723/ft1_filtered_4FGL_J0115.1-0129_daily_bin894.fits', '/scratch/kocevski/493723/ft2_4FGL_J0115.1-0129_daily_bin894.fits', expMap='/scratch/kocevski/493723/expmap_471052801_471312001_4FGL_J0115.1-0129_daily_bin894.fits', expCube='/scratch/kocevski/493723/ltcube_471052801_471312001_4FGL_J0115.1-0129_daily_bin894.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/493723/Model_4FGL_J0115.1-0129_daily_bin894.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0115.1-0129'

4FGL J0115.1-0129
   Spectrum: PowerLaw
272    Prefactor:  1.905e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        Index:  2.721e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  5.737e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/493723/ft1_filtered_4FGL_J0115.1-0129_daily_bin894.fits
Spacecraft file(s): /scratch/kocevski/493723/ft2_4FGL_J0115.1-0129_daily_bin894.fits
Exposure map: /scratch/kocevski/493723/expmap_471052801_471312001_4FGL_J0115.1-0129_daily_bin894.fits
Exposure cube: /scratch/kocevski/493723/ltcube_471052801_471312001_4FGL_J0115.1-0129_daily_bin894.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/493723/Model_4FGL_J0115.1-0129_daily_bin894.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) = 5741.39970832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.273       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1049       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22245       1.0000         .10000E-03   10000.    
     4 'norm      '    12.517       1.0000         .10000E-03   10000.    
     5 'norm      '    .10187E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.455       1.0000         .10000E-03   10000.    
     8 'Prefactor '    64.574       1.0000         .10000E-03   10000.    
     9 'norm      '    16.498       1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.381       1.0000         .10000E-03   10000.    
    11 'norm      '    22.051       1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.603       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4057       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1685       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.0907       1.0000         .10000E-03   10000.    
    20 'Prefactor '    82.614       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0409       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .79611       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5741.389     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2535 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.273        10.709        .70037E-07   -.44611E-04
   2  Prefactor     2.1048        2.5248       -.11793E-06   -.31875E-03
   3  Prefactor     .22376        2.1691        .81167E-06   -.29897E-03
   4  norm          12.517        5.1633        .14805E-05    .28652E-04
   5  norm          .10003E-03    4.6395       -.85850E-06** at limit **
   6  Prefactor     .10000E-03    12.632        .76674E-06** at limit **
   7  Prefactor     35.455        34.795       -.75162E-07    .43502E-05
   8  Prefactor     64.569        41.763       -.49717E-05   -.46073E-04
   9  norm          16.498        15.435       -.35859E-06    .65142E-06
  10  Prefactor     30.402        110.59        .37168E-04    .20445E-05
  11  norm          22.051        3.7042       -.31525E-06    .37755E-03
  12  Prefactor     39.609        40.331        .83120E-05    .40455E-04
  13  Prefactor     1.4011        18.002       -.55667E-05   -.49909E-03
  14  Prefactor     4.1686        4.7379        .26729E-05   -.34618E-03
  15  Prefactor     .10000E-03    30.694       -.26022E-05** at limit **
  16  Prefactor     .10000E-03    4.0654        .15707E-07** at limit **
  17  Prefactor     .10000E-03    19.249        .46169E-05** at limit **
  18  norm          .10000E-03    9.9908        .10013E-05** at limit **
  19  norm          4.0907        5.9189       -.57171E-06   -.32815E-03
  20  Prefactor     82.623        114.63        .86161E-05   -.29532E-05
  21  Prefactor     .10000E-03    5.8148       -.23101E-08** at limit **
  22  Normalizat    1.0408        .21913       -.23684E-05    .51134E-04
  23  Prefactor     .79619        .17210       -.11939E-06   -.66597E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.2731
  Prefactor  = 2.10476
  Prefactor  = 0.22376
  norm       = 12.5172
  norm       = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 35.4547
  Prefactor  = 64.569
  norm       = 16.4976
  Prefactor  = 30.4019
  norm       = 22.0508
  Prefactor  = 39.6091
  Prefactor  = 1.40106
  Prefactor  = 4.16861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.09067
  Prefactor  = 82.6226
  Prefactor  = 0.0001
  Normalizat = 1.04076
  Prefactor  = 0.796195
 **********
 **   18 **HESSE 
 **********

 FCN=   5741.389     FROM HESSE     STATUS=OK           370 CALLS     2905 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.273        10.707        .93695E-04   -1.4853    
   2  Prefactor     2.1048        2.5140        .12631E-03   -1.5418    
   3  Prefactor     .22376        14.593        .19688E-02   -1.5613    
   4  norm          12.517        5.1368        .10439E-03   -1.5000    
   5  norm          .10003E-03    13.702        .30262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     35.455        34.813        .67303E-04   -1.4516    
   8  Prefactor     64.569        41.617        .49940E-04   -1.4099    
   9  norm          16.498        15.440        .98606E-04   -1.4895    
  10  Prefactor     30.402        108.77        .72691E-04   -1.4605    
  11  norm          22.051        3.6544        .50196E-04   -1.4768    
  12  Prefactor     39.609        40.511        .63693E-04   -1.4448    
  13  Prefactor     1.4011        18.696        .36567E-03   -1.5471    
  14  Prefactor     4.1686        4.6700        .16517E-03   -1.5300    
  15  Prefactor     .10000E-03    30.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.0732        .14919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.9956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.0907        5.9239        .19933E-03   -1.5303    
  20  Prefactor     82.623        114.79        .44192E-04   -1.3888    
  21  Prefactor     .10000E-03    5.9376        .17830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0408        .25354        .28811E-03   -.91677    
  23  Prefactor     .79619        .19947        .26789E-03   -.99869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81782e-09
Minuit parameter uncertainties:
  1  10.7078
  2  2.5141
  3  3.61416
  4  5.13703
  5  0.00124463
  6  1.5937e-05
  7  34.8327
  8  41.6353
  9  15.4435
  10  109.491
  11  3.65442
  12  40.5387
  13  10.2395
  14  4.67045
  15  5.39885e-05
  16  1.97818e-06
  17  2.44482e-06
  18  4.55109e-06
  19  5.92478
  20  115.099
  21  2.3755e-05
  22  0.253834
  23  0.199648
Done.

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

Extracting fit parameters...

4FGL J0115.1-0129
   Spectrum: PowerLaw
272    Prefactor:  1.401e+00  1.024e+01  1.000e-04  1.000e+04 ( 1.000e-12)
273        Index:  2.721e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  5.737e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  7.962e-01  1.996e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.041e+00  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 18.786 -1.496
Photon Flux Upper Limit: 1.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.24e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/493723/likelihoodResults_471052801_471312001_4FGL_J0115.1-0129_daily_bin894.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) = 5740.74618371
delta logL = 0.64243343805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5740.68420061
delta logL = 0.704416538195

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42095       1.0000         .10000E-03   10000.    
     2 'Index     '    5.3471       1.0000          .0000       10.000    
     3 'Normalizat'    .95244       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84390       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5740.684     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      233 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41962        5.8175        .94320E-02    .36955E-03
   2  Index         5.3493        3.5227        .14022        .68393E-04
   3  Normalizat    .95286        .48149E-01    .67478E-01   -.14243E-03
   4  Prefactor     .84366        .40044E-01    .44286E-01   -.60662E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.419618
  Index      = 5.34934
  Normalizat = 0.952857
  Prefactor  = 0.843659
 **********
 **   18 **HESSE 
 **********

 FCN=   5740.684     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41962        16.659        .42678E-04   -1.5578    
   2  Index         5.3493        7.6742        .69379E-02    .69924E-01
   3  Normalizat    .95286        .21040        .29850E-03   -.94627    
   4  Prefactor     .84366        .17128        .26085E-03   -.98139    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15988e-09
Minuit parameter uncertainties:
  1  5.28883
  2  8.09061
  3  0.210579
  4  0.171387
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493723': 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) = 5740.68419846
delta logL = 0.704418694512

Extracting fit parameters...

4FGL J0115.1-0129
   Spectrum: PowerLaw
272    Prefactor:  4.196e-01  5.289e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        Index:  5.349e+00  8.091e+00  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  5.737e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  8.437e-01  1.714e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  9.529e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.55
Ra Dec: 18.786 -1.496
Photon Index (Free Index): 5.35 +/- 8.09
Photon Flux (Free Index): 1.11e-07 +/- 1.03e-07
Energy Flux (Free Index): 1.44e-05 +/- 1.76e-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/493723/cmap_HighResolution_471052801_471312001_4FGL_J0115.1-0129_daily_bin894.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', energy_flux2='1.44e-05', dlogl='7.04e-01', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-08-13 20:37:10.788220', photon_index_error2='8.09', photon_index2='5.35', ts='0.02', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.57e-07', energy_flux_error2='1.76e-05', EG='1.04', time_epoch_completed='1628912230.79', return_code='0', job_id='493723', GAL2='0.84', EG2='0.95', return_code2='102', photon_flux_error2='1.03e-07', ts2='1.55', photon_index='2.72' WHERE bin_id='894' AND source_name='4FGL J0115.1-0129' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 20:37:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0130>
Subject: Job 493723: <4FGL_J0115.1-0129_daily_bin894> in cluster <slac> Done

Job <4FGL_J0115.1-0129_daily_bin894> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 13 20:20:41 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 20:21:48 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:21:48 2021
Terminated at Fri Aug 13 20:37:13 2021
Results reported at Fri Aug 13 20:37:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0115.1-0129_daily_bin894 18.7859 -1.4962 471052801 471312001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0115.1-0129 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   896.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            992 sec.

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

