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


Performing analysis on: 4FGL_J0115.1-0129_daily_bin1307
RA = 18.7859, Dec = -1.4962
tmin = 578102401, tmax = 578361601
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='496454', job_status='RUN', time_executed='2021-08-13 20:32:33.729515', time_epoch_executed='1628911953.73' WHERE source_name='4FGL J0115.1-0129' and cadence='daily' and bin_id='1307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496454

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496454/ft1_4FGL_J0115.1-0129_daily_bin1307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496454/ft2_4FGL_J0115.1-0129_daily_bin1307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496454/ft1_4FGL_J0115.1-0129_daily_bin1307.fits outfile=/scratch/kocevski/496454/ft1_filteredMKT_4FGL_J0115.1-0129_daily_bin1307.fits ra=18.7859 dec=-1.4962 rad=12.0 tmin=578102401.0 tmax=578361601.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.33
user 4.77
sys 5.36

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496454/ft2_4FGL_J0115.1-0129_daily_bin1307.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/496454/ft1_filteredMKT_4FGL_J0115.1-0129_daily_bin1307.fits evtable="EVENTS" outfile="/scratch/kocevski/496454/ft1_filtered_4FGL_J0115.1-0129_daily_bin1307.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 5.64
user 0.33
sys 5.23

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496454/ft1_filtered_4FGL_J0115.1-0129_daily_bin1307.fits" evtable="EVENTS" scfile=/scratch/kocevski/496454/ft2_4FGL_J0115.1-0129_daily_bin1307.fits sctable="SC_DATA" outfile=/scratch/kocevski/496454/ltcube_578102401_578361601_4FGL_J0115.1-0129_daily_bin1307.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/496454/ft2_4FGL_J0115.1-0129_daily_bin1307.fits
.....................!
real 17.30
user 11.59
sys 5.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496454/ft1_filtered_4FGL_J0115.1-0129_daily_bin1307.fits evtable="EVENTS" scfile=/scratch/kocevski/496454/ft2_4FGL_J0115.1-0129_daily_bin1307.fits sctable="SC_DATA" expcube=/scratch/kocevski/496454/ltcube_578102401_578361601_4FGL_J0115.1-0129_daily_bin1307.fits outfile=/scratch/kocevski/496454/expmap_578102401_578361601_4FGL_J0115.1-0129_daily_bin1307.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/496454/ltcube_578102401_578361601_4FGL_J0115.1-0129_daily_bin1307.fits
.....................!
real 203.56
user 185.78
sys 12.26

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/496454/ft1_filtered_4FGL_J0115.1-0129_daily_bin1307.fits scfile=/scratch/kocevski/496454/ft2_4FGL_J0115.1-0129_daily_bin1307.fits outfile=/scratch/kocevski/496454/cmap_578102401_578361601_4FGL_J0115.1-0129_daily_bin1307.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 5.57
user 0.37
sys 5.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496454/ft1_filtered_4FGL_J0115.1-0129_daily_bin1307.fits scfile=/scratch/kocevski/496454/ft2_4FGL_J0115.1-0129_daily_bin1307.fits outfile=/scratch/kocevski/496454/cmap_HighResolution_578102401_578361601_4FGL_J0115.1-0129_daily_bin1307.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 5.61
user 0.38
sys 5.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/496454/ft1_filtered_4FGL_J0115.1-0129_daily_bin1307.fits evtable="EVENTS" scfile=/scratch/kocevski/496454/ft2_4FGL_J0115.1-0129_daily_bin1307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/496454/Model_4FGL_J0115.1-0129_daily_bin1307.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/496454/ft1_filtered_4FGL_J0115.1-0129_daily_bin1307.fits.....................!
real 58.27
user 50.22
sys 7.80

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/496454/ft1_filtered_4FGL_J0115.1-0129_daily_bin1307.fits', '/scratch/kocevski/496454/ft2_4FGL_J0115.1-0129_daily_bin1307.fits', expMap='/scratch/kocevski/496454/expmap_578102401_578361601_4FGL_J0115.1-0129_daily_bin1307.fits', expCube='/scratch/kocevski/496454/ltcube_578102401_578361601_4FGL_J0115.1-0129_daily_bin1307.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/496454/Model_4FGL_J0115.1-0129_daily_bin1307.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/496454/ft1_filtered_4FGL_J0115.1-0129_daily_bin1307.fits
Spacecraft file(s): /scratch/kocevski/496454/ft2_4FGL_J0115.1-0129_daily_bin1307.fits
Exposure map: /scratch/kocevski/496454/expmap_578102401_578361601_4FGL_J0115.1-0129_daily_bin1307.fits
Exposure cube: /scratch/kocevski/496454/ltcube_578102401_578361601_4FGL_J0115.1-0129_daily_bin1307.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/496454/Model_4FGL_J0115.1-0129_daily_bin1307.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) = 4467.71161143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.5378       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9302       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3184       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.781       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6565       1.0000         .10000E-03   10000.    
    11 'norm      '    7.0061       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8855       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.532       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    124.67       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5995       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    12.835       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.288       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .83084       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0111       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=   4467.710     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2498 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.5375        10.764        .50075E-06   -.20856E-04
   2  Prefactor     .10000E-03    1.1771       -.60743E-06** at limit **
   3  Prefactor     6.9298        4.4035        .13506E-06   -.11206E-03
   4  norm          2.3190        4.5677        .11987E-05    .37284E-04
   5  norm          .10000E-03    3.4250        .61357E-06** at limit **
   6  Prefactor     23.775        36.600       -.40904E-06   -.23518E-04
   7  Prefactor     .10000E-03    14.845        .17496E-06** at limit **
   8  Prefactor     .10000E-03    15.382        .55265E-06** at limit **
   9  norm          .10000E-03    12.113       -.45554E-06** at limit **
  10  Prefactor     4.1252        881.41       -.13869E-03   -.20095E-05
  11  norm          7.0096        2.7035        .45149E-07   -.65878E-03
  12  Prefactor     6.8825        74.738        .29280E-05   -.11573E-04
  13  Prefactor     13.530        10.464       -.29419E-06   -.15490E-03
  14  Prefactor     .10000E-03    1.7240        .22266E-06** at limit **
  15  Prefactor     124.65        72.102       -.10115E-05   -.92384E-04
  16  Prefactor     1.6015        24.026        .54277E-05    .48550E-04
  17  Prefactor     .10000E-03    23.044       -.19171E-07** at limit **
  18  norm          .10000E-03    15.927        .43049E-06** at limit **
  19  norm          12.835        7.9592        .48534E-07   -.75798E-04
  20  Prefactor     24.224        57.066       -.44817E-08   -.44756E-04
  21  Prefactor     .10002E-03    5.5553        .31384E-05** at limit **
  22  Normalizat    .83099        .23465        .51742E-05   -.69721E-03
  23  Prefactor     1.0110        .19217       -.82511E-05   -.52658E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.5375
  Prefactor  = 0.0001
  Prefactor  = 6.92977
  norm       = 2.31897
  norm       = 0.0001
  Prefactor  = 23.7746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.12521
  norm       = 7.00961
  Prefactor  = 6.88248
  Prefactor  = 13.53
  Prefactor  = 0.0001
  Prefactor  = 124.649
  Prefactor  = 1.6015
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.8345
  Prefactor  = 24.2243
  Prefactor  = 0.00010002
  Normalizat = 0.830995
  Prefactor  = 1.01099
 **********
 **   18 **HESSE 
 **********

 FCN=   4467.710     FROM HESSE     STATUS=OK           370 CALLS     2868 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.5375        10.763        .12976E-03   -1.5090    
   2  Prefactor     .10000E-03    1.1830        .70664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.9298        4.4001        .10688E-03   -1.5181    
   4  norm          2.3190        4.5540        .19050E-03   -1.5403    
   5  norm          .10000E-03    3.4572        .12080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.775        36.582        .82141E-04   -1.4732    
   7  Prefactor     .10000E-03    14.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.1252        911.85        .18650E-02   -1.5302    
  11  norm          7.0096        2.7280        .56833E-04   -1.5178    
  12  Prefactor     6.8825        74.360        .15290E-03   -1.5183    
  13  Prefactor     13.530        10.437        .10889E-03   -1.4972    
  14  Prefactor     .10000E-03    1.7292        .85693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     124.65        71.606        .36050E-04   -1.3470    
  16  Prefactor     1.6015        23.906        .33524E-03   -1.5455    
  17  Prefactor     .10000E-03    23.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    15.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.835        7.9585        .11181E-03   -1.4991    
  20  Prefactor     24.224        57.197        .81281E-04   -1.4723    
  21  Prefactor     .10002E-03    14.766        .29932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .83099        .26645        .29687E-03   -.98929    
  23  Prefactor     1.0110        .21923        .22932E-03   -.92364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98093e-09
