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


Performing analysis on: 4FGL_J1018.3-3124_daily_bin1273
RA = 154.591, Dec = -31.4032
tmin = 569289601, tmax = 569548801
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='801811', job_status='RUN', time_executed='2021-09-01 17:22:05.664464', time_epoch_executed='1630542125.66' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='1273'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/801811

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/801811/ft1_4FGL_J1018.3-3124_daily_bin1273.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/801811/ft2_4FGL_J1018.3-3124_daily_bin1273.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/801811/ft1_4FGL_J1018.3-3124_daily_bin1273.fits outfile=/scratch/kocevski/801811/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin1273.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=569289601.0 tmax=569548801.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.65
user 3.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/801811/ft1_filtered_4FGL_J1018.3-3124_daily_bin1273.fits" evtable="EVENTS" scfile=/scratch/kocevski/801811/ft2_4FGL_J1018.3-3124_daily_bin1273.fits sctable="SC_DATA" outfile=/scratch/kocevski/801811/ltcube_569289601_569548801_4FGL_J1018.3-3124_daily_bin1273.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/801811/ft2_4FGL_J1018.3-3124_daily_bin1273.fits
.....................!
real 16.07
user 15.67
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/801811/ft1_filtered_4FGL_J1018.3-3124_daily_bin1273.fits evtable="EVENTS" scfile=/scratch/kocevski/801811/ft2_4FGL_J1018.3-3124_daily_bin1273.fits sctable="SC_DATA" expcube=/scratch/kocevski/801811/ltcube_569289601_569548801_4FGL_J1018.3-3124_daily_bin1273.fits outfile=/scratch/kocevski/801811/expmap_569289601_569548801_4FGL_J1018.3-3124_daily_bin1273.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/801811/ltcube_569289601_569548801_4FGL_J1018.3-3124_daily_bin1273.fits
.....................!
real 192.47
user 187.39
sys 4.52

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/801811/ft1_filtered_4FGL_J1018.3-3124_daily_bin1273.fits scfile=/scratch/kocevski/801811/ft2_4FGL_J1018.3-3124_daily_bin1273.fits outfile=/scratch/kocevski/801811/cmap_569289601_569548801_4FGL_J1018.3-3124_daily_bin1273.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/801811/ft1_filtered_4FGL_J1018.3-3124_daily_bin1273.fits scfile=/scratch/kocevski/801811/ft2_4FGL_J1018.3-3124_daily_bin1273.fits outfile=/scratch/kocevski/801811/cmap_HighResolution_569289601_569548801_4FGL_J1018.3-3124_daily_bin1273.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=154.591 yref=-31.4032 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/801811/ft1_filtered_4FGL_J1018.3-3124_daily_bin1273.fits evtable="EVENTS" scfile=/scratch/kocevski/801811/ft2_4FGL_J1018.3-3124_daily_bin1273.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/801811/Model_4FGL_J1018.3-3124_daily_bin1273.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/801811/ft1_filtered_4FGL_J1018.3-3124_daily_bin1273.fits.....................!
real 120.65
user 119.12
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8915       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.496       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8920       1.0000         .10000E-03   10000.    
     6 'norm      '    .86539       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3316       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4741       1.0000         .10000E-03   10000.    
     9 'norm      '    39.797       1.0000         .10000E-03   10000.    
    10 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18688E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.471       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2629       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11556E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3591       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.0992       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .72652       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1813       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=   12124.89     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     1756 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8867        15.196        .39378E-06   -.28915E-04
   2  norm          .10000E-03    2.2783        .28058E-07** at limit **
   3  norm          12.495        11.683       -.76365E-07   -.48797E-04
   4  norm          .10000E-03    3.9210        .33401E-06** at limit **
   5  norm          1.8921        .95905        .41968E-07   -.86303E-04
   6  norm          .86026        4.6875        .43401E-06   -.12226E-03
   7  Prefactor     4.3290        14.884        .15743E-05    .11000E-03
   8  Prefactor     2.4256        19.912       -.52843E-05   -.28285E-03
   9  norm          39.799        11.533        .65731E-06    .83943E-03
  10  norm          .10000E-03    6.4978        .30503E-06** at limit **
  11  Prefactor     .10006E-03    6.8439        .16358E-05** at limit **
  12  Prefactor     11.472        9.5562       -.13678E-06    .10233E-03
  13  norm          1.2630        1.5773        .44182E-07    .77213E-04
  14  Prefactor     .10000E-03    5.0988        .43206E-06** at limit **
  15  Prefactor     .10000E-03    2.0818       -.11883E-05** at limit **
  16  Prefactor     2.3633        6.9720        .94794E-06    .21524E-03
  17  Prefactor     6.0997        4.7453        .22868E-05   -.39011E-03
  18  Prefactor     .10000E-03    2.4186        .18280E-07** at limit **
  19  Normalizat    .72632        .20399       -.24778E-05    .10893E-04
  20  Prefactor     1.1814        .87666E-01    .35693E-06   -.10614E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.88672
  norm       = 0.0001
  norm       = 12.4951
  norm       = 0.0001
  norm       = 1.89213
  norm       = 0.860258
  Prefactor  = 4.32896
  Prefactor  = 2.42563
  norm       = 39.7991
  norm       = 0.0001
  Prefactor  = 0.000100064
  Prefactor  = 11.4715
  norm       = 1.26298
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 2.36331
  Prefactor  = 6.09965
  Prefactor  = 0.0001
  Normalizat = 0.726325
  Prefactor  = 1.18135
 **********
 **   18 **HESSE 
 **********

 FCN=   12124.89     FROM HESSE     STATUS=OK           301 CALLS     2057 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8867        15.190        .23899E-03   -1.5368    
   2  norm          .10000E-03    2.3027        .16228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.495        11.716        .11332E-03   -1.5001    
   4  norm          .10000E-03    3.9397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8921        .95775        .74037E-04   -1.5433    
   6  norm          .86026        14.568        .44503E-02   -1.5522    
   7  Prefactor     4.3290        14.916        .19355E-03   -1.5292    
   8  Prefactor     2.4256        22.470        .25994E-03   -1.5396    
   9  norm          39.799        11.772        .63538E-04   -1.4445    
  10  norm          .10000E-03    6.6141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10006E-03    31.082        .53153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.472        9.4772        .11828E-03   -1.5030    
  13  norm          1.2630        1.5462        .14823E-03   -1.5483    
  14  Prefactor     .10000E-03    5.1235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.2213        .28233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.3633        6.8027        .26683E-03   -1.5400    
  17  Prefactor     6.0997        4.8775        .81284E-03   -1.5214    
  18  Prefactor     .10000E-03    2.4258        .16723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .72632        .21827        .43884E-03   -1.0286    
  20  Prefactor     1.1814        .97056E-01    .16012E-03   -.86907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.43896e-08
