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


Performing analysis on: 4FGL_J0115.8+2519_daily_bin1106
RA = 18.9539, Dec = 25.3324
tmin = 526003201, tmax = 526262401
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='501489', job_status='RUN', time_executed='2021-08-13 20:51:58.434080', time_epoch_executed='1628913118.43' WHERE source_name='4FGL J0115.8+2519' and cadence='daily' and bin_id='1106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/501489

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/501489/ft1_4FGL_J0115.8+2519_daily_bin1106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/501489/ft2_4FGL_J0115.8+2519_daily_bin1106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/501489/ft1_4FGL_J0115.8+2519_daily_bin1106.fits outfile=/scratch/kocevski/501489/ft1_filteredMKT_4FGL_J0115.8+2519_daily_bin1106.fits ra=18.9539 dec=25.3324 rad=12.0 tmin=526003201.0 tmax=526262401.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 2.87
sys 0.63

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/501489/ft2_4FGL_J0115.8+2519_daily_bin1106.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/501489/ft1_filteredMKT_4FGL_J0115.8+2519_daily_bin1106.fits evtable="EVENTS" outfile="/scratch/kocevski/501489/ft1_filtered_4FGL_J0115.8+2519_daily_bin1106.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.91
user 0.29
sys 0.59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/501489/ft1_filtered_4FGL_J0115.8+2519_daily_bin1106.fits" evtable="EVENTS" scfile=/scratch/kocevski/501489/ft2_4FGL_J0115.8+2519_daily_bin1106.fits sctable="SC_DATA" outfile=/scratch/kocevski/501489/ltcube_526003201_526262401_4FGL_J0115.8+2519_daily_bin1106.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/501489/ft2_4FGL_J0115.8+2519_daily_bin1106.fits
.....................!
real 10.64
user 9.77
sys 0.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/501489/ft1_filtered_4FGL_J0115.8+2519_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/501489/ft2_4FGL_J0115.8+2519_daily_bin1106.fits sctable="SC_DATA" expcube=/scratch/kocevski/501489/ltcube_526003201_526262401_4FGL_J0115.8+2519_daily_bin1106.fits outfile=/scratch/kocevski/501489/expmap_526003201_526262401_4FGL_J0115.8+2519_daily_bin1106.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/501489/ltcube_526003201_526262401_4FGL_J0115.8+2519_daily_bin1106.fits
.....................!
real 155.55
user 150.81
sys 4.24

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 170 point sources and 0 extended sources

Setting source of interest to:
4FGL J0115.8+2519 @ 18.9539 25.3324

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/501489/ft1_filtered_4FGL_J0115.8+2519_daily_bin1106.fits scfile=/scratch/kocevski/501489/ft2_4FGL_J0115.8+2519_daily_bin1106.fits outfile=/scratch/kocevski/501489/cmap_526003201_526262401_4FGL_J0115.8+2519_daily_bin1106.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=18.9539 yref=25.3324 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.91
user 0.32
sys 0.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/501489/ft1_filtered_4FGL_J0115.8+2519_daily_bin1106.fits scfile=/scratch/kocevski/501489/ft2_4FGL_J0115.8+2519_daily_bin1106.fits outfile=/scratch/kocevski/501489/cmap_HighResolution_526003201_526262401_4FGL_J0115.8+2519_daily_bin1106.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=18.9539 yref=25.3324 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.92
user 0.32
sys 0.58

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/501489/ft1_filtered_4FGL_J0115.8+2519_daily_bin1106.fits', '/scratch/kocevski/501489/ft2_4FGL_J0115.8+2519_daily_bin1106.fits', expMap='/scratch/kocevski/501489/expmap_526003201_526262401_4FGL_J0115.8+2519_daily_bin1106.fits', expCube='/scratch/kocevski/501489/ltcube_526003201_526262401_4FGL_J0115.8+2519_daily_bin1106.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/501489/Model_4FGL_J0115.8+2519_daily_bin1106.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0115.8+2519'

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


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/501489/ft1_filtered_4FGL_J0115.8+2519_daily_bin1106.fits
Spacecraft file(s): /scratch/kocevski/501489/ft2_4FGL_J0115.8+2519_daily_bin1106.fits
Exposure map: /scratch/kocevski/501489/expmap_526003201_526262401_4FGL_J0115.8+2519_daily_bin1106.fits
Exposure cube: /scratch/kocevski/501489/ltcube_526003201_526262401_4FGL_J0115.8+2519_daily_bin1106.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/501489/Model_4FGL_J0115.8+2519_daily_bin1106.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) = 7006.9540945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3849       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.2087       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4521       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.4225       1.0000         .10000E-03   10000.    
     9 'norm      '    4.0942       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .78661E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5930       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.0232       1.0000         .10000E-03   10000.    
    15 'Prefactor '    51.688       1.0000         .10000E-03   10000.    
    16 'Prefactor '    62.637       1.0000         .10000E-03   10000.    
    17 'norm      '    .79301       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2003       1.0000         .10000E-03   10000.    
    19 'norm      '    3.2131       1.0000         .10000E-03   10000.    
    20 'Prefactor '    135.79       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0626       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89080       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7006.950     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2383 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2493        61.257       -.10795E-04   -.54612E-05
   2  Prefactor     .10000E-03    9.9192       -.78430E-07** at limit **
   3  norm          3.2087        2.1847       -.10628E-07   -.26321E-05
   4  norm          .10000E-03    5.1604        .11730E-06** at limit **
   5  Prefactor     5.4531        11.630       -.18751E-06   -.79153E-06
   6  Prefactor     .10000E-03    3.5349        .26421E-07** at limit **
   7  Prefactor     .10000E-03    11.523        .41138E-07** at limit **
   8  norm          2.4225        .78732       -.11770E-07    .19420E-04
   9  norm          4.0942        1.3933       -.16083E-07    .40405E-05
  10  Prefactor     .10000E-03    63.645        .95607E-05** at limit **
  11  Prefactor     .10000E-03    44.734       -.44941E-06** at limit **
  12  Prefactor     2.5931        4.2490       -.20113E-06   -.14987E-04
  13  Prefactor     .10000E-03    2.4337        .31830E-07** at limit **
  14  Prefactor     7.0215        10.191       -.16951E-06    .35531E-05
  15  Prefactor     51.683        46.750       -.57146E-06   -.87403E-06
  16  Prefactor     62.631        91.575       -.54283E-06    .11267E-05
  17  norm          .79299        .47322       -.23527E-07    .81301E-05
  18  Prefactor     1.2017        20.119        .20492E-05    .10961E-04
  19  norm          3.2135        5.1705       -.37323E-07   -.39717E-06
  20  Prefactor     135.78        137.89       -.37488E-06   -.24165E-06
  21  Normalizat    1.0628        .19108        .83867E-06   -.42445E-04
  22  Prefactor     .89060        .12399       -.40879E-06    .79187E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.24933
  Prefactor  = 0.0001
  norm       = 3.20874
  norm       = 0.0001
  Prefactor  = 5.45311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.42248
  norm       = 4.09423
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.59306
  Prefactor  = 0.0001
  Prefactor  = 7.02154
  Prefactor  = 51.6833
  Prefactor  = 62.631
  norm       = 0.792993
  Prefactor  = 1.20172
  norm       = 3.21351
  Prefactor  = 135.785
  Normalizat = 1.06281
  Prefactor  = 0.890601
 **********
 **   18 **HESSE 
 **********

 FCN=   7006.950     FROM HESSE     STATUS=OK           350 CALLS     2733 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2493        61.321        .13082E-03   -1.5100    
   2  Prefactor     .10000E-03    9.9281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2087        2.1847        .99237E-04   -1.5350    
   4  norm          .10000E-03    5.1750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.4531        11.635        .17209E-03   -1.5241    
   6  Prefactor     .10000E-03    3.5426        .15369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.4225        .78586        .40489E-04   -1.5397    
   9  norm          4.0942        1.3935        .55418E-04   -1.5303    
  10  Prefactor     .10000E-03    61.853        .55371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    44.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5931        4.2275        .21194E-03   -1.5386    
  13  Prefactor     .10000E-03    2.4509        .12747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.0215        10.166        .15138E-03   -1.5178    
  15  Prefactor     51.683        46.920        .55784E-04   -1.4269    
  16  Prefactor     62.631        91.288        .50702E-04   -1.4124    
  17  norm          .79299        .48022        .42429E-04   -1.5530    
  18  Prefactor     1.2017        20.390        .20718E-02   -1.5489    
  19  norm          3.2135        5.1587        .22601E-03   -1.5349    
  20  Prefactor     135.78        138.00        .34562E-04   -1.3372    
  21  Normalizat    1.0628        .22292        .28544E-03   -.90955    
  22  Prefactor     .89060        .14479        .20273E-03   -.96470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63874e-11
