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


Performing analysis on: 4FGL_J0115.1-0129_daily_bin900
RA = 18.7859, Dec = -1.4962
tmin = 472608001, tmax = 472867201
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='493731', job_status='RUN', time_executed='2021-08-13 20:24:01.642080', time_epoch_executed='1628911441.64' WHERE source_name='4FGL J0115.1-0129' and cadence='daily' and bin_id='900'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493731

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493731/ft1_4FGL_J0115.1-0129_daily_bin900.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493731/ft2_4FGL_J0115.1-0129_daily_bin900.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493731/ft1_4FGL_J0115.1-0129_daily_bin900.fits outfile=/scratch/kocevski/493731/ft1_filteredMKT_4FGL_J0115.1-0129_daily_bin900.fits ra=18.7859 dec=-1.4962 rad=12.0 tmin=472608001.0 tmax=472867201.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 3.54
user 3.29
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/493731/ft1_filtered_4FGL_J0115.1-0129_daily_bin900.fits" evtable="EVENTS" scfile=/scratch/kocevski/493731/ft2_4FGL_J0115.1-0129_daily_bin900.fits sctable="SC_DATA" outfile=/scratch/kocevski/493731/ltcube_472608001_472867201_4FGL_J0115.1-0129_daily_bin900.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/493731/ft2_4FGL_J0115.1-0129_daily_bin900.fits
.....................!
real 13.71
user 13.29
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493731/ft1_filtered_4FGL_J0115.1-0129_daily_bin900.fits evtable="EVENTS" scfile=/scratch/kocevski/493731/ft2_4FGL_J0115.1-0129_daily_bin900.fits sctable="SC_DATA" expcube=/scratch/kocevski/493731/ltcube_472608001_472867201_4FGL_J0115.1-0129_daily_bin900.fits outfile=/scratch/kocevski/493731/expmap_472608001_472867201_4FGL_J0115.1-0129_daily_bin900.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/493731/ltcube_472608001_472867201_4FGL_J0115.1-0129_daily_bin900.fits
.....................!
real 190.86
user 185.61
sys 4.72

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/493731/ft1_filtered_4FGL_J0115.1-0129_daily_bin900.fits scfile=/scratch/kocevski/493731/ft2_4FGL_J0115.1-0129_daily_bin900.fits outfile=/scratch/kocevski/493731/cmap_472608001_472867201_4FGL_J0115.1-0129_daily_bin900.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 0.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/493731/ft1_filtered_4FGL_J0115.1-0129_daily_bin900.fits scfile=/scratch/kocevski/493731/ft2_4FGL_J0115.1-0129_daily_bin900.fits outfile=/scratch/kocevski/493731/cmap_HighResolution_472608001_472867201_4FGL_J0115.1-0129_daily_bin900.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 0.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/493731/ft1_filtered_4FGL_J0115.1-0129_daily_bin900.fits evtable="EVENTS" scfile=/scratch/kocevski/493731/ft2_4FGL_J0115.1-0129_daily_bin900.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/493731/Model_4FGL_J0115.1-0129_daily_bin900.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/493731/ft1_filtered_4FGL_J0115.1-0129_daily_bin900.fits.....................!
real 54.41
user 53.06
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.559       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1043       1.0000         .10000E-03   10000.    
     5 'norm      '    5.8444       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.848       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.2783       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.8633       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9677       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11396E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.366       1.0000         .10000E-03   10000.    
    18 'norm      '    .11272E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10440E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.891       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .72829       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2782       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=   4964.502     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2597 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.565        12.288       -.74006E-06   -.30651E-03
   2  Prefactor     .10000E-03    1.3359        .36659E-07** at limit **
   3  Prefactor     .10000E-03    1.7132       -.89869E-07** at limit **
   4  norm          2.1064        4.2369        .85837E-07   -.73331E-04
   5  norm          5.8389        5.7432        .14646E-05   -.38138E-03
   6  Prefactor     18.804        36.412       -.34209E-06   -.32249E-05
   7  Prefactor     .10000E-03    15.645       -.55426E-07** at limit **
   8  Prefactor     .10000E-03    8.9804       -.25888E-07** at limit **
   9  norm          .10000E-03    6.2480        .15872E-07** at limit **
  10  Prefactor     .10000E-03    25.531        .65890E-06** at limit **
  11  norm          6.2781        2.1151       -.10646E-08   -.27054E-04
  12  Prefactor     .10000E-03    12.665        .27815E-07** at limit **
  13  Prefactor     9.8569        8.2363        .37535E-06    .12051E-03
  14  Prefactor     1.9683        4.6529        .48381E-06   -.70183E-04
  15  Prefactor     .10000E-03    26.136       -.75316E-06** at limit **
  16  Prefactor     .10000E-03    3.9905        .22888E-07** at limit **
  17  Prefactor     33.370        51.070       -.29602E-05   -.98484E-04
  18  norm          .10000E-03    56.154        .73755E-07** at limit **
  19  norm          .10000E-03    4.6943        .38278E-07** at limit **
  20  Prefactor     19.446        112.64       -.58529E-06   -.40558E-05
  21  Prefactor     .10000E-03    3.2516        .39571E-07** at limit **
  22  Normalizat    .72854        .21543        .37104E-07   -.14094E-04
  23  Prefactor     1.2780        .18463       -.20893E-06    .34054E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 24.5647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.10639
  norm       = 5.83892
  Prefactor  = 18.8043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.27809
  Prefactor  = 0.0001
  Prefactor  = 9.85686
  Prefactor  = 1.96828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.3701
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.4462
  Prefactor  = 0.0001
  Normalizat = 0.728545
  Prefactor  = 1.27804
 **********
 **   18 **HESSE 
 **********

 FCN=   4964.502     FROM HESSE     STATUS=OK           364 CALLS     2961 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.565        12.600        .80832E-04   -1.4716    
   2  Prefactor     .10000E-03    1.3736        .15897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.7396        .90095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1064        4.2088        .19665E-03   -1.5418    
   5  norm          5.8389        5.9455        .83061E-03   -1.5225    
   6  Prefactor     18.804        36.431        .92255E-04   -1.4840    
   7  Prefactor     .10000E-03    15.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.9832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.2527        .17202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.2781        2.1164        .55834E-04   -1.5207    
  12  Prefactor     .10000E-03    12.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.8569        8.2650        .12759E-03   -1.5080    
  14  Prefactor     1.9683        4.6484        .22362E-03   -1.5427    
  15  Prefactor     .10000E-03    26.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.9997        .13745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     33.370        52.949        .69372E-04   -1.4552    
  18  norm          .10000E-03    56.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.7834        .14905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.446        113.14        .89804E-04   -1.4826    
  21  Prefactor     .10000E-03    3.2981        .12406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .72854        .25193        .31324E-03   -1.0278    
  23  Prefactor     1.2780        .21698        .21620E-03   -.83962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64627e-10
