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


Performing analysis on: 4FGL_J0114.8+1326_daily_bin1299
RA = 18.7119, Dec = 13.4342
tmin = 576028801, tmax = 576288001
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='474430', job_status='RUN', time_executed='2021-08-13 19:23:05.525830', time_epoch_executed='1628907785.53' WHERE source_name='4FGL J0114.8+1326' and cadence='daily' and bin_id='1299'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474430

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474430/ft1_4FGL_J0114.8+1326_daily_bin1299.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474430/ft2_4FGL_J0114.8+1326_daily_bin1299.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474430/ft1_4FGL_J0114.8+1326_daily_bin1299.fits outfile=/scratch/kocevski/474430/ft1_filteredMKT_4FGL_J0114.8+1326_daily_bin1299.fits ra=18.7119 dec=13.4342 rad=12.0 tmin=576028801.0 tmax=576288001.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 7.61
user 3.39
sys 4.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474430/ft1_filtered_4FGL_J0114.8+1326_daily_bin1299.fits" evtable="EVENTS" scfile=/scratch/kocevski/474430/ft2_4FGL_J0114.8+1326_daily_bin1299.fits sctable="SC_DATA" outfile=/scratch/kocevski/474430/ltcube_576028801_576288001_4FGL_J0114.8+1326_daily_bin1299.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/474430/ft2_4FGL_J0114.8+1326_daily_bin1299.fits
.....................!
real 20.28
user 15.38
sys 4.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474430/ft1_filtered_4FGL_J0114.8+1326_daily_bin1299.fits evtable="EVENTS" scfile=/scratch/kocevski/474430/ft2_4FGL_J0114.8+1326_daily_bin1299.fits sctable="SC_DATA" expcube=/scratch/kocevski/474430/ltcube_576028801_576288001_4FGL_J0114.8+1326_daily_bin1299.fits outfile=/scratch/kocevski/474430/expmap_576028801_576288001_4FGL_J0114.8+1326_daily_bin1299.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/474430/ltcube_576028801_576288001_4FGL_J0114.8+1326_daily_bin1299.fits
.....................!
real 196.61
user 186.01
sys 9.85

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/474430/ft1_filtered_4FGL_J0114.8+1326_daily_bin1299.fits scfile=/scratch/kocevski/474430/ft2_4FGL_J0114.8+1326_daily_bin1299.fits outfile=/scratch/kocevski/474430/cmap_576028801_576288001_4FGL_J0114.8+1326_daily_bin1299.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 4.39
user 0.39
sys 3.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474430/ft1_filtered_4FGL_J0114.8+1326_daily_bin1299.fits scfile=/scratch/kocevski/474430/ft2_4FGL_J0114.8+1326_daily_bin1299.fits outfile=/scratch/kocevski/474430/cmap_HighResolution_576028801_576288001_4FGL_J0114.8+1326_daily_bin1299.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 4.47
user 0.38
sys 4.00

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27375E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19625E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.8167       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    55.297       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10945E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    60.507       1.0000         .10000E-03   10000.    
    10 'norm      '    8.4971       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .81330       1.0000         .10000E-03   10000.    
    12 'norm      '    .90601       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8859       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.051       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    19.406       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4309       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1758       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=   7734.048     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2255 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.3879        .34027E-06** at limit **
   2  Prefactor     .10000E-03    45.414        .77628E-05** at limit **
   3  Prefactor     9.8219        11.104       -.53494E-05   -.34505E-04
   4  norm          .10000E-03    2.2082        .10516E-08** at limit **
   5  Prefactor     .10000E-03    3.4043        .10306E-06** at limit **
   6  Prefactor     .10000E-03    4.5643       -.37055E-07** at limit **
   7  norm          55.272        30.869        .24555E-04   -.77811E-05
   8  Prefactor     .10000E-03    37.683       -.40662E-05** at limit **
   9  Prefactor     60.410        128.68       -.83066E-04    .23619E-04
  10  norm          8.4996        4.4094        .43465E-05   -.50804E-03
  11  Prefactor     .92185        15.520       -.24287E-05    .18889E-03
  12  norm          .90555        .54790        .50879E-07    .52802E-03
  13  Prefactor     2.8849        13.098        .98820E-06   -.13489E-03
  14  Prefactor     .10000E-03    2.1417        .72449E-08** at limit **
  15  Prefactor     .10000E-03    7.0800        .28377E-07** at limit **
  16  Prefactor     23.818        71.449       -.26950E-04   -.16725E-05
  17  Prefactor     .10000E-03    10.745        .97797E-07** at limit **
  18  norm          19.468        18.665        .11151E-04   -.94562E-05
  19  Prefactor     .10000E-03    2.6578       -.29268E-07** at limit **
  20  Normalizat    1.4313        .21736        .34073E-05   -.21314E-03
  21  Prefactor     1.1755        .15008       -.32039E-05    .33476E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 9.82193
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 55.272
  Prefactor  = 0.0001
  Prefactor  = 60.41
  norm       = 8.4996
  Prefactor  = 0.921852
  norm       = 0.905549
  Prefactor  = 2.88493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.8177
  Prefactor  = 0.0001
  norm       = 19.4676
  Prefactor  = 0.0001
  Normalizat = 1.43132
  Prefactor  = 1.17551
 **********
 **   18 **HESSE 
 **********

 FCN=   7734.048     FROM HESSE     STATUS=OK           315 CALLS     2570 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    27.485        .39643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    45.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.8219        11.105        .12790E-03   -1.5081    
   4  norm          .10000E-03    2.2087        .12763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4211        .15841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.5716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          55.272        30.912        .53942E-04   -1.4220    
   8  Prefactor     .10000E-03    37.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     60.410        128.99        .51581E-04   -1.4152    
  10  norm          8.4996        4.4233        .10421E-03   -1.5125    
  11  Prefactor     .92185        157.35        .65859E-02   -1.5516    
  12  norm          .90555        .55448        .48148E-04   -1.5518    
  13  Prefactor     2.8849        13.067        .23923E-03   -1.5368    
  14  Prefactor     .10000E-03    2.1436        .12568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.1077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.818        71.500        .81678E-04   -1.4732    
  17  Prefactor     .10000E-03    10.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          19.468        18.667        .90919E-04   -1.4825    
  19  Prefactor     .10000E-03    2.6792        .14001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4313        .25894        .30926E-03   -.79727    
  21  Prefactor     1.1755        .17870        .23460E-03   -.87088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20615e-09
