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


Performing analysis on: 4FGL_J0118.7-0848_daily_bin1022
RA = 19.6884, Dec = -8.808
tmin = 504230401, tmax = 504489601
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='534890', job_status='RUN', time_executed='2021-08-13 22:43:45.325347', time_epoch_executed='1628919825.33' WHERE source_name='4FGL J0118.7-0848' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/534890

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/534890/ft1_4FGL_J0118.7-0848_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/534890/ft2_4FGL_J0118.7-0848_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/534890/ft1_4FGL_J0118.7-0848_daily_bin1022.fits outfile=/scratch/kocevski/534890/ft1_filteredMKT_4FGL_J0118.7-0848_daily_bin1022.fits ra=19.6884 dec=-8.808 rad=12.0 tmin=504230401.0 tmax=504489601.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 11.87
user 3.40
sys 8.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/534890/ft2_4FGL_J0118.7-0848_daily_bin1022.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/534890/ft1_filteredMKT_4FGL_J0118.7-0848_daily_bin1022.fits evtable="EVENTS" outfile="/scratch/kocevski/534890/ft1_filtered_4FGL_J0118.7-0848_daily_bin1022.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.76
user 0.35
sys 8.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/534890/ft1_filtered_4FGL_J0118.7-0848_daily_bin1022.fits" evtable="EVENTS" scfile=/scratch/kocevski/534890/ft2_4FGL_J0118.7-0848_daily_bin1022.fits sctable="SC_DATA" outfile=/scratch/kocevski/534890/ltcube_504230401_504489601_4FGL_J0118.7-0848_daily_bin1022.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/534890/ft2_4FGL_J0118.7-0848_daily_bin1022.fits
.....................!
real 24.35
user 14.63
sys 9.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/534890/ft1_filtered_4FGL_J0118.7-0848_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/534890/ft2_4FGL_J0118.7-0848_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/534890/ltcube_504230401_504489601_4FGL_J0118.7-0848_daily_bin1022.fits outfile=/scratch/kocevski/534890/expmap_504230401_504489601_4FGL_J0118.7-0848_daily_bin1022.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/534890/ltcube_504230401_504489601_4FGL_J0118.7-0848_daily_bin1022.fits
.....................!
real 210.23
user 193.31
sys 16.01

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/534890/ft1_filtered_4FGL_J0118.7-0848_daily_bin1022.fits scfile=/scratch/kocevski/534890/ft2_4FGL_J0118.7-0848_daily_bin1022.fits outfile=/scratch/kocevski/534890/cmap_504230401_504489601_4FGL_J0118.7-0848_daily_bin1022.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.58
user 0.38
sys 8.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/534890/ft1_filtered_4FGL_J0118.7-0848_daily_bin1022.fits scfile=/scratch/kocevski/534890/ft2_4FGL_J0118.7-0848_daily_bin1022.fits outfile=/scratch/kocevski/534890/cmap_HighResolution_504230401_504489601_4FGL_J0118.7-0848_daily_bin1022.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.67
user 0.39
sys 8.24

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/534890/ft1_filtered_4FGL_J0118.7-0848_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/534890/ft2_4FGL_J0118.7-0848_daily_bin1022.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/534890/Model_4FGL_J0118.7-0848_daily_bin1022.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/534890/ft1_filtered_4FGL_J0118.7-0848_daily_bin1022.fits.....................!
real 60.69
user 48.33
sys 12.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87945       1.0000         .10000E-03   10000.    
     2 'norm      '    10.043       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6680       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.169       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8285       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .43488       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7112       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.375       1.0000         .10000E-03   10000.    
    13 'norm      '    20.997       1.0000         .10000E-03   10000.    
    14 'norm      '    .21311       1.0000         .10000E-03   10000.    
    15 'norm      '    24.474       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .46830       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1702       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=   4663.483     FROM MIGRAD    STATUS=CONVERGED    361 CALLS     1734 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88145        2.2301        .29351E-06   -.83750E-04
   2  norm          10.044        4.5197        .71048E-07   -.10278E-04
   3  norm          1.6672        4.4164        .38574E-06   -.11265E-03
   4  Prefactor     .10000E-03    7.9817       -.41127E-08** at limit **
   5  Prefactor     .10000E-03    12.416       -.50168E-07** at limit **
   6  Prefactor     .10000E-03    7.9990       -.22263E-07** at limit **
   7  norm          13.169        2.5576       -.94976E-07   -.73074E-04
   8  Prefactor     .10000E-03    9.5378       -.60269E-07** at limit **
   9  Prefactor     6.8292        6.7691        .24804E-05   -.46478E-03
  10  Prefactor     .44773        3.3414        .13671E-05   -.68463E-03
  11  Prefactor     5.6877        51.876       -.10789E-04   -.18343E-03
  12  Prefactor     20.377        13.147        .31992E-06   -.63470E-04
  13  norm          20.992        32.531       -.97245E-06   -.16245E-03
  14  norm          .21320        .87237        .24030E-06   -.39682E-03
  15  norm          24.474        9.8256        .14558E-06   -.97860E-04
  16  Prefactor     .10000E-03    38.402        .18835E-06** at limit **
  17  Normalizat    .46831        .19389       -.45352E-06   -.21782E-03
  18  Prefactor     1.1701        .18566       -.17586E-06   -.24140E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.881453
  norm       = 10.0436
  norm       = 1.66717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.169
  Prefactor  = 0.0001
  Prefactor  = 6.82924
  Prefactor  = 0.447725
  Prefactor  = 5.68772
  Prefactor  = 20.3769
  norm       = 20.9916
  norm       = 0.2132
  norm       = 24.4743
  Prefactor  = 0.0001
  Normalizat = 0.468309
  Prefactor  = 1.17009
 **********
 **   18 **HESSE 
 **********

 FCN=   4663.483     FROM HESSE     STATUS=OK           254 CALLS     1988 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88145        2.0629        .15270E-02   -1.5520    
   2  norm          10.044        4.5167        .93886E-04   -1.5074    
   3  norm          1.6672        4.3430        .21951E-03   -1.5450    
   4  Prefactor     .10000E-03    7.9946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.0037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.169        2.5570        .45888E-04   -1.4982    
   8  Prefactor     .10000E-03    9.5402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.8292        7.0443        .76770E-03   -1.5185    
  10  Prefactor     .44773        12.889        .21400E-02   -1.5574    
  11  Prefactor     5.6877        59.387        .16808E-03   -1.5231    
  12  Prefactor     20.377        13.173        .88733E-04   -1.4805    
  13  norm          20.992        32.570        .87410E-04   -1.4791    
  14  norm          .21320        1.3449        .12096E-02   -1.5616    
  15  norm          24.474        9.8230        .80972E-04   -1.4718    
  16  Prefactor     .10000E-03    38.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .46831        .21028        .32682E-03   -1.1391    
  18  Prefactor     1.1701        .20512        .21309E-03   -.87257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08108e-08
