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


Performing analysis on: 4FGL_J1018.3-3124_daily_bin1030
RA = 154.591, Dec = -31.4032
tmin = 506304001, tmax = 506563201
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='799224', job_status='RUN', time_executed='2021-09-01 17:15:23.145694', time_epoch_executed='1630541723.15' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='1030'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799224

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799224/ft1_4FGL_J1018.3-3124_daily_bin1030.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799224/ft2_4FGL_J1018.3-3124_daily_bin1030.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799224/ft1_4FGL_J1018.3-3124_daily_bin1030.fits outfile=/scratch/kocevski/799224/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin1030.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=506304001.0 tmax=506563201.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.54
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799224/ft1_filtered_4FGL_J1018.3-3124_daily_bin1030.fits" evtable="EVENTS" scfile=/scratch/kocevski/799224/ft2_4FGL_J1018.3-3124_daily_bin1030.fits sctable="SC_DATA" outfile=/scratch/kocevski/799224/ltcube_506304001_506563201_4FGL_J1018.3-3124_daily_bin1030.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/799224/ft2_4FGL_J1018.3-3124_daily_bin1030.fits
.....................!
real 15.73
user 15.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799224/ft1_filtered_4FGL_J1018.3-3124_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/799224/ft2_4FGL_J1018.3-3124_daily_bin1030.fits sctable="SC_DATA" expcube=/scratch/kocevski/799224/ltcube_506304001_506563201_4FGL_J1018.3-3124_daily_bin1030.fits outfile=/scratch/kocevski/799224/expmap_506304001_506563201_4FGL_J1018.3-3124_daily_bin1030.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/799224/ltcube_506304001_506563201_4FGL_J1018.3-3124_daily_bin1030.fits
.....................!
real 193.98
user 188.63
sys 4.54

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/799224/ft1_filtered_4FGL_J1018.3-3124_daily_bin1030.fits scfile=/scratch/kocevski/799224/ft2_4FGL_J1018.3-3124_daily_bin1030.fits outfile=/scratch/kocevski/799224/cmap_506304001_506563201_4FGL_J1018.3-3124_daily_bin1030.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799224/ft1_filtered_4FGL_J1018.3-3124_daily_bin1030.fits scfile=/scratch/kocevski/799224/ft2_4FGL_J1018.3-3124_daily_bin1030.fits outfile=/scratch/kocevski/799224/cmap_HighResolution_506304001_506563201_4FGL_J1018.3-3124_daily_bin1030.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.60
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799224/ft1_filtered_4FGL_J1018.3-3124_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/799224/ft2_4FGL_J1018.3-3124_daily_bin1030.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799224/Model_4FGL_J1018.3-3124_daily_bin1030.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/799224/ft1_filtered_4FGL_J1018.3-3124_daily_bin1030.fits.....................!
real 89.03
user 87.39
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.6567       1.0000         .10000E-03   10000.    
     6 'norm      '    13.752       1.0000         .10000E-03   10000.    
     7 'Prefactor '    74.712       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.606       1.0000         .10000E-03   10000.    
     9 'norm      '    21.639       1.0000         .10000E-03   10000.    
    10 'norm      '    13.992       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.6329       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21072       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.023       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4594       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.710       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96369       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1417       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=   8118.363     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     2102 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.066        .18142E-02** at limit **
   2  norm          .10000E-03    3.0153        .15233E-02** at limit **
   3  norm          .10000E-03    22.655        .18142E-02** at limit **
   4  norm          .10000E-03    3.2034        .15747E-02** at limit **
   5  norm          3.6572        1.9518        .86671E-04    .54698E-04
   6  norm          13.752        13.431        .10801E-03   -.77889E-05
   7  Prefactor     74.715        39.387        .46452E-04    .97407E-05
   8  Prefactor     11.592        19.046        .11759E-03   -.93778E-05
   9  norm          21.638        13.533        .86104E-04    .35649E-05
  10  norm          13.991        10.125        .10708E-03   -.59455E-05
  11  Prefactor     .10000E-03    5.6367        .18142E-02** at limit **
  12  Prefactor     .10000E-03    23.503        .18142E-02** at limit **
  13  norm          5.6219        5.1973        .84630E-03    .21507E-04
  14  Prefactor     .10000E-03    19.518        .18142E-02** at limit **
  15  Prefactor     .22378        58.582        .28752E-02    .48646E-04
  16  Prefactor     11.996        14.975        .11553E-03    .12104E-04
  17  Prefactor     2.4560        6.4798        .26079E-03    .28292E-04
  18  Prefactor     15.710        11.752        .10105E-03    .16876E-05
  19  Normalizat    .96336        .30290        .44180E-03    .24446E-04
  20  Prefactor     1.1418        .11965        .17304E-03    .12766E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.65716
  norm       = 13.7523
  Prefactor  = 74.7154
  Prefactor  = 11.5919
  norm       = 21.6382
  norm       = 13.9907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.62191
  Prefactor  = 0.0001
  Prefactor  = 0.223784
  Prefactor  = 11.9965
  Prefactor  = 2.45601
  Prefactor  = 15.71
  Normalizat = 0.963357
  Prefactor  = 1.14181
 **********
 **   18 **HESSE 
 **********

 FCN=   8118.363     FROM HESSE     STATUS=OK           275 CALLS     2377 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.067        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.0158        .30467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    22.666        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.2034        .31494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.6572        1.9513        .34668E-05   -1.5325    
   6  norm          13.752        13.430        .43204E-05   -1.4966    
   7  Prefactor     74.715        39.383        .92904E-05   -1.3977    
   8  Prefactor     11.592        19.044        .47037E-05   -1.5027    
   9  norm          21.638        13.533        .34442E-05   -1.4777    
  10  norm          13.991        10.125        .42832E-05   -1.4960    
  11  Prefactor     .10000E-03    5.6370        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.510        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.6219        5.0451        .33852E-04   -1.5234    
  14  Prefactor     .10000E-03    19.525        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .22378        52.801        .11501E-03   -1.5613    
  16  Prefactor     11.996        14.611        .46211E-05   -1.5015    
  17  Prefactor     2.4560        6.4792        .10432E-04   -1.5395    
  18  Prefactor     15.710        11.752        .40420E-05   -1.4915    
  19  Normalizat    .96336        .30230        .17672E-04   -.94268    
  20  Prefactor     1.1418        .11968        .34609E-04   -.88141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7353e-11
