/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 95 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 = 7483
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1018.3-3124_daily_bin365
RA = 154.591, Dec = -31.4032
tmin = 333936001, tmax = 334195201
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='795844', job_status='RUN', time_executed='2021-09-01 17:04:27.499490', time_epoch_executed='1630541067.5' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/795844

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/795844/ft1_4FGL_J1018.3-3124_daily_bin365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/795844/ft2_4FGL_J1018.3-3124_daily_bin365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/795844/ft1_4FGL_J1018.3-3124_daily_bin365.fits outfile=/scratch/kocevski/795844/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin365.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=333936001.0 tmax=334195201.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 3.32
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/795844/ft2_4FGL_J1018.3-3124_daily_bin365.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/795844/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin365.fits evtable="EVENTS" outfile="/scratch/kocevski/795844/ft1_filtered_4FGL_J1018.3-3124_daily_bin365.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.57
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/795844/ft1_filtered_4FGL_J1018.3-3124_daily_bin365.fits" evtable="EVENTS" scfile=/scratch/kocevski/795844/ft2_4FGL_J1018.3-3124_daily_bin365.fits sctable="SC_DATA" outfile=/scratch/kocevski/795844/ltcube_333936001_334195201_4FGL_J1018.3-3124_daily_bin365.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/795844/ft2_4FGL_J1018.3-3124_daily_bin365.fits
.....................!
real 15.44
user 15.02
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/795844/ft1_filtered_4FGL_J1018.3-3124_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/795844/ft2_4FGL_J1018.3-3124_daily_bin365.fits sctable="SC_DATA" expcube=/scratch/kocevski/795844/ltcube_333936001_334195201_4FGL_J1018.3-3124_daily_bin365.fits outfile=/scratch/kocevski/795844/expmap_333936001_334195201_4FGL_J1018.3-3124_daily_bin365.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/795844/ltcube_333936001_334195201_4FGL_J1018.3-3124_daily_bin365.fits
.....................!
real 193.81
user 187.80
sys 4.99

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/795844/ft1_filtered_4FGL_J1018.3-3124_daily_bin365.fits scfile=/scratch/kocevski/795844/ft2_4FGL_J1018.3-3124_daily_bin365.fits outfile=/scratch/kocevski/795844/cmap_333936001_334195201_4FGL_J1018.3-3124_daily_bin365.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/795844/ft1_filtered_4FGL_J1018.3-3124_daily_bin365.fits scfile=/scratch/kocevski/795844/ft2_4FGL_J1018.3-3124_daily_bin365.fits outfile=/scratch/kocevski/795844/cmap_HighResolution_333936001_334195201_4FGL_J1018.3-3124_daily_bin365.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.56
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/795844/ft1_filtered_4FGL_J1018.3-3124_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/795844/ft2_4FGL_J1018.3-3124_daily_bin365.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/795844/Model_4FGL_J1018.3-3124_daily_bin365.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/795844/ft1_filtered_4FGL_J1018.3-3124_daily_bin365.fits.....................!
real 91.72
user 89.99
sys 1.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4165       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5485       1.0000         .10000E-03   10000.    
     6 'norm      '    5.4450       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    18.622       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .29180E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .14683E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9511       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7175       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0159       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12843E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .98758       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94210       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=   8676.678     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     1752 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    19.615        .90712E-02** at limit **
   2  norm          .10000E-03    1.6779        .90712E-02** at limit **
   3  norm          3.4161        11.970        .54714E-02    .25833E-03
   4  norm          .10001E-03    3.5046        .90712E-02** at limit **
   5  norm          2.5485        1.5673        .63945E-02    .11875E-02
   6  norm          5.4445        6.2020        .43050E-02    .11084E-03
   7  Prefactor     .10000E-03    11.911        .90712E-02** at limit **
   8  Prefactor     .10000E-03    5.2900        .90712E-02** at limit **
   9  norm          .10000E-03    3.9054        .90712E-02** at limit **
  10  norm          18.623        9.0747        .23204E-02    .16273E-03
  11  Prefactor     .10002E-03    6.0972        .90712E-02** at limit **
  12  Prefactor     .10001E-03    18.221        .10701E-01** at limit **
  13  norm          .10001E-03    1.5479        .38873E-01** at limit **
  14  Prefactor     3.9501        10.789        .50734E-02    .18715E-03
  15  Prefactor     3.7203        3.2125        .52360E-02    .43519E-03
  16  Prefactor     .10005E-03    3.8369        .90712E-01** at limit **
  17  Prefactor     3.0158        4.1963        .58424E-02    .31805E-03
  18  Prefactor     .10002E-03    6.8148        .90712E-02** at limit **
  19  Normalizat    .98762        .20004        .79827E-01    .12664E-03
  20  Prefactor     .94209        .84252E-01    .45539E-01    .34188E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100048
  norm       = 0.0001
  norm       = 3.41615
  norm       = 0.000100013
  norm       = 2.54848
  norm       = 5.44446
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  norm       = 0.000100001
  norm       = 18.6226
  Prefactor  = 0.000100021
  Prefactor  = 0.000100006
  norm       = 0.000100006
  Prefactor  = 3.95012
  Prefactor  = 3.72028
  Prefactor  = 0.000100053
  Prefactor  = 3.01576
  Prefactor  = 0.000100017
  Normalizat = 0.987617
  Prefactor  = 0.942093
 **********
 **   18 **HESSE 
 **********

 FCN=   8676.678     FROM HESSE     STATUS=OK           291 CALLS     2043 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    19.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.6844        .11783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4161        11.982        .21886E-03   -1.5338    
   4  norm          .10001E-03    3.5133        .17030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5485        1.5637        .87156E-04   -1.5389    
   6  norm          5.4445        6.1967        .17220E-03   -1.5241    
   7  Prefactor     .10000E-03    11.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.2999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.9213        .17966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.623        9.0831        .92814E-04   -1.4845    
  11  Prefactor     .10002E-03    6.1247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    18.979        .42803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    3.4206        .22227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.9501        10.779        .20293E-03   -1.5310    
  15  Prefactor     3.7203        3.1480        .14532E-03   -1.5322    
  16  Prefactor     .10005E-03    18.519        .34380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.0158        4.1858        .21759E-03   -1.5361    
  18  Prefactor     .10002E-03    7.1222        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .98762        .22986        .35332E-03   -.93446    
  20  Prefactor     .94209        .98283E-01    .15913E-03   -.94685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75941e-08
