/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 29 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 = 7482
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1018.3-3124_daily_bin350
RA = 154.591, Dec = -31.4032
tmin = 330048001, tmax = 330307201
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='795821', job_status='RUN', time_executed='2021-09-01 17:02:53.488862', time_epoch_executed='1630540973.49' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/795821

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/795821/ft1_4FGL_J1018.3-3124_daily_bin350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/795821/ft2_4FGL_J1018.3-3124_daily_bin350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/795821/ft1_4FGL_J1018.3-3124_daily_bin350.fits outfile=/scratch/kocevski/795821/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin350.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=330048001.0 tmax=330307201.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.55
user 3.28
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/795821/ft1_filtered_4FGL_J1018.3-3124_daily_bin350.fits" evtable="EVENTS" scfile=/scratch/kocevski/795821/ft2_4FGL_J1018.3-3124_daily_bin350.fits sctable="SC_DATA" outfile=/scratch/kocevski/795821/ltcube_330048001_330307201_4FGL_J1018.3-3124_daily_bin350.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/795821/ft2_4FGL_J1018.3-3124_daily_bin350.fits
.....................!
real 16.89
user 16.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/795821/ft1_filtered_4FGL_J1018.3-3124_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/795821/ft2_4FGL_J1018.3-3124_daily_bin350.fits sctable="SC_DATA" expcube=/scratch/kocevski/795821/ltcube_330048001_330307201_4FGL_J1018.3-3124_daily_bin350.fits outfile=/scratch/kocevski/795821/expmap_330048001_330307201_4FGL_J1018.3-3124_daily_bin350.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/795821/ltcube_330048001_330307201_4FGL_J1018.3-3124_daily_bin350.fits
.....................!
real 194.32
user 186.70
sys 4.42

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/795821/ft1_filtered_4FGL_J1018.3-3124_daily_bin350.fits scfile=/scratch/kocevski/795821/ft2_4FGL_J1018.3-3124_daily_bin350.fits outfile=/scratch/kocevski/795821/cmap_330048001_330307201_4FGL_J1018.3-3124_daily_bin350.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.58
user 0.40
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/795821/ft1_filtered_4FGL_J1018.3-3124_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/795821/ft2_4FGL_J1018.3-3124_daily_bin350.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/795821/Model_4FGL_J1018.3-3124_daily_bin350.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/795821/ft1_filtered_4FGL_J1018.3-3124_daily_bin350.fits.....................!
real 125.06
user 123.44
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.066       1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .53409       1.0000         .10000E-03   10000.    
     5 'norm      '    .53534       1.0000         .10000E-03   10000.    
     6 'norm      '    10.317       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    16.872       1.0000         .10000E-03   10000.    
    10 'norm      '    4.8815       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.613       1.0000         .10000E-03   10000.    
    13 'norm      '    .12457       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5821       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1195       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4299       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.530       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6915       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .85119       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0463       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=   12558.71     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2094 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.064        23.487       -.52550E-07    .11779E-02
   2  norm          .10000E-03    2.0517        .45790E-09** at limit **
   3  norm          .10000E-03    8.0535       -.26770E-08** at limit **
   4  norm          .52893        9.6438       -.12860E-06    .21304E-03
   5  norm          .53554        .81387       -.91712E-08   -.22548E-04
   6  norm          10.316        6.7811       -.59375E-09   -.15526E-03
   7  Prefactor     .10000E-03    7.5692       -.19233E-08** at limit **
   8  Prefactor     .10000E-03    3.3874       -.59464E-09** at limit **
   9  norm          16.871        9.1709        .34769E-07    .17847E-03
  10  norm          4.8813        6.2306       -.15603E-06   -.14060E-03
  11  Prefactor     .10000E-03    3.2909        .21164E-08** at limit **
  12  Prefactor     11.633        13.579        .90998E-08    .46136E-04
  13  norm          .10002        1.3055       -.67053E-08    .13882E-04
  14  Prefactor     7.5825        7.8812       -.18957E-07    .88388E-03
  15  Prefactor     4.1209        3.4055        .36688E-08    .21597E-03
  16  Prefactor     6.4282        7.0187       -.75202E-07   -.52067E-03
  17  Prefactor     10.530        4.9321       -.11446E-07   -.15953E-03
  18  Prefactor     2.6914        3.1748       -.16923E-06   -.22053E-03
  19  Normalizat    .85116        .17942        .84863E-07    .11537E-03
  20  Prefactor     1.0464        .76725E-01    .56167E-08   -.41659E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.0644
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.528927
  norm       = 0.535542
  norm       = 10.3163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.8709
  norm       = 4.88127
  Prefactor  = 0.0001
  Prefactor  = 11.6331
  norm       = 0.100025
  Prefactor  = 7.58254
  Prefactor  = 4.12089
  Prefactor  = 6.42819
  Prefactor  = 10.5295
  Prefactor  = 2.69139
  Normalizat = 0.851163
  Prefactor  = 1.04636
 **********
 **   18 **HESSE 
 **********

 FCN=   12558.71     FROM HESSE     STATUS=OK           305 CALLS     2399 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.064        23.504        .73070E-04   -1.4611    
   2  norm          .10000E-03    2.0855        .15672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.1605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .52893        10.510        .45637E-02   -1.5563    
   5  norm          .53554        .69482        .11897E-02   -1.5562    
   6  norm          10.316        6.7785        .12475E-03   -1.5065    
   7  Prefactor     .10000E-03    7.5897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.3962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          16.871        9.3026        .97506E-04   -1.4886    
  10  norm          4.8813        7.4441        .91029E-03   -1.5266    
  11  Prefactor     .10000E-03    3.2994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.633        14.311        .11756E-03   -1.5026    
  13  norm          .10002        22.490        .21845E-02   -1.5645    
  14  Prefactor     7.5825        7.8795        .14564E-03   -1.5157    
  15  Prefactor     4.1209        3.3824        .16429E-03   -1.5302    
  16  Prefactor     6.4282        7.4308        .79140E-03   -1.5201    
  17  Prefactor     10.530        4.9588        .61737E-03   -1.5059    
  18  Prefactor     2.6914        4.5866        .12417E-02   -1.5380    
  19  Normalizat    .85116        .20339        .38863E-03   -.98198    
  20  Prefactor     1.0464        .87257E-01    .16059E-03   -.91200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05328e-08
