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


Performing analysis on: 4FGL_J0118.7-0848_daily_bin1366
RA = 19.6884, Dec = -8.808
tmin = 593395201, tmax = 593654401
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='536461', job_status='RUN', time_executed='2021-08-13 22:48:15.337091', time_epoch_executed='1628920095.34' WHERE source_name='4FGL J0118.7-0848' and cadence='daily' and bin_id='1366'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/536461

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/536461/ft1_4FGL_J0118.7-0848_daily_bin1366.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/536461/ft2_4FGL_J0118.7-0848_daily_bin1366.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/536461/ft1_4FGL_J0118.7-0848_daily_bin1366.fits outfile=/scratch/kocevski/536461/ft1_filteredMKT_4FGL_J0118.7-0848_daily_bin1366.fits ra=19.6884 dec=-8.808 rad=12.0 tmin=593395201.0 tmax=593654401.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 6.68
user 3.90
sys 2.75

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/536461/ft2_4FGL_J0118.7-0848_daily_bin1366.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/536461/ft1_filteredMKT_4FGL_J0118.7-0848_daily_bin1366.fits evtable="EVENTS" outfile="/scratch/kocevski/536461/ft1_filtered_4FGL_J0118.7-0848_daily_bin1366.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 3.08
user 0.34
sys 2.72

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/536461/ft1_filtered_4FGL_J0118.7-0848_daily_bin1366.fits" evtable="EVENTS" scfile=/scratch/kocevski/536461/ft2_4FGL_J0118.7-0848_daily_bin1366.fits sctable="SC_DATA" outfile=/scratch/kocevski/536461/ltcube_593395201_593654401_4FGL_J0118.7-0848_daily_bin1366.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/536461/ft2_4FGL_J0118.7-0848_daily_bin1366.fits
.....................!
real 15.00
user 11.72
sys 3.23

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/536461/ft1_filtered_4FGL_J0118.7-0848_daily_bin1366.fits evtable="EVENTS" scfile=/scratch/kocevski/536461/ft2_4FGL_J0118.7-0848_daily_bin1366.fits sctable="SC_DATA" expcube=/scratch/kocevski/536461/ltcube_593395201_593654401_4FGL_J0118.7-0848_daily_bin1366.fits outfile=/scratch/kocevski/536461/expmap_593395201_593654401_4FGL_J0118.7-0848_daily_bin1366.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/536461/ltcube_593395201_593654401_4FGL_J0118.7-0848_daily_bin1366.fits
.....................!
real 193.70
user 184.62
sys 8.58

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/536461/ft1_filtered_4FGL_J0118.7-0848_daily_bin1366.fits scfile=/scratch/kocevski/536461/ft2_4FGL_J0118.7-0848_daily_bin1366.fits outfile=/scratch/kocevski/536461/cmap_593395201_593654401_4FGL_J0118.7-0848_daily_bin1366.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 3.09
user 0.38
sys 2.67

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/536461/ft1_filtered_4FGL_J0118.7-0848_daily_bin1366.fits scfile=/scratch/kocevski/536461/ft2_4FGL_J0118.7-0848_daily_bin1366.fits outfile=/scratch/kocevski/536461/cmap_HighResolution_593395201_593654401_4FGL_J0118.7-0848_daily_bin1366.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 3.12
user 0.40
sys 2.69

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/536461/ft1_filtered_4FGL_J0118.7-0848_daily_bin1366.fits evtable="EVENTS" scfile=/scratch/kocevski/536461/ft2_4FGL_J0118.7-0848_daily_bin1366.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/536461/Model_4FGL_J0118.7-0848_daily_bin1366.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/536461/ft1_filtered_4FGL_J0118.7-0848_daily_bin1366.fits....................!
real 67.00
user 62.06
sys 4.57

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3804       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.525       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0260       1.0000         .10000E-03   10000.    
     7 'norm      '    2.9808       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.984       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3757       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4124       1.0000         .10000E-03   10000.    
    11 'Prefactor '    48.878       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7556       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5679       1.0000         .10000E-03   10000.    
    14 'norm      '    2.2316       1.0000         .10000E-03   10000.    
    15 'norm      '    8.7372       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0119       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .66279       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=   6380.711     FROM MIGRAD    STATUS=CONVERGED    359 CALLS     1754 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3802        1.6853        .48060E-07    .25663E-04
   2  norm          .10000E-03    2.0680        .60327E-07** at limit **
   3  norm          .10000E-03    3.4683        .27311E-07** at limit **
   4  Prefactor     14.526        14.134       -.34424E-05   -.19918E-04
   5  Prefactor     .10000E-03    19.028        .31036E-07** at limit **
   6  Prefactor     3.0270        42.791        .29198E-06    .12276E-05
   7  norm          2.9808        1.3388       -.98928E-08   -.13966E-04
   8  Prefactor     25.972        37.548       -.10831E-04   -.26807E-04
   9  Prefactor     5.3769        6.2625        .18963E-05    .48983E-04
  10  Prefactor     3.4120        2.8573       -.32053E-06   -.73804E-04
  11  Prefactor     48.885        44.530        .60206E-05    .68859E-05
  12  Prefactor     1.7521        2.1780        .25492E-06   -.99103E-03
  13  norm          2.5604        52.005        .27547E-05   -.14354E-04
  14  norm          2.2316        1.1294       -.16460E-07   -.33643E-04
  15  norm          8.7367        4.9440       -.19591E-06   -.33836E-04
  16  Prefactor     .10000E-03    125.21       -.42165E-06** at limit **
  17  Normalizat    1.0119        .14647        .22496E-06   -.43689E-04
  18  Prefactor     .66278        .13475       -.15667E-06   -.69641E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.38019
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.5263
  Prefactor  = 0.0001
  Prefactor  = 3.02698
  norm       = 2.98082
  Prefactor  = 25.9723
  Prefactor  = 5.37686
  Prefactor  = 3.41203
  Prefactor  = 48.885
  Prefactor  = 1.75213
  norm       = 2.56036
  norm       = 2.23156
  norm       = 8.73674
  Prefactor  = 0.0001
  Normalizat = 1.01191
  Prefactor  = 0.66278
 **********
 **   18 **HESSE 
 **********

 FCN=   6380.711     FROM HESSE     STATUS=OK           256 CALLS     2010 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3802        1.6633        .10931E-03   -1.5473    
   2  norm          .10000E-03    2.1622        .22414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.5299        .14498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.526        14.152        .10509E-03   -1.4946    
   5  Prefactor     .10000E-03    19.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0270        42.246        .23328E-03   -1.5360    
   7  norm          2.9808        1.3370        .59380E-04   -1.5363    
   8  Prefactor     25.972        37.579        .78588E-04   -1.4688    
   9  Prefactor     5.3769        6.2459        .17333E-03   -1.5244    
  10  Prefactor     3.4120        2.8501        .11616E-03   -1.5339    
  11  Prefactor     48.885        45.290        .57357E-04   -1.4308    
  12  Prefactor     1.7521        7.2925        .15817E-02   -1.5443    
  13  norm          2.5604        50.997        .25473E-03   -1.5388    
  14  norm          2.2316        1.1291        .57556E-04   -1.5409    
  15  norm          8.7367        4.9241        .12573E-03   -1.5117    
  16  Prefactor     .10000E-03    125.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0119        .16603        .21440E-03   -.92633    
  18  Prefactor     .66278        .15188        .24734E-03   -1.0500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75587e-09
