/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 25 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 = 7483
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0118.7-0848_daily_bin684
RA = 19.6884, Dec = -8.808
tmin = 416620801, tmax = 416880001
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='533231', job_status='RUN', time_executed='2021-08-13 22:38:29.924000', time_epoch_executed='1628919509.92' WHERE source_name='4FGL J0118.7-0848' and cadence='daily' and bin_id='684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/533231

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/533231/ft1_4FGL_J0118.7-0848_daily_bin684.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/533231/ft2_4FGL_J0118.7-0848_daily_bin684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/533231/ft1_4FGL_J0118.7-0848_daily_bin684.fits outfile=/scratch/kocevski/533231/ft1_filteredMKT_4FGL_J0118.7-0848_daily_bin684.fits ra=19.6884 dec=-8.808 rad=12.0 tmin=416620801.0 tmax=416880001.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 13.34
user 4.95
sys 8.33

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/533231/ft2_4FGL_J0118.7-0848_daily_bin684.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/533231/ft1_filteredMKT_4FGL_J0118.7-0848_daily_bin684.fits evtable="EVENTS" outfile="/scratch/kocevski/533231/ft1_filtered_4FGL_J0118.7-0848_daily_bin684.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.63
user 0.36
sys 8.23

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/533231/ft1_filtered_4FGL_J0118.7-0848_daily_bin684.fits" evtable="EVENTS" scfile=/scratch/kocevski/533231/ft2_4FGL_J0118.7-0848_daily_bin684.fits sctable="SC_DATA" outfile=/scratch/kocevski/533231/ltcube_416620801_416880001_4FGL_J0118.7-0848_daily_bin684.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/533231/ft2_4FGL_J0118.7-0848_daily_bin684.fits
.....................!
real 22.44
user 13.05
sys 9.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/533231/ft1_filtered_4FGL_J0118.7-0848_daily_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/533231/ft2_4FGL_J0118.7-0848_daily_bin684.fits sctable="SC_DATA" expcube=/scratch/kocevski/533231/ltcube_416620801_416880001_4FGL_J0118.7-0848_daily_bin684.fits outfile=/scratch/kocevski/533231/expmap_416620801_416880001_4FGL_J0118.7-0848_daily_bin684.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/533231/ltcube_416620801_416880001_4FGL_J0118.7-0848_daily_bin684.fits
.....................!
real 202.49
user 186.38
sys 15.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 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/533231/ft1_filtered_4FGL_J0118.7-0848_daily_bin684.fits scfile=/scratch/kocevski/533231/ft2_4FGL_J0118.7-0848_daily_bin684.fits outfile=/scratch/kocevski/533231/cmap_416620801_416880001_4FGL_J0118.7-0848_daily_bin684.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 8.40
user 0.37
sys 7.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/533231/ft1_filtered_4FGL_J0118.7-0848_daily_bin684.fits scfile=/scratch/kocevski/533231/ft2_4FGL_J0118.7-0848_daily_bin684.fits outfile=/scratch/kocevski/533231/cmap_HighResolution_416620801_416880001_4FGL_J0118.7-0848_daily_bin684.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 8.51
user 0.37
sys 8.10

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/533231/ft1_filtered_4FGL_J0118.7-0848_daily_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/533231/ft2_4FGL_J0118.7-0848_daily_bin684.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/533231/Model_4FGL_J0118.7-0848_daily_bin684.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/533231/ft1_filtered_4FGL_J0118.7-0848_daily_bin684.fits.....................!
real 43.37
user 30.68
sys 12.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/533231/ft1_filtered_4FGL_J0118.7-0848_daily_bin684.fits', '/scratch/kocevski/533231/ft2_4FGL_J0118.7-0848_daily_bin684.fits', expMap='/scratch/kocevski/533231/expmap_416620801_416880001_4FGL_J0118.7-0848_daily_bin684.fits', expCube='/scratch/kocevski/533231/ltcube_416620801_416880001_4FGL_J0118.7-0848_daily_bin684.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/533231/Model_4FGL_J0118.7-0848_daily_bin684.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/533231/ft1_filtered_4FGL_J0118.7-0848_daily_bin684.fits
Spacecraft file(s): /scratch/kocevski/533231/ft2_4FGL_J0118.7-0848_daily_bin684.fits
Exposure map: /scratch/kocevski/533231/expmap_416620801_416880001_4FGL_J0118.7-0848_daily_bin684.fits
Exposure cube: /scratch/kocevski/533231/ltcube_416620801_416880001_4FGL_J0118.7-0848_daily_bin684.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/533231/Model_4FGL_J0118.7-0848_daily_bin684.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) = 2374.73772121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7317       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.904       1.0000         .10000E-03   10000.    
     6 'Prefactor '    60.152       1.0000         .10000E-03   10000.    
     7 'norm      '    13.346       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0368       1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.934       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9728       1.0000         .10000E-03   10000.    
    13 'norm      '    5.5936       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    301.88       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .93631       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .93340       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=   2374.729     FROM MIGRAD    STATUS=CONVERGED    346 CALLS     1687 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7315        5.3754       -.13212E-05   -.16741E-02
   2  norm          .10000E-03    4.2941       -.13599E-05** at limit **
   3  norm          .10000E-03    7.5592       -.95354E-06** at limit **
   4  Prefactor     .10000E-03    17.554       -.89538E-06** at limit **
   5  Prefactor     18.932        64.153        .58350E-04    .20602E-04
   6  Prefactor     60.154        48.081        .25378E-05    .72967E-05
   7  norm          13.346        4.0653        .42652E-07   -.10628E-04
   8  Prefactor     .10000E-03    40.600        .17362E-05** at limit **
   9  Prefactor     .10000E-03    7.2146        .49989E-06** at limit **
  10  Prefactor     4.0374        8.3335        .25605E-05   -.91663E-04
  11  Prefactor     45.924        91.365       -.13839E-04    .80923E-05
  12  Prefactor     5.9721        16.350        .23333E-05   -.63743E-05
  13  norm          5.5731        51.841       -.54960E-04   -.20140E-04
  14  norm          .10000E-03    1.6037        .16510E-06** at limit **
  15  norm          .10000E-03    10.365        .14262E-05** at limit **
  16  Prefactor     301.91        187.70        .18998E-04    .21851E-05
  17  Normalizat    .93619        .28826       -.43912E-05    .85163E-04
  18  Prefactor     .93352        .27346        .27820E-05   -.52036E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.73148
  norm       = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9318
  Prefactor  = 60.1542
  norm       = 13.346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.03738
  Prefactor  = 45.9239
  Prefactor  = 5.97214
  norm       = 5.57313
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 301.915
  Normalizat = 0.936189
  Prefactor  = 0.933522
 **********
 **   18 **HESSE 
 **********

 FCN=   2374.729     FROM HESSE     STATUS=OK           248 CALLS     1935 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7315        5.4144        .57882E-03   -1.5273    
   2  norm          .10000E-03    4.3563        .98709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.6071        .13081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.932        63.990        .92119E-04   -1.4837    
   6  Prefactor     60.154        48.106        .51732E-04   -1.4155    
   7  norm          13.346        4.0656        .52281E-04   -1.4977    
   8  Prefactor     .10000E-03    40.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.2635        .12781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.0374        8.2548        .17446E-03   -1.5306    
  11  Prefactor     45.924        90.683        .59159E-04   -1.4352    
  12  Prefactor     5.9721        16.341        .16430E-03   -1.5219    
  13  norm          5.5731        51.731        .16986E-03   -1.5236    
  14  norm          .10000E-03    1.6771        .12024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.526        .15321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     301.91        187.61        .11689E-03   -1.2215    
  17  Normalizat    .93619        .32744        .26544E-03   -.95200    
  18  Prefactor     .93352        .31146        .25324E-03   -.94979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36587e-09