Minuit parameter uncertainties:
  1  23.5113
  2  8.91634e-06
  3  8.93611e-06
  4  4.71604
  5  0.694826
  6  6.77901
  7  1.04275e-05
  8  2.51096e-06
  9  9.30336
  10  7.44555
  11  2.53098e-05
  12  14.3151
  13  2.99937
  14  7.88057
  15  3.38252
  16  7.4319
  17  4.95901
  18  4.58719
  19  0.203574
  20  0.0872688
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.687e+01  9.303e+00  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  2.461e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
340         beta:  1.460e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
341           Eb:  5.841e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  1.046e+00  8.727e-02  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  8.512e-01  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.36
Ra Dec: 154.591 -31.403
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 7.08e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 1.14e-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) = 12558.5516378
delta logL = 0.158014455939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12558.5500802
delta logL = 0.159571979742

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.554       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7629       1.0000          .0000       5.0000    
     3 'Normalizat'    .83275       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0515       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12558.55     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      314 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.574        9.3583        .52494E-03   -.39459E-04
   2  alpha         2.7648        .57605        .15510E-01    .29595E-03
   3  Normalizat    .83257        .19363        .39247E-03    .71838E-05
   4  Prefactor     1.0515        .86848E-01    .16023E-03   -.33915E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.5741
  alpha      = 2.76482
  Normalizat = 0.832573
  Prefactor  = 1.05147
 **********
 **   18 **HESSE 
 **********

 FCN=   12558.55     FROM HESSE     STATUS=OK            25 CALLS      339 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.574        8.9217        .20997E-04   -1.4944    
   2  alpha         2.7648        .54916        .31020E-02    .10613    
   3  Normalizat    .83257        .19364        .15699E-04   -.98872    
   4  Prefactor     1.0515        .86853E-01    .64092E-05   -.91033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14154e-12
Minuit parameter uncertainties:
  1  8.92249
  2  0.553723
  3  0.193798
  4  0.0868643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/795821': 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) = 12558.5500571
delta logL = 0.159595126408

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.457e+01  8.922e+00  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  2.765e+00  5.537e-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.051e+00  8.686e-02  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  8.326e-01  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.75
Ra Dec: 154.591 -31.403
Photon Index (Free Index): 2.76 +/- 0.55
Photon Flux (Free Index): 8.50e-08 +/- 4.63e-08
Energy Flux (Free Index): 2.02e-05 +/- 9.86e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/795821/cmap_HighResolution_330048001_330307201_4FGL_J1018.3-3124_daily_bin350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.08e-08', energy_flux2='2.02e-05', photon_flux_error='3.91e-08', dlogl='1.60e-01', energy_flux='2.07e-05', photon_flux2='8.50e-08', job_status='DONE', time_completed='2021-09-01 17:17:33.760152', photon_index_error2='0.55', photon_index2='2.76', ts='6.36', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='9.86e-06', EG='0.85', time_epoch_completed='1630541853.76', return_code='0', job_id='795821', GAL2='1.05', EG2='0.83', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='4.63e-08', ts2='6.75', photon_index='2.46' WHERE bin_id='350' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:17:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 795821: <4FGL_J1018.3-3124_daily_bin350> in cluster <slac> Done

Job <4FGL_J1018.3-3124_daily_bin350> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 17:01:05 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:02:13 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:02:13 2021
Terminated at Wed Sep  1 17:17:34 2021
Results reported at Wed Sep  1 17:17:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin350 154.591 -31.4032 330048001 330307201 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 :                                   875.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             371.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            989 sec.

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

