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


Performing analysis on: 4FGL_J1018.3-3124_daily_bin765
RA = 154.591, Dec = -31.4032
tmin = 437616001, tmax = 437875201
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='797615', job_status='RUN', time_executed='2021-09-01 17:11:16.013258', time_epoch_executed='1630541476.01' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797615

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797615/ft1_4FGL_J1018.3-3124_daily_bin765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797615/ft2_4FGL_J1018.3-3124_daily_bin765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797615/ft1_4FGL_J1018.3-3124_daily_bin765.fits outfile=/scratch/kocevski/797615/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin765.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=437616001.0 tmax=437875201.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 5.62
user 5.35
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797615/ft1_filtered_4FGL_J1018.3-3124_daily_bin765.fits" evtable="EVENTS" scfile=/scratch/kocevski/797615/ft2_4FGL_J1018.3-3124_daily_bin765.fits sctable="SC_DATA" outfile=/scratch/kocevski/797615/ltcube_437616001_437875201_4FGL_J1018.3-3124_daily_bin765.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/797615/ft2_4FGL_J1018.3-3124_daily_bin765.fits
.....................!
real 15.07
user 14.68
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797615/ft1_filtered_4FGL_J1018.3-3124_daily_bin765.fits evtable="EVENTS" scfile=/scratch/kocevski/797615/ft2_4FGL_J1018.3-3124_daily_bin765.fits sctable="SC_DATA" expcube=/scratch/kocevski/797615/ltcube_437616001_437875201_4FGL_J1018.3-3124_daily_bin765.fits outfile=/scratch/kocevski/797615/expmap_437616001_437875201_4FGL_J1018.3-3124_daily_bin765.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/797615/ltcube_437616001_437875201_4FGL_J1018.3-3124_daily_bin765.fits
.....................!
real 190.44
user 186.08
sys 3.86

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/797615/ft1_filtered_4FGL_J1018.3-3124_daily_bin765.fits scfile=/scratch/kocevski/797615/ft2_4FGL_J1018.3-3124_daily_bin765.fits outfile=/scratch/kocevski/797615/cmap_437616001_437875201_4FGL_J1018.3-3124_daily_bin765.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.55
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/797615/ft1_filtered_4FGL_J1018.3-3124_daily_bin765.fits scfile=/scratch/kocevski/797615/ft2_4FGL_J1018.3-3124_daily_bin765.fits outfile=/scratch/kocevski/797615/cmap_HighResolution_437616001_437875201_4FGL_J1018.3-3124_daily_bin765.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/797615/ft1_filtered_4FGL_J1018.3-3124_daily_bin765.fits evtable="EVENTS" scfile=/scratch/kocevski/797615/ft2_4FGL_J1018.3-3124_daily_bin765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797615/Model_4FGL_J1018.3-3124_daily_bin765.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/797615/ft1_filtered_4FGL_J1018.3-3124_daily_bin765.fits.....................!
real 68.60
user 67.20
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.988       1.0000         .10000E-03   10000.    
     4 'norm      '    6.1056       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .44278       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    21.738       1.0000         .10000E-03   10000.    
    10 'norm      '    .10490E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13262E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .45293       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.2340       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.142       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2167       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0164       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=   5747.945     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     1795 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.371        .21171E-05** at limit **
   2  norm          .10000E-03    8.9192       -.18199E-07** at limit **
   3  norm          10.990        15.671        .46666E-05   -.26108E-04
   4  norm          6.1042        7.6637       -.17050E-06    .10464E-05
   5  norm          .10000E-03    .57073       -.12220E-07** at limit **
   6  norm          .10000E-03    5.6194        .57309E-07** at limit **
   7  Prefactor     .30463        16.197        .61643E-06    .11959E-03
   8  Prefactor     .10000E-03    5.9546        .96695E-07** at limit **
   9  norm          21.739        13.935       -.66719E-05   -.13887E-03
  10  norm          .10000E-03    5.0401        .31483E-06** at limit **
  11  Prefactor     .10000E-03    14.868       -.70649E-05** at limit **
  12  Prefactor     .10000E-03    14.679        .46815E-05** at limit **
  13  norm          .10000E-03    2.5225       -.15600E-07** at limit **
  14  Prefactor     .10005E-03    14.388        .73698E-06** at limit **
  15  Prefactor     .43946        3.7077        .16990E-05   -.12677E-02
  16  Prefactor     .10000E-03    22.594       -.30392E-06** at limit **
  17  Prefactor     6.2320        9.5069        .79607E-07   -.20098E-03
  18  Prefactor     12.140        13.665       -.25302E-06   -.49079E-04
  19  Normalizat    1.2170        .27735        .11227E-05   -.27016E-03
  20  Prefactor     1.0162        .11394       -.25319E-06   -.29185E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.9903
  norm       = 6.10424
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.304635
  Prefactor  = 0.0001
  norm       = 21.7391
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100052
  Prefactor  = 0.43946
  Prefactor  = 0.0001
  Prefactor  = 6.232
  Prefactor  = 12.14
  Normalizat = 1.21705
  Prefactor  = 1.01622
 **********
 **   18 **HESSE 
 **********

 FCN=   5747.945     FROM HESSE     STATUS=OK           299 CALLS     2094 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.0264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.990        15.661        .12086E-03   -1.5045    
   4  norm          6.1042        7.6615        .16248E-03   -1.5214    
   5  norm          .10000E-03    .58254        .55904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.6423        .17552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .30463        27.520        .10656       -1.5598    
   8  Prefactor     .10000E-03    5.9574        .18070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          21.739        14.011        .85908E-04   -1.4775    
  10  norm          .10000E-03    5.0682        .16631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.5659        .11742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10005E-03    88.911        .55396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .43946        21.792        .26619E-02   -1.5575    
  16  Prefactor     .10000E-03    22.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.2320        9.4984        .16078E-03   -1.5209    
  18  Prefactor     12.140        13.669        .11496E-03   -1.5011    
  19  Normalizat    1.2170        .31989        .36634E-03   -.86078    
  20  Prefactor     1.0162        .13262        .16914E-03   -.92191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33804e-08
