/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 217 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7441
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0118.7-0848_daily_bin980
RA = 19.6884, Dec = -8.808
tmin = 493344001, tmax = 493603201
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='534822', job_status='RUN', time_executed='2021-08-13 22:45:34.419916', time_epoch_executed='1628919934.42' WHERE source_name='4FGL J0118.7-0848' and cadence='daily' and bin_id='980'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/534822

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/534822/ft1_4FGL_J0118.7-0848_daily_bin980.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/534822/ft2_4FGL_J0118.7-0848_daily_bin980.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/534822/ft1_4FGL_J0118.7-0848_daily_bin980.fits outfile=/scratch/kocevski/534822/ft1_filteredMKT_4FGL_J0118.7-0848_daily_bin980.fits ra=19.6884 dec=-8.808 rad=12.0 tmin=493344001.0 tmax=493603201.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 7.52
user 4.27
sys 3.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/534822/ft1_filtered_4FGL_J0118.7-0848_daily_bin980.fits" evtable="EVENTS" scfile=/scratch/kocevski/534822/ft2_4FGL_J0118.7-0848_daily_bin980.fits sctable="SC_DATA" outfile=/scratch/kocevski/534822/ltcube_493344001_493603201_4FGL_J0118.7-0848_daily_bin980.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/534822/ft2_4FGL_J0118.7-0848_daily_bin980.fits
.....................!
real 15.77
user 11.60
sys 4.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/534822/ft1_filtered_4FGL_J0118.7-0848_daily_bin980.fits evtable="EVENTS" scfile=/scratch/kocevski/534822/ft2_4FGL_J0118.7-0848_daily_bin980.fits sctable="SC_DATA" expcube=/scratch/kocevski/534822/ltcube_493344001_493603201_4FGL_J0118.7-0848_daily_bin980.fits outfile=/scratch/kocevski/534822/expmap_493344001_493603201_4FGL_J0118.7-0848_daily_bin980.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/534822/ltcube_493344001_493603201_4FGL_J0118.7-0848_daily_bin980.fits
.....................!
real 196.61
user 186.87
sys 9.05

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/534822/ft1_filtered_4FGL_J0118.7-0848_daily_bin980.fits scfile=/scratch/kocevski/534822/ft2_4FGL_J0118.7-0848_daily_bin980.fits outfile=/scratch/kocevski/534822/cmap_493344001_493603201_4FGL_J0118.7-0848_daily_bin980.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.88
user 0.37
sys 3.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/534822/ft1_filtered_4FGL_J0118.7-0848_daily_bin980.fits scfile=/scratch/kocevski/534822/ft2_4FGL_J0118.7-0848_daily_bin980.fits outfile=/scratch/kocevski/534822/cmap_HighResolution_493344001_493603201_4FGL_J0118.7-0848_daily_bin980.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.81
user 0.38
sys 3.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/534822/ft1_filtered_4FGL_J0118.7-0848_daily_bin980.fits evtable="EVENTS" scfile=/scratch/kocevski/534822/ft2_4FGL_J0118.7-0848_daily_bin980.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/534822/Model_4FGL_J0118.7-0848_daily_bin980.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/534822/ft1_filtered_4FGL_J0118.7-0848_daily_bin980.fits.....................!
real 78.56
user 72.74
sys 5.57

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80551E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.2345       1.0000         .10000E-03   10000.    
     3 'norm      '    8.0719       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    39.409       1.0000         .10000E-03   10000.    
     8 'Prefactor '    51.061       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.075       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8097       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.340       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.2406       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .96064       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .80599       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7309.138     FROM MIGRAD    STATUS=CONVERGED     92 CALLS     1473 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5127        .22619E-04** at limit **
   2  norm          7.2346        3.3068        .41630E-06   -.13211E-03
   3  norm          8.0763        2.6435       -.37892E-05   -.17223E-02
   4  Prefactor     .10000E-03    15.229       -.14141E-05** at limit **
   5  Prefactor     .10000E-03    8.2827       -.74954E-05** at limit **
   6  Prefactor     .10000E-03    9.7433        .42255E-05** at limit **
   7  norm          39.409        3.6839        .41590E-06   -.18645E-03
   8  Prefactor     51.045        8.1638       -.20028E-05    .25266E-02
   9  Prefactor     20.076        1.3842        .16834E-06    .82935E-03
  10  Prefactor     1.8079        2.5455        .38240E-06   -.18844E-03
  11  Prefactor     21.264        36.414       -.12744E-04   -.39439E-03
  12  Prefactor     .10000E-03    5.2294        .60334E-06** at limit **
  13  norm          .10000E-03    5.3850       -.69866E-06** at limit **
  14  norm          .10000E-03    .50718        .15514E-06** at limit **
  15  norm          7.2400        3.8892       -.38092E-06   -.19824E-03
  16  Prefactor     .10001E-03    47.068        .36867E-05** at limit **
  17  Normalizat    .96078        .17527       -.95881E-07   -.16852E-03
  18  Prefactor     .80590        .16678        .23282E-05    .62258E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 7.23457
  norm       = 8.0763
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 39.409
  Prefactor  = 51.0447
  Prefactor  = 20.0761
  Prefactor  = 1.80792
  Prefactor  = 21.2642
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.23997
  Prefactor  = 0.000100008
  Normalizat = 0.960778
  Prefactor  = 0.805904
 **********
 **   18 **HESSE 
 **********

 FCN=   7309.138     FROM HESSE     STATUS=OK           290 CALLS     1763 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4897        .65712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.2346        3.3318        .37282E-02   -1.5170    
   3  norm          8.0763        5.7939        .35280E-02   -1.5140    
   4  Prefactor     .10000E-03    15.116        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.3932        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.7470        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          39.409        3.8105        .15962E-02   -1.4452    
   8  Prefactor     51.045        55.025        .14031E-02   -1.4278    
   9  Prefactor     20.076        10.840        .22348E-02   -1.4812    
  10  Prefactor     1.8079        2.5766        .77647E-02   -1.5439    
  11  Prefactor     21.264        37.185        .21676E-02   -1.4785    
  12  Prefactor     .10000E-03    5.1604        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.3839        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .37783        .26208E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.2400        3.8907        .37266E-02   -1.5170    
  16  Prefactor     .10001E-03    47.012        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .96078        .15751        .45672E-01   -.94356    
  18  Prefactor     .80590        .14872        .43795E-01   -.99511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86504e-08
