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


Performing analysis on: 4FGL_J0118.7-0848_daily_bin1094
RA = 19.6884, Dec = -8.808
tmin = 522892801, tmax = 523152001
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='535006', job_status='RUN', time_executed='2021-08-13 22:45:04.887064', time_epoch_executed='1628919904.89' WHERE source_name='4FGL J0118.7-0848' and cadence='daily' and bin_id='1094'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/535006

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/535006/ft1_4FGL_J0118.7-0848_daily_bin1094.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/535006/ft2_4FGL_J0118.7-0848_daily_bin1094.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/535006/ft1_4FGL_J0118.7-0848_daily_bin1094.fits outfile=/scratch/kocevski/535006/ft1_filteredMKT_4FGL_J0118.7-0848_daily_bin1094.fits ra=19.6884 dec=-8.808 rad=12.0 tmin=522892801.0 tmax=523152001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.09
user 3.51
sys 1.52

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/535006/ft2_4FGL_J0118.7-0848_daily_bin1094.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/535006/ft1_filteredMKT_4FGL_J0118.7-0848_daily_bin1094.fits evtable="EVENTS" outfile="/scratch/kocevski/535006/ft1_filtered_4FGL_J0118.7-0848_daily_bin1094.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 1.78
user 0.32
sys 1.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/535006/ft1_filtered_4FGL_J0118.7-0848_daily_bin1094.fits" evtable="EVENTS" scfile=/scratch/kocevski/535006/ft2_4FGL_J0118.7-0848_daily_bin1094.fits sctable="SC_DATA" outfile=/scratch/kocevski/535006/ltcube_522892801_523152001_4FGL_J0118.7-0848_daily_bin1094.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/535006/ft2_4FGL_J0118.7-0848_daily_bin1094.fits
.....................!
real 13.48
user 11.61
sys 1.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/535006/ft1_filtered_4FGL_J0118.7-0848_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/535006/ft2_4FGL_J0118.7-0848_daily_bin1094.fits sctable="SC_DATA" expcube=/scratch/kocevski/535006/ltcube_522892801_523152001_4FGL_J0118.7-0848_daily_bin1094.fits outfile=/scratch/kocevski/535006/expmap_522892801_523152001_4FGL_J0118.7-0848_daily_bin1094.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/535006/ltcube_522892801_523152001_4FGL_J0118.7-0848_daily_bin1094.fits
.....................!
real 193.69
user 186.91
sys 6.19

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/535006/ft1_filtered_4FGL_J0118.7-0848_daily_bin1094.fits scfile=/scratch/kocevski/535006/ft2_4FGL_J0118.7-0848_daily_bin1094.fits outfile=/scratch/kocevski/535006/cmap_522892801_523152001_4FGL_J0118.7-0848_daily_bin1094.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 1.82
user 0.40
sys 1.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/535006/ft1_filtered_4FGL_J0118.7-0848_daily_bin1094.fits scfile=/scratch/kocevski/535006/ft2_4FGL_J0118.7-0848_daily_bin1094.fits outfile=/scratch/kocevski/535006/cmap_HighResolution_522892801_523152001_4FGL_J0118.7-0848_daily_bin1094.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 1.71
user 0.39
sys 1.30

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/535006/ft1_filtered_4FGL_J0118.7-0848_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/535006/ft2_4FGL_J0118.7-0848_daily_bin1094.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/535006/Model_4FGL_J0118.7-0848_daily_bin1094.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/535006/ft1_filtered_4FGL_J0118.7-0848_daily_bin1094.fits.....................!
real 53.74
user 50.66
sys 2.87

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1779       1.0000         .10000E-03   10000.    
     2 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5382       1.0000         .10000E-03   10000.    
     7 'norm      '    3.0205       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.739       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13111E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    60.841       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.9394       1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .91250       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1705       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=   5063.540     FROM MIGRAD    STATUS=CONVERGED    358 CALLS     1728 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1775        4.9446        .51368E-06   -.85729E-04
   2  norm          .10000E-03    2.2523       -.58080E-07** at limit **
   3  norm          .10000E-03    2.6165        .16343E-09** at limit **
   4  Prefactor     .10000E-03    9.0247        .10678E-04** at limit **
   5  Prefactor     .10000E-03    10.587       -.10816E-04** at limit **
   6  Prefactor     4.5342        56.496       -.72638E-05    .91508E-05
   7  norm          3.0207        1.5628        .18235E-06    .25584E-03
   8  Prefactor     32.705        46.850       -.45520E-04    .32661E-04
   9  Prefactor     .10001E-03    7.0118       -.96793E-06** at limit **
  10  Prefactor     .10000E-03    1.4872       -.97864E-08** at limit **
  11  Prefactor     60.837        47.305       -.35758E-05    .14256E-04
  12  Prefactor     .10000E-03    2.7068        .13851E-06** at limit **
  13  norm          .10000E-03    16.293        .37203E-05** at limit **
  14  norm          1.9396        1.6542       -.45044E-06   -.42253E-03
  15  norm          .10000E-03    3.0623       -.12229E-06** at limit **
  16  Prefactor     .10000E-03    49.236       -.13332E-05** at limit **
  17  Normalizat    .91229        .19707        .49722E-05   -.37306E-04
  18  Prefactor     1.1707        .18500        .15959E-05    .64270E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.1775
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.53417
  norm       = 3.02075
  Prefactor  = 32.7055
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 60.8373
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.93959
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.912292
  Prefactor  = 1.17073
 **********
 **   18 **HESSE 
 **********

 FCN=   5063.540     FROM HESSE     STATUS=OK           242 CALLS     1970 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1775        4.9105        .12692E-03   -1.5211    
   2  norm          .10000E-03    5.3747        .20754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.6274        .11230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.0362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5342        55.766        .18898E-03   -1.5282    
   7  norm          3.0207        1.5621        .61649E-04   -1.5360    
   8  Prefactor     32.705        46.820        .70031E-04   -1.4564    
   9  Prefactor     .10001E-03    7.0878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.4945        .84705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     60.837        47.336        .51440E-04   -1.4146    
  12  Prefactor     .10000E-03    2.7092        .11433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    16.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.9396        1.6480        .79868E-04   -1.5429    
  15  norm          .10000E-03    3.0805        .12158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    49.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .91229        .22723        .26835E-03   -.96030    
  18  Prefactor     1.1707        .21407        .23219E-03   -.87237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80673e-09