Minuit parameter uncertainties:
  1  5.86962e-06
  2  4.39804e-06
  3  15.6668
  4  7.66271
  5  2.60907e-07
  6  2.06941e-05
  7  5.79262
  8  2.21017e-05
  9  14.0131
  10  7.65775e-05
  11  5.68487e-06
  12  2.32407e-05
  13  7.69136e-06
  14  0.0042898
  15  6.191
  16  9.36601e-05
  17  9.50068
  18  13.6721
  19  0.320409
  20  0.132665
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  2.174e+01  1.401e+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.016e+00  1.327e-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.217e+00  3.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.97
Ra Dec: 154.591 -31.403
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 9.13e-08 +/- 5.88e-08
Energy Flux (Fixed Index): 2.67e-05 +/- 1.72e-05

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

Saving results to:
/scratch/kocevski/797615/likelihoodResults_437616001_437875201_4FGL_J1018.3-3124_daily_bin765.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) = 5747.92950105
delta logL = 0.0154437425854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5747.92688237
delta logL = 0.018062421078

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.710       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3448       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0143       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=   5747.927     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      234 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.709        15.277        .84052E-04    .17878E-02
   2  alpha         2.3450        .60368        .15047E-01    .25617E-03
   3  Normalizat    1.2243        .30692        .36541E-03   -.13089E-03
   4  Prefactor     1.0143        .13055        .16928E-03   -.32134E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 22.7088
  alpha      = 2.34501
  Normalizat = 1.22425
  Prefactor  = 1.01432
 **********
 **   18 **HESSE 
 **********

 FCN=   5747.927     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.709        15.139        .16810E-04   -1.4755    
   2  alpha         2.3450        .59807        .60189E-03   -.62037E-01
   3  Normalizat    1.2243        .30706        .14616E-04   -.85857    
   4  Prefactor     1.0143        .13061        .33855E-04   -.92254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37455e-09
Minuit parameter uncertainties:
  1  15.1418
  2  0.603954
  3  0.30752
  4  0.130653
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797615': 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) = 5747.92688222
delta logL = 0.0180625775092

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  2.271e+01  1.514e+01  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  2.345e+00  6.040e-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.014e+00  1.307e-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.224e+00  3.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.00
Ra Dec: 154.591 -31.403
Photon Index (Free Index): 2.35 +/- 0.60
Photon Flux (Free Index): 8.50e-08 +/- 6.44e-08
Energy Flux (Free Index): 2.75e-05 +/- 1.81e-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/797615/cmap_HighResolution_437616001_437875201_4FGL_J1018.3-3124_daily_bin765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.31e-05', comment='SUCCESS', photon_flux='9.13e-08', energy_flux2='2.75e-05', photon_flux_error='5.88e-08', dlogl='1.81e-02', energy_flux='2.67e-05', photon_flux2='8.50e-08', job_status='DONE', time_completed='2021-09-01 17:21:24.151574', photon_index_error2='0.60', photon_index2='2.35', ts='3.97', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='2.16e-07', energy_flux_error2='1.81e-05', EG='1.22', time_epoch_completed='1630542084.15', return_code='0', job_id='797615', GAL2='1.01', EG2='1.22', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='6.44e-08', ts2='4.00', photon_index='2.46' WHERE bin_id='765' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:21:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 797615: <4FGL_J1018.3-3124_daily_bin765> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin765 154.591 -31.4032 437616001 437875201 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 :                                   606.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            935 sec.

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

