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


Performing analysis on: 4FGL_J0114.8+1326_daily_bin49
RA = 18.7119, Dec = 13.4342
tmin = 252028801, tmax = 252288001
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='463456', job_status='RUN', time_executed='2021-08-13 18:44:37.145767', time_epoch_executed='1628905477.15' WHERE source_name='4FGL J0114.8+1326' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/463456

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/463456/ft1_4FGL_J0114.8+1326_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/463456/ft2_4FGL_J0114.8+1326_daily_bin49.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/463456/ft1_4FGL_J0114.8+1326_daily_bin49.fits outfile=/scratch/kocevski/463456/ft1_filteredMKT_4FGL_J0114.8+1326_daily_bin49.fits ra=18.7119 dec=13.4342 rad=12.0 tmin=252028801.0 tmax=252288001.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.62
user 1.24
sys 3.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/463456/ft2_4FGL_J0114.8+1326_daily_bin49.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/463456/ft2_4FGL_J0114.8+1326_daily_bin49.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/463456/ft1_filteredMKT_4FGL_J0114.8+1326_daily_bin49.fits evtable="EVENTS" outfile="/scratch/kocevski/463456/ft1_filtered_4FGL_J0114.8+1326_daily_bin49.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 3.59
user 0.34
sys 3.23

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/463456/ft1_filtered_4FGL_J0114.8+1326_daily_bin49.fits" evtable="EVENTS" scfile=/scratch/kocevski/463456/ft2_4FGL_J0114.8+1326_daily_bin49.fits sctable="SC_DATA" outfile=/scratch/kocevski/463456/ltcube_252028801_252288001_4FGL_J0114.8+1326_daily_bin49.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/463456/ft2_4FGL_J0114.8+1326_daily_bin49.fits
.....................!
real 16.66
user 12.76
sys 3.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/463456/ft1_filtered_4FGL_J0114.8+1326_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/463456/ft2_4FGL_J0114.8+1326_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/463456/ltcube_252028801_252288001_4FGL_J0114.8+1326_daily_bin49.fits outfile=/scratch/kocevski/463456/expmap_252028801_252288001_4FGL_J0114.8+1326_daily_bin49.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/463456/ltcube_252028801_252288001_4FGL_J0114.8+1326_daily_bin49.fits
.....................!
real 193.77
user 184.86
sys 8.43

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 J0114.8+1326 @ 18.7119 13.4342

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/463456/ft1_filtered_4FGL_J0114.8+1326_daily_bin49.fits scfile=/scratch/kocevski/463456/ft2_4FGL_J0114.8+1326_daily_bin49.fits outfile=/scratch/kocevski/463456/cmap_252028801_252288001_4FGL_J0114.8+1326_daily_bin49.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.7119 yref=13.4342 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 3.64
user 0.36
sys 3.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/463456/ft1_filtered_4FGL_J0114.8+1326_daily_bin49.fits scfile=/scratch/kocevski/463456/ft2_4FGL_J0114.8+1326_daily_bin49.fits outfile=/scratch/kocevski/463456/cmap_HighResolution_252028801_252288001_4FGL_J0114.8+1326_daily_bin49.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.7119 yref=13.4342 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 3.61
user 0.36
sys 3.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/463456/ft1_filtered_4FGL_J0114.8+1326_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/463456/ft2_4FGL_J0114.8+1326_daily_bin49.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/463456/Model_4FGL_J0114.8+1326_daily_bin49.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/463456/ft1_filtered_4FGL_J0114.8+1326_daily_bin49.fits.....................!
real 78.71
user 73.12
sys 5.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/463456/ft1_filtered_4FGL_J0114.8+1326_daily_bin49.fits', '/scratch/kocevski/463456/ft2_4FGL_J0114.8+1326_daily_bin49.fits', expMap='/scratch/kocevski/463456/expmap_252028801_252288001_4FGL_J0114.8+1326_daily_bin49.fits', expCube='/scratch/kocevski/463456/ltcube_252028801_252288001_4FGL_J0114.8+1326_daily_bin49.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/463456/Model_4FGL_J0114.8+1326_daily_bin49.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0114.8+1326'