Minuit parameter uncertainties:
  1  10.7652
  2  9.8578e-06
  3  4.40026
  4  4.5547
  5  2.29005e-05
  6  36.6161
  7  6.06906e-06
  8  3.73935e-05
  9  5.14348e-05
  10  124.635
  11  2.7281
  12  45.3168
  13  10.4382
  14  7.23033e-06
  15  71.6558
  16  12.3806
  17  6.00173e-05
  18  2.6517e-05
  19  7.95917
  20  57.3266
  21  0.0010839
  22  0.266872
  23  0.219427
Done.

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

Extracting fit parameters...

4FGL J0115.1-0129
   Spectrum: PowerLaw
272    Prefactor:  1.353e+01  1.044e+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:  1.011e+00  2.194e-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:  8.310e-01  2.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.94
Ra Dec: 18.786 -1.496
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 9.13e-08 +/- 7.04e-08
Energy Flux (Fixed Index): 2.16e-05 +/- 1.67e-05

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

Saving results to:
/scratch/kocevski/496454/likelihoodResults_578102401_578361601_4FGL_J0115.1-0129_daily_bin1307.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): 0
logL (Free Index) = 4467.49150439
delta logL = 0.218116984279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4467.4914095
delta logL = 0.218211879162

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.486       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3309       1.0000          .0000       10.000    
     3 'Normalizat'    .85340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99602       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=   4467.491     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      265 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.468        432.43        .24660E-02    .23530E-04
   2  Index         2.3299        5.6818        .18990        .79770E-05
   3  Normalizat    .85349        .30428        .66303E-01    .13873E-04
   4  Prefactor     .99602        .29200        .46217E-01    .41798E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.4684
  Index      = 2.32989
  Normalizat = 0.853485
  Prefactor  = 0.996019
 **********
 **   18 **HESSE 
 **********

 FCN=   4467.491     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.468        12.039        .98641E-04   -1.4896    
   2  Index         2.3299        .55486        .73494E-02   -.56335    
   3  Normalizat    .85349        .25611        .29332E-03   -.98114    
   4  Prefactor     .99602        .21614        .23076E-03   -.92862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25109e-13
