/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 181 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 = 5262
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0115.8+2519_daily_bin73
RA = 18.9539, Dec = 25.3324
tmin = 258249601, tmax = 258508801
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='497964', job_status='RUN', time_executed='2021-08-13 20:39:22.292105', time_epoch_executed='1628912362.29' WHERE source_name='4FGL J0115.8+2519' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497964

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497964/ft1_4FGL_J0115.8+2519_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497964/ft2_4FGL_J0115.8+2519_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497964/ft1_4FGL_J0115.8+2519_daily_bin73.fits outfile=/scratch/kocevski/497964/ft1_filteredMKT_4FGL_J0115.8+2519_daily_bin73.fits ra=18.9539 dec=25.3324 rad=12.0 tmin=258249601.0 tmax=258508801.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.29
user 0.98
sys 2.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/497964/ft2_4FGL_J0115.8+2519_daily_bin73.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/497964/ft1_filteredMKT_4FGL_J0115.8+2519_daily_bin73.fits evtable="EVENTS" outfile="/scratch/kocevski/497964/ft1_filtered_4FGL_J0115.8+2519_daily_bin73.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 2.61
user 0.32
sys 2.23

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/497964/ft1_filtered_4FGL_J0115.8+2519_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/497964/ft2_4FGL_J0115.8+2519_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/497964/ltcube_258249601_258508801_4FGL_J0115.8+2519_daily_bin73.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/497964/ft2_4FGL_J0115.8+2519_daily_bin73.fits
.....................!
real 12.65
user 9.90
sys 2.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497964/ft1_filtered_4FGL_J0115.8+2519_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/497964/ft2_4FGL_J0115.8+2519_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/497964/ltcube_258249601_258508801_4FGL_J0115.8+2519_daily_bin73.fits outfile=/scratch/kocevski/497964/expmap_258249601_258508801_4FGL_J0115.8+2519_daily_bin73.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/497964/ltcube_258249601_258508801_4FGL_J0115.8+2519_daily_bin73.fits
.....................!
real 194.13
user 185.66
sys 7.93

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/497964/ft1_filtered_4FGL_J0115.8+2519_daily_bin73.fits scfile=/scratch/kocevski/497964/ft2_4FGL_J0115.8+2519_daily_bin73.fits outfile=/scratch/kocevski/497964/cmap_258249601_258508801_4FGL_J0115.8+2519_daily_bin73.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 2.60
user 0.36
sys 2.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/497964/ft1_filtered_4FGL_J0115.8+2519_daily_bin73.fits scfile=/scratch/kocevski/497964/ft2_4FGL_J0115.8+2519_daily_bin73.fits outfile=/scratch/kocevski/497964/cmap_HighResolution_258249601_258508801_4FGL_J0115.8+2519_daily_bin73.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 2.60
user 0.36
sys 2.21

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/497964/ft1_filtered_4FGL_J0115.8+2519_daily_bin73.fits', '/scratch/kocevski/497964/ft2_4FGL_J0115.8+2519_daily_bin73.fits', expMap='/scratch/kocevski/497964/expmap_258249601_258508801_4FGL_J0115.8+2519_daily_bin73.fits', expCube='/scratch/kocevski/497964/ltcube_258249601_258508801_4FGL_J0115.8+2519_daily_bin73.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/497964/Model_4FGL_J0115.8+2519_daily_bin73.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/497964/ft1_filtered_4FGL_J0115.8+2519_daily_bin73.fits
Spacecraft file(s): /scratch/kocevski/497964/ft2_4FGL_J0115.8+2519_daily_bin73.fits
Exposure map: /scratch/kocevski/497964/expmap_258249601_258508801_4FGL_J0115.8+2519_daily_bin73.fits
Exposure cube: /scratch/kocevski/497964/ltcube_258249601_258508801_4FGL_J0115.8+2519_daily_bin73.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/497964/Model_4FGL_J0115.8+2519_daily_bin73.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) = 8116.56652215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.1261       1.0000         .10000E-03   10000.    
     4 'norm      '    3.6112       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.133       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1189       1.0000         .10000E-03   10000.    
     9 'norm      '    9.9195       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.287       1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.588       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.3337       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10586E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    62.079       1.0000         .10000E-03   10000.    
    17 'norm      '    .21309       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1152       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6455       1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.278       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4172       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .72264       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=   8116.564     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2346 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.433        .36477E-06** at limit **
   2  Prefactor     .10000E-03    18.289       -.30424E-06** at limit **
   3  norm          2.1262        2.0130        .45938E-08   -.99854E-04
   4  norm          3.6111        5.9398        .23281E-05    .93269E-05
   5  Prefactor     .10000E-03    11.134       -.35621E-06** at limit **
   6  Prefactor     16.135        13.240       -.33969E-06    .68271E-05
   7  Prefactor     .10000E-03    90.085        .67542E-06** at limit **
   8  norm          1.1185        .59358        .62651E-07    .11965E-03
   9  norm          9.9170        2.2030        .90061E-08    .79434E-04
  10  Prefactor     24.290        15.531       -.71304E-06    .47762E-05
  11  Prefactor     37.577        36.571       -.88369E-05   -.21238E-05
  12  Prefactor     8.3325        5.1049        .65903E-06    .18339E-04
  13  Prefactor     .10000E-03    17.760       -.19362E-06** at limit **
  14  Prefactor     .10000E-03    2.7262        .13947E-06** at limit **
  15  Prefactor     .10000E-03    7.7702       -.11984E-06** at limit **
  16  Prefactor     62.081        56.320        .18090E-05    .45377E-05
  17  norm          .21311        .40278       -.29800E-07   -.30856E-03
  18  Prefactor     4.1158        4.4684       -.64474E-07    .58821E-04
  19  norm          1.6464        .92305        .16513E-07   -.81309E-03
  20  Prefactor     40.266        123.05       -.16756E-04    .56896E-06
  21  Normalizat    1.4169        .18368        .12187E-05   -.19098E-04
  22  Prefactor     .72272        .11380        .64652E-07    .71744E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.12624
  norm       = 3.61107
  Prefactor  = 0.0001
  Prefactor  = 16.1352
  Prefactor  = 0.0001
  norm       = 1.11848
  norm       = 9.917
  Prefactor  = 24.2902
  Prefactor  = 37.5765
  Prefactor  = 8.33254
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.0806
  norm       = 0.213114
  Prefactor  = 4.11582
  norm       = 1.64642
  Prefactor  = 40.2664
  Normalizat = 1.41686
  Prefactor  = 0.722721
 **********
 **   18 **HESSE 
 **********

 FCN=   8116.564     FROM HESSE     STATUS=OK           346 CALLS     2692 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.1262        2.0138        .60445E-03   -1.5416    
   4  norm          3.6111        5.9314        .21262E-03   -1.5328    
   5  Prefactor     .10000E-03    11.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.135        13.238        .99716E-04   -1.4904    
   7  Prefactor     .10000E-03    90.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1185        .59131        .48358E-04   -1.5496    
   9  norm          9.9170        2.2010        .59364E-04   -1.5078    
  10  Prefactor     24.290        15.544        .81282E-04   -1.4722    
  11  Prefactor     37.577        36.565        .65372E-04   -1.4481    
  12  Prefactor     8.3325        5.1008        .13887E-03   -1.5131    
  13  Prefactor     .10000E-03    18.494        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.7306        .14526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.7731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     62.081        56.091        .50928E-04   -1.4131    
  17  norm          .21311        .32723        .75064E-03   -1.5616    
  18  Prefactor     4.1158        4.4705        .96560E-03   -1.5302    
  19  norm          1.6464        5.2035        .16463E-02   -1.5451    
  20  Prefactor     40.266        123.14        .63159E-04   -1.4438    
  21  Normalizat    1.4169        .21221        .27203E-03   -.80142    
  22  Prefactor     .72272        .13128        .22892E-03   -1.0264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35119e-09
