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


Performing analysis on: 4FGL_J1018.3-3124_daily_bin1245
RA = 154.591, Dec = -31.4032
tmin = 562032001, tmax = 562291201
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='800620', job_status='RUN', time_executed='2021-09-01 17:17:15.630466', time_epoch_executed='1630541835.63' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='1245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/800620

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/800620/ft1_4FGL_J1018.3-3124_daily_bin1245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/800620/ft2_4FGL_J1018.3-3124_daily_bin1245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/800620/ft1_4FGL_J1018.3-3124_daily_bin1245.fits outfile=/scratch/kocevski/800620/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin1245.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=562032001.0 tmax=562291201.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.68
user 3.44
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/800620/ft1_filtered_4FGL_J1018.3-3124_daily_bin1245.fits" evtable="EVENTS" scfile=/scratch/kocevski/800620/ft2_4FGL_J1018.3-3124_daily_bin1245.fits sctable="SC_DATA" outfile=/scratch/kocevski/800620/ltcube_562032001_562291201_4FGL_J1018.3-3124_daily_bin1245.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/800620/ft2_4FGL_J1018.3-3124_daily_bin1245.fits
.....................!
real 18.39
user 17.83
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/800620/ft1_filtered_4FGL_J1018.3-3124_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/800620/ft2_4FGL_J1018.3-3124_daily_bin1245.fits sctable="SC_DATA" expcube=/scratch/kocevski/800620/ltcube_562032001_562291201_4FGL_J1018.3-3124_daily_bin1245.fits outfile=/scratch/kocevski/800620/expmap_562032001_562291201_4FGL_J1018.3-3124_daily_bin1245.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/800620/ltcube_562032001_562291201_4FGL_J1018.3-3124_daily_bin1245.fits
.....................!
real 192.35
user 187.02
sys 4.72

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/800620/ft1_filtered_4FGL_J1018.3-3124_daily_bin1245.fits scfile=/scratch/kocevski/800620/ft2_4FGL_J1018.3-3124_daily_bin1245.fits outfile=/scratch/kocevski/800620/cmap_562032001_562291201_4FGL_J1018.3-3124_daily_bin1245.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/800620/ft1_filtered_4FGL_J1018.3-3124_daily_bin1245.fits scfile=/scratch/kocevski/800620/ft2_4FGL_J1018.3-3124_daily_bin1245.fits outfile=/scratch/kocevski/800620/cmap_HighResolution_562032001_562291201_4FGL_J1018.3-3124_daily_bin1245.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/800620/ft1_filtered_4FGL_J1018.3-3124_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/800620/ft2_4FGL_J1018.3-3124_daily_bin1245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/800620/Model_4FGL_J1018.3-3124_daily_bin1245.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/800620/ft1_filtered_4FGL_J1018.3-3124_daily_bin1245.fits.....................!
real 68.76
user 67.34
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.266       1.0000         .10000E-03   10000.    
     2 'norm      '    .82074E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    20.590       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1268       1.0000         .10000E-03   10000.    
     6 'norm      '    4.4882       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    28.770       1.0000         .10000E-03   10000.    
    10 'norm      '    .10293E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.958       1.0000         .10000E-03   10000.    
    13 'norm      '    .10890E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4975       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21263E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.1798       1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.892       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .76860       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2047       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=   5871.347     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2091 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.331        57.996        .70567E-04    .12987E-03
   2  norm          .13205E-03    6.5968       -.41441E-05** at limit **
   3  norm          .10000E-03    13.343       -.16776E-06** at limit **
   4  norm          20.596        15.235        .34459E-05    .14901E-03
   5  norm          1.1259        1.8650        .56779E-06   -.71693E-03
   6  norm          4.4858        7.5067        .58267E-05   -.72237E-04
   7  Prefactor     .10000E-03    9.8244        .46070E-07** at limit **
   8  Prefactor     .10000E-03    6.3715        .78164E-07** at limit **
   9  norm          28.759        15.811        .32053E-05   -.51169E-04
  10  norm          .10000E-03    5.0358        .29248E-08** at limit **
  11  Prefactor     .10000E-03    6.4920        .59875E-07** at limit **
  12  Prefactor     12.991        23.713       -.13780E-04   -.19808E-03
  13  norm          .10000E-03    3.2253        .60991E-06** at limit **
  14  Prefactor     3.5009        17.414       -.94431E-06   -.73669E-04
  15  Prefactor     .10000E-03    6.1779        .86225E-06** at limit **
  16  Prefactor     6.2216        20.260        .18569E-04   -.12038E-03
  17  Prefactor     39.894        15.262       -.81214E-06   -.12288E-03
  18  Prefactor     .10000E-03    5.5646       -.38440E-07** at limit **
  19  Normalizat    .76851        .34413       -.11346E-04   -.10667E-04
  20  Prefactor     1.2049        .13325       -.14289E-05    .47025E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.3312
  norm       = 0.000132046
  norm       = 0.0001
  norm       = 20.5963
  norm       = 1.12587
  norm       = 4.48577
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.7587
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9911
  norm       = 0.000100001
  Prefactor  = 3.50091
  Prefactor  = 0.000100002
  Prefactor  = 6.22163
  Prefactor  = 39.894
  Prefactor  = 0.0001
  Normalizat = 0.768515
  Prefactor  = 1.20492
 **********
 **   18 **HESSE 
 **********

 FCN=   5871.347     FROM HESSE     STATUS=OK           301 CALLS     2392 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.331        58.223        .75354E-04   -1.4643    
   2  norm          .13205E-03    8.5335        .59633E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    13.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          20.596        15.244        .88269E-04   -1.4800    
   5  norm          1.1259        1.8353        .12455E-03   -1.5496    
   6  norm          4.4858        7.4837        .19005E-03   -1.5284    
   7  Prefactor     .10000E-03    9.8288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          28.759        15.786        .74693E-04   -1.4635    
  10  norm          .10000E-03    5.0463        .16786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.4990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.991        23.053        .11128E-03   -1.4987    
  13  norm          .10000E-03    3.2720        .13406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5009        17.353        .21620E-03   -1.5334    
  15  Prefactor     .10000E-03    20.839        .32887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.2216        19.236        .16149E-03   -1.5209    
  17  Prefactor     39.894        15.243        .63463E-04   -1.4444    
  18  Prefactor     .10000E-03    5.5725        .17653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .76851        .36892        .48111E-03   -1.0125    
  20  Prefactor     1.2049        .14600        .16950E-03   -.86180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33363e-09
