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


Performing analysis on: 4FGL_J0114.8+1326_daily_bin10
RA = 18.7119, Dec = 13.4342
tmin = 241920001, tmax = 242179201
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='463401', job_status='RUN', time_executed='2021-08-13 18:44:17.414387', time_epoch_executed='1628905457.41' WHERE source_name='4FGL J0114.8+1326' and cadence='daily' and bin_id='10'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/463401

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/463401/ft1_4FGL_J0114.8+1326_daily_bin10.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/463401/ft2_4FGL_J0114.8+1326_daily_bin10.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/463401/ft1_4FGL_J0114.8+1326_daily_bin10.fits outfile=/scratch/kocevski/463401/ft1_filteredMKT_4FGL_J0114.8+1326_daily_bin10.fits ra=18.7119 dec=13.4342 rad=12.0 tmin=241920001.0 tmax=242179201.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 9.05
user 1.25
sys 7.74

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/463401/ft1_filtered_4FGL_J0114.8+1326_daily_bin10.fits" evtable="EVENTS" scfile=/scratch/kocevski/463401/ft2_4FGL_J0114.8+1326_daily_bin10.fits sctable="SC_DATA" outfile=/scratch/kocevski/463401/ltcube_241920001_242179201_4FGL_J0114.8+1326_daily_bin10.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/463401/ft2_4FGL_J0114.8+1326_daily_bin10.fits
.....................!
real 21.88
user 12.99
sys 8.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/463401/ft1_filtered_4FGL_J0114.8+1326_daily_bin10.fits evtable="EVENTS" scfile=/scratch/kocevski/463401/ft2_4FGL_J0114.8+1326_daily_bin10.fits sctable="SC_DATA" expcube=/scratch/kocevski/463401/ltcube_241920001_242179201_4FGL_J0114.8+1326_daily_bin10.fits outfile=/scratch/kocevski/463401/expmap_241920001_242179201_4FGL_J0114.8+1326_daily_bin10.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/463401/ltcube_241920001_242179201_4FGL_J0114.8+1326_daily_bin10.fits
.....................!
real 200.91
user 185.68
sys 14.57

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/463401/ft1_filtered_4FGL_J0114.8+1326_daily_bin10.fits scfile=/scratch/kocevski/463401/ft2_4FGL_J0114.8+1326_daily_bin10.fits outfile=/scratch/kocevski/463401/cmap_241920001_242179201_4FGL_J0114.8+1326_daily_bin10.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 8.01
user 0.39
sys 7.55

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/463401/ft1_filtered_4FGL_J0114.8+1326_daily_bin10.fits scfile=/scratch/kocevski/463401/ft2_4FGL_J0114.8+1326_daily_bin10.fits outfile=/scratch/kocevski/463401/cmap_HighResolution_241920001_242179201_4FGL_J0114.8+1326_daily_bin10.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 8.02
user 0.40
sys 7.58

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/463401/ft1_filtered_4FGL_J0114.8+1326_daily_bin10.fits', '/scratch/kocevski/463401/ft2_4FGL_J0114.8+1326_daily_bin10.fits', expMap='/scratch/kocevski/463401/expmap_241920001_242179201_4FGL_J0114.8+1326_daily_bin10.fits', expCube='/scratch/kocevski/463401/ltcube_241920001_242179201_4FGL_J0114.8+1326_daily_bin10.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/463401/Model_4FGL_J0114.8+1326_daily_bin10.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/463401/ft1_filtered_4FGL_J0114.8+1326_daily_bin10.fits
Spacecraft file(s): /scratch/kocevski/463401/ft2_4FGL_J0114.8+1326_daily_bin10.fits
Exposure map: /scratch/kocevski/463401/expmap_241920001_242179201_4FGL_J0114.8+1326_daily_bin10.fits
Exposure cube: /scratch/kocevski/463401/ltcube_241920001_242179201_4FGL_J0114.8+1326_daily_bin10.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/463401/Model_4FGL_J0114.8+1326_daily_bin10.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) = 5557.35161421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17474E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.5623       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0189       1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.215       1.0000         .10000E-03   10000.    
     7 'norm      '    12.700       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.655       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.7572       1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.820       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1025       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0378       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .59035E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.773       1.0000         .10000E-03   10000.    
    18 'norm      '    5.5721       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.188       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97002       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .86113       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=   5557.243     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2198 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.4465       -.86204E-07** at limit **
   2  Prefactor     .10000E-03    13.794        .35890E-06** at limit **
   3  Prefactor     .10000E-03    20.407       -.53724E-05** at limit **
   4  norm          1.5703        25.047        .34719E-05   -.41231E-04
   5  Prefactor     9.0157        6.4581       -.35513E-06    .14667E-04
   6  Prefactor     43.212        22.240       -.49479E-06    .38426E-04
   7  norm          12.701        12.616       -.42364E-07    .40579E-05
   8  Prefactor     18.651        32.125       -.51881E-07    .97785E-05
   9  Prefactor     .10000E-03    24.674        .28879E-06** at limit **
  10  norm          1.7572        1.6863        .35985E-07    .29142E-04
  11  Prefactor     36.821        29.798        .19482E-06    .63799E-05
  12  norm          1.1025        .57974        .40427E-07    .14259E-03
  13  Prefactor     .10000E-03    3.2255        .48191E-07** at limit **
  14  Prefactor     4.0380        4.4354        .12553E-06    .24335E-04
  15  Prefactor     .10000E-03    9.7393       -.13353E-05** at limit **
  16  Prefactor     .10000E-03    19.870       -.18740E-06** at limit **
  17  Prefactor     38.783        37.639        .16174E-06   -.15128E-04
  18  norm          5.5722        10.624       -.75061E-07    .30272E-05
  19  Prefactor     17.188        9.0893       -.47289E-07    .99698E-05
  20  Normalizat    .96997        .19216       -.67895E-06    .13030E-03
  21  Prefactor     .86114        .13990        .89578E-06    .41010E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.57034
  Prefactor  = 9.01568
  Prefactor  = 43.2117
  norm       = 12.7006
  Prefactor  = 18.651
  Prefactor  = 0.0001
  norm       = 1.75719
  Prefactor  = 36.8212
  norm       = 1.10251
  Prefactor  = 0.0001
  Prefactor  = 4.03805
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 38.7833
  norm       = 5.5722
  Prefactor  = 17.1883
  Normalizat = 0.969974
  Prefactor  = 0.861137
 **********
 **   18 **HESSE 
 **********

 FCN=   5557.243     FROM HESSE     STATUS=OK           323 CALLS     2521 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.4514        .13517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.691        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.5703        28.229        .17019E-02   -1.5457    
   5  Prefactor     9.0157        6.4292        .13346E-03   -1.5107    
   6  Prefactor     43.212        22.867        .60983E-04   -1.4392    
   7  norm          12.701        12.617        .56200E-03   -1.4995    
   8  Prefactor     18.651        32.139        .92732E-04   -1.4844    
   9  Prefactor     .10000E-03    24.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7572        1.6706        .91762E-04   -1.5443    
  11  Prefactor     36.821        29.789        .66048E-04   -1.4494    
  12  norm          1.1025        .57784        .39360E-04   -1.5498    
  13  Prefactor     .10000E-03    3.2337        .13075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0380        4.4301        .15989E-03   -1.5306    
  15  Prefactor     .10000E-03    36.233        .36611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.783        37.619        .64368E-04   -1.4462    
  18  norm          5.5722        10.620        .17019E-03   -1.5236    
  19  Prefactor     17.188        9.0917        .96606E-04   -1.4879    
  20  Normalizat    .96997        .21769        .26425E-03   -.94043    
  21  Prefactor     .86114        .15830        .20256E-03   -.97513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96253e-10