Minuit parameter uncertainties:
  1  1.30756e-05
  2  2.28151e-05
  3  2.01385
  4  5.93235
  5  4.81512e-05
  6  13.2407
  7  0.000143303
  8  0.591309
  9  2.20104
  10  15.5467
  11  36.5865
  12  5.1011
  13  1.9068e-05
  14  8.04186e-07
  15  1.92326e-06
  16  56.139
  17  0.327236
  18  4.47088
  19  5.20489
  20  123.929
  21  0.212339
  22  0.131337
Done.

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

Extracting fit parameters...

4FGL J0115.8+2519
   Spectrum: PowerLaw
252    Prefactor:  8.333e+00  5.101e+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:  7.227e-01  1.313e-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.417e+00  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.57
Ra Dec: 18.954 25.332
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 4.35e-08 +/- 2.66e-08
Energy Flux (Fixed Index): 3.71e-05 +/- 2.27e-05

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) = 8114.14907005
delta logL = 2.41510804896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8113.55200518
delta logL = 3.01217292538

Fit tolerance = 1e-08

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

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

 FCN=   8113.552     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      222 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9994        1.7743        .73278E-02   -.53455E-03
   2  Index         .50284        .38073        .25516       -.73979E-06
   3  Normalizat    1.4303        .17957        .61325E-01   -.45724E-05
   4  Prefactor     .73026        .11268        .42801E-01    .88113E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.9994
  Index      = 0.502844
  Normalizat = 1.43032
  Prefactor  = 0.730262
 **********
 **   18 **HESSE 
 **********

 FCN=   8113.552     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9994        2.9483        .87269E-04   -1.5425    
   2  Index         .50284        .57601        .12177E-01   -1.1185    
   3  Normalizat    1.4303        .20739        .27122E-03   -.79756    
   4  Prefactor     .73026        .13017        .22817E-03   -1.0235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2068e-12
