/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 8 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 = 7401
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0115.8+2519_daily_bin402
RA = 18.9539, Dec = 25.3324
tmin = 343526401, tmax = 343785601
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='498424', job_status='RUN', time_executed='2021-08-13 20:40:06.182700', time_epoch_executed='1628912406.18' WHERE source_name='4FGL J0115.8+2519' and cadence='daily' and bin_id='402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498424

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498424/ft1_4FGL_J0115.8+2519_daily_bin402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498424/ft2_4FGL_J0115.8+2519_daily_bin402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498424/ft1_4FGL_J0115.8+2519_daily_bin402.fits outfile=/scratch/kocevski/498424/ft1_filteredMKT_4FGL_J0115.8+2519_daily_bin402.fits ra=18.9539 dec=25.3324 rad=12.0 tmin=343526401.0 tmax=343785601.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 4.36
user 3.24
sys 1.07

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/498424/ft2_4FGL_J0115.8+2519_daily_bin402.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/498424/ft1_filteredMKT_4FGL_J0115.8+2519_daily_bin402.fits evtable="EVENTS" outfile="/scratch/kocevski/498424/ft1_filtered_4FGL_J0115.8+2519_daily_bin402.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 1.39
user 0.35
sys 1.00

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/498424/ft1_filtered_4FGL_J0115.8+2519_daily_bin402.fits" evtable="EVENTS" scfile=/scratch/kocevski/498424/ft2_4FGL_J0115.8+2519_daily_bin402.fits sctable="SC_DATA" outfile=/scratch/kocevski/498424/ltcube_343526401_343785601_4FGL_J0115.8+2519_daily_bin402.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/498424/ft2_4FGL_J0115.8+2519_daily_bin402.fits
.....................!
real 17.12
user 15.73
sys 1.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498424/ft1_filtered_4FGL_J0115.8+2519_daily_bin402.fits evtable="EVENTS" scfile=/scratch/kocevski/498424/ft2_4FGL_J0115.8+2519_daily_bin402.fits sctable="SC_DATA" expcube=/scratch/kocevski/498424/ltcube_343526401_343785601_4FGL_J0115.8+2519_daily_bin402.fits outfile=/scratch/kocevski/498424/expmap_343526401_343785601_4FGL_J0115.8+2519_daily_bin402.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/498424/ltcube_343526401_343785601_4FGL_J0115.8+2519_daily_bin402.fits
.....................!
real 192.75
user 186.35
sys 5.98

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/498424/ft1_filtered_4FGL_J0115.8+2519_daily_bin402.fits scfile=/scratch/kocevski/498424/ft2_4FGL_J0115.8+2519_daily_bin402.fits outfile=/scratch/kocevski/498424/cmap_343526401_343785601_4FGL_J0115.8+2519_daily_bin402.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 1.38
user 0.39
sys 0.98

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498424/ft1_filtered_4FGL_J0115.8+2519_daily_bin402.fits scfile=/scratch/kocevski/498424/ft2_4FGL_J0115.8+2519_daily_bin402.fits outfile=/scratch/kocevski/498424/cmap_HighResolution_343526401_343785601_4FGL_J0115.8+2519_daily_bin402.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 1.41
user 0.39
sys 1.00

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2018       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9079       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.2471       1.0000         .10000E-03   10000.    
     9 'norm      '    .33423       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.187       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7792       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.4709       1.0000         .10000E-03   10000.    
    19 'norm      '    20.728       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11472E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .78839       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0985       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=   6669.443     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2384 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.525       -.36009E-06** at limit **
   2  Prefactor     2.2037        71.710       -.82741E-05   -.37403E-04
   3  norm          .10000E-03    .55531        .43025E-08** at limit **
   4  norm          .10000E-03    3.6276        .47004E-07** at limit **
   5  Prefactor     8.9071        9.1383       -.13440E-05   -.26844E-04
   6  Prefactor     .10000E-03    4.0048        .82767E-08** at limit **
   7  Prefactor     .10000E-03    29.188        .19473E-05** at limit **
   8  norm          2.2471        .72029       -.47902E-07   -.73047E-04
   9  norm          .33395        1.0327       -.44563E-06   -.11018E-02
  10  Prefactor     .10000E-03    31.146       -.28896E-05** at limit **
  11  Prefactor     26.177        31.156        .10449E-04    .11532E-04
  12  Prefactor     .10000E-03    1.9761       -.21349E-06** at limit **
  13  Prefactor     4.7802        6.2421       -.30813E-06   -.22870E-03
  14  Prefactor     .10000E-03    12.524        .13718E-06** at limit **
  15  Prefactor     .10000E-03    31.223        .62399E-06** at limit **
  16  Prefactor     .10000E-03    480.51       -.13056E-04** at limit **
  17  norm          .10000E-03    .20715       -.16329E-07** at limit **
  18  Prefactor     9.4698        10.650       -.84491E-06   -.73647E-04
  19  norm          20.729        7.4371        .32030E-05    .74938E-05
  20  Prefactor     .10000E-03    63.323        .68620E-06** at limit **
  21  Normalizat    .78839        .19196       -.59225E-06    .10880E-03
  22  Prefactor     1.0985        .12537       -.10007E-06    .18991E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.20368
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.90711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.24713
  norm       = 0.333947
  Prefactor  = 0.0001
  Prefactor  = 26.1766
  Prefactor  = 0.0001
  Prefactor  = 4.78025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.46978
  norm       = 20.7285
  Prefactor  = 0.0001
  Normalizat = 0.788389
  Prefactor  = 1.09854
 **********
 **   18 **HESSE 
 **********

 FCN=   6669.443     FROM HESSE     STATUS=OK           342 CALLS     2726 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.2037        72.788        .27727E-03   -1.5411    
   3  norm          .10000E-03    .55711        .59430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.6369        .15190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.9071        9.1515        .13429E-03   -1.5111    
   6  Prefactor     .10000E-03    4.0134        .15959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.2471        .72085        .37708E-04   -1.5408    
   9  norm          .33395        1.2411        .13365E-02   -1.5592    
  10  Prefactor     .10000E-03    31.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.177        30.994        .78284E-04   -1.4684    
  12  Prefactor     .10000E-03    1.9871        .11211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.7802        6.1557        .18404E-03   -1.5271    
  14  Prefactor     .10000E-03    12.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    488.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .25991        .72151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.4698        10.662        .13022E-03   -1.5092    
  19  norm          20.729        7.3760        .87974E-04   -1.4797    
  20  Prefactor     .10000E-03    63.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .78839        .22021        .31116E-03   -1.0050    
  22  Prefactor     1.0985        .14528        .18214E-03   -.89513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69423e-10
