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


Performing analysis on: 4FGL_J0115.8+2519_daily_bin1156
RA = 18.9539, Dec = 25.3324
tmin = 538963201, tmax = 539222401
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='502646', job_status='RUN', time_executed='2021-08-13 20:52:49.218869', time_epoch_executed='1628913169.22' WHERE source_name='4FGL J0115.8+2519' and cadence='daily' and bin_id='1156'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/502646

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/502646/ft1_4FGL_J0115.8+2519_daily_bin1156.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/502646/ft2_4FGL_J0115.8+2519_daily_bin1156.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/502646/ft1_4FGL_J0115.8+2519_daily_bin1156.fits outfile=/scratch/kocevski/502646/ft1_filteredMKT_4FGL_J0115.8+2519_daily_bin1156.fits ra=18.9539 dec=25.3324 rad=12.0 tmin=538963201.0 tmax=539222401.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 12.10
user 4.34
sys 7.66

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/502646/ft1_filtered_4FGL_J0115.8+2519_daily_bin1156.fits" evtable="EVENTS" scfile=/scratch/kocevski/502646/ft2_4FGL_J0115.8+2519_daily_bin1156.fits sctable="SC_DATA" outfile=/scratch/kocevski/502646/ltcube_538963201_539222401_4FGL_J0115.8+2519_daily_bin1156.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/502646/ft2_4FGL_J0115.8+2519_daily_bin1156.fits
.....................!
real 21.94
user 13.08
sys 8.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/502646/ft1_filtered_4FGL_J0115.8+2519_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/502646/ft2_4FGL_J0115.8+2519_daily_bin1156.fits sctable="SC_DATA" expcube=/scratch/kocevski/502646/ltcube_538963201_539222401_4FGL_J0115.8+2519_daily_bin1156.fits outfile=/scratch/kocevski/502646/expmap_538963201_539222401_4FGL_J0115.8+2519_daily_bin1156.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/502646/ltcube_538963201_539222401_4FGL_J0115.8+2519_daily_bin1156.fits
.....................!
real 199.64
user 185.29
sys 13.62

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/502646/ft1_filtered_4FGL_J0115.8+2519_daily_bin1156.fits scfile=/scratch/kocevski/502646/ft2_4FGL_J0115.8+2519_daily_bin1156.fits outfile=/scratch/kocevski/502646/cmap_538963201_539222401_4FGL_J0115.8+2519_daily_bin1156.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 7.87
user 0.37
sys 7.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/502646/ft1_filtered_4FGL_J0115.8+2519_daily_bin1156.fits scfile=/scratch/kocevski/502646/ft2_4FGL_J0115.8+2519_daily_bin1156.fits outfile=/scratch/kocevski/502646/cmap_HighResolution_538963201_539222401_4FGL_J0115.8+2519_daily_bin1156.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 7.70
user 0.37
sys 7.30

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.241       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.0128       1.0000         .10000E-03   10000.    
     4 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.6297       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.747       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.8814       1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.116       1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.859       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.132       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5291       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .37644       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.839       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .61380       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1570       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=   7159.293     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2100 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.189        84.357       -.55867E-06   -.34164E-04
   2  Prefactor     .10000E-03    28.739       -.10410E-06** at limit **
   3  norm          3.0128        2.3729        .24667E-07   -.52625E-04
   4  norm          .10000E-03    2.9827       -.58266E-07** at limit **
   5  Prefactor     9.6285        14.126        .27941E-06   -.27466E-04
   6  Prefactor     15.746        15.845       -.38700E-06   -.20325E-03
   7  Prefactor     .10000E-03    35.727       -.21462E-07** at limit **
   8  norm          2.8814        .93637        .17065E-07   -.14443E-03
   9  norm          .10000E-03    .91799        .10618E-05** at limit **
  10  Prefactor     15.114        17.864        .17426E-06   -.13303E-04
  11  Prefactor     39.859        32.835       -.63659E-07   -.37302E-04
  12  Prefactor     .10000E-03    2.0254        .18451E-07** at limit **
  13  Prefactor     19.131        9.4398       -.46137E-06   -.49313E-03
  14  Prefactor     7.5266        12.879        .16601E-06   -.42450E-04
  15  Prefactor     .10000E-03    14.031       -.37763E-08** at limit **
  16  Prefactor     .10000E-03    186.25       -.43147E-06** at limit **
  17  norm          .37618        .54456        .26840E-06    .71533E-03
  18  Prefactor     16.837        11.341        .40072E-07   -.66986E-04
  19  norm          .10000E-03    3.0791        .58776E-07** at limit **
  20  Prefactor     .10000E-03    109.93        .15009E-06** at limit **
  21  Normalizat    .61395        .22181       -.15392E-05   -.23130E-03
  22  Prefactor     1.1569        .13170        .13455E-06   -.46926E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1891
  Prefactor  = 0.0001
  norm       = 3.01277
  norm       = 0.0001
  Prefactor  = 9.62845
  Prefactor  = 15.7464
  Prefactor  = 0.0001
  norm       = 2.88136
  norm       = 0.0001
  Prefactor  = 15.1139
  Prefactor  = 39.8586
  Prefactor  = 0.0001
  Prefactor  = 19.1305
  Prefactor  = 7.5266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.376179
  Prefactor  = 16.8375
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.613946
  Prefactor  = 1.15689
 **********
 **   18 **HESSE 
 **********

 FCN=   7159.293     FROM HESSE     STATUS=OK           346 CALLS     2446 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.189        83.737        .11949E-03   -1.5039    
   2  Prefactor     .10000E-03    28.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.0128        2.3702        .11189E-03   -1.5361    
   4  norm          .10000E-03    2.9846        .14264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.6285        14.147        .12914E-03   -1.5087    
   6  Prefactor     15.746        15.866        .10093E-03   -1.4914    
   7  Prefactor     .10000E-03    35.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.8814        .93463        .43517E-04   -1.5368    
   9  norm          .10000E-03    1.0766        .13771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.114        17.870        .10302E-03   -1.4930    
  11  Prefactor     39.859        32.810        .63489E-04   -1.4444    
  12  Prefactor     .10000E-03    2.0318        .11753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.131        9.6459        .91569E-04   -1.4833    
  14  Prefactor     7.5266        12.841        .14616E-03   -1.5159    
  15  Prefactor     .10000E-03    14.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    187.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .37618        .51056        .75208E-03   -1.5585    
  18  Prefactor     16.837        11.334        .97604E-04   -1.4887    
  19  norm          .10000E-03    3.1323        .14499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    109.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .61395        .24398        .38042E-03   -1.0739    
  22  Prefactor     1.1569        .14679        .18422E-03   -.87668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.48977e-10
