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


Performing analysis on: 4FGL_J0118.7-0848_daily_bin1162
RA = 19.6884, Dec = -8.808
tmin = 540518401, tmax = 540777601
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='536173', job_status='RUN', time_executed='2021-08-13 22:48:11.999344', time_epoch_executed='1628920092.0' WHERE source_name='4FGL J0118.7-0848' and cadence='daily' and bin_id='1162'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/536173

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/536173/ft1_4FGL_J0118.7-0848_daily_bin1162.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/536173/ft2_4FGL_J0118.7-0848_daily_bin1162.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/536173/ft1_4FGL_J0118.7-0848_daily_bin1162.fits outfile=/scratch/kocevski/536173/ft1_filteredMKT_4FGL_J0118.7-0848_daily_bin1162.fits ra=19.6884 dec=-8.808 rad=12.0 tmin=540518401.0 tmax=540777601.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.99
user 3.46
sys 2.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/536173/ft2_4FGL_J0118.7-0848_daily_bin1162.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/536173/ft1_filteredMKT_4FGL_J0118.7-0848_daily_bin1162.fits evtable="EVENTS" outfile="/scratch/kocevski/536173/ft1_filtered_4FGL_J0118.7-0848_daily_bin1162.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 2.87
user 0.33
sys 2.49

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/536173/ft1_filtered_4FGL_J0118.7-0848_daily_bin1162.fits" evtable="EVENTS" scfile=/scratch/kocevski/536173/ft2_4FGL_J0118.7-0848_daily_bin1162.fits sctable="SC_DATA" outfile=/scratch/kocevski/536173/ltcube_540518401_540777601_4FGL_J0118.7-0848_daily_bin1162.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/536173/ft2_4FGL_J0118.7-0848_daily_bin1162.fits
.....................!
real 15.48
user 12.04
sys 2.90

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/536173/ft1_filtered_4FGL_J0118.7-0848_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/536173/ft2_4FGL_J0118.7-0848_daily_bin1162.fits sctable="SC_DATA" expcube=/scratch/kocevski/536173/ltcube_540518401_540777601_4FGL_J0118.7-0848_daily_bin1162.fits outfile=/scratch/kocevski/536173/expmap_540518401_540777601_4FGL_J0118.7-0848_daily_bin1162.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/536173/ltcube_540518401_540777601_4FGL_J0118.7-0848_daily_bin1162.fits
.....................!
real 194.56
user 186.03
sys 7.98

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/536173/ft1_filtered_4FGL_J0118.7-0848_daily_bin1162.fits scfile=/scratch/kocevski/536173/ft2_4FGL_J0118.7-0848_daily_bin1162.fits outfile=/scratch/kocevski/536173/cmap_540518401_540777601_4FGL_J0118.7-0848_daily_bin1162.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 2.82
user 0.39
sys 2.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/536173/ft1_filtered_4FGL_J0118.7-0848_daily_bin1162.fits scfile=/scratch/kocevski/536173/ft2_4FGL_J0118.7-0848_daily_bin1162.fits outfile=/scratch/kocevski/536173/cmap_HighResolution_540518401_540777601_4FGL_J0118.7-0848_daily_bin1162.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 2.84
user 0.36
sys 2.44

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/536173/ft1_filtered_4FGL_J0118.7-0848_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/536173/ft2_4FGL_J0118.7-0848_daily_bin1162.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/536173/Model_4FGL_J0118.7-0848_daily_bin1162.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/536173/ft1_filtered_4FGL_J0118.7-0848_daily_bin1162.fits.....................!
real 47.84
user 43.56
sys 4.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2462       1.0000         .10000E-03   10000.    
     2 'norm      '    5.7193       1.0000         .10000E-03   10000.    
     3 'norm      '    2.5387       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.210       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.653       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .68046E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    80.755       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.7888       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.089       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10618E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    30.744       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.0249       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5323       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0201       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90915       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=   4142.907     FROM MIGRAD    STATUS=CONVERGED    349 CALLS     1731 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2463        3.9430        .29204E-06   -.29062E-04
   2  norm          5.7194        3.6811        .23475E-07   -.51873E-04
   3  norm          2.5381        4.7719        .48464E-06   -.12089E-05
   4  Prefactor     29.206        25.415       -.22708E-06   -.20252E-04
   5  Prefactor     25.653        29.212        .16326E-06   -.10287E-04
   6  Prefactor     .10000E-03    74.749        .27274E-05** at limit **
   7  norm          .10001E-03    .84270        .47768E-06** at limit **
   8  Prefactor     80.752        54.980       -.51544E-06   -.70188E-04
   9  Prefactor     8.7859        8.6571       -.45079E-06   -.23529E-03
  10  Prefactor     .10000E-03    1.4058        .23641E-06** at limit **
  11  Prefactor     41.069        53.592       -.19563E-06   -.28797E-04
  12  Prefactor     .10000E-03    13.058       -.18119E-05** at limit **
  13  norm          30.750        31.484       -.55947E-06   -.46693E-04
  14  norm          .10000E-03    1.1604        .17555E-05** at limit **
  15  norm          7.0256        6.6216       -.31953E-06   -.92879E-04
  16  Prefactor     4.0687        661.22       -.14035E-03   -.30519E-05
  17  Normalizat    1.0203        .22037        .51948E-05   -.56477E-03
  18  Prefactor     .90909        .20159       -.68114E-05   -.29915E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.24626
  norm       = 5.71941
  norm       = 2.53809
  Prefactor  = 29.2062
  Prefactor  = 25.6529
  Prefactor  = 0.000100001
  norm       = 0.000100011
  Prefactor  = 80.7519
  Prefactor  = 8.78594
  Prefactor  = 0.0001
  Prefactor  = 41.0691
  Prefactor  = 0.0001
  norm       = 30.75
  norm       = 0.0001
  norm       = 7.0256
  Prefactor  = 4.06868
  Normalizat = 1.02028
  Prefactor  = 0.909091
 **********
 **   18 **HESSE 
 **********

 FCN=   4142.907     FROM HESSE     STATUS=OK           250 CALLS     1981 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2463        3.9205        .13131E-03   -1.5348    
   2  norm          5.7194        3.6811        .95867E-04   -1.5230    
   3  norm          2.5381        4.7412        .18193E-03   -1.5389    
   4  Prefactor     29.206        25.426        .74130E-04   -1.4627    
   5  Prefactor     25.653        29.215        .79092E-04   -1.4695    
   6  Prefactor     .10000E-03    75.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    7.9504        .11303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     80.752        54.916        .44693E-04   -1.3908    
   9  Prefactor     8.7859        8.6121        .13521E-03   -1.5115    
  10  Prefactor     .10000E-03    1.4093        .74525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     41.069        53.586        .62535E-04   -1.4425    
  12  Prefactor     .10000E-03    13.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          30.750        31.486        .72261E-04   -1.4598    
  14  norm          .10000E-03    1.2099        .13557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.0256        6.6164        .15136E-03   -1.5178    
  16  Prefactor     4.0687        667.58        .18910E-02   -1.5305    
  17  Normalizat    1.0203        .24551        .25122E-03   -.92354    
  18  Prefactor     .90909        .22586        .24835E-03   -.95824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13452e-09
