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


Performing analysis on: 4FGL_J1018.3-3124_daily_bin931
RA = 154.591, Dec = -31.4032
tmin = 480643201, tmax = 480902401
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='799072', job_status='RUN', time_executed='2021-09-01 17:13:52.607790', time_epoch_executed='1630541632.61' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799072

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799072/ft1_4FGL_J1018.3-3124_daily_bin931.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799072/ft2_4FGL_J1018.3-3124_daily_bin931.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799072/ft1_4FGL_J1018.3-3124_daily_bin931.fits outfile=/scratch/kocevski/799072/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin931.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=480643201.0 tmax=480902401.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.58
user 3.35
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799072/ft1_filtered_4FGL_J1018.3-3124_daily_bin931.fits" evtable="EVENTS" scfile=/scratch/kocevski/799072/ft2_4FGL_J1018.3-3124_daily_bin931.fits sctable="SC_DATA" outfile=/scratch/kocevski/799072/ltcube_480643201_480902401_4FGL_J1018.3-3124_daily_bin931.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/799072/ft2_4FGL_J1018.3-3124_daily_bin931.fits
.....................!
real 16.37
user 15.99
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799072/ft1_filtered_4FGL_J1018.3-3124_daily_bin931.fits evtable="EVENTS" scfile=/scratch/kocevski/799072/ft2_4FGL_J1018.3-3124_daily_bin931.fits sctable="SC_DATA" expcube=/scratch/kocevski/799072/ltcube_480643201_480902401_4FGL_J1018.3-3124_daily_bin931.fits outfile=/scratch/kocevski/799072/expmap_480643201_480902401_4FGL_J1018.3-3124_daily_bin931.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/799072/ltcube_480643201_480902401_4FGL_J1018.3-3124_daily_bin931.fits
.....................!
real 192.65
user 187.43
sys 4.55

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/799072/ft1_filtered_4FGL_J1018.3-3124_daily_bin931.fits scfile=/scratch/kocevski/799072/ft2_4FGL_J1018.3-3124_daily_bin931.fits outfile=/scratch/kocevski/799072/cmap_480643201_480902401_4FGL_J1018.3-3124_daily_bin931.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799072/ft1_filtered_4FGL_J1018.3-3124_daily_bin931.fits scfile=/scratch/kocevski/799072/ft2_4FGL_J1018.3-3124_daily_bin931.fits outfile=/scratch/kocevski/799072/cmap_HighResolution_480643201_480902401_4FGL_J1018.3-3124_daily_bin931.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799072/ft1_filtered_4FGL_J1018.3-3124_daily_bin931.fits evtable="EVENTS" scfile=/scratch/kocevski/799072/ft2_4FGL_J1018.3-3124_daily_bin931.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799072/Model_4FGL_J1018.3-3124_daily_bin931.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/799072/ft1_filtered_4FGL_J1018.3-3124_daily_bin931.fits.....................!
real 80.25
user 78.78
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    17.760       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.5227       1.0000         .10000E-03   10000.    
    10 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.012       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2644       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .52447       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2837       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1372       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .94689       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95338       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7510.794     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     1726 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    11.501         .0000    ** at limit **
   2  norm          .10000E-03    3.9408         .0000    ** at limit **
   3  norm          .10001E-03    3.8542         .0000    ** at limit **
   4  norm          .10001E-03    6.8931         .0000    ** at limit **
   5  norm          .10000E-03    .52232         .0000    ** at limit **
   6  norm          17.760        11.761         .0000        .48743E-03
   7  Prefactor     .10000E-03    11.284         .0000    ** at limit **
   8  Prefactor     .10001E-03    4.1257         .0000    ** at limit **
   9  norm          7.5230        7.4318         .0000        .22423E-03
  10  norm          .10011E-03    6.2413         .0000    ** at limit **
  11  Prefactor     13.008        15.075         .0000        .29797E-04
  12  Prefactor     .10001E-03    21.708         .0000    ** at limit **
  13  norm          3.2638        3.3883         .0000        .28468E-03
  14  Prefactor     .51449        8.4472         .0000        .12579E-02
  15  Prefactor     4.2837        4.0643         .0000        .28954E-03
  16  Prefactor     .10011E-03    7.1711         .0000    ** at limit **
  17  Prefactor     1.1367        4.2913         .0000        .30842E-01
  18  Prefactor     .10000E-03    3.3622         .0000    ** at limit **
  19  Normalizat    .94690        .21403         .0000        .10607E-03
  20  Prefactor     .95338        .90018E-01     .0000        .19826E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100022
  norm       = 0.000100002
  norm       = 0.000100015
  norm       = 0.000100012
  norm       = 0.0001
  norm       = 17.7596
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 7.52302
  norm       = 0.000100114
  Prefactor  = 13.0085
  Prefactor  = 0.000100006
  norm       = 3.2638
  Prefactor  = 0.514486
  Prefactor  = 4.2837
  Prefactor  = 0.000100107
  Prefactor  = 1.13671
  Prefactor  = 0.0001
  Normalizat = 0.946903
  Prefactor  = 0.953375
 **********
 **   18 **HESSE 
 **********

 FCN=   7510.794     FROM HESSE     STATUS=OK           289 CALLS     2015 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    11.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.0087        .16798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    3.8584        .16616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10001E-03    6.9510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .54174        .12224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          17.760        11.759        .95039E-04   -1.4865    
   7  Prefactor     .10000E-03    11.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    4.1299        .17191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.5230        7.4285        .14622E-03   -1.5159    
  10  norm          .10011E-03    6.3817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.008        15.069        .11104E-03   -1.4986    
  12  Prefactor     .10001E-03    21.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2638        3.3654        .15151E-03   -1.5347    
  14  Prefactor     .51449        62.090        .46241E-02   -1.5565    
  15  Prefactor     4.2837        4.0486        .15878E-03   -1.5294    
  16  Prefactor     .10011E-03    7.2301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.1367        4.2720        .16849E-02   -1.5495    
  18  Prefactor     .10000E-03    3.3718        .15519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .94690        .24734        .36165E-03   -.94831    
  20  Prefactor     .95338        .10485        .15786E-03   -.94300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.4243e-08