Minuit parameter uncertainties:
  1  12.041
  2  0.55647
  3  0.256475
  4  0.216331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496454': 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) = 4467.49140643
delta logL = 0.21821494345

Extracting fit parameters...

4FGL J0115.1-0129
   Spectrum: PowerLaw
272    Prefactor:  1.647e+01  1.204e+01  1.000e-04  1.000e+04 ( 1.000e-12)
273        Index:  2.330e+00  5.565e-01  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:  9.960e-01  2.163e-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:  8.535e-01  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.39
Ra Dec: 18.786 -1.496
Photon Index (Free Index): 2.33 +/- 0.56
Photon Flux (Free Index): 7.26e-08 +/- 6.24e-08
Energy Flux (Free Index): 2.62e-05 +/- 2.13e-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/496454/cmap_HighResolution_578102401_578361601_4FGL_J0115.1-0129_daily_bin1307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-02', comment='SUCCESS', photon_flux='9.13e-08', energy_flux2='2.62e-05', photon_flux_error='7.04e-08', dlogl='2.18e-01', energy_flux='2.16e-05', photon_flux2='7.26e-08', job_status='DONE', time_completed='2021-08-13 20:43:27.791443', photon_index_error2='0.56', photon_index2='2.33', ts='2.94', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='2.34e-07', energy_flux_error2='2.13e-05', EG='0.83', time_epoch_completed='1628912607.79', return_code='0', job_id='496454', GAL2='1.00', EG2='0.85', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='6.24e-08', ts2='3.39', photon_index='2.72' WHERE bin_id='1307' AND source_name='4FGL J0115.1-0129' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 20:43:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 496454: <4FGL_J0115.1-0129_daily_bin1307> in cluster <slac> Done

Job <4FGL_J0115.1-0129_daily_bin1307> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 13 20:30:32 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 20:31:00 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:31:00 2021
Terminated at Fri Aug 13 20:43:29 2021
Results reported at Fri Aug 13 20:43:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0115.1-0129_daily_bin1307 18.7859 -1.4962 578102401 578361601 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 :                                   718.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            777 sec.

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