Minuit parameter uncertainties:
  1  1.66331
  2  8.03414e-06
  3  3.94508e-06
  4  14.155
  5  2.511e-05
  6  22.6357
  7  1.33704
  8  37.6135
  9  6.24668
  10  2.85019
  11  45.3214
  12  7.15041
  13  22.8756
  14  1.1291
  15  4.92428
  16  8.60461e-05
  17  0.166114
  18  0.151978
Done.

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

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  4.889e+01  4.532e+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:  6.628e-01  1.520e-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.012e+00  1.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 19.688 -8.808
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 5.11e-08 +/- 4.73e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.25e-05

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

Saving results to:
/scratch/kocevski/536461/likelihoodResults_593395201_593654401_4FGL_J0118.7-0848_daily_bin1366.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) = 6380.13731869
delta logL = 0.573674006436

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6380.12884821
delta logL = 0.582144482893

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.135       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5960       1.0000          .0000       10.000    
     3 'Normalizat'    .97352       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68665       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=   6380.129     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      308 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.131        71.313        .94050E-04   -.11572E-02
   2  Index         3.5963        2.3285        .51075E-02   -.37654E-03
   3  Normalizat    .97302        .16423        .21791E-03   -.49962E-03
   4  Prefactor     .68714        .15586        .24323E-03   -.42594E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.1312
  Index      = 3.59632
  Normalizat = 0.973022
  Prefactor  = 0.687138
 **********
 **   18 **HESSE 
 **********

 FCN=   6380.129     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.131        33.559        .18810E-04   -1.4856    
   2  Index         3.5963        1.1275        .20430E-03   -.28456    
   3  Normalizat    .97302        .16241        .43583E-04   -.93940    
   4  Prefactor     .68714        .15150        .48646E-04   -1.0403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09762e-09
Minuit parameter uncertainties:
  1  33.5935
  2  1.13819
  3  0.16249
  4  0.151589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/536461': 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) = 6380.12884283
delta logL = 0.58214986708

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  1.813e+01  3.359e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  3.596e+00  1.138e+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:  6.871e-01  1.516e-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.730e-01  1.625e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.81
Ra Dec: 19.688 -8.808
Photon Index (Free Index): 3.60 +/- 1.14
Photon Flux (Free Index): 8.39e-08 +/- 5.67e-08
Energy Flux (Free Index): 1.36e-05 +/- 9.54e-06

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/536461/cmap_HighResolution_593395201_593654401_4FGL_J0118.7-0848_daily_bin1366.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='5.11e-08', energy_flux2='1.36e-05', photon_flux_error='4.73e-08', dlogl='5.82e-01', energy_flux='1.35e-05', photon_flux2='8.39e-08', job_status='DONE', time_completed='2021-08-13 22:59:01.919272', photon_index_error2='1.14', photon_index2='3.60', ts='1.58', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='9.54e-06', EG='1.01', time_epoch_completed='1628920741.92', return_code='0', job_id='536461', GAL2='0.69', EG2='0.97', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='5.67e-08', ts2='2.81', photon_index='2.60' WHERE bin_id='1366' AND source_name='4FGL J0118.7-0848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 22:59:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0137>
Subject: Job 536461: <4FGL_J0118.7-0848_daily_bin1366> in cluster <slac> Done

Job <4FGL_J0118.7-0848_daily_bin1366> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 13 22:45:37 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 22:47:17 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:47:17 2021
Terminated at Fri Aug 13 22:59:03 2021
Results reported at Fri Aug 13 22:59:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0118.7-0848_daily_bin1366 19.6884 -8.808 593395201 593654401 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.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            806 sec.

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

