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


Performing analysis on: 4FGL_J1018.3-3124_daily_bin1085
RA = 154.591, Dec = -31.4032
tmin = 520560001, tmax = 520819201
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='799303', job_status='RUN', time_executed='2021-09-01 17:18:34.451366', time_epoch_executed='1630541914.45' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799303

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799303/ft1_4FGL_J1018.3-3124_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799303/ft2_4FGL_J1018.3-3124_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799303/ft1_4FGL_J1018.3-3124_daily_bin1085.fits outfile=/scratch/kocevski/799303/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin1085.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=520560001.0 tmax=520819201.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.36
user 4.08
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/799303/ft2_4FGL_J1018.3-3124_daily_bin1085.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/799303/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin1085.fits evtable="EVENTS" outfile="/scratch/kocevski/799303/ft1_filtered_4FGL_J1018.3-3124_daily_bin1085.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.43
user 0.30
sys 0.11

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799303/ft1_filtered_4FGL_J1018.3-3124_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/799303/ft2_4FGL_J1018.3-3124_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/799303/ltcube_520560001_520819201_4FGL_J1018.3-3124_daily_bin1085.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/799303/ft2_4FGL_J1018.3-3124_daily_bin1085.fits
.....................!
real 11.77
user 11.24
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799303/ft1_filtered_4FGL_J1018.3-3124_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/799303/ft2_4FGL_J1018.3-3124_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/799303/ltcube_520560001_520819201_4FGL_J1018.3-3124_daily_bin1085.fits outfile=/scratch/kocevski/799303/expmap_520560001_520819201_4FGL_J1018.3-3124_daily_bin1085.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/799303/ltcube_520560001_520819201_4FGL_J1018.3-3124_daily_bin1085.fits
.....................!
real 156.02
user 151.23
sys 4.14

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/799303/ft1_filtered_4FGL_J1018.3-3124_daily_bin1085.fits scfile=/scratch/kocevski/799303/ft2_4FGL_J1018.3-3124_daily_bin1085.fits outfile=/scratch/kocevski/799303/cmap_520560001_520819201_4FGL_J1018.3-3124_daily_bin1085.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.49
user 0.34
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799303/ft1_filtered_4FGL_J1018.3-3124_daily_bin1085.fits scfile=/scratch/kocevski/799303/ft2_4FGL_J1018.3-3124_daily_bin1085.fits outfile=/scratch/kocevski/799303/cmap_HighResolution_520560001_520819201_4FGL_J1018.3-3124_daily_bin1085.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.49
user 0.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799303/ft1_filtered_4FGL_J1018.3-3124_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/799303/ft2_4FGL_J1018.3-3124_daily_bin1085.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799303/Model_4FGL_J1018.3-3124_daily_bin1085.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/799303/ft1_filtered_4FGL_J1018.3-3124_daily_bin1085.fits.....................!
real 58.88
user 57.50
sys 1.00

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10804E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .94579E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.2687       1.0000         .10000E-03   10000.    
     6 'norm      '    9.5460       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20469E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.415       1.0000         .10000E-03   10000.    
     9 'norm      '    19.819       1.0000         .10000E-03   10000.    
    10 'norm      '    .11027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.050       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11716E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.2203       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .48559E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.238       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.7255       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88746       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=   6102.768     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     2424 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    309.03        .36285E-03** at limit **
   2  norm          .10011E-03    29.992        .34577E-02** at limit **
   3  norm          .10000E-03    78.943        .36285E-03** at limit **
   4  norm          .10000E-03    3.0020        .13218E-02** at limit **
   5  norm          2.2679        2.2734        .11040E-03    .17907E-03
   6  norm          9.5451        9.6039        .12971E-03    .22817E-03
   7  Prefactor     .10016E-03    41.237        .12922    ** at limit **
   8  Prefactor     11.410        17.463        .11858E-03    .22723E-03
   9  norm          19.823        14.580        .89968E-04    .61996E-03
  10  norm          .10000E-03    10.199        .18142E-02** at limit **
  11  Prefactor     26.071        24.726        .78488E-04    .12993E-03
  12  Prefactor     .10000E-03    56.105        .18142E-02** at limit **
  13  norm          5.2159        6.5275        .87967E-03    .80671E-04
  14  Prefactor     .10000E-03    14.613        .18142E-02** at limit **
  15  Prefactor     .10000E-03    8.8147        .36285E-03** at limit **
  16  Prefactor     .10024E-03    42.887        .39057E-02** at limit **
  17  Prefactor     .10000E-03    7.3582        .18142E-02** at limit **
  18  Prefactor     10.234        13.010        .12522E-03    .25602E-04
  19  Normalizat    1.7257        .37954        .35680E-03    .24891E-03
  20  Prefactor     .88760        .14337        .19095E-03    .56145E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  norm       = 0.000100108
  norm       = 0.000100003
  norm       = 0.0001
  norm       = 2.2679
  norm       = 9.5451
  Prefactor  = 0.000100159
  Prefactor  = 11.4099
  norm       = 19.8231
  norm       = 0.000100001
  Prefactor  = 26.0708
  Prefactor  = 0.000100002
  norm       = 5.21595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100238
  Prefactor  = 0.0001
  Prefactor  = 10.2344
  Normalizat = 1.72569
  Prefactor  = 0.887595
 **********
 **   18 **HESSE 
 **********

 FCN=   6102.768     FROM HESSE     STATUS=OK           283 CALLS     2707 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    309.04        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10011E-03    30.772        .13831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    78.946        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.0020        .26437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.2679        2.2734        .44162E-05   -1.5407    
   6  norm          9.5451        9.6038        .25941E-04   -1.5090    
   7  Prefactor     .10016E-03    41.486        .12871       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.410        17.462        .47430E-05   -1.5032    
   9  norm          19.823        14.579        .17994E-04   -1.4817    
  10  norm          .10000E-03    10.202        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.071        24.721        .31395E-05   -1.4686    
  12  Prefactor     .10000E-03    56.123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.2159        6.5223        .35187E-04   -1.5251    
  14  Prefactor     .10000E-03    14.614        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.8152        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10024E-03    43.434        .78115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.3608        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.234        13.010        .50090E-05   -1.5068    
  19  Normalizat    1.7257        .37977        .71359E-04   -.71619    
  20  Prefactor     .88760        .14348        .38191E-04   -.96576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.81836e-09
