/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

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


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


Performing analysis on: 4FGL_J0118.7-0848_daily_bin1212
RA = 19.6884, Dec = -8.808
tmin = 553478401, tmax = 553737601
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='536247', job_status='RUN', time_executed='2021-08-13 22:48:50.771553', time_epoch_executed='1628920130.77' WHERE source_name='4FGL J0118.7-0848' and cadence='daily' and bin_id='1212'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/536247

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/536247/ft1_4FGL_J0118.7-0848_daily_bin1212.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/536247/ft2_4FGL_J0118.7-0848_daily_bin1212.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/536247/ft1_4FGL_J0118.7-0848_daily_bin1212.fits outfile=/scratch/kocevski/536247/ft1_filteredMKT_4FGL_J0118.7-0848_daily_bin1212.fits ra=19.6884 dec=-8.808 rad=12.0 tmin=553478401.0 tmax=553737601.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 9.37
user 2.42
sys 6.75

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/536247/ft1_filtered_4FGL_J0118.7-0848_daily_bin1212.fits" evtable="EVENTS" scfile=/scratch/kocevski/536247/ft2_4FGL_J0118.7-0848_daily_bin1212.fits sctable="SC_DATA" outfile=/scratch/kocevski/536247/ltcube_553478401_553737601_4FGL_J0118.7-0848_daily_bin1212.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/536247/ft2_4FGL_J0118.7-0848_daily_bin1212.fits
.....................!
real 20.33
user 12.60
sys 7.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/536247/ft1_filtered_4FGL_J0118.7-0848_daily_bin1212.fits evtable="EVENTS" scfile=/scratch/kocevski/536247/ft2_4FGL_J0118.7-0848_daily_bin1212.fits sctable="SC_DATA" expcube=/scratch/kocevski/536247/ltcube_553478401_553737601_4FGL_J0118.7-0848_daily_bin1212.fits outfile=/scratch/kocevski/536247/expmap_553478401_553737601_4FGL_J0118.7-0848_daily_bin1212.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/536247/ltcube_553478401_553737601_4FGL_J0118.7-0848_daily_bin1212.fits
.....................!
real 198.70
user 185.47
sys 12.82

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/536247/ft1_filtered_4FGL_J0118.7-0848_daily_bin1212.fits scfile=/scratch/kocevski/536247/ft2_4FGL_J0118.7-0848_daily_bin1212.fits outfile=/scratch/kocevski/536247/cmap_553478401_553737601_4FGL_J0118.7-0848_daily_bin1212.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 6.98
user 0.39
sys 6.55

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/536247/ft1_filtered_4FGL_J0118.7-0848_daily_bin1212.fits scfile=/scratch/kocevski/536247/ft2_4FGL_J0118.7-0848_daily_bin1212.fits outfile=/scratch/kocevski/536247/cmap_HighResolution_553478401_553737601_4FGL_J0118.7-0848_daily_bin1212.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 6.98
user 0.38
sys 6.56

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/536247/ft1_filtered_4FGL_J0118.7-0848_daily_bin1212.fits evtable="EVENTS" scfile=/scratch/kocevski/536247/ft2_4FGL_J0118.7-0848_daily_bin1212.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/536247/Model_4FGL_J0118.7-0848_daily_bin1212.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/536247/ft1_filtered_4FGL_J0118.7-0848_daily_bin1212.fits.....................!
real 70.20
user 60.36
sys 9.68

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11471E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.0942       1.0000         .10000E-03   10000.    
     3 'norm      '    .15889E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.708       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.490       1.0000         .10000E-03   10000.    
     7 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    110.90       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3658       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1268       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .95571E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9150       1.0000         .10000E-03   10000.    
    13 'norm      '    24.687       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    18.109       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .90497       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .87775       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=   6082.287     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     1769 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0027        .84981E-07** at limit **
   2  norm          6.0943        3.6379        .82254E-07    .83869E-05
   3  norm          .10000E-03    9.9820       -.21451E-06** at limit **
   4  Prefactor     31.707        21.337       -.27425E-06   -.20670E-04
   5  Prefactor     .10000E-03    20.877       -.27338E-06** at limit **
   6  Prefactor     37.492        31.454       -.42395E-06   -.16520E-04
   7  norm          .10000E-03    .38804       -.75864E-08** at limit **
   8  Prefactor     110.92        51.708        .11545E-04    .22922E-04
   9  Prefactor     2.3599        7.5835       -.19702E-05   -.79462E-03
  10  Prefactor     3.1208        3.8927        .18967E-06   -.60462E-03
  11  Prefactor     .10000E-03    89.204        .10121E-04** at limit **
  12  Prefactor     1.9135        3.3209       -.25805E-06   -.32472E-03
  13  norm          24.662        26.988       -.53042E-05   -.48527E-04
  14  norm          .10000E-03    .72417        .13511E-06** at limit **
  15  norm          18.110        8.1452        .36525E-05   -.76471E-04
  16  Prefactor     .10000E-03    107.95       -.12304E-05** at limit **
  17  Normalizat    .90504        .17163       -.17951E-05   -.64919E-04
  18  Prefactor     .87757        .15592       -.98256E-06   -.10928E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.09426
  norm       = 0.0001
  Prefactor  = 31.707
  Prefactor  = 0.0001
  Prefactor  = 37.4919
  norm       = 0.0001
  Prefactor  = 110.916
  Prefactor  = 2.35991
  Prefactor  = 3.12076
  Prefactor  = 0.0001
  Prefactor  = 1.91349
  norm       = 24.6619
  norm       = 0.0001
  norm       = 18.11
  Prefactor  = 0.0001
  Normalizat = 0.905045
  Prefactor  = 0.877565
 **********
 **   18 **HESSE 
 **********

 FCN=   6082.287     FROM HESSE     STATUS=OK           252 CALLS     2021 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0446        .21471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.0943        3.6350        .11056E-03   -1.5214    
   3  norm          .10000E-03    10.309        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     31.707        21.371        .71157E-04   -1.4581    
   5  Prefactor     .10000E-03    20.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     37.492        31.291        .65457E-04   -1.4483    
   7  norm          .10000E-03    .51864        .93955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     110.92        52.646        .38197E-04   -1.3598    
   9  Prefactor     2.3599        7.5411        .26641E-03   -1.5401    
  10  Prefactor     3.1208        3.8788        .16188E-03   -1.5355    
  11  Prefactor     .10000E-03    92.797        .41584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9135        3.2954        .18247E-03   -1.5431    
  13  norm          24.662        26.980        .80622E-04   -1.4714    
  14  norm          .10000E-03    1.8070        .12807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.110        8.0540        .94117E-04   -1.4857    
  16  Prefactor     .10000E-03    108.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .90504        .19509        .24762E-03   -.96283    
  18  Prefactor     .87757        .17849        .23857E-03   -.96929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92041e-09
