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


Performing analysis on: 4FGL_J0118.7-0848_daily_bin945
RA = 19.6884, Dec = -8.808
tmin = 484272001, tmax = 484531201
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='534764', job_status='RUN', time_executed='2021-08-13 22:44:32.126509', time_epoch_executed='1628919872.13' WHERE source_name='4FGL J0118.7-0848' and cadence='daily' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/534764

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/534764/ft1_4FGL_J0118.7-0848_daily_bin945.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/534764/ft2_4FGL_J0118.7-0848_daily_bin945.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/534764/ft1_4FGL_J0118.7-0848_daily_bin945.fits outfile=/scratch/kocevski/534764/ft1_filteredMKT_4FGL_J0118.7-0848_daily_bin945.fits ra=19.6884 dec=-8.808 rad=12.0 tmin=484272001.0 tmax=484531201.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 5.87
user 4.86
sys 0.95

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/534764/ft2_4FGL_J0118.7-0848_daily_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/534764/ft2_4FGL_J0118.7-0848_daily_bin945.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/534764/ft1_filteredMKT_4FGL_J0118.7-0848_daily_bin945.fits evtable="EVENTS" outfile="/scratch/kocevski/534764/ft1_filtered_4FGL_J0118.7-0848_daily_bin945.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 1.22
user 0.32
sys 0.87

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/534764/ft1_filtered_4FGL_J0118.7-0848_daily_bin945.fits" evtable="EVENTS" scfile=/scratch/kocevski/534764/ft2_4FGL_J0118.7-0848_daily_bin945.fits sctable="SC_DATA" outfile=/scratch/kocevski/534764/ltcube_484272001_484531201_4FGL_J0118.7-0848_daily_bin945.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/534764/ft2_4FGL_J0118.7-0848_daily_bin945.fits
.....................!
real 14.12
user 12.86
sys 1.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/534764/ft1_filtered_4FGL_J0118.7-0848_daily_bin945.fits evtable="EVENTS" scfile=/scratch/kocevski/534764/ft2_4FGL_J0118.7-0848_daily_bin945.fits sctable="SC_DATA" expcube=/scratch/kocevski/534764/ltcube_484272001_484531201_4FGL_J0118.7-0848_daily_bin945.fits outfile=/scratch/kocevski/534764/expmap_484272001_484531201_4FGL_J0118.7-0848_daily_bin945.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/534764/ltcube_484272001_484531201_4FGL_J0118.7-0848_daily_bin945.fits
.....................!
real 194.38
user 185.95
sys 7.16

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J0118.7-0848 @ 19.6884 -8.808

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/534764/ft1_filtered_4FGL_J0118.7-0848_daily_bin945.fits scfile=/scratch/kocevski/534764/ft2_4FGL_J0118.7-0848_daily_bin945.fits outfile=/scratch/kocevski/534764/cmap_484272001_484531201_4FGL_J0118.7-0848_daily_bin945.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=19.6884 yref=-8.808 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 1.25
user 0.37
sys 0.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/534764/ft1_filtered_4FGL_J0118.7-0848_daily_bin945.fits scfile=/scratch/kocevski/534764/ft2_4FGL_J0118.7-0848_daily_bin945.fits outfile=/scratch/kocevski/534764/cmap_HighResolution_484272001_484531201_4FGL_J0118.7-0848_daily_bin945.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=19.6884 yref=-8.808 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 1.26
user 0.39
sys 0.84

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/534764/ft1_filtered_4FGL_J0118.7-0848_daily_bin945.fits evtable="EVENTS" scfile=/scratch/kocevski/534764/ft2_4FGL_J0118.7-0848_daily_bin945.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/534764/Model_4FGL_J0118.7-0848_daily_bin945.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/534764/ft1_filtered_4FGL_J0118.7-0848_daily_bin945.fits.....................!
real 57.98
user 55.56
sys 2.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/534764/ft1_filtered_4FGL_J0118.7-0848_daily_bin945.fits', '/scratch/kocevski/534764/ft2_4FGL_J0118.7-0848_daily_bin945.fits', expMap='/scratch/kocevski/534764/expmap_484272001_484531201_4FGL_J0118.7-0848_daily_bin945.fits', expCube='/scratch/kocevski/534764/ltcube_484272001_484531201_4FGL_J0118.7-0848_daily_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/534764/Model_4FGL_J0118.7-0848_daily_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0118.7-0848'

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  4.571e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.596e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/534764/ft1_filtered_4FGL_J0118.7-0848_daily_bin945.fits
Spacecraft file(s): /scratch/kocevski/534764/ft2_4FGL_J0118.7-0848_daily_bin945.fits
Exposure map: /scratch/kocevski/534764/expmap_484272001_484531201_4FGL_J0118.7-0848_daily_bin945.fits
Exposure cube: /scratch/kocevski/534764/ltcube_484272001_484531201_4FGL_J0118.7-0848_daily_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/534764/Model_4FGL_J0118.7-0848_daily_bin945.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) = 5533.42670275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.687       1.0000         .10000E-03   10000.    
     3 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1115       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    92.101       1.0000         .10000E-03   10000.    
     7 'norm      '    13.662       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2333       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20259       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.3548       1.0000         .10000E-03   10000.    
    13 'norm      '    31.198       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.912       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .95892       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .97670       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5533.315     FROM MIGRAD    STATUS=CONVERGED    344 CALLS     1798 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7653       -.19038E-07** at limit **
   2  norm          10.689        5.0291       -.97605E-06   -.11618E-04
   3  norm          .10000E-03    1.7276       -.65968E-07** at limit **
   4  Prefactor     9.1031        19.584       -.12964E-04    .39745E-05
   5  Prefactor     .10000E-03    30.158        .12467E-04** at limit **
   6  Prefactor     92.095        38.985       -.49689E-05    .75540E-04
   7  norm          13.662        2.8356       -.54454E-06    .34479E-03
   8  Prefactor     .10000E-03    19.734       -.12826E-05** at limit **
   9  Prefactor     3.2321        8.7545       -.38112E-05   -.24417E-03
  10  Prefactor     .19909        1.6432       -.12988E-05    .62464E-04
  11  Prefactor     .10000E-03    31.699       -.10541E-04** at limit **
  12  Prefactor     8.3505        10.874        .13885E-05    .11788E-03
  13  norm          31.200        24.295        .27067E-05    .16967E-03
  14  norm          .10000E-03    .38281       -.65865E-07** at limit **
  15  norm          .10000E-03    1.6820        .20104E-06** at limit **
  16  Prefactor     24.795        64.197       -.21733E-03    .39382E-04
  17  Normalizat    .95875        .19221        .10831E-04    .94410E-04
  18  Prefactor     .97695        .18556        .29971E-05    .39244E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.6887
  norm       = 0.0001
  Prefactor  = 9.10312
  Prefactor  = 0.0001
  Prefactor  = 92.0953
  norm       = 13.6616
  Prefactor  = 0.0001
  Prefactor  = 3.23212
  Prefactor  = 0.199086
  Prefactor  = 0.0001
  Prefactor  = 8.35045
  norm       = 31.2001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 24.7953
  Normalizat = 0.958754
  Prefactor  = 0.976949
 **********
 **   18 **HESSE 
 **********

 FCN=   5533.315     FROM HESSE     STATUS=OK           240 CALLS     2038 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7876        .96334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.689        5.0269        .10932E-03   -1.5054    
   3  norm          .10000E-03    1.7305        .95455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.1031        19.590        .13278E-03   -1.5104    
   5  Prefactor     .10000E-03    30.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     92.095        38.932        .41874E-04   -1.3786    
   7  norm          13.662        2.8294        .53744E-04   -1.4969    
   8  Prefactor     .10000E-03    19.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2321        8.7150        .22527E-03   -1.5348    
  10  Prefactor     .19909        6.3621        .18292E-02   -1.5619    
  11  Prefactor     .10000E-03    31.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.3505        10.877        .13869E-03   -1.5130    
  13  norm          31.200        24.319        .71735E-04   -1.4590    
  14  norm          .10000E-03    .38938        .44901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.6856        .94200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.795        64.260        .80257E-04   -1.4712    
  17  Normalizat    .95875        .22030        .26203E-03   -.94425    
  18  Prefactor     .97695        .21333        .25414E-03   -.93502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03986e-09