Minuit parameter uncertainties:
  1  0.00100685
  2  0.00015865
  3  0.000473728
  4  0.000571661
  5  6.00352e-06
  6  11.7603
  7  9.26056e-05
  8  0.000446929
  9  7.42941
  10  0.00170447
  11  15.073
  12  0.000747167
  13  3.36564
  14  11.3148
  15  4.0489
  16  0.00175713
  17  4.27309
  18  3.86991e-05
  19  0.247639
  20  0.104871
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  7.523e+00  7.429e+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

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  9.534e-01  1.049e-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:  9.469e-01  2.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.04
Ra Dec: 154.591 -31.403
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 3.16e-08 +/- 3.12e-08
Energy Flux (Fixed Index): 9.25e-06 +/- 9.14e-06

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

Saving results to:
/scratch/kocevski/799072/likelihoodResults_480643201_480902401_4FGL_J1018.3-3124_daily_bin931.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) = 7510.76298019
delta logL = 0.0313446040454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7510.75952917
delta logL = 0.0347956290861

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0778       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8120       1.0000          .0000       5.0000    
     3 'Normalizat'    .93212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95703       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=   7510.760     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      244 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0782        7.7231        .15078E-03   -.17115E-03
   2  alpha         2.8119        1.3571        .31432E-01    .10529E-03
   3  Normalizat    .93212        .24721        .36418E-03   -.31061E-04
   4  Prefactor     .95703        .10561        .15758E-03    .72032E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.07817
  alpha      = 2.81185
  Normalizat = 0.932124
  Prefactor  = 0.957029
 **********
 **   18 **HESSE 
 **********

 FCN=   7510.760     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0782        7.4261        .60314E-05   -1.5176    
   2  alpha         2.8119        1.3069        .62865E-02    .12507    
   3  Normalizat    .93212        .24644        .14567E-04   -.95340    
   4  Prefactor     .95703        .10550        .31515E-04   -.94176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80857e-11
Minuit parameter uncertainties:
  1  7.42709
  2  1.37641
  3  0.246743
  4  0.105523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799072': 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) = 7510.75952915
delta logL = 0.0347956427904

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  7.078e+00  7.427e+00  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  2.812e+00  1.376e+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:  9.570e-01  1.055e-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:  9.321e-01  2.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.13
Ra Dec: 154.591 -31.403
Photon Index (Free Index): 2.81 +/- 1.38
Photon Flux (Free Index): 4.36e-08 +/- 6.34e-08
Energy Flux (Free Index): 1.01e-05 +/- 1.02e-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/799072/cmap_HighResolution_480643201_480902401_4FGL_J1018.3-3124_daily_bin931.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.31e-05', comment='SUCCESS', photon_flux='3.16e-08', energy_flux2='1.01e-05', photon_flux_error='3.12e-08', dlogl='3.48e-02', energy_flux='9.25e-06', photon_flux2='4.36e-08', job_status='DONE', time_completed='2021-09-01 17:25:01.621193', photon_index_error2='1.38', photon_index2='2.81', ts='2.04', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.02e-05', EG='0.95', time_epoch_completed='1630542301.62', return_code='0', job_id='799072', GAL2='0.96', EG2='0.93', return_code2='0', energy_flux_error='9.14e-06', photon_flux_error2='6.34e-08', ts2='2.13', photon_index='2.46' WHERE bin_id='931' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:25:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 799072: <4FGL_J1018.3-3124_daily_bin931> in cluster <slac> Done

Job <4FGL_J1018.3-3124_daily_bin931> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 17:10:37 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:11:49 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:11:49 2021
Terminated at Wed Sep  1 17:25:02 2021
Results reported at Wed Sep  1 17:25:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin931 154.591 -31.4032 480643201 480902401 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 :                                   668.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            865 sec.

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