Minuit parameter uncertainties:
  1  61.3388
  2  4.04514e-05
  3  2.37023
  4  3.37622e-07
  5  14.1517
  6  15.87
  7  6.09633e-06
  8  0.934639
  9  3.93679e-05
  10  17.876
  11  32.8253
  12  8.16564e-07
  13  9.64671
  14  12.8459
  15  1.3759e-06
  16  0.000513808
  17  0.510567
  18  11.3351
  19  1.10998e-06
  20  0.00016259
  21  0.244412
  22  0.146839
Done.

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

Extracting fit parameters...

4FGL J0115.8+2519
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  8.166e-07  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.157e+00  1.468e-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:  6.139e-01  2.444e-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: 5.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/502646/likelihoodResults_538963201_539222401_4FGL_J0115.8+2519_daily_bin1156.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) = 7159.29518194
delta logL = -0.00232133656391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7159.29286062
delta logL = -1.39652911457e-08

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7159.293     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      236 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    269.06        .11753E-02** at limit **
   2  Index         1.9207        7.3722        .50000       -.54014E-05
   3  Normalizat    .61395        .69465E-01    .38042E-03   -.32475E-03
   4  Prefactor     1.1569        .45348E-01    .18422E-03   -.64230E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.92071
  Normalizat = 0.613945
  Prefactor  = 1.15689
 **********
 **   18 **HESSE 
 **********

 FCN=   7159.293     FROM HESSE     STATUS=OK            29 CALLS      265 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3050        .23507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9207        5.7925        .50000       -.66347    
   3  Normalizat    .61395        .22031        .15217E-04   -1.0739    
   4  Prefactor     1.1569        .14399        .36845E-04   -.87668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8148e-10
Minuit parameter uncertainties:
  1  2.78431e-05
  2  5.02581
  3  0.220624
  4  0.144041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/502646': 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) = 7159.2928606
delta logL = 3.62615537597e-09

Extracting fit parameters...

4FGL J0115.8+2519
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  2.784e-05  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  1.921e+00  5.026e+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.157e+00  1.440e-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:  6.139e-01  2.206e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/502646/cmap_HighResolution_538963201_539222401_4FGL_J0115.8+2519_daily_bin1156.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.74e-03', job_status='DONE', photon_flux_upper_limit='5.02e-08', time_completed='2021-08-13 21:05:44.359954', job_id='502646', GAL2='1.16', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1628913944.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='3.63e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='1156' AND source_name='4FGL J0115.8+2519' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:05:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 502646: <4FGL_J0115.8+2519_daily_bin1156> in cluster <slac> Done

Job <4FGL_J0115.8+2519_daily_bin1156> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 13 20:50:26 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 20:50:32 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:50:32 2021
Terminated at Fri Aug 13 21:05:46 2021
Results reported at Fri Aug 13 21:05:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0115.8+2519_daily_bin1156 18.9539 25.3324 538963201 539222401 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 :                                   885.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            920 sec.

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