Minuit parameter uncertainties:
  1  1.23042e-05
  2  5.67186e-06
  3  6.86442e-05
  4  1.88746e-06
  5  1.95136
  6  13.4331
  7  39.3963
  8  19.0543
  9  13.5349
  10  10.1265
  11  4.97859e-06
  12  5.85952e-05
  13  5.04552
  14  1.11993e-05
  15  6.87946
  16  14.6155
  17  6.48102
  18  11.7537
  19  0.302837
  20  0.119708
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  2.164e+01  1.353e+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.142e+00  1.197e-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:  9.634e-01  3.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.08
Ra Dec: 154.591 -31.403
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 9.09e-08 +/- 5.68e-08
Energy Flux (Fixed Index): 2.66e-05 +/- 1.66e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8117.4502345
delta logL = 0.913227743495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8117.44344699
delta logL = 0.920015261418

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.424       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6043       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1310       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=   8117.443     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      209 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.424        12.230        .22157E-02    .12500E-02
   2  alpha         1.6044        .41498        .40886       -.43000E-04
   3  Normalizat    1.0086        .24975        .97801E-01    .77351E-04
   4  Prefactor     1.1310        .10573        .36511E-01   -.19262E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 20.4239
  alpha      = 1.60436
  Normalizat = 1.00861
  Prefactor  = 1.13102
 **********
 **   18 **HESSE 
 **********

 FCN=   8117.443     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.424        14.635        .88627E-04   -1.4804    
   2  alpha         1.6044        .57009        .15655E-01   -.36640    
   3  Normalizat    1.0086        .27801        .43326E-03   -.92743    
   4  Prefactor     1.1310        .11802        .17379E-03   -.88481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71789e-09
Minuit parameter uncertainties:
  1  14.6381
  2  0.57592
  3  0.278415
  4  0.118045
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799224': 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) = 8117.4434469
delta logL = 0.920015345181

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  2.042e+01  1.464e+01  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  1.604e+00  5.759e-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.131e+00  1.180e-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.009e+00  2.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.96
Ra Dec: 154.591 -31.403
Photon Index (Free Index): 1.60 +/- 0.58
Photon Flux (Free Index): 4.49e-08 +/- 3.88e-08
Energy Flux (Free Index): 3.95e-05 +/- 2.93e-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/799224/cmap_HighResolution_506304001_506563201_4FGL_J1018.3-3124_daily_bin1030.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.09e-08', energy_flux2='3.95e-05', photon_flux_error='5.68e-08', dlogl='9.20e-01', energy_flux='2.66e-05', photon_flux2='4.49e-08', job_status='DONE', time_completed='2021-09-01 17:26:34.058638', photon_index_error2='0.58', photon_index2='1.60', ts='6.08', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='2.93e-05', EG='0.96', time_epoch_completed='1630542394.06', return_code='0', job_id='799224', GAL2='1.13', EG2='1.01', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='3.88e-08', ts2='7.96', photon_index='2.46' WHERE bin_id='1030' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:26:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 799224: <4FGL_J1018.3-3124_daily_bin1030> in cluster <slac> Done

Job <4FGL_J1018.3-3124_daily_bin1030> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 17:10:46 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:13:15 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:13:15 2021
Terminated at Wed Sep  1 17:26:34 2021
Results reported at Wed Sep  1 17:26:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin1030 154.591 -31.4032 506304001 506563201 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 :                                   668.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            948 sec.

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

