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


Performing analysis on: 4FGL_J0118.7-0848_daily_bin1334
RA = 19.6884, Dec = -8.808
tmin = 585100801, tmax = 585360001
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='536416', job_status='RUN', time_executed='2021-08-13 22:51:00.420485', time_epoch_executed='1628920260.42' WHERE source_name='4FGL J0118.7-0848' and cadence='daily' and bin_id='1334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/536416

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/536416/ft1_4FGL_J0118.7-0848_daily_bin1334.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/536416/ft2_4FGL_J0118.7-0848_daily_bin1334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/536416/ft1_4FGL_J0118.7-0848_daily_bin1334.fits outfile=/scratch/kocevski/536416/ft1_filteredMKT_4FGL_J0118.7-0848_daily_bin1334.fits ra=19.6884 dec=-8.808 rad=12.0 tmin=585100801.0 tmax=585360001.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 3.85
user 2.85
sys 0.96

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/536416/ft1_filtered_4FGL_J0118.7-0848_daily_bin1334.fits" evtable="EVENTS" scfile=/scratch/kocevski/536416/ft2_4FGL_J0118.7-0848_daily_bin1334.fits sctable="SC_DATA" outfile=/scratch/kocevski/536416/ltcube_585100801_585360001_4FGL_J0118.7-0848_daily_bin1334.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/536416/ft2_4FGL_J0118.7-0848_daily_bin1334.fits
.....................!
real 15.11
user 13.72
sys 1.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/536416/ft1_filtered_4FGL_J0118.7-0848_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/536416/ft2_4FGL_J0118.7-0848_daily_bin1334.fits sctable="SC_DATA" expcube=/scratch/kocevski/536416/ltcube_585100801_585360001_4FGL_J0118.7-0848_daily_bin1334.fits outfile=/scratch/kocevski/536416/expmap_585100801_585360001_4FGL_J0118.7-0848_daily_bin1334.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/536416/ltcube_585100801_585360001_4FGL_J0118.7-0848_daily_bin1334.fits
.....................!
real 192.79
user 186.73
sys 5.31

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/536416/ft1_filtered_4FGL_J0118.7-0848_daily_bin1334.fits scfile=/scratch/kocevski/536416/ft2_4FGL_J0118.7-0848_daily_bin1334.fits outfile=/scratch/kocevski/536416/cmap_585100801_585360001_4FGL_J0118.7-0848_daily_bin1334.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.32
user 0.39
sys 0.91

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/536416/ft1_filtered_4FGL_J0118.7-0848_daily_bin1334.fits scfile=/scratch/kocevski/536416/ft2_4FGL_J0118.7-0848_daily_bin1334.fits outfile=/scratch/kocevski/536416/cmap_HighResolution_585100801_585360001_4FGL_J0118.7-0848_daily_bin1334.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.32
user 0.41
sys 0.90

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/536416/ft1_filtered_4FGL_J0118.7-0848_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/536416/ft2_4FGL_J0118.7-0848_daily_bin1334.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/536416/Model_4FGL_J0118.7-0848_daily_bin1334.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/536416/ft1_filtered_4FGL_J0118.7-0848_daily_bin1334.fits.....................!
real 66.00
user 63.51
sys 2.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    13.816       1.0000         .10000E-03   10000.    
     3 'norm      '    6.0891       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6041       1.0000         .10000E-03   10000.    
     7 'norm      '    5.6896       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10564E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8541       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.007       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .39604E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .20888E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.3939       1.0000         .10000E-03   10000.    
    16 'Prefactor '    140.36       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .65545       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2503       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=   6709.966     FROM MIGRAD    STATUS=CONVERGED    370 CALLS     1759 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1716        .17665E-06** at limit **
   2  norm          13.815        4.8556        .34536E-06   -.43674E-03
   3  norm          6.0855        4.4526        .20764E-06   -.10676E-03
   4  Prefactor     .10000E-03    27.529        .57385E-05** at limit **
   5  Prefactor     .10000E-03    54.177        .18542E-04** at limit **
   6  Prefactor     3.5880        26.128       -.21172E-05   -.47478E-04
   7  norm          5.6893        1.6284        .11324E-06   -.64050E-04
   8  Prefactor     .10000E-03    32.033       -.10673E-04** at limit **
   9  Prefactor     .10000E-03    6.5813        .20037E-06** at limit **
  10  Prefactor     3.8512        3.0569        .35916E-06    .92371E-04
  11  Prefactor     18.996        22.349       -.32700E-05    .91003E-04
  12  Prefactor     .10000E-03    3.5734       -.20710E-06** at limit **
  13  norm          .10000E-03    89.794       -.37714E-04** at limit **
  14  norm          .10000E-03    .27476        .49877E-07** at limit **
  15  norm          8.3910        4.8546       -.56550E-06    .52181E-03
  16  Prefactor     140.43        85.593        .50026E-04    .48680E-04
  17  Normalizat    .65542        .15380       -.36500E-05    .27621E-03
  18  Prefactor     1.2503        .15543       -.10325E-05    .22722E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 13.8153
  norm       = 6.08553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.58798
  norm       = 5.68928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.85121
  Prefactor  = 18.996
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 0.0001
  norm       = 8.39101
  Prefactor  = 140.426
  Normalizat = 0.655424
  Prefactor  = 1.25031
 **********
 **   18 **HESSE 
 **********

 FCN=   6709.966     FROM HESSE     STATUS=OK           246 CALLS     2005 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2517        .11751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.815        4.8527        .10296E-03   -1.4964    
   3  norm          6.0855        4.4400        .14048E-03   -1.5215    
   4  Prefactor     .10000E-03    27.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    54.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5880        25.962        .21284E-03   -1.5329    
   7  norm          5.6893        1.6272        .53840E-04   -1.5231    
   8  Prefactor     .10000E-03    32.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.8811        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8512        3.0537        .12202E-03   -1.5315    
  11  Prefactor     18.996        22.322        .91868E-04   -1.4836    
  12  Prefactor     .10000E-03    8.4044        .30062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    93.280        .40379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .27824        .41902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.3910        4.8484        .13215E-03   -1.5129    
  16  Prefactor     140.43        85.714        .17001E-03   -1.3332    
  17  Normalizat    .65542        .17622        .28833E-03   -1.0568    
  18  Prefactor     1.2503        .17934        .21846E-03   -.84797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34137e-10
