/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 9 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 = 7405
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1018.3-3124_daily_bin13
RA = 154.591, Dec = -31.4032
tmin = 242697601, tmax = 242956801
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='795322', job_status='RUN', time_executed='2021-09-01 17:00:46.749107', time_epoch_executed='1630540846.75' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='13'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/795322

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/795322/ft1_4FGL_J1018.3-3124_daily_bin13.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/795322/ft2_4FGL_J1018.3-3124_daily_bin13.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/795322/ft1_4FGL_J1018.3-3124_daily_bin13.fits outfile=/scratch/kocevski/795322/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin13.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=242697601.0 tmax=242956801.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 1.48
user 1.30
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/795322/ft1_filtered_4FGL_J1018.3-3124_daily_bin13.fits" evtable="EVENTS" scfile=/scratch/kocevski/795322/ft2_4FGL_J1018.3-3124_daily_bin13.fits sctable="SC_DATA" outfile=/scratch/kocevski/795322/ltcube_242697601_242956801_4FGL_J1018.3-3124_daily_bin13.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/795322/ft2_4FGL_J1018.3-3124_daily_bin13.fits
.....................!
real 19.53
user 19.11
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/795322/ft1_filtered_4FGL_J1018.3-3124_daily_bin13.fits evtable="EVENTS" scfile=/scratch/kocevski/795322/ft2_4FGL_J1018.3-3124_daily_bin13.fits sctable="SC_DATA" expcube=/scratch/kocevski/795322/ltcube_242697601_242956801_4FGL_J1018.3-3124_daily_bin13.fits outfile=/scratch/kocevski/795322/expmap_242697601_242956801_4FGL_J1018.3-3124_daily_bin13.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/795322/ltcube_242697601_242956801_4FGL_J1018.3-3124_daily_bin13.fits
.....................!
real 193.54
user 187.48
sys 5.32

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/795322/ft1_filtered_4FGL_J1018.3-3124_daily_bin13.fits scfile=/scratch/kocevski/795322/ft2_4FGL_J1018.3-3124_daily_bin13.fits outfile=/scratch/kocevski/795322/cmap_242697601_242956801_4FGL_J1018.3-3124_daily_bin13.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.65
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/795322/ft1_filtered_4FGL_J1018.3-3124_daily_bin13.fits scfile=/scratch/kocevski/795322/ft2_4FGL_J1018.3-3124_daily_bin13.fits outfile=/scratch/kocevski/795322/cmap_HighResolution_242697601_242956801_4FGL_J1018.3-3124_daily_bin13.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.74
user 0.44
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/795322/ft1_filtered_4FGL_J1018.3-3124_daily_bin13.fits evtable="EVENTS" scfile=/scratch/kocevski/795322/ft2_4FGL_J1018.3-3124_daily_bin13.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/795322/Model_4FGL_J1018.3-3124_daily_bin13.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/795322/ft1_filtered_4FGL_J1018.3-3124_daily_bin13.fits.....................!
real 100.72
user 97.31
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .33344       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .89932E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .78652       1.0000         .10000E-03   10000.    
     9 'norm      '    4.2499       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1730       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.7131       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .48913       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9049       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.5060       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .71583       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0006       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=   9956.726     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     1828 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.353       -.13519E-07** at limit **
   2  norm          .33432        2.1487       -.74860E-07   -.64512E-03
   3  norm          .10000E-03    6.8881       -.25478E-07** at limit **
   4  norm          .10000E-03    3.3762       -.78776E-08** at limit **
   5  norm          .90999E-01    .54146       -.69348E-07    .17217E-03
   6  norm          .10000E-03    7.9060        .27458E-07** at limit **
   7  Prefactor     .10000E-03    40.505       -.11026E-07** at limit **
   8  Prefactor     .78543        11.046       -.52005E-06   -.40522E-04
   9  norm          4.2429        9.3899        .18409E-06    .52634E-03
  10  norm          1.1759        7.5970       -.56010E-06    .27467E-03
  11  Prefactor     8.7166        7.4206        .45688E-08   -.16873E-03
  12  Prefactor     .10000E-03    2.2180        .72028E-08** at limit **
  13  norm          .48905        1.2466       -.55791E-07    .16417E-03
  14  Prefactor     .10000E-03    9.7705       -.37312E-07** at limit **
  15  Prefactor     1.9048        2.2159        .51091E-08   -.70153E-04
  16  Prefactor     8.5068        6.7212       -.12291E-06   -.19272E-03
  17  Prefactor     .10000E-03    1.1770       -.47331E-08** at limit **
  18  Prefactor     .10000E-03    5.1287       -.64254E-08** at limit **
  19  Normalizat    .71572        .17805        .20589E-06   -.79983E-05
  20  Prefactor     1.0006        .78506E-01   -.25195E-08   -.11639E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.334316
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0909988
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.785429
  norm       = 4.24285
  norm       = 1.17593
  Prefactor  = 8.7166
  Prefactor  = 0.0001
  norm       = 0.489046
  Prefactor  = 0.0001
  Prefactor  = 1.90479
  Prefactor  = 8.50678
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.715725
  Prefactor  = 1.00062
 **********
 **   18 **HESSE 
 **********

 FCN=   9956.726     FROM HESSE     STATUS=OK           299 CALLS     2127 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .33432        6.2040        .29536E-02   -1.5592    
   3  norm          .10000E-03    6.9136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.3934        .17905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .90999E-01    1.5201        .14557E-02   -1.5648    
   6  norm          .10000E-03    8.2406        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    41.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .78543        15.572        .49558E-03   -1.5531    
   9  norm          4.2429        9.1596        .19545E-03   -1.5296    
  10  norm          1.1759        9.7123        .42332E-03   -1.5491    
  11  Prefactor     8.7166        7.4077        .13579E-03   -1.5117    
  12  Prefactor     .10000E-03    2.2188        .14512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .48905        1.3569        .17349E-02   -1.5568    
  14  Prefactor     .10000E-03    9.9248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9048        2.1861        .15168E-03   -1.5432    
  16  Prefactor     8.5068        7.2752        .68724E-03   -1.5125    
  17  Prefactor     .10000E-03    1.1827        .10571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.2143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .71572        .19989        .37555E-03   -1.0328    
  20  Prefactor     1.0006        .88170E-01    .14693E-03   -.92709    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33501e-09