Minuit parameter uncertainties:
  1  47.7016
  2  7.97404e-07
  3  2.1848
  4  4.33405e-06
  5  11.6401
  6  6.30894e-07
  7  2.63129e-06
  8  0.785858
  9  1.39346
  10  3.20912e-05
  11  3.61738e-05
  12  4.22803
  13  1.38639e-06
  14  10.1686
  15  46.9535
  16  91.4931
  17  0.480225
  18  9.90357
  19  5.15936
  20  138.33
  21  0.223114
  22  0.144856
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  8.906e-01  1.449e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  1.063e+00  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.55
Ra Dec: 18.954 25.332
Photon Flux Upper Limit: 7.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/501489/likelihoodResults_526003201_526262401_4FGL_J0115.8+2519_daily_bin1106.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) = 7006.94251667
delta logL = 0.00740100005169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7006.93985473
delta logL = 0.0100629405842

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7006.940     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      250 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2359        5.5423        .18492E-03   -.28846E-03
   2  Index         2.1363        1.7368        .50121E-02   -.30025E-04
   3  Normalizat    1.0577        .22077        .28600E-03   -.52034E-04
   4  Prefactor     .89187        .14308        .20259E-03   -.75477E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.23593
  Index      = 2.1363
  Normalizat = 1.05771
  Prefactor  = 0.891867
 **********
 **   18 **HESSE 
 **********

 FCN=   7006.940     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2359        4.9829        .73968E-05   -1.5409    
   2  Index         2.1363        1.5693        .20048E-03   -.60984    
   3  Normalizat    1.0577        .21974        .11440E-04   -.91122    
   4  Prefactor     .89187        .14293        .81036E-05   -.96426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26714e-11
Minuit parameter uncertainties:
  1  4.98385
  2  1.61045
  3  0.219928
  4  0.142988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/501489': 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) = 7006.9398544
delta logL = 0.0100632747244

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  8.919e-01  1.430e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  1.058e+00  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.55
Ra Dec: 18.954 25.332

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/501489/cmap_HighResolution_526003201_526262401_4FGL_J0115.8+2519_daily_bin1106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.44e-03', job_status='DONE', photon_flux_upper_limit='7.31e-08', time_completed='2021-08-13 21:01:24.640705', job_id='501489', GAL2='0.89', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1628913684.64', return_code2='0', ts='0.55', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.01e-02', ts2='0.57', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='1106' AND source_name='4FGL J0115.8+2519' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:01:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 501489: <4FGL_J0115.8+2519_daily_bin1106> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0115.8+2519_daily_bin1106 18.9539 25.3324 526003201 526262401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0115.8+2519 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   569.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            943 sec.

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