Minuit parameter uncertainties:
  1  3.27491e-06
  2  25.363
  3  2.52387e-07
  4  6.90715e-06
  5  9.15295
  6  4.13102e-06
  7  9.41785e-05
  8  0.720855
  9  1.24119
  10  5.70357e-05
  11  31.0126
  12  2.81093e-05
  13  6.15653
  14  5.98744e-05
  15  1.17739e-05
  16  0.000117889
  17  1.18104e-06
  18  10.6641
  19  7.3763
  20  2.52677e-06
  21  0.220459
  22  0.145328
Done.

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

Extracting fit parameters...

4FGL J0115.8+2519
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  2.811e-05  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:  1.099e+00  1.453e-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:  7.884e-01  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/498424/likelihoodResults_343526401_343785601_4FGL_J0115.8+2519_daily_bin402.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) = 6669.44565443
delta logL = -0.00238414661089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6669.44327034
delta logL = -5.67333700019e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9055       1.0000          .0000       10.000    
     3 'Normalizat'    .78829       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0986       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=   6669.443     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.063        .90712E-02** at limit **
   2  Index         1.8930        5.9898        .50000        .47500E-04
   3  Normalizat    .78839        .10520E-01    .70317E-01    .18634E-04
   4  Prefactor     1.0985        .71947E-02    .37639E-01    .35349E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.89304
  Normalizat = 0.788389
  Prefactor  = 1.09854
 **********
 **   18 **HESSE 
 **********

 FCN=   6669.443     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      235 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    372.32        .11283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8930        5.8814        .50000       -.67052    
   3  Normalizat    .78839        .94369E-01    .31116E-03   -1.0050    
   4  Prefactor     1.0985        .64633E-01    .18214E-03   -.89513    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.69841e-07
Minuit parameter uncertainties:
  1  0.00014072
  2  53.6517
  3  0.0943883
  4  0.0646374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498424': 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): 102
logL (Free Index) = 6669.44326997
delta logL = 3.0826049624e-07

Extracting fit parameters...

4FGL J0115.8+2519
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  1.407e-04  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  1.893e+00  5.365e+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:  1.099e+00  6.464e-02  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:  7.884e-01  9.439e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 18.954 25.332

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/498424/cmap_HighResolution_343526401_343785601_4FGL_J0115.8+2519_daily_bin402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-03', job_status='DONE', photon_flux_upper_limit='4.72e-08', time_completed='2021-08-13 20:51:28.315309', job_id='498424', GAL2='1.10', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1628913088.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='3.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='402' AND source_name='4FGL J0115.8+2519' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 20:51:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 498424: <4FGL_J0115.8+2519_daily_bin402> in cluster <slac> Done

Job <4FGL_J0115.8+2519_daily_bin402> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Aug 13 20:35:54 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 20:39:34 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:39:34 2021
Terminated at Fri Aug 13 20:51:28 2021
Results reported at Fri Aug 13 20:51:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0115.8+2519_daily_bin402 18.9539 25.3324 343526401 343785601 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 :                                   694.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             324.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            934 sec.

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