4FGL J0114.8+1326
   Spectrum: PowerLaw
263    Prefactor:  5.554e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.106e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  1.461e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/463456/ft1_filtered_4FGL_J0114.8+1326_daily_bin49.fits
Spacecraft file(s): /scratch/kocevski/463456/ft2_4FGL_J0114.8+1326_daily_bin49.fits
Exposure map: /scratch/kocevski/463456/expmap_252028801_252288001_4FGL_J0114.8+1326_daily_bin49.fits
Exposure cube: /scratch/kocevski/463456/ltcube_252028801_252288001_4FGL_J0114.8+1326_daily_bin49.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/463456/Model_4FGL_J0114.8+1326_daily_bin49.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) = 7286.71733808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7664       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19013E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    16.265       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20920E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.217       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9493       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .42452E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.1710       1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.940       1.0000         .10000E-03   10000.    
    12 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    86.382       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.838       1.0000         .10000E-03   10000.    
    18 'norm      '    5.3155       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8935       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .93958       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1466       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7286.706     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2560 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7666        6.2839       -.45817E-06   -.17918E-03
   2  Prefactor     .10000E-03    9.4555        .31074E-06** at limit **
   3  Prefactor     .10742E-03    7.4190        .24007E-05** at limit **
   4  norm          16.267        9.2475       -.13398E-06   -.53534E-04
   5  Prefactor     .10000E-03    2.8519        .69369E-07** at limit **
   6  Prefactor     .10000E-03    7.4032       -.38608E-06** at limit **
   7  norm          10.218        9.2453       -.17379E-06   -.72749E-04
   8  Prefactor     5.9526        24.337       -.48230E-06   -.14580E-04
   9  Prefactor     .10002E-03    157.70        .82780E-05** at limit **
  10  norm          5.1681        2.1453        .39031E-07    .12070E-03
  11  Prefactor     42.860        34.586       -.13595E-06    .22942E-03
  12  norm          .10000E-03    .25781       -.14520E-05** at limit **
  13  Prefactor     .10000E-03    3.1911       -.11080E-07** at limit **
  14  Prefactor     .10000E-03    4.8919       -.12428E-05** at limit **
  15  Prefactor     .10000E-03    10.710       -.81066E-06** at limit **
  16  Prefactor     86.403        45.979        .12287E-05    .24806E-03
  17  Prefactor     17.848        39.263        .11579E-05    .95709E-04
  18  norm          5.3195        13.807       -.14340E-05   -.17170E-03
  19  Prefactor     4.8965        8.1430        .96057E-07    .38121E-04
  20  Normalizat    .93947        .18296        .16208E-05    .43350E-03
  21  Prefactor     1.1465        .13677       -.17581E-06    .60576E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.76657
  Prefactor  = 0.0001
  Prefactor  = 0.000107418
  norm       = 16.2669
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 10.2185
  Prefactor  = 5.95255
  Prefactor  = 0.000100024
  norm       = 5.16808
  Prefactor  = 42.8599
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 86.4026
  Prefactor  = 17.8479
  norm       = 5.31953
  Prefactor  = 4.89649
  Normalizat = 0.939473
  Prefactor  = 1.14651
 **********
 **   18 **HESSE 
 **********

 FCN=   7286.706     FROM HESSE     STATUS=OK           323 CALLS     2883 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7666        6.2919        .77125E-03   -1.5188    
   2  Prefactor     .10000E-03    9.4772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10742E-03    9.2461        .72792E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          16.267        9.2490        .99309E-04   -1.4901    
   5  Prefactor     .10000E-03    6.4304        .27857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.4340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.218        9.2492        .12536E-03   -1.5069    
   8  Prefactor     5.9526        24.343        .16463E-03   -1.5220    
   9  Prefactor     .10002E-03    161.19        .21236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.1681        2.1449        .77917E-04   -1.5253    
  11  Prefactor     42.860        34.808        .61178E-04   -1.4398    
  12  norm          .10000E-03    .26320        .75405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.1955        .14892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     86.403        46.152        .21613E-03   -1.3846    
  17  Prefactor     17.848        39.353        .94830E-04   -1.4863    
  18  norm          5.3195        13.885        .17432E-03   -1.5247    
  19  Prefactor     4.8965        8.1293        .18183E-03   -1.5265    
  20  Normalizat    .93947        .21371        .29630E-03   -.95087    
  21  Prefactor     1.1465        .15992        .20002E-03   -.87994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48613e-09