Minuit parameter uncertainties:
  1  1.91258e-06
  2  1.56009e-05
  3  5.897e-05
  4  13.323
  5  6.42968
  6  22.8712
  7  12.6199
  8  32.1692
  9  4.37782e-05
  10  1.6706
  11  29.8009
  12  0.577843
  13  3.36354e-07
  14  4.43043
  15  0.000805034
  16  2.77532e-05
  17  37.6424
  18  10.624
  19  9.09241
  20  0.21789
  21  0.158385
Done.

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

Extracting fit parameters...

4FGL J0114.8+1326
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  3.364e-07  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:  8.611e-01  1.584e-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.700e-01  2.179e-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.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/463401/likelihoodResults_241920001_242179201_4FGL_J0114.8+1326_daily_bin10.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) = 5557.24447263
delta logL = -0.00146433129703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5557.24300844
delta logL = -1.44440491567e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0821       1.0000          .0000       10.000    
     3 'Normalizat'    .97009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86106       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=   5557.243     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      235 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10254E-03    3.9057        .13373E-01** at limit **
   2  Index         1.9970        5.9320        .50000        .45971E-04
   3  Normalizat    .96997        .50129E-02    .26425E-03   -.15187E-04
   4  Prefactor     .86114        .36618E-02    .20257E-03   -.19587E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102541
  Index      = 1.99696
  Normalizat = 0.969973
  Prefactor  = 0.861138
 **********
 **   18 **HESSE 
 **********

 FCN=   5557.243     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10254E-03    52.734        .13712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9970        6.7118        .50000       -.64426    
   3  Normalizat    .96997        .18653E-01    .10570E-04   -.94043    
   4  Prefactor     .86114        .13625E-01    .81026E-05   -.97513    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.41713e-08
Minuit parameter uncertainties:
  1  0.0231735
  2  286.623
  3  0.0186531
  4  0.0136255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/463401': 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) = 5557.24300722
delta logL = 1.07921187009e-06

Extracting fit parameters...

4FGL J0114.8+1326
   Spectrum: PowerLaw
263    Prefactor:  1.025e-04  2.317e-02  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.997e+00  2.866e+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:  8.611e-01  1.363e-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.700e-01  1.865e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/463401/cmap_HighResolution_241920001_242179201_4FGL_J0114.8+1326_daily_bin10.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.13e-03', job_status='DONE', photon_flux_upper_limit='4.13e-08', time_completed='2021-08-13 18:56:04.098266', job_id='463401', GAL2='0.86', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1628906164.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='10' AND source_name='4FGL J0114.8+1326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 18:56:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 463401: <4FGL_J0114.8+1326_daily_bin10> in cluster <slac> Done

Job <4FGL_J0114.8+1326_daily_bin10> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 13 18:40:21 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 18:40:47 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:40:47 2021
Terminated at Fri Aug 13 18:56:06 2021
Results reported at Fri Aug 13 18:56:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0114.8+1326_daily_bin10 18.7119 13.4342 241920001 242179201 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 :                                   816.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            945 sec.

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