Minuit parameter uncertainties:
  1  3.92084
  2  3.6812
  3  4.74192
  4  25.4358
  5  29.2315
  6  0.00040416
  7  0.000585378
  8  54.9505
  9  8.61329
  10  5.08423e-06
  11  53.6486
  12  7.48218e-05
  13  31.5028
  14  1.32688e-05
  15  6.6171
  16  105.451
  17  0.245788
  18  0.226091
Done.

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

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  4.107e+01  5.365e+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.091e-01  2.261e-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:  1.020e+00  2.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/536173/likelihoodResults_540518401_540777601_4FGL_J0118.7-0848_daily_bin1162.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) = 4142.81237854
delta logL = 0.0943065731544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4142.81020599
delta logL = 0.0964791215974

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.492       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1007       1.0000          .0000       10.000    
     3 'Normalizat'    1.0043       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91960       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=   4142.810     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      291 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.479        65.378        .77832E-04   -.44843E-04
   2  Index         3.1009        1.5881        .80922E-02    .28495E-03
   3  Normalizat    1.0044        .24168        .25288E-03   -.16724E-04
   4  Prefactor     .91973        .22588        .24704E-03   -.13808E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.4788
  Index      = 3.10086
  Normalizat = 1.00439
  Prefactor  = 0.919726
 **********
 **   18 **HESSE 
 **********

 FCN=   4142.810     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.479        54.480        .31133E-05   -1.4678    
   2  Index         3.1009        1.3298        .16184E-02   -.38961    
   3  Normalizat    1.0044        .24125        .10115E-04   -.92884    
   4  Prefactor     .91973        .22510        .49407E-04   -.95455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34108e-10
Minuit parameter uncertainties:
  1  54.583
  2  1.34882
  3  0.241516
  4  0.225329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/536173': 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) = 4142.81020458
delta logL = 0.0964805318645

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  2.648e+01  5.458e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  3.101e+00  1.349e+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.197e-01  2.253e-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:  1.004e+00  2.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.74
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/536173/cmap_HighResolution_540518401_540777601_4FGL_J0118.7-0848_daily_bin1162.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', job_status='DONE', photon_flux_upper_limit='1.65e-07', time_completed='2021-08-13 22:57:00.337445', job_id='536173', GAL2='0.92', fit_tolerance='1e-08', EG2='1.00', EG='1.02', time_epoch_completed='1628920620.34', return_code2='0', ts='0.74', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='9.65e-02', ts2='0.94', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1162' AND source_name='4FGL J0118.7-0848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 22:57:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0010>
Subject: Job 536173: <4FGL_J0118.7-0848_daily_bin1162> in cluster <slac> Done

Job <4FGL_J0118.7-0848_daily_bin1162> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 13 22:45:18 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 22:45:22 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:45:22 2021
Terminated at Fri Aug 13 22:57:01 2021
Results reported at Fri Aug 13 22:57:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0118.7-0848_daily_bin1162 19.6884 -8.808 540518401 540777601 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 :                                   558.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             223.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            703 sec.

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

