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


Performing analysis on: 4FGL_J0115.8+2519_daily_bin1618
RA = 18.9539, Dec = 25.3324
tmin = 658713601, tmax = 658972801
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='138142', job_status='RUN', time_executed='2021-12-07 12:05:05.056731', time_epoch_executed='1638907505.06' WHERE source_name='4FGL J0115.8+2519' and cadence='daily' and bin_id='1618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/138142

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/138142/ft1_4FGL_J0115.8+2519_daily_bin1618.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/138142/ft2_4FGL_J0115.8+2519_daily_bin1618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/138142/ft1_4FGL_J0115.8+2519_daily_bin1618.fits outfile=/scratch/kocevski/138142/ft1_filteredMKT_4FGL_J0115.8+2519_daily_bin1618.fits ra=18.9539 dec=25.3324 rad=12.0 tmin=658713601.0 tmax=658972801.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 2.80
user 2.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/138142/ft1_filtered_4FGL_J0115.8+2519_daily_bin1618.fits" evtable="EVENTS" scfile=/scratch/kocevski/138142/ft2_4FGL_J0115.8+2519_daily_bin1618.fits sctable="SC_DATA" outfile=/scratch/kocevski/138142/ltcube_658713601_658972801_4FGL_J0115.8+2519_daily_bin1618.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/138142/ft2_4FGL_J0115.8+2519_daily_bin1618.fits
.....................!
real 12.93
user 12.12
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/138142/ft1_filtered_4FGL_J0115.8+2519_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/138142/ft2_4FGL_J0115.8+2519_daily_bin1618.fits sctable="SC_DATA" expcube=/scratch/kocevski/138142/ltcube_658713601_658972801_4FGL_J0115.8+2519_daily_bin1618.fits outfile=/scratch/kocevski/138142/expmap_658713601_658972801_4FGL_J0115.8+2519_daily_bin1618.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/138142/ltcube_658713601_658972801_4FGL_J0115.8+2519_daily_bin1618.fits
.....................!
real 181.98
user 152.12
sys 3.97

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/138142/ft1_filtered_4FGL_J0115.8+2519_daily_bin1618.fits scfile=/scratch/kocevski/138142/ft2_4FGL_J0115.8+2519_daily_bin1618.fits outfile=/scratch/kocevski/138142/cmap_658713601_658972801_4FGL_J0115.8+2519_daily_bin1618.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.54
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/138142/ft1_filtered_4FGL_J0115.8+2519_daily_bin1618.fits scfile=/scratch/kocevski/138142/ft2_4FGL_J0115.8+2519_daily_bin1618.fits outfile=/scratch/kocevski/138142/cmap_HighResolution_658713601_658972801_4FGL_J0115.8+2519_daily_bin1618.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.63
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    135.69       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12085E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.0895       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.688       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7134       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2465       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.718       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    43.322       1.0000         .10000E-03   10000.    
    16 'Prefactor '    115.69       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.642       1.0000         .10000E-03   10000.    
    19 'norm      '    61.139       1.0000         .10000E-03   10000.    
    20 'Prefactor '    55.607       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .55571       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3584       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=   2754.243     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2725 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     135.70        120.01       -.24142E-05   -.26047E-04
   2  Prefactor     .10001E-03    242.95        .11044E-04** at limit **
   3  norm          6.0896        4.3102       -.18092E-06   -.60862E-04
   4  norm          .10000E-03    24.413       -.70388E-06** at limit **
   5  Prefactor     10.690        23.693       -.11862E-05   -.49471E-04
   6  Prefactor     .10003E-03    74.348        .30641E-05** at limit **
   7  Prefactor     .10000E-03    27.894       -.53755E-06** at limit **
   8  norm          1.7134        1.1634       -.13651E-06    .53953E-03
   9  norm          1.2466        2.8506        .48921E-06    .54360E-03
  10  Prefactor     14.717        31.666       -.10832E-05    .15134E-04
  11  Prefactor     .10003E-03    139.74       -.89121E-05** at limit **
  12  Prefactor     .10000E-03    4.2007       -.34434E-06** at limit **
  13  Prefactor     .10002E-03    95.014        .46679E-04** at limit **
  14  Prefactor     .10000E-03    14.771       -.91837E-06** at limit **
  15  Prefactor     43.354        103.63       -.28856E-05    .26373E-04
  16  Prefactor     115.86        244.00        .29384E-05    .13256E-03
  17  norm          .10000E-03    1.1020       -.16073E-05** at limit **
  18  Prefactor     16.602        58.870        .71706E-06    .14473E-03
  19  norm          61.134        40.897        .27842E-06    .29204E-03
  20  Prefactor     56.231        7078.3       -.26308E-04   -.14459E-06
  21  Normalizat    .55580        .38247        .99509E-05    .29141E-03
  22  Prefactor     1.3584        .24916        .11334E-05    .37042E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 135.696
  Prefactor  = 0.000100008
  norm       = 6.0896
  norm       = 0.000100003
  Prefactor  = 10.6903
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  norm       = 1.71338
  norm       = 1.24659
  Prefactor  = 14.7166
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 43.3536
  Prefactor  = 115.857
  norm       = 0.0001
  Prefactor  = 16.6021
  norm       = 61.1335
  Prefactor  = 56.2308
  Normalizat = 0.555804
  Prefactor  = 1.35835
 **********
 **   18 **HESSE 
 **********

 FCN=   2754.243     FROM HESSE     STATUS=OK           334 CALLS     3059 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     135.70        119.70        .34574E-04   -1.3373    
   2  Prefactor     .10001E-03    243.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.0896        4.3142        .87966E-04   -1.5214    
   4  norm          .10000E-03    24.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.690        23.588        .12255E-03   -1.5054    
   6  Prefactor     .10003E-03    75.212        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7134        1.1614        .45016E-04   -1.5446    
   9  norm          1.2466        2.6726        .11639E-03   -1.5485    
  10  Prefactor     14.717        31.667        .10440E-03   -1.4941    
  11  Prefactor     .10003E-03    141.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.2135        .10508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    93.326        .35044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     43.354        103.72        .60909E-04   -1.4390    
  16  Prefactor     115.86        243.37        .18703E-03   -1.3551    
  17  norm          .10000E-03    1.1221        .53678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.602        58.903        .98179E-04   -1.4893    
  19  norm          61.134        40.871        .51315E-04   -1.4143    
  20  Prefactor     56.231        7058.7        .26896E-03   -1.4207    
  21  Normalizat    .55580        .39751        .43098E-03   -1.0989    
  22  Prefactor     1.3584        .26617        .19390E-03   -.81588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17356e-09