Minuit parameter uncertainties:
  1  12.6018
  2  1.72084e-07
  3  5.61159e-06
  4  4.20936
  5  5.94611
  6  36.4738
  7  9.20988e-06
  8  6.30729e-06
  9  1.38157e-07
  10  8.99145e-05
  11  2.11645
  12  5.59329e-06
  13  8.26592
  14  4.64925
  15  0.000116081
  16  1.12098e-06
  17  53.0233
  18  3.06252e-05
  19  2.103e-07
  20  94.0795
  21  4.4775e-07
  22  0.252332
  23  0.217134
Done.

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

Extracting fit parameters...

4FGL J0115.1-0129
   Spectrum: PowerLaw
272    Prefactor:  9.857e+00  8.266e+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

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.278e+00  2.171e-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:  7.285e-01  2.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.16
Ra Dec: 18.786 -1.496
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 6.65e-08 +/- 5.57e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 1.32e-05

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

Saving results to:
/scratch/kocevski/493731/likelihoodResults_472608001_472867201_4FGL_J0115.1-0129_daily_bin900.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) = 4964.42870874
delta logL = 0.0737185146163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4964.42456917
delta logL = 0.0778580751703

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.464       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3273       1.0000          .0000       10.000    
     3 'Normalizat'    .75153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2633       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4964.425     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      300 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.492        9.7376        .59160E-03   -.14432E-04
   2  Index         2.3306        .88409        .98935E-02   -.71819E-06
   3  Normalizat    .75104        .24714        .30901E-03   -.38262E-04
   4  Prefactor     1.2635        .21716        .21721E-03   -.33643E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4917
  Index      = 2.33056
  Normalizat = 0.751036
  Prefactor  = 1.26354
 **********
 **   18 **HESSE 
 **********

 FCN=   4964.425     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.492        9.7003        .23664E-04   -1.5030    
   2  Index         2.3306        .88000        .39574E-03   -.56319    
   3  Normalizat    .75104        .24723        .12360E-04   -1.0191    
   4  Prefactor     1.2635        .21722        .43443E-04   -.84398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98233e-12
Minuit parameter uncertainties:
  1  9.70159
  2  0.886478
  3  0.247594
  4  0.217377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493731': 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) = 4964.42455732
delta logL = 0.0778699267703

Extracting fit parameters...

4FGL J0115.1-0129
   Spectrum: PowerLaw
272    Prefactor:  1.149e+01  9.702e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        Index:  2.331e+00  8.865e-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:  1.264e+00  2.174e-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:  7.510e-01  2.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.32
Ra Dec: 18.786 -1.496
Photon Index (Free Index): 2.33 +/- 0.89
Photon Flux (Free Index): 5.07e-08 +/- 6.03e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.78e-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/493731/cmap_HighResolution_472608001_472867201_4FGL_J0115.1-0129_daily_bin900.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', comment='SUCCESS', photon_flux='6.65e-08', energy_flux2='1.83e-05', photon_flux_error='5.57e-08', dlogl='7.79e-02', energy_flux='1.57e-05', photon_flux2='5.07e-08', job_status='DONE', time_completed='2021-08-13 20:34:03.839380', photon_index_error2='0.89', photon_index2='2.33', ts='2.16', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='1.85e-07', energy_flux_error2='1.78e-05', EG='0.73', time_epoch_completed='1628912043.84', return_code='0', job_id='493731', GAL2='1.26', EG2='0.75', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='6.03e-08', ts2='2.32', photon_index='2.72' WHERE bin_id='900' AND source_name='4FGL J0115.1-0129' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 20:34:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 493731: <4FGL_J0115.1-0129_daily_bin900> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0115.1-0129_daily_bin900 18.7859 -1.4962 472608001 472867201 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 :                                   600.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            802 sec.

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

