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


Performing analysis on: 4FGL_J1018.3-3124_daily_bin634
RA = 154.591, Dec = -31.4032
tmin = 403660801, tmax = 403920001
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='797420', job_status='RUN', time_executed='2021-09-01 17:10:29.046441', time_epoch_executed='1630541429.05' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='634'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797420

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797420/ft1_4FGL_J1018.3-3124_daily_bin634.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797420/ft2_4FGL_J1018.3-3124_daily_bin634.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797420/ft1_4FGL_J1018.3-3124_daily_bin634.fits outfile=/scratch/kocevski/797420/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin634.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=403660801.0 tmax=403920001.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 7.71
user 7.37
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/797420/ft2_4FGL_J1018.3-3124_daily_bin634.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/797420/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin634.fits evtable="EVENTS" outfile="/scratch/kocevski/797420/ft1_filtered_4FGL_J1018.3-3124_daily_bin634.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797420/ft1_filtered_4FGL_J1018.3-3124_daily_bin634.fits" evtable="EVENTS" scfile=/scratch/kocevski/797420/ft2_4FGL_J1018.3-3124_daily_bin634.fits sctable="SC_DATA" outfile=/scratch/kocevski/797420/ltcube_403660801_403920001_4FGL_J1018.3-3124_daily_bin634.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/797420/ft2_4FGL_J1018.3-3124_daily_bin634.fits
.....................!
real 15.27
user 14.87
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797420/ft1_filtered_4FGL_J1018.3-3124_daily_bin634.fits evtable="EVENTS" scfile=/scratch/kocevski/797420/ft2_4FGL_J1018.3-3124_daily_bin634.fits sctable="SC_DATA" expcube=/scratch/kocevski/797420/ltcube_403660801_403920001_4FGL_J1018.3-3124_daily_bin634.fits outfile=/scratch/kocevski/797420/expmap_403660801_403920001_4FGL_J1018.3-3124_daily_bin634.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/797420/ltcube_403660801_403920001_4FGL_J1018.3-3124_daily_bin634.fits
.....................!
real 191.49
user 186.58
sys 4.26

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/797420/ft1_filtered_4FGL_J1018.3-3124_daily_bin634.fits scfile=/scratch/kocevski/797420/ft2_4FGL_J1018.3-3124_daily_bin634.fits outfile=/scratch/kocevski/797420/cmap_403660801_403920001_4FGL_J1018.3-3124_daily_bin634.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/797420/ft1_filtered_4FGL_J1018.3-3124_daily_bin634.fits scfile=/scratch/kocevski/797420/ft2_4FGL_J1018.3-3124_daily_bin634.fits outfile=/scratch/kocevski/797420/cmap_HighResolution_403660801_403920001_4FGL_J1018.3-3124_daily_bin634.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/797420/ft1_filtered_4FGL_J1018.3-3124_daily_bin634.fits evtable="EVENTS" scfile=/scratch/kocevski/797420/ft2_4FGL_J1018.3-3124_daily_bin634.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797420/Model_4FGL_J1018.3-3124_daily_bin634.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/797420/ft1_filtered_4FGL_J1018.3-3124_daily_bin634.fits.....................!
real 69.80
user 68.20
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.558       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.1632       1.0000         .10000E-03   10000.    
     4 'norm      '    5.5187       1.0000         .10000E-03   10000.    
     5 'norm      '    .87904       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    15.398       1.0000         .10000E-03   10000.    
    10 'norm      '    11.147       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.474       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8288       1.0000         .10000E-03   10000.    
    13 'norm      '    .65207       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3980       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0832       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7567       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8930       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .37077       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2033       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=   6709.186     FROM MIGRAD    STATUS=CONVERGED    395 CALLS     2065 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.559        32.700        .14413E-05    .21879E-04
   2  norm          .10000E-03    1.6294       -.41712E-07** at limit **
   3  norm          2.1603        32.763       -.14065E-07    .25411E-04
   4  norm          5.5190        7.1125        .11816E-06    .17007E-04
   5  norm          .87928        1.2468        .18197E-06    .63659E-03
   6  norm          .10000E-03    4.0087       -.11951E-06** at limit **
   7  Prefactor     .10000E-03    37.673        .34844E-05** at limit **
   8  Prefactor     .10000E-03    11.022       -.33765E-07** at limit **
   9  norm          15.400        11.663       -.62019E-06   -.33368E-04
  10  norm          11.147        9.5576       -.99009E-06   -.24563E-04
  11  Prefactor     18.478        14.736       -.18343E-05   -.10031E-03
  12  Prefactor     5.8759        31.414        .69779E-05    .30481E-05
  13  norm          .64722        6.2617        .53226E-05   -.99958E-04
  14  Prefactor     .10000E-03    4.0947        .26983E-06** at limit **
  15  Prefactor     1.3937        4.7447       -.23998E-05   -.56979E-03
  16  Prefactor     3.0861        7.8513       -.99612E-06    .14699E-04
  17  Prefactor     9.7585        7.7877       -.99007E-07    .15550E-04
  18  Prefactor     4.8934        7.9724        .24419E-05   -.89165E-04
  19  Normalizat    .37063        .27933       -.88501E-05   -.11502E-03
  20  Prefactor     1.2034        .11984        .95385E-06   -.10725E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.559
  norm       = 0.0001
  norm       = 2.16032
  norm       = 5.51904
  norm       = 0.879283
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.4005
  norm       = 11.1471
  Prefactor  = 18.4779
  Prefactor  = 5.87594
  norm       = 0.647222
  Prefactor  = 0.0001
  Prefactor  = 1.39367
  Prefactor  = 3.08612
  Prefactor  = 9.75852
  Prefactor  = 4.89341
  Normalizat = 0.370628
  Prefactor  = 1.20339
 **********
 **   18 **HESSE 
 **********

 FCN=   6709.186     FROM HESSE     STATUS=OK           303 CALLS     2368 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.559        32.583        .11303E-03   -1.4999    
   2  norm          .10000E-03    1.6312        .10209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.1603        32.878        .28004E-03   -1.5414    
   4  norm          5.5190        7.1054        .17103E-03   -1.5238    
   5  norm          .87928        1.0911        .10251E-02   -1.5520    
   6  norm          .10000E-03    4.0185        .16014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    38.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.400        11.610        .10207E-03   -1.4923    
  10  norm          11.147        9.5147        .11999E-03   -1.5040    
  11  Prefactor     18.478        14.633        .93183E-04   -1.4848    
  12  Prefactor     5.8759        33.744        .16635E-03   -1.5223    
  13  norm          .64722        6.4526        .27964E-03   -1.5547    
  14  Prefactor     .10000E-03    4.0977        .16188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3937        4.6741        .26196E-03   -1.5472    
  16  Prefactor     3.0861        7.7108        .23098E-03   -1.5357    
  17  Prefactor     9.7585        7.7089        .12829E-03   -1.5083    
  18  Prefactor     4.8934        7.9836        .90920E-03   -1.5266    
  19  Normalizat    .37063        .25845        .54331E-03   -1.1885    
  20  Prefactor     1.2034        .11585        .14783E-03   -.86227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.45379e-10
