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


Performing analysis on: 4FGL_J1018.3-3124_daily_bin1029
RA = 154.591, Dec = -31.4032
tmin = 506044801, tmax = 506304001
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='799222', job_status='RUN', time_executed='2021-09-01 17:15:36.426627', time_epoch_executed='1630541736.43' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799222

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799222/ft1_4FGL_J1018.3-3124_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799222/ft2_4FGL_J1018.3-3124_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799222/ft1_4FGL_J1018.3-3124_daily_bin1029.fits outfile=/scratch/kocevski/799222/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin1029.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=506044801.0 tmax=506304001.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 4.45
user 4.19
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799222/ft1_filtered_4FGL_J1018.3-3124_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/799222/ft2_4FGL_J1018.3-3124_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/799222/ltcube_506044801_506304001_4FGL_J1018.3-3124_daily_bin1029.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/799222/ft2_4FGL_J1018.3-3124_daily_bin1029.fits
.....................!
real 16.36
user 15.94
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799222/ft1_filtered_4FGL_J1018.3-3124_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/799222/ft2_4FGL_J1018.3-3124_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/799222/ltcube_506044801_506304001_4FGL_J1018.3-3124_daily_bin1029.fits outfile=/scratch/kocevski/799222/expmap_506044801_506304001_4FGL_J1018.3-3124_daily_bin1029.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/799222/ltcube_506044801_506304001_4FGL_J1018.3-3124_daily_bin1029.fits
.....................!
real 192.92
user 187.00
sys 5.00

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/799222/ft1_filtered_4FGL_J1018.3-3124_daily_bin1029.fits scfile=/scratch/kocevski/799222/ft2_4FGL_J1018.3-3124_daily_bin1029.fits outfile=/scratch/kocevski/799222/cmap_506044801_506304001_4FGL_J1018.3-3124_daily_bin1029.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.60
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799222/ft1_filtered_4FGL_J1018.3-3124_daily_bin1029.fits scfile=/scratch/kocevski/799222/ft2_4FGL_J1018.3-3124_daily_bin1029.fits outfile=/scratch/kocevski/799222/cmap_HighResolution_506044801_506304001_4FGL_J1018.3-3124_daily_bin1029.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799222/ft1_filtered_4FGL_J1018.3-3124_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/799222/ft2_4FGL_J1018.3-3124_daily_bin1029.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799222/Model_4FGL_J1018.3-3124_daily_bin1029.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/799222/ft1_filtered_4FGL_J1018.3-3124_daily_bin1029.fits.....................!
real 98.53
user 96.97
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/799222/ft1_filtered_4FGL_J1018.3-3124_daily_bin1029.fits', '/scratch/kocevski/799222/ft2_4FGL_J1018.3-3124_daily_bin1029.fits', expMap='/scratch/kocevski/799222/expmap_506044801_506304001_4FGL_J1018.3-3124_daily_bin1029.fits', expCube='/scratch/kocevski/799222/ltcube_506044801_506304001_4FGL_J1018.3-3124_daily_bin1029.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/799222/Model_4FGL_J1018.3-3124_daily_bin1029.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/799222/ft1_filtered_4FGL_J1018.3-3124_daily_bin1029.fits
Spacecraft file(s): /scratch/kocevski/799222/ft2_4FGL_J1018.3-3124_daily_bin1029.fits
Exposure map: /scratch/kocevski/799222/expmap_506044801_506304001_4FGL_J1018.3-3124_daily_bin1029.fits
Exposure cube: /scratch/kocevski/799222/ltcube_506044801_506304001_4FGL_J1018.3-3124_daily_bin1029.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/799222/Model_4FGL_J1018.3-3124_daily_bin1029.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) = 9040.08578266

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4967       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    31.382       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6824       1.0000         .10000E-03   10000.    
     6 'norm      '    3.6890       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    31.392       1.0000         .10000E-03   10000.    
    10 'norm      '    7.3654       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8908       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.2555       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0486       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .85257       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1713       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=   9040.069     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1720 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4931        25.129       -.56830E-05   -.12730E-03
   2  norm          .10000E-03    1.6452        .84700E-08** at limit **
   3  norm          31.381        18.392       -.36799E-06   -.67449E-04
   4  norm          .10000E-03    2.9576        .36183E-07** at limit **
   5  norm          1.6824        1.3155       -.22692E-07   -.85399E-04
   6  norm          3.6900        9.5179       -.13901E-06   -.83055E-04
   7  Prefactor     .10000E-03    7.7934        .60625E-07** at limit **
   8  Prefactor     .10000E-03    4.5296       -.28206E-06** at limit **
   9  norm          31.390        13.955       -.96550E-06   -.25042E-03
  10  norm          7.3662        6.5556        .10670E-05   -.10911E-02
  11  Prefactor     4.8877        11.849       -.10473E-05   -.11535E-03
  12  Prefactor     .10000E-03    5.5912       -.46697E-06** at limit **
  13  norm          8.2552        3.9710        .55689E-07    .32213E-04
  14  Prefactor     .10000E-03    5.0488        .69907E-06** at limit **
  15  Prefactor     .10000E-03    2.6224       -.34526E-07** at limit **
  16  Prefactor     3.0415        10.807       -.93508E-06   -.11523E-03
  17  Prefactor     .10000E-03    2.4597        .12440E-07** at limit **
  18  Prefactor     .10000E-03    20.122        .80300E-07** at limit **
  19  Normalizat    .85265        .24090        .82424E-06    .27137E-05
  20  Prefactor     1.1713        .10076        .72127E-07    .34146E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.49309
  norm       = 0.0001
  norm       = 31.3814
  norm       = 0.0001
  norm       = 1.68236
  norm       = 3.68998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.39
  norm       = 7.3662
  Prefactor  = 4.88769
  Prefactor  = 0.0001
  norm       = 8.25517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.04146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.852654
  Prefactor  = 1.17131
 **********
 **   18 **HESSE 
 **********

 FCN=   9040.069     FROM HESSE     STATUS=OK           291 CALLS     2011 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4931        26.071        .15745E-03   -1.5198    
   2  norm          .10000E-03    1.6516        .11909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          31.381        18.476        .71525E-04   -1.4587    
   4  norm          .10000E-03    2.9629        .15969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6824        1.3211        .92583E-04   -1.5449    
   6  norm          3.6900        9.4995        .21028E-03   -1.5324    
   7  Prefactor     .10000E-03    7.8034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          31.390        14.164        .71514E-04   -1.4587    
  10  norm          7.3662        9.6134        .73893E-03   -1.5165    
  11  Prefactor     4.8877        11.963        .18188E-03   -1.5266    
  12  Prefactor     .10000E-03    5.6013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.2552        3.9674        .12515E-03   -1.5133    
  14  Prefactor     .10000E-03    5.0767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.6675        .14996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0415        10.908        .23237E-03   -1.5359    
  17  Prefactor     .10000E-03    2.4680        .14561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.640        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .85265        .26819        .43722E-03   -.98144    
  20  Prefactor     1.1713        .11277        .16536E-03   -.87219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68904e-09
