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


Performing analysis on: 4FGL_J1018.3-3124_daily_bin504
RA = 154.591, Dec = -31.4032
tmin = 369964801, tmax = 370224001
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='796067', job_status='RUN', time_executed='2021-09-01 17:04:49.379151', time_epoch_executed='1630541089.38' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/796067

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/796067/ft1_4FGL_J1018.3-3124_daily_bin504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/796067/ft2_4FGL_J1018.3-3124_daily_bin504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/796067/ft1_4FGL_J1018.3-3124_daily_bin504.fits outfile=/scratch/kocevski/796067/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin504.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=369964801.0 tmax=370224001.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.75
user 7.43
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/796067/ft2_4FGL_J1018.3-3124_daily_bin504.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/796067/ft2_4FGL_J1018.3-3124_daily_bin504.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/796067/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin504.fits evtable="EVENTS" outfile="/scratch/kocevski/796067/ft1_filtered_4FGL_J1018.3-3124_daily_bin504.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 0.55
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/796067/ft1_filtered_4FGL_J1018.3-3124_daily_bin504.fits" evtable="EVENTS" scfile=/scratch/kocevski/796067/ft2_4FGL_J1018.3-3124_daily_bin504.fits sctable="SC_DATA" outfile=/scratch/kocevski/796067/ltcube_369964801_370224001_4FGL_J1018.3-3124_daily_bin504.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/796067/ft2_4FGL_J1018.3-3124_daily_bin504.fits
.....................!
real 16.28
user 15.74
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/796067/ft1_filtered_4FGL_J1018.3-3124_daily_bin504.fits evtable="EVENTS" scfile=/scratch/kocevski/796067/ft2_4FGL_J1018.3-3124_daily_bin504.fits sctable="SC_DATA" expcube=/scratch/kocevski/796067/ltcube_369964801_370224001_4FGL_J1018.3-3124_daily_bin504.fits outfile=/scratch/kocevski/796067/expmap_369964801_370224001_4FGL_J1018.3-3124_daily_bin504.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/796067/ltcube_369964801_370224001_4FGL_J1018.3-3124_daily_bin504.fits
.....................!
real 191.66
user 186.43
sys 4.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 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J1018.3-3124 @ 154.591 -31.4032

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/796067/ft1_filtered_4FGL_J1018.3-3124_daily_bin504.fits scfile=/scratch/kocevski/796067/ft2_4FGL_J1018.3-3124_daily_bin504.fits outfile=/scratch/kocevski/796067/cmap_369964801_370224001_4FGL_J1018.3-3124_daily_bin504.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=154.591 yref=-31.4032 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 0.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/796067/ft1_filtered_4FGL_J1018.3-3124_daily_bin504.fits scfile=/scratch/kocevski/796067/ft2_4FGL_J1018.3-3124_daily_bin504.fits outfile=/scratch/kocevski/796067/cmap_HighResolution_369964801_370224001_4FGL_J1018.3-3124_daily_bin504.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=154.591 yref=-31.4032 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 0.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/796067/ft1_filtered_4FGL_J1018.3-3124_daily_bin504.fits evtable="EVENTS" scfile=/scratch/kocevski/796067/ft2_4FGL_J1018.3-3124_daily_bin504.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/796067/Model_4FGL_J1018.3-3124_daily_bin504.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/796067/ft1_filtered_4FGL_J1018.3-3124_daily_bin504.fits.....................!
real 60.72
user 59.09
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/796067/ft1_filtered_4FGL_J1018.3-3124_daily_bin504.fits', '/scratch/kocevski/796067/ft2_4FGL_J1018.3-3124_daily_bin504.fits', expMap='/scratch/kocevski/796067/expmap_369964801_370224001_4FGL_J1018.3-3124_daily_bin504.fits', expCube='/scratch/kocevski/796067/ltcube_369964801_370224001_4FGL_J1018.3-3124_daily_bin504.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/796067/Model_4FGL_J1018.3-3124_daily_bin504.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.3-3124'

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  6.868e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  2.461e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
340         beta:  1.460e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
341           Eb:  5.841e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/796067/ft1_filtered_4FGL_J1018.3-3124_daily_bin504.fits
Spacecraft file(s): /scratch/kocevski/796067/ft2_4FGL_J1018.3-3124_daily_bin504.fits
Exposure map: /scratch/kocevski/796067/expmap_369964801_370224001_4FGL_J1018.3-3124_daily_bin504.fits
Exposure cube: /scratch/kocevski/796067/ltcube_369964801_370224001_4FGL_J1018.3-3124_daily_bin504.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/796067/Model_4FGL_J1018.3-3124_daily_bin504.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) = 5140.49590107

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38906E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.9586       1.0000         .10000E-03   10000.    
     3 'norm      '    25.917       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    19.545       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.347       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.789       1.0000         .10000E-03   10000.    
     9 'norm      '    11.797       1.0000         .10000E-03   10000.    
    10 'norm      '    .13908E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.467       1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.573       1.0000         .10000E-03   10000.    
    13 'norm      '    .10417E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.9323       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11361E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1248       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.6844       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80141       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5140.474     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     2087 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    170.63       -.17147E-04** at limit **
   2  norm          2.9497        9.3461       -.70953E-06   -.12536E-03
   3  norm          25.916        26.120       -.49586E-08   -.11671E-04
   4  norm          .10000E-03    4.8798       -.47035E-07** at limit **
   5  norm          .10000E-03    1.1979        .25439E-07** at limit **
   6  norm          19.546        16.824        .10498E-06   -.37588E-04
   7  Prefactor     21.346        25.733        .78028E-08   -.58594E-04
   8  Prefactor     21.790        27.006        .13913E-06   -.21334E-04
   9  norm          11.797        12.220       -.17780E-06   -.15628E-03
  10  norm          .10000E-03    31.275        .41794E-07** at limit **
  11  Prefactor     16.467        18.654       -.60493E-06   -.23963E-03
  12  Prefactor     44.600        32.503       -.24994E-05   -.56700E-03
  13  norm          .10005E-03    5.1808        .39333E-05** at limit **
  14  Prefactor     9.9317        15.912       -.15495E-06   -.11697E-03
  15  Prefactor     .10000E-03    2.8540        .66954E-06** at limit **
  16  Prefactor     .10000E-03    34.946        .42695E-05** at limit **
  17  Prefactor     1.1229        8.0324        .38394E-05    .84894E-04
  18  Prefactor     .10000E-03    3.6155        .14573E-07** at limit **
  19  Normalizat    1.6843        .31769       -.44968E-05   -.30542E-03
  20  Prefactor     .80135        .12568        .12975E-05   -.61154E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100042
  norm       = 2.94971
  norm       = 25.916
  norm       = 0.0001
  norm       = 0.0001
  norm       = 19.5461
  Prefactor  = 21.3459
  Prefactor  = 21.7898
  norm       = 11.7971
  norm       = 0.0001
  Prefactor  = 16.467
  Prefactor  = 44.6003
  norm       = 0.000100053
  Prefactor  = 9.93166
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.12285
  Prefactor  = 0.0001
  Normalizat = 1.68432
  Prefactor  = 0.801345
 **********
 **   18 **HESSE 
 **********

 FCN=   5140.474     FROM HESSE     STATUS=OK           289 CALLS     2376 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    174.81        .21276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9497        9.3394        .23609E-03   -1.5364    
   3  norm          25.916        26.194        .78689E-04   -1.4689    
   4  norm          .10000E-03    4.8811        .15468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.9833        .15164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          19.546        16.813        .90596E-04   -1.4823    
   7  Prefactor     21.346        25.749        .86691E-04   -1.4784    
   8  Prefactor     21.790        26.990        .85809E-04   -1.4774    
   9  norm          11.797        12.211        .11663E-03   -1.5021    
  10  norm          .10000E-03    32.498        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.467        18.680        .98700E-04   -1.4896    
  12  Prefactor     44.600        33.406        .60051E-04   -1.4371    
  13  norm          .10005E-03    11.446        .27054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.9317        15.904        .12715E-03   -1.5078    
  15  Prefactor     .10000E-03    2.8800        .11845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    36.216        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.1229        7.9367        .39218E-03   -1.5496    
  18  Prefactor     .10000E-03    3.6185        .13315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.6843        .36327        .34050E-03   -.72723    
  20  Prefactor     .80135        .14568        .19147E-03   -.99679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.79672e-09