Minuit parameter uncertainties:
  1  4.91087
  2  0.000135382
  3  2.8739e-06
  4  3.11576e-05
  5  2.12815e-06
  6  31.8393
  7  1.56216
  8  46.8729
  9  0.000559281
  10  1.2713e-06
  11  47.3657
  12  1.37816e-05
  13  2.92513e-05
  14  1.64807
  15  1.71872e-05
  16  6.67706e-05
  17  0.22747
  18  0.214232
Done.

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

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  6.084e+01  4.737e+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.171e+00  2.142e-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.123e-01  2.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.55
Ra Dec: 19.688 -8.808
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 6.36e-08 +/- 4.95e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.30e-05

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

Saving results to:
/scratch/kocevski/535006/likelihoodResults_522892801_523152001_4FGL_J0118.7-0848_daily_bin1094.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) = 5063.53999146
delta logL = 0.000216240699956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5063.53985595
delta logL = 0.000351758960278

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.984       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6202       1.0000          .0000       10.000    
     3 'Normalizat'    .91099       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1713       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=   5063.540     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      259 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.966        60.824        .51804E-04    .97438E-04
   2  Index         2.6191        .93230        .85799E-02    .17736E-04
   3  Normalizat    .91093        .22647        .26852E-03    .15005E-03
   4  Prefactor     1.1716        .21486        .23212E-03    .99956E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.9657
  Index      = 2.61907
  Normalizat = 0.910931
  Prefactor  = 1.17156
 **********
 **   18 **HESSE 
 **********

 FCN=   5063.540     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.966        57.425        .10361E-04   -1.4158    
   2  Index         2.6191        .87911        .34320E-03   -.49631    
   3  Normalizat    .91093        .22593        .10741E-04   -.96077    
   4  Prefactor     1.1716        .21458        .46423E-04   -.87211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.64186e-11
Minuit parameter uncertainties:
  1  57.4782
  2  0.885075
  3  0.226169
  4  0.214744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/535006': 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) = 5063.53985225
delta logL = 0.00035545737046

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  5.997e+01  5.748e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.619e+00  8.851e-01  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.172e+00  2.147e-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.109e-01  2.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.54
Ra Dec: 19.688 -8.808
Photon Index (Free Index): 2.62 +/- 0.89
Photon Flux (Free Index): 6.47e-08 +/- 6.46e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.32e-05

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/535006/cmap_HighResolution_522892801_523152001_4FGL_J0118.7-0848_daily_bin1094.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', comment='SUCCESS', photon_flux='6.36e-08', energy_flux2='1.67e-05', photon_flux_error='4.95e-08', dlogl='3.55e-04', energy_flux='1.67e-05', photon_flux2='6.47e-08', job_status='DONE', time_completed='2021-08-13 22:54:15.814027', photon_index_error2='0.89', photon_index2='2.62', ts='2.55', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='1.32e-05', EG='0.91', time_epoch_completed='1628920455.81', return_code='0', job_id='535006', GAL2='1.17', EG2='0.91', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='6.46e-08', ts2='2.54', photon_index='2.60' WHERE bin_id='1094' AND source_name='4FGL J0118.7-0848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 22:54:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0119>
Subject: Job 535006: <4FGL_J0118.7-0848_daily_bin1094> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0118.7-0848_daily_bin1094 19.6884 -8.808 522892801 523152001 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 :                                   565.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            812 sec.

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