Minuit parameter uncertainties:
  1  32.6289
  2  3.4752e-06
  3  16.8663
  4  7.10653
  5  1.09109
  6  1.13779e-05
  7  0.000239742
  8  2.44781e-05
  9  11.6115
  10  9.51595
  11  14.6355
  12  28.1861
  13  4.08745
  14  8.88865e-06
  15  4.67532
  16  7.71327
  17  7.7097
  18  7.98529
  19  0.259285
  20  0.115871
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.540e+01  1.161e+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.203e+00  1.159e-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:  3.706e-01  2.593e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.28
Ra Dec: 154.591 -31.403
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 6.47e-08 +/- 4.87e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.43e-05

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

Saving results to:
/scratch/kocevski/797420/likelihoodResults_403660801_403920001_4FGL_J1018.3-3124_daily_bin634.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) = 6708.85561315
delta logL = 0.330479810415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6708.84587705
delta logL = 0.340215908945

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.046       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1150       1.0000          .0000       5.0000    
     3 'Normalizat'    .33960       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2123       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=   6708.846     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      272 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.047        11.286        .12642E-03   -.84872E-03
   2  alpha         3.1152        .90763        .15259E-01   -.88506E-04
   3  Normalizat    .33971        .24304        .56648E-03    .13081E-03
   4  Prefactor     1.2122        .11389        .14732E-03    .60284E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.0471
  alpha      = 3.11517
  Normalizat = 0.339709
  Prefactor  = 1.21221
 **********
 **   18 **HESSE 
 **********

 FCN=   6708.846     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.047        10.225        .50569E-05   -1.5074    
   2  alpha         3.1152        .82500        .61038E-03    .24862    
   3  Normalizat    .33971        .24266        .22659E-04   -1.2054    
   4  Prefactor     1.2122        .11373        .29464E-04   -.85956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.41712e-10
Minuit parameter uncertainties:
  1  10.2266
  2  0.841836
  3  0.243415
  4  0.113756
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797420': 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) = 6708.84587672
delta logL = 0.340216240474

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.005e+01  1.023e+01  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  3.115e+00  8.418e-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.212e+00  1.138e-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:  3.397e-01  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.05
Ra Dec: 154.591 -31.403
Photon Index (Free Index): 3.12 +/- 0.84
Photon Flux (Free Index): 8.89e-08 +/- 6.10e-08
Energy Flux (Free Index): 1.79e-05 +/- 1.15e-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/797420/cmap_HighResolution_403660801_403920001_4FGL_J1018.3-3124_daily_bin634.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-05', comment='SUCCESS', photon_flux='6.47e-08', energy_flux2='1.79e-05', photon_flux_error='4.87e-08', dlogl='3.40e-01', energy_flux='1.89e-05', photon_flux2='8.89e-08', job_status='DONE', time_completed='2021-09-01 17:21:55.393653', photon_index_error2='0.84', photon_index2='3.12', ts='3.28', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.15e-05', EG='0.37', time_epoch_completed='1630542115.39', return_code='0', job_id='797420', GAL2='1.21', EG2='0.34', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='6.10e-08', ts2='4.05', photon_index='2.46' WHERE bin_id='634' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:21:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 797420: <4FGL_J1018.3-3124_daily_bin634> in cluster <slac> Done

Job <4FGL_J1018.3-3124_daily_bin634> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 17:05:36 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:06:43 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:06:43 2021
Terminated at Wed Sep  1 17:21:56 2021
Results reported at Wed Sep  1 17:21:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin634 154.591 -31.4032 403660801 403920001 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 :                                   682.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            980 sec.

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