Minuit parameter uncertainties:
  1  1.52153e-07
  2  3.63516
  3  4.4807e-05
  4  21.3758
  5  1.69912e-05
  6  31.3046
  7  1.90032e-06
  8  52.6685
  9  7.54411
  10  3.87908
  11  0.00019511
  12  3.29575
  13  26.9931
  14  3.3385e-05
  15  8.05451
  16  0.000120414
  17  0.195247
  18  0.178613
Done.

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

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  1.951e-04  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.776e-01  1.786e-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.050e-01  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 19.688 -8.808
Photon Flux Upper Limit: 7.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/536247/likelihoodResults_553478401_553737601_4FGL_J0118.7-0848_daily_bin1212.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) = 6082.28667243
delta logL = -5.13002441949e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6082.28667243
delta logL = -5.12970609634e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96360E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5956       1.0000          .0000       10.000    
     3 'Normalizat'    .90505       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87756       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6082.279     FROM MIGRAD    STATUS=CONVERGED    165 CALLS      310 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3700        64.226        .18142E-02    .55764E-04
   2  Index         2.0346        2.0474        .20052E-01   -.22208E-04
   3  Normalizat    .90610        .18540        .24748E-03   -.35510E-04
   4  Prefactor     .87515        .17800        .23886E-03   -.42740E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.37001
  Index      = 2.03463
  Normalizat = 0.906104
  Prefactor  = 0.87515
 **********
 **   18 **HESSE 
 **********

 FCN=   6082.279     FROM HESSE     STATUS=OK            23 CALLS      333 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3700        62.203        .72570E-04   -1.6075    
   2  Index         2.0346        2.0192        .80206E-03   -.63487    
   3  Normalizat    .90610        .18553        .98993E-05   -.96246    
   4  Prefactor     .87515        .17813        .95546E-05   -.97015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08221e-10
Minuit parameter uncertainties:
  1  28.9915
  2  2.11519
  3  0.185657
  4  0.178251
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/536247': 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) = 6082.27938656
delta logL = 0.00723457368986

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  3.370e+00  2.899e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.035e+00  2.115e+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.751e-01  1.783e-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.061e-01  1.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/536247/cmap_HighResolution_553478401_553737601_4FGL_J0118.7-0848_daily_bin1212.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.66e-03', job_status='DONE', photon_flux_upper_limit='7.23e-08', time_completed='2021-08-13 23:00:02.490582', job_id='536247', GAL2='0.88', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1628920802.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='7.23e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1212' AND source_name='4FGL J0118.7-0848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:00:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 536247: <4FGL_J0118.7-0848_daily_bin1212> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0118.7-0848_daily_bin1212 19.6884 -8.808 553478401 553737601 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 :                                   770.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             253.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            881 sec.

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