Minuit parameter uncertainties:
  1  58.3404
  2  0.0330784
  3  5.30605e-06
  4  15.2465
  5  1.83538
  6  7.4853
  7  7.59287e-06
  8  1.03332e-05
  9  15.7886
  10  5.24954e-06
  11  4.12111e-05
  12  23.0686
  13  0.000103654
  14  15.5956
  15  0.000423175
  16  19.2551
  17  15.2444
  18  8.65569e-06
  19  0.370126
  20  0.146051
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  2.876e+01  1.579e+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.205e+00  1.461e-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:  7.685e-01  3.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.25
Ra Dec: 154.591 -31.403
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 1.21e-07 +/- 6.63e-08
Energy Flux (Fixed Index): 3.54e-05 +/- 1.94e-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) = 5871.06039589
delta logL = 0.286118568511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5871.02837624
delta logL = 0.318138209747

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.753       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0134       1.0000          .0000       5.0000    
     3 'Normalizat'    .80456       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1941       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=   5871.028     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      237 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.744        18.016        .70016E-04    .24158E-03
   2  alpha         2.0122        .53749        .14299E-01    .50111E-04
   3  Normalizat    .80466        .33044        .47109E-03    .56240E-03
   4  Prefactor     1.1941        .14297        .17013E-03    .12840E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 32.7438
  alpha      = 2.01221
  Normalizat = 0.804664
  Prefactor  = 1.19414
 **********
 **   18 **HESSE 
 **********

 FCN=   5871.028     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.744        18.020        .14003E-04   -1.4563    
   2  alpha         2.0122        .53750        .57196E-03   -.19638    
   3  Normalizat    .80466        .33055        .94217E-04   -.99896    
   4  Prefactor     1.1941        .14301        .34026E-04   -.86512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28995e-09
Minuit parameter uncertainties:
  1  18.0228
  2  0.541901
  3  0.331381
  4  0.143055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/800620': 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) = 5871.02837354
delta logL = 0.318140916718

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  3.274e+01  1.802e+01  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  2.012e+00  5.419e-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.194e+00  1.431e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  8.047e-01  3.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.86
Ra Dec: 154.591 -31.403
Photon Index (Free Index): 2.01 +/- 0.54
Photon Flux (Free Index): 9.18e-08 +/- 6.38e-08
Energy Flux (Free Index): 4.26e-05 +/- 2.61e-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/800620/cmap_HighResolution_562032001_562291201_4FGL_J1018.3-3124_daily_bin1245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.21e-07', energy_flux2='4.26e-05', photon_flux_error='6.63e-08', dlogl='3.18e-01', energy_flux='3.54e-05', photon_flux2='9.18e-08', job_status='DONE', time_completed='2021-09-01 17:26:43.173759', photon_index_error2='0.54', photon_index2='2.01', ts='6.25', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='2.61e-05', EG='0.77', time_epoch_completed='1630542403.17', return_code='0', job_id='800620', GAL2='1.19', EG2='0.80', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='6.38e-08', ts2='6.86', photon_index='2.46' WHERE bin_id='1245' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:26:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 800620: <4FGL_J1018.3-3124_daily_bin1245> in cluster <slac> Done

Job <4FGL_J1018.3-3124_daily_bin1245> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 17:15:31 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:16:21 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:16:21 2021
Terminated at Wed Sep  1 17:26:43 2021
Results reported at Wed Sep  1 17:26:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin1245 154.591 -31.4032 562032001 562291201 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 :                                   566.19 sec.
    Max Memory :                                 1200 MB
    Average Memory :                             299.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   622 sec.
    Turnaround time :                            672 sec.

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