Minuit parameter uncertainties:
  1  0.00545757
  2  9.34401
  3  26.2055
  4  2.92431e-06
  5  4.16435e-05
  6  16.8173
  7  25.762
  8  27.0055
  9  12.2138
  10  3.03547e-05
  11  18.6868
  12  33.42
  13  0.00155856
  14  15.9106
  15  1.13021e-05
  16  0.000564959
  17  5.97138
  18  2.40082e-06
  19  0.363847
  20  0.145745
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.180e+01  1.221e+01  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  2.461e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
340         beta:  1.460e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
341           Eb:  5.841e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  8.013e-01  1.457e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.684e+00  3.638e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.73
Ra Dec: 154.591 -31.403
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 4.95e-08 +/- 5.13e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.50e-05

TS (Fixed Index): 2.73
Ra Dec: 154.591 -31.403
Photon Flux Upper Limit: 1.91e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/796067/likelihoodResults_369964801_370224001_4FGL_J1018.3-3124_daily_bin504.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) = 5140.30082506
delta logL = 0.172855204751

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5140.27419993
delta logL = 0.199480339928

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9162       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6360       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7150       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79489       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5140.274     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      215 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9091        9.6162        .33558E-02   -.13976E-03
   2  alpha         1.6350        .79383        .44793       -.80953E-05
   3  Normalizat    1.7150        .29785        .76440E-01    .11990E-03
   4  Prefactor     .79493        .12163        .43651E-01   -.46868E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.90906
  alpha      = 1.63502
  Normalizat = 1.71499
  Prefactor  = 0.794929
 **********
 **   18 **HESSE 
 **********

 FCN=   5140.274     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9091        11.686        .13423E-03   -1.5111    
   2  alpha         1.6350        1.1030        .23830E-01   -.35330    
   3  Normalizat    1.7150        .34727        .33823E-03   -.71904    
   4  Prefactor     .79493        .14193        .19220E-03   -.99916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01706e-10
