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


Performing analysis on: 4FGL_J0115.1-0129_daily_bin838
RA = 18.7859, Dec = -1.4962
tmin = 456537601, tmax = 456796801
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='493641', job_status='RUN', time_executed='2021-08-13 20:21:43.433417', time_epoch_executed='1628911303.43' WHERE source_name='4FGL J0115.1-0129' and cadence='daily' and bin_id='838'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493641

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493641/ft1_4FGL_J0115.1-0129_daily_bin838.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493641/ft2_4FGL_J0115.1-0129_daily_bin838.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493641/ft1_4FGL_J0115.1-0129_daily_bin838.fits outfile=/scratch/kocevski/493641/ft1_filteredMKT_4FGL_J0115.1-0129_daily_bin838.fits ra=18.7859 dec=-1.4962 rad=12.0 tmin=456537601.0 tmax=456796801.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 5.25
user 5.00
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/493641/ft1_filtered_4FGL_J0115.1-0129_daily_bin838.fits" evtable="EVENTS" scfile=/scratch/kocevski/493641/ft2_4FGL_J0115.1-0129_daily_bin838.fits sctable="SC_DATA" outfile=/scratch/kocevski/493641/ltcube_456537601_456796801_4FGL_J0115.1-0129_daily_bin838.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/493641/ft2_4FGL_J0115.1-0129_daily_bin838.fits
.....................!
real 13.47
user 13.14
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493641/ft1_filtered_4FGL_J0115.1-0129_daily_bin838.fits evtable="EVENTS" scfile=/scratch/kocevski/493641/ft2_4FGL_J0115.1-0129_daily_bin838.fits sctable="SC_DATA" expcube=/scratch/kocevski/493641/ltcube_456537601_456796801_4FGL_J0115.1-0129_daily_bin838.fits outfile=/scratch/kocevski/493641/expmap_456537601_456796801_4FGL_J0115.1-0129_daily_bin838.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/493641/ltcube_456537601_456796801_4FGL_J0115.1-0129_daily_bin838.fits
.....................!
real 190.02
user 185.55
sys 4.08

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/493641/ft1_filtered_4FGL_J0115.1-0129_daily_bin838.fits scfile=/scratch/kocevski/493641/ft2_4FGL_J0115.1-0129_daily_bin838.fits outfile=/scratch/kocevski/493641/cmap_456537601_456796801_4FGL_J0115.1-0129_daily_bin838.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/493641/ft1_filtered_4FGL_J0115.1-0129_daily_bin838.fits scfile=/scratch/kocevski/493641/ft2_4FGL_J0115.1-0129_daily_bin838.fits outfile=/scratch/kocevski/493641/cmap_HighResolution_456537601_456796801_4FGL_J0115.1-0129_daily_bin838.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/493641/ft1_filtered_4FGL_J0115.1-0129_daily_bin838.fits evtable="EVENTS" scfile=/scratch/kocevski/493641/ft2_4FGL_J0115.1-0129_daily_bin838.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/493641/Model_4FGL_J0115.1-0129_daily_bin838.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/493641/ft1_filtered_4FGL_J0115.1-0129_daily_bin838.fits.....................!
real 67.32
user 66.02
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    54.592       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .57751       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1302       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.422       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.169       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    24.078       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12078E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.3241       1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.438       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0734       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.947       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9294       1.0000         .10000E-03   10000.    
    18 'norm      '    10.132       1.0000         .10000E-03   10000.    
    19 'norm      '    4.7593       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.8620       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0418       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78584       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=   6457.894     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2491 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          54.593        13.366       -.23728E-07   -.50233E-04
   2  Prefactor     .57620        1.9814        .14769E-05    .28919E-04
   3  Prefactor     .10000E-03    .70223        .11053E-06** at limit **
   4  norm          2.1307        1.9367       -.10961E-07   -.85450E-05
   5  norm          .10000E-03    2.0426        .17465E-06** at limit **
   6  Prefactor     19.404        26.692        .51104E-07   -.12394E-04
   7  Prefactor     23.170        20.261        .41968E-07   -.50054E-06
   8  Prefactor     .10000E-03    8.7501        .23661E-06** at limit **
   9  norm          24.076        15.372        .63634E-07   -.23833E-05
  10  Prefactor     .10000E-03    90.593        .39775E-06** at limit **
  11  norm          4.3236        1.5625       -.47319E-07   -.27813E-03
  12  Prefactor     39.455        38.760        .23952E-07   -.11547E-04
  13  Prefactor     .10000E-03    4.2009        .84838E-06** at limit **
  14  Prefactor     2.0743        2.2033        .86947E-07   -.10249E-04
  15  Prefactor     34.943        29.657        .60152E-07   -.90865E-05
  16  Prefactor     .10000E-03    2.9208        .26857E-07** at limit **
  17  Prefactor     2.9085        161.15        .13715E-05   -.45086E-05
  18  norm          10.133        17.053        .87480E-07   -.35317E-05
  19  norm          4.7601        4.5789        .64029E-07   -.48263E-05
  20  Prefactor     9.7856        106.52       -.95663E-06   -.16698E-04
  21  Prefactor     .10000E-03    1.8063        .97948E-07** at limit **
  22  Normalizat    1.0416        .17655        .62333E-06   -.18564E-03
  23  Prefactor     .78606        .15042       -.15336E-05   -.66214E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 54.5926
  Prefactor  = 0.576202
  Prefactor  = 0.0001
  norm       = 2.13074
  norm       = 0.0001
  Prefactor  = 19.4043
  Prefactor  = 23.1696
  Prefactor  = 0.0001
  norm       = 24.0756
  Prefactor  = 0.0001
  norm       = 4.32364
  Prefactor  = 39.4553
  Prefactor  = 0.0001
  Prefactor  = 2.07427
  Prefactor  = 34.9428
  Prefactor  = 0.0001
  Prefactor  = 2.90849
  norm       = 10.1328
  norm       = 4.76013
  Prefactor  = 9.78556
  Prefactor  = 0.0001
  Normalizat = 1.04158
  Prefactor  = 0.786061
 **********
 **   18 **HESSE 
 **********

 FCN=   6457.894     FROM HESSE     STATUS=OK           372 CALLS     2863 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          54.593        13.368        .54288E-04   -1.4229    
   2  Prefactor     .57620        1.9972        .20252E-03   -1.5556    
   3  Prefactor     .10000E-03    .70685        .65781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1307        1.9408        .10341E-03   -1.5416    
   5  norm          .10000E-03    2.0705        .11221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.404        26.733        .90883E-04   -1.4827    
   7  Prefactor     23.170        20.256        .83217E-04   -1.4745    
   8  Prefactor     .10000E-03    8.7685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          24.076        15.381        .81634E-04   -1.4726    
  10  Prefactor     .10000E-03    91.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.3236        1.5631        .57503E-04   -1.5292    
  12  Prefactor     39.455        38.727        .63826E-04   -1.4451    
  13  Prefactor     .10000E-03    4.2630        .16067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.0743        2.1884        .11878E-03   -1.5420    
  15  Prefactor     34.943        29.642        .67789E-04   -1.4525    
  16  Prefactor     .10000E-03    2.9408        .13412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.9085        162.74        .23734E-03   -1.5367    
  18  norm          10.133        17.037        .12588E-03   -1.5071    
  19  norm          4.7601        4.5729        .16118E-03   -1.5272    
  20  Prefactor     9.7856        107.44        .12760E-03   -1.5082    
  21  Prefactor     .10000E-03    1.8182        .10549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0416        .19786        .24574E-03   -.91650    
  23  Prefactor     .78606        .16630        .24231E-03   -1.0024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.07804e-11