Minuit parameter uncertainties:
  1  0.00299131
  2  0.00365038
  3  0.000939671
  4  1.58774e-06
  5  2.27345
  6  9.60533
  7  0.00514819
  8  17.4695
  9  14.582
  10  0.000144581
  11  24.7307
  12  0.000695724
  13  6.52319
  14  0.000136041
  15  8.87221e-05
  16  0.00644062
  17  2.20774e-05
  18  13.0133
  19  0.380418
  20  0.143542
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.982e+01  1.458e+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.876e-01  1.435e-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.726e+00  3.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.12
Ra Dec: 154.591 -31.403
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 8.32e-08 +/- 6.12e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 1.79e-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) = 6101.57899008
delta logL = 1.18913848466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6101.22854935
delta logL = 1.53957921565

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7116       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0112       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7999       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87309       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=   6101.229     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      221 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6968        6.3436        .36101E-02   -.95530E-04
   2  alpha         1.0097        .41948        .34426       -.35853E-04
   3  Normalizat    1.7994        .29290        .79328E-01    .45858E-05
   4  Prefactor     .87326        .11836        .44661E-01    .75697E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.69676
  alpha      = 1.00969
  Normalizat = 1.79938
  Prefactor  = 0.873263
 **********
 **   18 **HESSE 
 **********

 FCN=   6101.229     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6968        9.4207        .14440E-03   -1.5153    
   2  alpha         1.0097        .63763        .14734E-01   -.63867    
   3  Normalizat    1.7994        .34682        .35104E-03   -.69680    
   4  Prefactor     .87326        .14028        .19236E-03   -.97082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05272e-12
Minuit parameter uncertainties:
  1  9.42253
  2  0.648877
  3  0.3473
  4  0.140334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799303': 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) = 6101.22854583
delta logL = 1.53958273553

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  7.697e+00  9.423e+00  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  1.010e+00  6.489e-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:  8.733e-01  1.403e-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.799e+00  3.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.19
Ra Dec: 154.591 -31.403
Photon Index (Free Index): 1.01 +/- 0.65
Photon Flux (Free Index): 1.72e-08 +/- 1.68e-08
Energy Flux (Free Index): 5.39e-05 +/- 6.26e-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/799303/cmap_HighResolution_520560001_520819201_4FGL_J1018.3-3124_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.32e-08', energy_flux2='5.39e-05', photon_flux_error='6.12e-08', dlogl='1.54e+00', energy_flux='2.44e-05', photon_flux2='1.72e-08', job_status='DONE', time_completed='2021-09-01 17:27:05.353633', photon_index_error2='0.65', photon_index2='1.01', ts='4.12', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='6.26e-05', EG='1.73', time_epoch_completed='1630542425.35', return_code='0', job_id='799303', GAL2='0.87', EG2='1.80', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='1.68e-08', ts2='7.19', photon_index='2.46' WHERE bin_id='1085' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:27:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 799303: <4FGL_J1018.3-3124_daily_bin1085> in cluster <slac> Done

Job <4FGL_J1018.3-3124_daily_bin1085> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 17:10:53 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:14:38 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:14:38 2021
Terminated at Wed Sep  1 17:27:06 2021
Results reported at Wed Sep  1 17:27:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin1085 154.591 -31.4032 520560001 520819201 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 :                                   497.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            973 sec.

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