Minuit parameter uncertainties:
  1  26.0413
  2  1.0739e-06
  3  18.4792
  4  7.63335e-07
  5  1.32112
  6  9.50339
  7  5.35352e-06
  8  1.10049e-05
  9  14.1658
  10  9.61538
  11  11.9684
  12  2.31123e-05
  13  3.96754
  14  3.70197e-05
  15  2.37182e-06
  16  10.9155
  17  6.35608e-07
  18  2.05962e-05
  19  0.268608
  20  0.112798
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  3.139e+01  1.417e+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:  1.171e+00  1.128e-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:  8.527e-01  2.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.26
Ra Dec: 154.591 -31.403
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 1.32e-07 +/- 5.95e-08
Energy Flux (Fixed Index): 3.86e-05 +/- 1.74e-05

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) = 9039.84594812
delta logL = 0.222934872087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9039.84541686
delta logL = 0.223466132071

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    31.832       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1343       1.0000          .0000       5.0000    
     3 'Normalizat'    .88929       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1632       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9039.845     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      258 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.830        14.590        .71019E-04    .12486E-04
   2  alpha         2.1341        .49773        .14776E-01   -.65480E-05
   3  Normalizat    .88941        .25753        .42922E-03    .43439E-05
   4  Prefactor     1.1632        .11043        .16593E-03   -.24940E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 31.8305
  alpha      = 2.13409
  Normalizat = 0.889413
  Prefactor  = 1.16318
 **********
 **   18 **HESSE 
 **********

 FCN=   9039.845     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.830        14.677        .28408E-05   -1.4579    
   2  alpha         2.1341        .50043        .29553E-02   -.14689    
   3  Normalizat    .88941        .25773        .17169E-04   -.96833    
   4  Prefactor     1.1632        .11049        .66370E-05   -.87472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47501e-12
Minuit parameter uncertainties:
  1  14.6791
  2  0.503905
  3  0.258088
  4  0.110513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799222': 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) = 9039.84541667
delta logL = 0.223466321184

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  3.183e+01  1.468e+01  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  2.134e+00  5.039e-01  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:  1.163e+00  1.105e-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:  8.894e-01  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.68
Ra Dec: 154.591 -31.403
Photon Index (Free Index): 2.13 +/- 0.50
Photon Flux (Free Index): 9.84e-08 +/- 6.86e-08
Energy Flux (Free Index): 3.94e-05 +/- 1.77e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/799222/cmap_HighResolution_506044801_506304001_4FGL_J1018.3-3124_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.32e-07', energy_flux2='3.94e-05', photon_flux_error='5.95e-08', dlogl='2.23e-01', energy_flux='3.86e-05', photon_flux2='9.84e-08', job_status='DONE', time_completed='2021-09-01 17:26:56.060896', photon_index_error2='0.50', photon_index2='2.13', ts='13.26', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.77e-05', EG='0.85', time_epoch_completed='1630542416.06', return_code='0', job_id='799222', GAL2='1.16', EG2='0.89', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='6.86e-08', ts2='13.68', photon_index='2.46' WHERE bin_id='1029' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:26:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 799222: <4FGL_J1018.3-3124_daily_bin1029> in cluster <slac> Done

Job <4FGL_J1018.3-3124_daily_bin1029> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 17:10:46 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:13:15 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:13:15 2021
Terminated at Wed Sep  1 17:26:56 2021
Results reported at Wed Sep  1 17:26:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin1029 154.591 -31.4032 506044801 506304001 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 :                                   678.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            970 sec.

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