Minuit parameter uncertainties:
  1  0.000121296
  2  3.33188
  3  5.79427
  4  9.63847e-05
  5  0.000232538
  6  2.79661e-05
  7  3.81053
  8  55.0798
  9  10.8411
  10  2.57677
  11  37.2253
  12  5.4267e-05
  13  6.34033e-05
  14  6.55622e-06
  15  3.89084
  16  0.0012377
  17  0.157582
  18  0.148795
Done.

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

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  2.126e+01  3.723e+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:  8.059e-01  1.488e-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.608e-01  1.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/534822/likelihoodResults_493344001_493603201_4FGL_J0118.7-0848_daily_bin980.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) = 7308.99341933
delta logL = 0.144937849585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7308.99034256
delta logL = 0.148014622942

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.956       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2678       1.0000          .0000       10.000    
     3 'Normalizat'    .94685       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81307       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7308.990     FROM MIGRAD    STATUS=FAILED        95 CALLS      303 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.981        42.838        .11128E-03   -.15222E-04
   2  Index         3.2673        1.9662        .89764E-02    .34979E-03
   3  Normalizat    .94667        .17691        .26087E-03   -.15950E-03
   4  Prefactor     .81323        .16805        .26696E-03    .19909E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7308.990     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      379 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.981        42.838        .45974E-03   -1.4987    
   2  Index         3.2673        1.9662        .15452E-02   -.35388    
   3  Normalizat    .94667        .17691        .18305E-03   -.94839    
   4  Prefactor     .81323        .16805        .20360E-03   -.99242    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7308.990     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      407 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.981        31.802        .44513E-05    .13281E-04
   2  Index         3.2673        1.4777        .17953E-02   -.27040E-05
   3  Normalizat    .94668        .17664        .10435E-04    .13074E-05
   4  Prefactor     .81323        .16729        .10678E-04    .12776E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9809
  Index      = 3.26729
  Normalizat = 0.946678
  Prefactor  = 0.81323
 **********
 **   18 **HESSE 
 **********

 FCN=   7308.990     FROM HESSE     STATUS=OK            23 CALLS      430 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.981        30.314        .89026E-06   -1.4987    
   2  Index         3.2673        1.4110        .71811E-04   -.35388    
   3  Normalizat    .94668        .17680        .20870E-05   -.94839    
   4  Prefactor     .81323        .16737        .21357E-05   -.99242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89684e-12
Minuit parameter uncertainties:
  1  30.3497
  2  1.43319
  3  0.176908
  4  0.167471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/534822': 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) = 7308.99034158
delta logL = 0.148015599883

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  1.298e+01  3.035e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  3.267e+00  1.433e+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:  8.132e-01  1.675e-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.467e-01  1.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/534822/cmap_HighResolution_493344001_493603201_4FGL_J0118.7-0848_daily_bin980.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.30e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-08-13 22:57:01.175826', job_id='534822', GAL2='0.81', fit_tolerance='1e-08', EG2='0.95', EG='0.96', time_epoch_completed='1628920621.18', return_code2='0', ts='0.39', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.48e-01', ts2='0.68', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='980' AND source_name='4FGL J0118.7-0848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 22:57:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 534822: <4FGL_J0118.7-0848_daily_bin980> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0118.7-0848_daily_bin980 19.6884 -8.808 493344001 493603201 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 :                                   733.58 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            993 sec.

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