Minuit parameter uncertainties:
  1  2.94852
  2  0.582895
  3  0.207513
  4  0.13022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497964': 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) = 8113.55200252
delta logL = 3.01217558427

Extracting fit parameters...

4FGL J0115.8+2519
   Spectrum: PowerLaw
252    Prefactor:  1.999e+00  2.949e+00  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  5.028e-01  5.829e-01  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:  7.303e-01  1.302e-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.430e+00  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.61
Ra Dec: 18.954 25.332
Photon Index (Free Index): 0.50 +/- 0.58
Photon Flux (Free Index): 6.09e-09 +/- 4.45e-09
Energy Flux (Free Index): 2.09e-04 +/- 1.77e-04

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/497964/cmap_HighResolution_258249601_258508801_4FGL_J0115.8+2519_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.35e-08', energy_flux2='2.09e-04', photon_flux_error='2.66e-08', dlogl='3.01e+00', energy_flux='3.71e-05', photon_flux2='6.09e-09', job_status='DONE', time_completed='2021-08-13 20:50:39.014385', photon_index_error2='0.58', photon_index2='0.50', ts='21.57', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='1.77e-04', EG='1.42', time_epoch_completed='1628913039.01', return_code='0', job_id='497964', GAL2='0.73', EG2='1.43', return_code2='0', energy_flux_error='2.27e-05', photon_flux_error2='4.45e-09', ts2='27.61', photon_index='1.92' WHERE bin_id='73' AND source_name='4FGL J0115.8+2519' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 20:50:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 497964: <4FGL_J0115.8+2519_daily_bin73> in cluster <slac> Done

Job <4FGL_J0115.8+2519_daily_bin73> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Aug 13 20:35:23 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 20:35:37 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:35:37 2021
Terminated at Fri Aug 13 20:50:40 2021
Results reported at Fri Aug 13 20:50:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0115.8+2519_daily_bin73 18.9539 25.3324 258249601 258508801 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 :                                   708.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            917 sec.

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