Minuit parameter uncertainties:
  1  0.000524279
  2  7.10411e-06
  3  11.107
  4  1.18974e-07
  5  2.06547e-05
  6  3.46401e-07
  7  30.9211
  8  2.11892e-05
  9  129.592
  10  4.42351
  11  24.151
  12  0.554483
  13  12.2839
  14  2.27687e-06
  15  6.33534e-06
  16  71.7586
  17  2.43947e-06
  18  18.6722
  19  6.73144e-06
  20  0.259182
  21  0.178794
Done.

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

Extracting fit parameters...

4FGL J0114.8+1326
   Spectrum: PowerLaw
263    Prefactor:  2.885e+00  1.228e+01  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.176e+00  1.788e-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:  1.431e+00  2.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/474430/likelihoodResults_576028801_576288001_4FGL_J0114.8+1326_daily_bin1299.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) = 7733.86938746
delta logL = 0.178547565997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7733.85098071
delta logL = 0.196954310388

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7959       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1424       1.0000          .0000       10.000    
     3 'Normalizat'    1.3951       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1886       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7733.851     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      285 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7818        206.70        .87468E-03   -.91425E-03
   2  Index         3.1458        5.4782        .85924E-02   -.12405E-03
   3  Normalizat    1.3949        .22159        .31266E-03   -.80432E-04
   4  Prefactor     1.1888        .15601        .23346E-03   -.16559E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.7818
  Index      = 3.14583
  Normalizat = 1.39493
  Prefactor  = 1.18877
 **********
 **   18 **HESSE 
 **********

 FCN=   7733.851     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7818        6.4655        .34987E-04   -1.5441    
   2  Index         3.1458        1.6545        .34370E-03   -.37991    
   3  Normalizat    1.3949        .26069        .12506E-04   -.80775    
   4  Prefactor     1.1888        .17830        .46693E-04   -.86678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71572e-10
Minuit parameter uncertainties:
  1  6.46804
  2  1.69163
  3  0.260934
  4  0.178394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474430': 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) = 7733.85097747
delta logL = 0.196957548751

Extracting fit parameters...

4FGL J0114.8+1326
   Spectrum: PowerLaw
263    Prefactor:  1.782e+00  6.468e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  3.146e+00  1.692e+00  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.189e+00  1.784e-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:  1.395e+00  2.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/474430/cmap_HighResolution_576028801_576288001_4FGL_J0114.8+1326_daily_bin1299.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-03', job_status='DONE', photon_flux_upper_limit='9.19e-08', time_completed='2021-08-13 19:35:54.801865', job_id='474430', GAL2='1.19', fit_tolerance='1e-08', EG2='1.39', EG='1.43', time_epoch_completed='1628908554.8', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='1.97e-01', ts2='0.47', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1299' AND source_name='4FGL J0114.8+1326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 19:35:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 474430: <4FGL_J0114.8+1326_daily_bin1299> in cluster <slac> Done

Job <4FGL_J0114.8+1326_daily_bin1299> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 13 19:20:29 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 19:21:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 19:21:48 2021
Terminated at Fri Aug 13 19:35:56 2021
Results reported at Fri Aug 13 19:35:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0114.8+1326_daily_bin1299 18.7119 13.4342 576028801 576288001 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 :                                   824.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            927 sec.

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