Minuit parameter uncertainties:
  1  11.689
  2  1.14833
  3  0.347768
  4  0.142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/796067': 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) = 5140.2741995
delta logL = 0.199480768391

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  8.909e+00  1.169e+01  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  1.635e+00  1.148e+00  0.000e+00  5.000e+00 ( 1.000e+00)
340         beta:  1.460e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
341           Eb:  5.841e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  7.949e-01  1.420e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.715e+00  3.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.14
Ra Dec: 154.591 -31.403
Photon Index (Free Index): 1.64 +/- 1.15
Photon Flux (Free Index): 1.99e-08 +/- 3.27e-08
Energy Flux (Free Index): 1.65e-05 +/- 2.21e-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/796067/cmap_HighResolution_369964801_370224001_4FGL_J1018.3-3124_daily_bin504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.60e-05', comment='SUCCESS', photon_flux='4.95e-08', energy_flux2='1.65e-05', photon_flux_error='5.13e-08', dlogl='1.99e-01', energy_flux='1.45e-05', photon_flux2='1.99e-08', job_status='DONE', time_completed='2021-09-01 17:14:59.391828', photon_index_error2='1.15', photon_index2='1.64', ts='2.73', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.91e-07', energy_flux_error2='2.21e-05', EG='1.68', time_epoch_completed='1630541699.39', return_code='0', job_id='796067', GAL2='0.79', EG2='1.71', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='3.27e-08', ts2='3.14', photon_index='2.46' WHERE bin_id='504' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:14:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 796067: <4FGL_J1018.3-3124_daily_bin504> in cluster <slac> Done

Job <4FGL_J1018.3-3124_daily_bin504> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 17:01:24 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:03:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 17:03:11 2021
Terminated at Wed Sep  1 17:15:00 2021
Results reported at Wed Sep  1 17:15:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin504 154.591 -31.4032 369964801 370224001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.3-3124 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   602.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            816 sec.

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