Minuit parameter uncertainties:
  1  119.916
  2  0.00278612
  3  4.31445
  4  0.000552253
  5  23.609
  6  0.0028151
  7  0.000138456
  8  1.16142
  9  2.67282
  10  31.703
  11  0.00383607
  12  2.48693e-05
  13  0.00267479
  14  1.52898e-05
  15  104.154
  16  245.517
  17  2.27729e-05
  18  59.1106
  19  40.8893
  20  1162.68
  21  0.39957
  22  0.266441
Done.

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

Extracting fit parameters...

4FGL J0115.8+2519
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  2.487e-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.358e+00  2.664e-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:  5.558e-01  3.996e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/138142/likelihoodResults_658713601_658972801_4FGL_J0115.8+2519_daily_bin1618.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) = 2754.24421646
delta logL = -0.00109274293436

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2754.24312358
delta logL = 1.34435595101e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8985       1.0000          .0000       10.000    
     3 'Normalizat'    .55576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3584       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=   2754.243     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    84.386        .90712E-02** at limit **
   2  Index         1.8787        8.8792        .50000        .34303E-04
   3  Normalizat    .55579        .38364E-01    .97231E-01    .21624E-04
   4  Prefactor     1.3584        .26122E-01    .31663E-01    .24205E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.87872
  Normalizat = 0.555794
  Prefactor  = 1.35836
 **********
 **   18 **HESSE 
 **********

 FCN=   2754.243     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9622        .10673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8787        5.7699        .50000       -.67418    
   3  Normalizat    .55579        .36896        .43097E-03   -1.0990    
   4  Prefactor     1.3584        .25296        .19390E-03   -.81588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17306e-09
Minuit parameter uncertainties:
  1  4.21986e-05
  2  4.94854
  3  0.370606
  4  0.253194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/138142': 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) = 2754.24312335
delta logL = 3.61510046787e-07

Extracting fit parameters...

4FGL J0115.8+2519
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  4.220e-05  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  1.879e+00  4.949e+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:  1.358e+00  2.532e-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:  5.558e-01  3.706e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/138142/cmap_HighResolution_658713601_658972801_4FGL_J0115.8+2519_daily_bin1618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.69e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-12-07 12:11:59.099523', job_id='138142', GAL2='1.36', fit_tolerance='1e-08', EG2='0.56', EG='0.56', time_epoch_completed='1638907919.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='3.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='1618' AND source_name='4FGL J0115.8+2519' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:11:59 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 138142: <4FGL_J0115.8+2519_daily_bin1618> in cluster <slac> Done

Job <4FGL_J0115.8+2519_daily_bin1618> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 12:00:22 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:01:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 12:01:21 2021
Terminated at Tue Dec  7 12:12:00 2021
Results reported at Tue Dec  7 12:12:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0115.8+2519_daily_bin1618 18.9539 25.3324 658713601 658972801 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 :                                   378.29 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             247.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   638 sec.
    Turnaround time :                            698 sec.

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