Minuit parameter uncertainties:
  1  13.2488
  2  3.28132e-06
  3  11.7181
  4  2.73588e-05
  5  0.957761
  6  7.08167
  7  14.9287
  8  14.7724
  9  11.7723
  10  3.67427e-05
  11  0.00281301
  12  9.47847
  13  1.54621
  14  3.3004e-05
  15  0.000230553
  16  6.80492
  17  4.87784
  18  2.15608e-06
  19  0.218532
  20  0.0970706
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  3.980e+01  1.177e+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.181e+00  9.707e-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:  7.263e-01  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 28.53
Ra Dec: 154.591 -31.403
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 1.67e-07 +/- 4.94e-08
Energy Flux (Fixed Index): 4.89e-05 +/- 1.45e-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) = 12124.7937667
delta logL = 0.094625204676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12124.7894836
delta logL = 0.0989083210861

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.291       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5940       1.0000          .0000       5.0000    
     3 'Normalizat'    .71018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1857       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=   12124.79     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      276 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.291        12.482        .65631E-04   -.25914E-03
   2  alpha         2.5940        .30671        .99559E-02   -.24699E-04
   3  Normalizat    .71019        .21221        .44329E-03    .10258E-04
   4  Prefactor     1.1857        .95358E-01    .15984E-03    .50641E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 37.2913
  alpha      = 2.594
  Normalizat = 0.71019
  Prefactor  = 1.18569
 **********
 **   18 **HESSE 
 **********

 FCN=   12124.79     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.291        12.238        .26252E-05   -1.4486    
   2  alpha         2.5940        .30055        .39824E-03    .37608E-01
   3  Normalizat    .71019        .21228        .17732E-04   -1.0349    
   4  Prefactor     1.1857        .95385E-01    .63936E-05   -.86773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44322e-11
Minuit parameter uncertainties:
  1  12.2388
  2  0.301276
  3  0.212522
  4  0.0953985
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/801811': 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) = 12124.7894836
delta logL = 0.098908325559

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  3.729e+01  1.224e+01  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  2.594e+00  3.013e-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.186e+00  9.540e-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:  7.102e-01  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 28.82
Ra Dec: 154.591 -31.403
Photon Index (Free Index): 2.59 +/- 0.30
Photon Flux (Free Index): 1.80e-07 +/- 5.70e-08
Energy Flux (Free Index): 4.77e-05 +/- 1.36e-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/801811/cmap_HighResolution_569289601_569548801_4FGL_J1018.3-3124_daily_bin1273.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.67e-07', energy_flux2='4.77e-05', photon_flux_error='4.94e-08', dlogl='9.89e-02', energy_flux='4.89e-05', photon_flux2='1.80e-07', job_status='DONE', time_completed='2021-09-01 17:35:21.884598', photon_index_error2='0.30', photon_index2='2.59', ts='28.53', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='0.73', time_epoch_completed='1630542921.88', return_code='0', job_id='801811', GAL2='1.19', EG2='0.71', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='5.70e-08', ts2='28.82', photon_index='2.46' WHERE bin_id='1273' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:35:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 801811: <4FGL_J1018.3-3124_daily_bin1273> in cluster <slac> Done

Job <4FGL_J1018.3-3124_daily_bin1273> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 17:20:23 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:20:24 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:20:24 2021
Terminated at Wed Sep  1 17:35:22 2021
Results reported at Wed Sep  1 17:35:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin1273 154.591 -31.4032 569289601 569548801 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 :                                   793.05 sec.
    Max Memory :                                 1004 MB
    Average Memory :                             300.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            899 sec.

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