Minuit parameter uncertainties:
  1  3.65713e-06
  2  5.02713
  3  7.89306e-07
  4  19.6033
  5  4.04502e-05
  6  38.9425
  7  2.82938
  8  1.04802e-05
  9  8.71846
  10  2.25056
  11  0.000103667
  12  10.8791
  13  24.327
  14  1.01721e-05
  15  1.95308e-05
  16  64.4405
  17  0.220511
  18  0.213513
Done.

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

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  1.037e-04  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.596e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  9.769e-01  2.135e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  9.588e-01  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 19.688 -8.808
Photon Flux Upper Limit: 8.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/534764/likelihoodResults_484272001_484531201_4FGL_J0118.7-0848_daily_bin945.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) = 5533.31504973
delta logL = -0.000149766525283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5533.31490012
delta logL = -1.51054337039e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10514E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5811       1.0000          .0000       10.000    
     3 'Normalizat'    .95879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97694       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5533.315     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      195 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.473        .90712E-02** at limit **
   2  Index         2.5957        6.2789        .50000       -.42686E-05
   3  Normalizat    .95876        .18561        .45649E-01    .17065E-04
   4  Prefactor     .97694        .18250        .45978E-01    .13678E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.5957
  Normalizat = 0.958758
  Prefactor  = 0.976944
 **********
 **   18 **HESSE 
 **********

 FCN=   5533.315     FROM HESSE     STATUS=OK            33 CALLS      228 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5957        6.2968        .50000       -.50164    
   3  Normalizat    .95876        .21311        .26203E-03   -.94425    
   4  Prefactor     .97694        .20956        .25414E-03   -.93502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92519e-11
Minuit parameter uncertainties:
  1  1.50022e-05
  2  4.56172
  3  0.213296
  4  0.209737
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/534764': 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) = 5533.31489996
delta logL = 2.94676283374e-10

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  1.500e-05  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.596e+00  4.562e+00  0.000e+00  1.000e+01 (-1.000e+00)
296        Scale:  7.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  9.769e-01  2.097e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  9.588e-01  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 19.688 -8.808

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/534764/cmap_HighResolution_484272001_484531201_4FGL_J0118.7-0848_daily_bin945.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', job_status='DONE', photon_flux_upper_limit='8.21e-08', time_completed='2021-08-13 22:54:12.138641', job_id='534764', GAL2='0.98', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1628920452.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.95e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='945' AND source_name='4FGL J0118.7-0848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 22:54:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 534764: <4FGL_J0118.7-0848_daily_bin945> in cluster <slac> Done

Job <4FGL_J0118.7-0848_daily_bin945> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 22:40:25 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 22:40:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 22:40:34 2021
Terminated at Fri Aug 13 22:54:12 2021
Results reported at Fri Aug 13 22:54:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0118.7-0848_daily_bin945 19.6884 -8.808 484272001 484531201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0118.7-0848 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   586.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            827 sec.

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

