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


Performing analysis on: 4FGL_J1018.3-3124_daily_bin553
RA = 154.591, Dec = -31.4032
tmin = 382665601, tmax = 382924801
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='797294', job_status='RUN', time_executed='2021-09-01 17:08:19.778809', time_epoch_executed='1630541299.78' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797294

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797294/ft1_4FGL_J1018.3-3124_daily_bin553.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797294/ft2_4FGL_J1018.3-3124_daily_bin553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797294/ft1_4FGL_J1018.3-3124_daily_bin553.fits outfile=/scratch/kocevski/797294/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin553.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=382665601.0 tmax=382924801.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.39
user 3.18
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797294/ft1_filtered_4FGL_J1018.3-3124_daily_bin553.fits" evtable="EVENTS" scfile=/scratch/kocevski/797294/ft2_4FGL_J1018.3-3124_daily_bin553.fits sctable="SC_DATA" outfile=/scratch/kocevski/797294/ltcube_382665601_382924801_4FGL_J1018.3-3124_daily_bin553.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/797294/ft2_4FGL_J1018.3-3124_daily_bin553.fits
.....................!
real 15.99
user 15.62
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797294/ft1_filtered_4FGL_J1018.3-3124_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/797294/ft2_4FGL_J1018.3-3124_daily_bin553.fits sctable="SC_DATA" expcube=/scratch/kocevski/797294/ltcube_382665601_382924801_4FGL_J1018.3-3124_daily_bin553.fits outfile=/scratch/kocevski/797294/expmap_382665601_382924801_4FGL_J1018.3-3124_daily_bin553.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/797294/ltcube_382665601_382924801_4FGL_J1018.3-3124_daily_bin553.fits
.....................!
real 193.54
user 187.87
sys 4.64

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/797294/ft1_filtered_4FGL_J1018.3-3124_daily_bin553.fits scfile=/scratch/kocevski/797294/ft2_4FGL_J1018.3-3124_daily_bin553.fits outfile=/scratch/kocevski/797294/cmap_382665601_382924801_4FGL_J1018.3-3124_daily_bin553.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/797294/ft1_filtered_4FGL_J1018.3-3124_daily_bin553.fits scfile=/scratch/kocevski/797294/ft2_4FGL_J1018.3-3124_daily_bin553.fits outfile=/scratch/kocevski/797294/cmap_HighResolution_382665601_382924801_4FGL_J1018.3-3124_daily_bin553.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/797294/ft1_filtered_4FGL_J1018.3-3124_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/797294/ft2_4FGL_J1018.3-3124_daily_bin553.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797294/Model_4FGL_J1018.3-3124_daily_bin553.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/797294/ft1_filtered_4FGL_J1018.3-3124_daily_bin553.fits.....................!
real 74.51
user 73.15
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.053       1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    25.812       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .43141       1.0000         .10000E-03   10000.    
     6 'norm      '    20.805       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10757E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10203E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10591E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1486       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2603       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3883       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.9718       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4716       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .79976       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=   6499.554     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2073 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.040        44.108       -.21192E-05   -.13698E-03
   2  norm          .10000E-03    2.3909       -.33595E-07** at limit **
   3  norm          25.814        20.395        .11192E-06   -.48642E-05
   4  norm          .10000E-03    4.6156       -.88095E-08** at limit **
   5  norm          .43051        1.5664        .10160E-05   -.14334E-03
   6  norm          20.804        13.535        .99515E-08   -.31925E-04
   7  Prefactor     .10000E-03    80.231        .83430E-08** at limit **
   8  Prefactor     .10000E-03    15.069        .59154E-06** at limit **
   9  norm          .10000E-03    21.522       -.17463E-05** at limit **
  10  norm          .10000E-03    23.442        .11388E-05** at limit **
  11  Prefactor     .10000E-03    14.247       -.35602E-06** at limit **
  12  Prefactor     .10000E-03    5.6998        .14964E-08** at limit **
  13  norm          2.1488        3.1436        .17521E-06   -.16364E-03
  14  Prefactor     .10000E-03    16.017        .24498E-06** at limit **
  15  Prefactor     .10006E-03    2.6775        .55290E-06** at limit **
  16  Prefactor     5.2598        11.313        .17886E-06   -.11184E-03
  17  Prefactor     1.3886        3.9395        .76660E-06   -.62513E-04
  18  Prefactor     9.9723        10.399        .10828E-05   -.89419E-04
  19  Normalizat    1.4721        .24977       -.12966E-05   -.11300E-03
  20  Prefactor     .79957        .10205        .25504E-06   -.27383E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.0399
  norm       = 0.0001
  norm       = 25.8141
  norm       = 0.0001
  norm       = 0.43051
  norm       = 20.8041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.1488
  Prefactor  = 0.0001
  Prefactor  = 0.000100058
  Prefactor  = 5.25976
  Prefactor  = 1.38865
  Prefactor  = 9.97227
  Normalizat = 1.47206
  Prefactor  = 0.79957
 **********
 **   18 **HESSE 
 **********

 FCN=   6499.554     FROM HESSE     STATUS=OK           289 CALLS     2362 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.040        45.857        .80032E-04   -1.4707    
   2  norm          .10000E-03    2.4025        .12172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          25.814        20.447        .78848E-04   -1.4691    
   4  norm          .10000E-03    4.6242        .16916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .43051        1.5887        .18429E-03   -1.5577    
   6  norm          20.804        13.532        .87812E-04   -1.4795    
   7  Prefactor     .10000E-03    81.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    22.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    24.760        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.7035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1488        3.0988        .16549E-03   -1.5415    
  14  Prefactor     .10000E-03    16.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10006E-03    24.364        .23976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.2598        11.187        .17525E-03   -1.5249    
  17  Prefactor     1.3886        3.9119        .26417E-03   -1.5472    
  18  Prefactor     9.9723        10.491        .63447E-03   -1.5076    
  19  Normalizat    1.4721        .28629        .32806E-03   -.78566    
  20  Prefactor     .79957        .11897        .17658E-03   -.99744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59143e-09