Minuit parameter uncertainties:
  1  2.0631
  2  4.51682
  3  4.3438
  4  3.84334e-06
  5  5.14293e-06
  6  1.8067e-06
  7  2.557
  8  9.88474e-06
  9  7.04516
  10  4.80508
  11  36.804
  12  13.1749
  13  32.5971
  14  1.07075
  15  9.82365
  16  2.62053e-05
  17  0.210632
  18  0.205263
Done.

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

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  5.688e+00  3.680e+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:  1.170e+00  2.053e-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:  4.683e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 19.688 -8.808
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/534890/likelihoodResults_504230401_504489601_4FGL_J0118.7-0848_daily_bin1022.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): 102
logL (Free Index) = 4663.45260115
delta logL = 0.0301958013015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4661.86139884
delta logL = 1.6213981074

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19769E-03   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .37526       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2327       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=   4661.861     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      391 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19772E-03    .14150E-03    .17050E-03** at limit **
   2  Index        10.0000        .44256        .50000    ** at limit **
   3  Normalizat    .37530        .19582        .81727E-01    .89100E-04
   4  Prefactor     1.2326        .19315        .33900E-01    .61001E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000197717
  Index      = 10
  Normalizat = 0.375302
  Prefactor  = 1.2326
 **********
 **   18 **HESSE 
 **********

 FCN=   4661.861     FROM HESSE     STATUS=OK            33 CALLS      424 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19772E-03    .14043E-03    .94183E-05   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        2.2453        .27388E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .37530        .20468        .36208E-03   -1.1860    
   4  Prefactor     1.2326        .20428        .20804E-03   -.85334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91216e-09
Minuit parameter uncertainties:
  1  0.000140428
  2  6.03884e-05
  3  0.205093
  4  0.204411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/534890': 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) = 4661.86139843
delta logL = 1.62139851927

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  1.977e-04  1.404e-04  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  1.000e+01  6.039e-05  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:  1.233e+00  2.044e-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:  3.753e-01  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.47
Ra Dec: 19.688 -8.808
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 8.23e-08 +/- 5.66e-08
Energy Flux (Free Index): 9.20e-06 +/- 6.37e-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/534890/cmap_HighResolution_504230401_504489601_4FGL_J0118.7-0848_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.62e-03', comment='SUCCESS', energy_flux2='9.20e-06', dlogl='1.62e+00', photon_flux2='8.23e-08', job_status='DONE', time_completed='2021-08-13 22:54:45.819087', photon_index_error2='0.00', photon_index2='10.00', ts='0.03', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='6.37e-06', EG='0.47', time_epoch_completed='1628920485.82', return_code='0', job_id='534890', GAL2='1.23', EG2='0.38', return_code2='0', photon_flux_error2='5.66e-08', ts2='3.47', photon_index='2.60' WHERE bin_id='1022' AND source_name='4FGL J0118.7-0848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 22:54:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 534890: <4FGL_J0118.7-0848_daily_bin1022> in cluster <slac> Done

Job <4FGL_J0118.7-0848_daily_bin1022> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 22:40:35 2021
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 22:41:14 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:41:14 2021
Terminated at Fri Aug 13 22:54:48 2021
Results reported at Fri Aug 13 22:54:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0118.7-0848_daily_bin1022 19.6884 -8.808 504230401 504489601 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 :                                   782.59 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            853 sec.

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