Minuit parameter uncertainties:
  1  0.00194496
  2  1.13331e-05
  3  11.9905
  4  0.000419812
  5  1.5637
  6  6.19747
  7  0.000279035
  8  0.000183055
  9  0.000145632
  10  9.08377
  11  0.000711158
  12  0.000692794
  13  0.000288357
  14  10.7845
  15  3.14817
  16  0.00198114
  17  4.18618
  18  0.000695624
  19  0.230091
  20  0.0983013
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.000e-04  1.456e-04  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:  9.421e-01  9.830e-02  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:  9.876e-01  2.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.591 -31.403
Photon Flux Upper Limit: 6.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/795844/likelihoodResults_333936001_334195201_4FGL_J1018.3-3124_daily_bin365.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8676.67937851
delta logL = -0.00121531375589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8676.67816313
delta logL = 6.15527824266e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4492       1.0000          .0000       5.0000    
     3 'Normalizat'    .98760       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94210       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8676.678     FROM MIGRAD    STATUS=FAILED       106 CALLS      250 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    38.711        .68538E-01** at limit **
   2  alpha         1.5750        2.7295        .50000       -.90441E-06
   3  Normalizat    .98762        .18244E-01    .35332E-03    .10277E-03
   4  Prefactor     .94209        .81019E-02    .15913E-03    .26307E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8676.678     FROM SIMPLEX   STATUS=UNCHANGED    162 CALLS      412 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    38.711        .41351E-03** at limit **
   2  alpha         1.5750        2.7295        .15644E-04   -.90441E-06
   3  Normalizat    .98762        .18244E-01    .20302E-07    .10277E-03
   4  Prefactor     .94209        .81019E-02    .90535E-09    .26307E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8676.678     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      446 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    602.26        .32330E-02** at limit **
   2  alpha         1.5745        3.0423        .50000       -.48976E-07
   3  Normalizat    .98762        .64502E-01    .14133E-04    .10232E-03
   4  Prefactor     .94209        .28648E-01    .31827E-04    .26205E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.57446
  Normalizat = 0.987618
  Prefactor  = 0.942093
 **********
 **   18 **HESSE 
 **********

 FCN=   8676.678     FROM HESSE     STATUS=OK            29 CALLS      475 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.066        .64661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5745        3.1518        .50000       -.37924    
   3  Normalizat    .98762        .21736        .28266E-05   -.93446    
   4  Prefactor     .94209        .96607E-01    .63653E-05   -.94685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92264e-11
Minuit parameter uncertainties:
  1  1.91419e-05
  2  249.738
  3  0.217557
  4  0.0966243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/795844': 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) = 8676.67815969
delta logL = 3.50305890606e-06

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.000e-04  1.914e-05  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  1.574e+00  2.497e+02  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:  9.421e-01  9.662e-02  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:  9.876e-01  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.591 -31.403

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/795844/cmap_HighResolution_333936001_334195201_4FGL_J1018.3-3124_daily_bin365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.93e-05', job_status='DONE', photon_flux_upper_limit='6.61e-08', time_completed='2021-09-01 17:16:58.299576', job_id='795844', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630541818.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='3.50e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='365' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:16:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 795844: <4FGL_J1018.3-3124_daily_bin365> in cluster <slac> Done

Job <4FGL_J1018.3-3124_daily_bin365> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 17:01:07 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:02:18 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:02:18 2021
Terminated at Wed Sep  1 17:16:59 2021
Results reported at Wed Sep  1 17:16:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin365 154.591 -31.4032 333936001 334195201 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 :                                   744.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            952 sec.

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