Minuit parameter uncertainties:
  1  2.65104e-05
  2  4.85283
  3  4.44022
  4  0.000130234
  5  3.77655e-05
  6  19.3146
  7  1.62717
  8  0.000135205
  9  5.40991e-05
  10  3.0538
  11  22.3316
  12  0.000122542
  13  0.00119911
  14  2.3912e-06
  15  4.84866
  16  85.7896
  17  0.176373
  18  0.179429
Done.

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

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  1.900e+01  2.233e+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.250e+00  1.794e-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:  6.554e-01  1.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.17
Ra Dec: 19.688 -8.808
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 1.99e-08 +/- 2.33e-08
Energy Flux (Fixed Index): 5.23e-06 +/- 6.15e-06

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

Saving results to:
/scratch/kocevski/536416/likelihoodResults_585100801_585360001_4FGL_J0118.7-0848_daily_bin1334.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) = 6709.8173346
delta logL = 0.148196821492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6709.81728432
delta logL = 0.148247104928

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.869       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1444       1.0000          .0000       10.000    
     3 'Normalizat'    .66093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2464       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=   6709.817     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      268 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.820        1447.1        .19691E-02    .37390E-04
   2  Index         2.1427        5.2902        .25019        .42999E-04
   3  Normalizat    .66094        .10495        .64910E-01    .74875E-04
   4  Prefactor     1.2464        .90622E-01    .49478E-01   -.66021E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.8203
  Index      = 2.14273
  Normalizat = 0.660941
  Prefactor  = 1.24644
 **********
 **   18 **HESSE 
 **********

 FCN=   6709.817     FROM HESSE     STATUS=OK            31 CALLS      299 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.820        29.246        .78762E-04   -1.4691    
   2  Index         2.1427        .76837        .11862E-01   -.60828    
   3  Normalizat    .66094        .17359        .28720E-03   -1.0546    
   4  Prefactor     1.2464        .17742        .21872E-03   -.84914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.70713e-11
Minuit parameter uncertainties:
  1  29.2627
  2  0.772933
  3  0.173734
  4  0.177502
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/536416': 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) = 6709.81727989
delta logL = 0.148251527722

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  2.582e+01  2.926e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.143e+00  7.729e-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.246e+00  1.775e-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:  6.609e-01  1.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.47
Ra Dec: 19.688 -8.808
Photon Index (Free Index): 2.14 +/- 0.77
Photon Flux (Free Index): 1.54e-08 +/- 1.99e-08
Energy Flux (Free Index): 7.74e-06 +/- 1.12e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/536416/cmap_HighResolution_585100801_585360001_4FGL_J0118.7-0848_daily_bin1334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', comment='SUCCESS', photon_flux='1.99e-08', energy_flux2='7.74e-06', photon_flux_error='2.33e-08', dlogl='1.48e-01', energy_flux='5.23e-06', photon_flux2='1.54e-08', job_status='DONE', time_completed='2021-08-13 23:01:46.864997', photon_index_error2='0.77', photon_index2='2.14', ts='1.17', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='8.11e-08', energy_flux_error2='1.12e-05', EG='0.66', time_epoch_completed='1628920906.87', return_code='0', job_id='536416', GAL2='1.25', EG2='0.66', return_code2='0', energy_flux_error='6.15e-06', photon_flux_error2='1.99e-08', ts2='1.47', photon_index='2.60' WHERE bin_id='1334' AND source_name='4FGL J0118.7-0848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:01:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 536416: <4FGL_J0118.7-0848_daily_bin1334> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0118.7-0848_daily_bin1334 19.6884 -8.808 585100801 585360001 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 :                                   627.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            973 sec.

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