Minuit parameter uncertainties:
  1  4.76418e-05
  2  2.88027
  3  6.72748e-05
  4  1.45584e-05
  5  0.743456
  6  7.12836e-05
  7  0.000101475
  8  6.99615
  9  9.16267
  10  6.76019
  11  7.40846
  12  9.02797e-06
  13  1.35699
  14  0.000117398
  15  2.18614
  16  7.27599
  17  4.63273e-06
  18  1.02032e-05
  19  0.200091
  20  0.0881827
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  4.243e+00  9.163e+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:  1.001e+00  8.818e-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.157e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/795322/likelihoodResults_242697601_242956801_4FGL_J1018.3-3124_daily_bin13.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) = 9954.55177709
delta logL = 2.1746071652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9954.53148243
delta logL = 2.19490181778

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73209       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .60392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0337       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=   9954.531     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      302 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73155        10.868        .99367E-02    .10100E-02
   2  alpha         5.0000        3.7298        .46373    ** at limit **
   3  Normalizat    .60438        .13294        .91598E-01    .44523E-04
   4  Prefactor     1.0335        .51207E-01    .40973E-01   -.23851E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.731549
  alpha      = 5
  Normalizat = 0.604382
  Prefactor  = 1.03352
 **********
 **   18 **HESSE 
 **********

 FCN=   9954.531     FROM HESSE     STATUS=OK            33 CALLS      335 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73155        .40809        .45214E-03   -1.5537    
   2  alpha         5.0000        .75092        .54258E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .60438        .19866        .40583E-03   -1.0780    
   4  Prefactor     1.0335        .89406E-01    .14471E-03   -.91621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61372e-10
Minuit parameter uncertainties:
  1  0.408087
  2  9.10967e-08
  3  0.198893
  4  0.0894192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/795322': 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) = 9954.53147802
delta logL = 2.19490622778

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  7.315e-01  4.081e-01  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  5.000e+00  9.110e-08  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.034e+00  8.942e-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:  6.044e-01  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.14
Ra Dec: 154.591 -31.403
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 8.90e-08 +/- 4.94e-08
Energy Flux (Free Index): 1.22e-05 +/- 6.79e-06

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/795322/cmap_HighResolution_242697601_242956801_4FGL_J1018.3-3124_daily_bin13.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-05', comment='SUCCESS', energy_flux2='1.22e-05', dlogl='2.19e+00', photon_flux2='8.90e-08', job_status='DONE', time_completed='2021-09-01 17:14:14.299998', photon_index_error2='0.00', photon_index2='5.00', ts='0.34', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='8.98e-08', energy_flux_error2='6.79e-06', EG='0.72', time_epoch_completed='1630541654.3', return_code='0', job_id='795322', GAL2='1.03', EG2='0.60', return_code2='0', photon_flux_error2='4.94e-08', ts2='5.14', photon_index='2.46' WHERE bin_id='13' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:14:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 795322: <4FGL_J1018.3-3124_daily_bin13> in cluster <slac> Done

Job <4FGL_J1018.3-3124_daily_bin13> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 17:00:22 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:00:29 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:00:29 2021
Terminated at Wed Sep  1 17:14:15 2021
Results reported at Wed Sep  1 17:14:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin13 154.591 -31.4032 242697601 242956801 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 :                                   802.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            833 sec.

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