Minuit parameter uncertainties:
  1  45.9212
  2  1.76968e-06
  3  20.4525
  4  1.51217e-06
  5  1.58885
  6  13.5342
  7  1.15859e-05
  8  0.000103825
  9  0.000369963
  10  0.00021977
  11  7.03399e-05
  12  1.83015e-06
  13  3.09906
  14  3.3191e-05
  15  0.00237927
  16  11.1913
  17  3.91258
  18  10.4932
  19  0.286604
  20  0.119013
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.000e-04  3.700e-04  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:  7.996e-01  1.190e-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.472e+00  2.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/797294/likelihoodResults_382665601_382924801_4FGL_J1018.3-3124_daily_bin553.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) = 6499.55426335
delta logL = -0.000210841810258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6499.55405276
delta logL = -2.59067746811e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39349E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5902       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79940       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=   6497.190     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      269 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3468        .77353        .10636E-01    .19156E-02
   2  alpha         5.0000        .48141        .41186    ** at limit **
   3  Normalizat    1.2737        .25146        .78495E-01   -.12164E-04
   4  Prefactor     .84911        .10094        .43709E-01   -.13785E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.34676
  alpha      = 5
  Normalizat = 1.27371
  Prefactor  = 0.849112
 **********
 **   18 **HESSE 
 **********

 FCN=   6497.190     FROM HESSE     STATUS=OK            29 CALLS      298 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3468        .77618        .50453E-04   -1.5940    
   2  alpha         5.0000        .96925        .48391E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2737        .29255        .34746E-03   -.84355    
   4  Prefactor     .84911        .11844        .17171E-03   -.97943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.59254e-10
Minuit parameter uncertainties:
  1  0.776181
  2  3.5217e-05
  3  0.292926
  4  0.118475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797294': 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) = 6497.19017951
delta logL = 2.36387299209

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.347e+00  7.762e-01  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  5.000e+00  3.522e-05  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.491e-01  1.185e-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.274e+00  2.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.12
Ra Dec: 154.591 -31.403
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.64e-07 +/- 9.40e-08
Energy Flux (Free Index): 2.25e-05 +/- 1.29e-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/797294/cmap_HighResolution_382665601_382924801_4FGL_J1018.3-3124_daily_bin553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.67e-05', comment='SUCCESS', energy_flux2='2.25e-05', dlogl='2.36e+00', photon_flux2='1.64e-07', job_status='DONE', time_completed='2021-09-01 17:19:11.053642', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.29e-05', EG='1.47', time_epoch_completed='1630541951.05', return_code='0', job_id='797294', GAL2='0.85', EG2='1.27', return_code2='0', photon_flux_error2='9.40e-08', ts2='5.12', photon_index='2.46' WHERE bin_id='553' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:19:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 797294: <4FGL_J1018.3-3124_daily_bin553> in cluster <slac> Done

Job <4FGL_J1018.3-3124_daily_bin553> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 17:05:26 2021
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:05:46 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:05:46 2021
Terminated at Wed Sep  1 17:19:11 2021
Results reported at Wed Sep  1 17:19:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin553 154.591 -31.4032 382665601 382924801 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 :                                   649.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            825 sec.

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