Minuit parameter uncertainties:
  1  5.41494
  2  0.000291313
  3  6.37428e-05
  4  0.000106201
  5  64.2232
  6  48.1375
  7  4.06568
  8  1.9126e-05
  9  6.32866e-06
  10  8.25713
  11  90.9574
  12  16.3529
  13  33.9977
  14  1.62879e-05
  15  0.000326744
  16  187.984
  17  0.328138
  18  0.31206
Done.

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

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  4.592e+01  9.096e+01  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.335e-01  3.121e-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.362e-01  3.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.36
Ra Dec: 19.688 -8.808
Photon Flux Upper Limit: 2.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.93e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/533231/likelihoodResults_416620801_416880001_4FGL_J0118.7-0848_daily_bin684.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) = 2374.69637279
delta logL = 0.0326498990958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2374.67538524
delta logL = 0.0536374466687

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2374.675     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      271 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.587        161.78        .77733E-04    .88790E-04
   2  Index         3.1308        2.8090        .80038E-02    .48285E-04
   3  Normalizat    .91973        .32551        .26744E-03   -.13992E-03
   4  Prefactor     .94679        .31252        .25163E-03   -.47440E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.5865
  Index      = 3.13082
  Normalizat = 0.919734
  Prefactor  = 0.946785
 **********
 **   18 **HESSE 
 **********

 FCN=   2374.675     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.587        87.955        .15547E-04   -1.4676    
   2  Index         3.1308        1.9598        .32015E-03   -.38314    
   3  Normalizat    .91973        .32405        .53488E-04   -.95770    
   4  Prefactor     .94679        .30817        .10065E-04   -.94525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82431e-10
Minuit parameter uncertainties:
  1  88.3881
  2  2.02343
  3  0.324737
  4  0.308739
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/533231': 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) = 2374.67537025
delta logL = 0.0536524425461

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  2.659e+01  8.839e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  3.131e+00  2.023e+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.468e-01  3.087e-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.197e-01  3.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.36
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/533231/cmap_HighResolution_416620801_416880001_4FGL_J0118.7-0848_daily_bin684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.93e-02', job_status='DONE', photon_flux_upper_limit='2.47e-07', time_completed='2021-08-13 22:47:35.738308', job_id='533231', GAL2='0.95', fit_tolerance='1e-08', EG2='0.92', EG='0.94', time_epoch_completed='1628920055.74', return_code2='0', ts='0.36', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='5.37e-02', ts2='0.47', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='684' AND source_name='4FGL J0118.7-0848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 22:47:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 533231: <4FGL_J0118.7-0848_daily_bin684> in cluster <slac> Done

Job <4FGL_J0118.7-0848_daily_bin684> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 13 22:35:22 2021
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 22:35:39 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:35:39 2021
Terminated at Fri Aug 13 22:47:37 2021
Results reported at Fri Aug 13 22:47:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0118.7-0848_daily_bin684 19.6884 -8.808 416620801 416880001 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 :                                   670.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            735 sec.

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