Minuit parameter uncertainties:
  1  13.3689
  2  1.99746
  3  4.22564e-07
  4  1.94086
  5  2.19641e-06
  6  26.7494
  7  20.2624
  8  2.36143e-06
  9  15.3832
  10  1.49521e-05
  11  1.56316
  12  38.7514
  13  1.5459e-06
  14  2.18845
  15  29.6549
  16  2.19588e-06
  17  43.6364
  18  17.0448
  19  4.57326
  20  64.9973
  21  1.02299e-06
  22  0.198
  23  0.166405
Done.

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

Extracting fit parameters...

4FGL J0115.1-0129
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.546e-06  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.861e-01  1.664e-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.042e+00  1.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 18.786 -1.496
Photon Flux Upper Limit: 8.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/493641/likelihoodResults_456537601_456796801_4FGL_J0115.1-0129_daily_bin838.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) = 6457.89511907
delta logL = -0.00111806626956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6457.89400034
delta logL = 6.62643287797e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6838       1.0000          .0000       10.000    
     3 'Normalizat'    1.0416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78605       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6457.885     FROM MIGRAD    STATUS=FAILED       235 CALLS      386 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45060        367.79        .54766E-01    .92687E-03
   2  Index         1.6240        6.7121        .50000       -.18202E-04
   3  Normalizat    1.0434        .54734E-01    .24574E-03   -.16655E-05
   4  Prefactor     .78340        .52826E-01    .24231E-03   -.25335E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6457.885     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      476 TOTAL
                     EDM=   .71E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45060        367.79        .19477E-03    .92687E-03
   2  Index         1.6240        6.7121        .26674E-02   -.18202E-04
   3  Normalizat    1.0434        .54734E-01    .19039E-04   -.16655E-05
   4  Prefactor     .78340        .52826E-01    .98870E-04   -.25335E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6457.885     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      513 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45061        7.0517        .28477E-02    .17880E-03
   2  Index         1.6240        1.7980        .17795E-01   -.10559E-03
   3  Normalizat    1.0434        .18964        .98296E-05   -.92526E-06
   4  Prefactor     .78340        .16625        .96926E-05    .30496E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.450611
  Index      = 1.62404
  Normalizat = 1.04339
  Prefactor  = 0.783398
 **********
 **   18 **HESSE 
 **********

 FCN=   6457.885     FROM HESSE     STATUS=OK            27 CALLS      540 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45061        7.0195        .11391E-03   -1.5574    
   2  Index         1.6240        1.7976        .35591E-02   -.74122    
   3  Normalizat    1.0434        .18961        .19659E-05   -.91591    
   4  Prefactor     .78340        .16617        .19385E-05   -1.0034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.3307e-12
Minuit parameter uncertainties:
  1  3.5571
  2  1.87766
  3  0.189738
  4  0.166277
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493641': 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) = 6457.88462804
delta logL = 0.00937296779557

Extracting fit parameters...

4FGL J0115.1-0129
   Spectrum: PowerLaw
272    Prefactor:  4.506e-01  3.557e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        Index:  1.624e+00  1.878e+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:  7.834e-01  1.663e-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.043e+00  1.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 18.786 -1.496

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/493641/cmap_HighResolution_456537601_456796801_4FGL_J0115.1-0129_daily_bin838.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.38e-03', job_status='DONE', photon_flux_upper_limit='8.09e-08', time_completed='2021-08-13 20:33:23.922603', job_id='493641', GAL2='0.78', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1628912003.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='9.37e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='838' AND source_name='4FGL J0115.1-0129' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 20:33:23 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0115.1-0129_daily_bin838 18.7859 -1.4962 456537601 456796801 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 :                                   697.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             367.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            768 sec.

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