Minuit parameter uncertainties:
  1  6.29254
  2  3.6002e-05
  3  0.0165661
  4  9.24981
  5  0.000144656
  6  3.23337e-05
  7  9.25046
  8  24.0918
  9  0.00395021
  10  2.14489
  11  34.8241
  12  6.60287e-09
  13  3.15192e-06
  14  4.21879e-05
  15  5.66574e-05
  16  46.1709
  17  39.4098
  18  13.8932
  19  8.13115
  20  0.213906
  21  0.15999
Done.

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

Extracting fit parameters...

4FGL J0114.8+1326
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  3.152e-06  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.106e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  1.461e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.147e+00  1.600e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  9.395e-01  2.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 18.712 13.434
Photon Flux Upper Limit: 4.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/463456/likelihoodResults_252028801_252288001_4FGL_J0114.8+1326_daily_bin49.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) = 7286.7070752
delta logL = -0.00148418875051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7286.70559053
delta logL = 4.8700167099e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0784       1.0000          .0000       10.000    
     3 'Normalizat'    .93947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1465       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+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=   7286.706     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      245 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10272E-03    2.9531        .15361E-01** at limit **
   2  Index         1.9976        5.5476        .50000        .57623E-04
   3  Normalizat    .93947        .41831E-02    .29630E-03   -.18417E-05
   4  Prefactor     1.1465        .31046E-02    .20002E-03    .12505E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102721
  Index      = 1.99761
  Normalizat = 0.939472
  Prefactor  = 1.14651
 **********
 **   18 **HESSE 
 **********

 FCN=   7286.706     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10272E-03    38.183        .15772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9976        5.6267        .50000       -.64410    
   3  Normalizat    .93947        .15172E-01    .11852E-04   -.95087    
   4  Prefactor     1.1465        .11260E-01    .80006E-05   -.87994    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.335e-08
Minuit parameter uncertainties:
  1  0.0203982
  2  202.467
  3  0.0151721
  4  0.0112603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/463456': 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) = 7286.70558966
delta logL = 1.35467053042e-06

Extracting fit parameters...

4FGL J0114.8+1326
   Spectrum: PowerLaw
263    Prefactor:  1.027e-04  2.040e-02  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.998e+00  2.025e+02  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  1.461e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.147e+00  1.126e-02  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  9.395e-01  1.517e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 18.712 13.434

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/463456/cmap_HighResolution_252028801_252288001_4FGL_J0114.8+1326_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-03', job_status='DONE', photon_flux_upper_limit='4.22e-08', time_completed='2021-08-13 18:56:55.446502', job_id='463456', GAL2='1.15', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1628906215.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.35e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='49' AND source_name='4FGL J0114.8+1326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 18:56:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 463456: <4FGL_J0114.8+1326_daily_bin49> in cluster <slac> Done

Job <4FGL_J0114.8+1326_daily_bin49> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 13 18:40:24 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 18:41:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 18:41:25 2021
Terminated at Fri Aug 13 18:56:56 2021
Results reported at Fri Aug 13 18:56:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0114.8+1326_daily_bin49 18.7119 13.4342 252028801 252288001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0114.8+1326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   782.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            992 sec.

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

