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


Performing analysis on: 4FGL_J1018.3-3124_daily_bin1489
RA = 154.591, Dec = -31.4032
tmin = 625276801, tmax = 625536001
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='802124', job_status='RUN', time_executed='2021-09-01 17:22:52.508966', time_epoch_executed='1630542172.51' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='1489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/802124

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/802124/ft1_4FGL_J1018.3-3124_daily_bin1489.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/802124/ft2_4FGL_J1018.3-3124_daily_bin1489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/802124/ft1_4FGL_J1018.3-3124_daily_bin1489.fits outfile=/scratch/kocevski/802124/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin1489.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=625276801.0 tmax=625536001.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.57
user 3.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/802124/ft1_filtered_4FGL_J1018.3-3124_daily_bin1489.fits" evtable="EVENTS" scfile=/scratch/kocevski/802124/ft2_4FGL_J1018.3-3124_daily_bin1489.fits sctable="SC_DATA" outfile=/scratch/kocevski/802124/ltcube_625276801_625536001_4FGL_J1018.3-3124_daily_bin1489.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/802124/ft2_4FGL_J1018.3-3124_daily_bin1489.fits
.....................!
real 14.42
user 14.05
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/802124/ft1_filtered_4FGL_J1018.3-3124_daily_bin1489.fits evtable="EVENTS" scfile=/scratch/kocevski/802124/ft2_4FGL_J1018.3-3124_daily_bin1489.fits sctable="SC_DATA" expcube=/scratch/kocevski/802124/ltcube_625276801_625536001_4FGL_J1018.3-3124_daily_bin1489.fits outfile=/scratch/kocevski/802124/expmap_625276801_625536001_4FGL_J1018.3-3124_daily_bin1489.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/802124/ltcube_625276801_625536001_4FGL_J1018.3-3124_daily_bin1489.fits
.....................!
real 192.69
user 187.18
sys 4.90

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/802124/ft1_filtered_4FGL_J1018.3-3124_daily_bin1489.fits scfile=/scratch/kocevski/802124/ft2_4FGL_J1018.3-3124_daily_bin1489.fits outfile=/scratch/kocevski/802124/cmap_625276801_625536001_4FGL_J1018.3-3124_daily_bin1489.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.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/802124/ft1_filtered_4FGL_J1018.3-3124_daily_bin1489.fits evtable="EVENTS" scfile=/scratch/kocevski/802124/ft2_4FGL_J1018.3-3124_daily_bin1489.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/802124/Model_4FGL_J1018.3-3124_daily_bin1489.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/802124/ft1_filtered_4FGL_J1018.3-3124_daily_bin1489.fits.....................!
real 89.39
user 87.89
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3467       1.0000         .10000E-03   10000.    
     3 'norm      '    5.2610       1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.0754       1.0000         .10000E-03   10000.    
     6 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.196       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.076       1.0000         .10000E-03   10000.    
     9 'norm      '    .11885E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.0967       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .50389E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .31832       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .54286E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.6137       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93752       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=   8374.326     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2153 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.905        .55945E-05** at limit **
   2  norm          1.3476        3.6095       -.12569E-05   -.11775E-02
   3  norm          5.2858        17.304       -.47381E-05   -.51390E-04
   4  norm          .10000E-03    2.4075        .11170E-07** at limit **
   5  norm          2.0741        1.5744       -.95311E-07   -.82619E-04
   6  norm          .10000E-03    10.675       -.39593E-05** at limit **
   7  Prefactor     34.187        36.756       -.11486E-04   -.44948E-04
   8  Prefactor     23.068        18.052        .24357E-05   -.72756E-04
   9  norm          .10000E-03    9.6964        .99292E-05** at limit **
  10  norm          .10000E-03    3.2268       -.21185E-07** at limit **
  11  Prefactor     .10000E-03    9.1636       -.10567E-05** at limit **
  12  Prefactor     .10000E-03    13.806       -.50835E-06** at limit **
  13  norm          3.0896        3.4903       -.19918E-06   -.26121E-03
  14  Prefactor     .10000E-03    9.9442       -.99093E-05** at limit **
  15  Prefactor     .10000E-03    4.3658       -.12266E-07** at limit **
  16  Prefactor     .10036E-03    9.2311       -.86313E-06** at limit **
  17  Prefactor     .32534        5.0160       -.24393E-05    .42713E-03
  18  Prefactor     .10006E-03    4.6333       -.71927E-06** at limit **
  19  Normalizat    1.6152        .25239        .32485E-05    .23026E-03
  20  Prefactor     .93683        .99414E-01   -.26446E-07    .61389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.34756
  norm       = 5.28577
  norm       = 0.0001
  norm       = 2.0741
  norm       = 0.0001
  Prefactor  = 34.1869
  Prefactor  = 23.0676
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.08962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100358
  Prefactor  = 0.325338
  Prefactor  = 0.000100064
  Normalizat = 1.61516
  Prefactor  = 0.936826
 **********
 **   18 **HESSE 
 **********

 FCN=   8374.326     FROM HESSE     STATUS=OK           299 CALLS     2452 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3476        3.6502        .28220E-03   -1.5476    
   3  norm          5.2858        17.406        .17524E-03   -1.5248    
   4  norm          .10000E-03    2.4079        .13867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0741        1.5837        .95505E-04   -1.5420    
   6  norm          .10000E-03    10.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.187        37.075        .68527E-04   -1.4538    
   8  Prefactor     23.068        17.993        .83385E-04   -1.4747    
   9  norm          .10000E-03    9.7218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.2371        .16052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.1896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.0896        3.4813        .17490E-03   -1.5356    
  14  Prefactor     .10000E-03    9.8923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4822        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10036E-03    13.810        .73059E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .32534        30.977        .39033E-02   -1.5594    
  18  Prefactor     .10006E-03    56.156        .38203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.6152        .30134        .35191E-03   -.74592    
  20  Prefactor     .93683        .11821        .18390E-03   -.94866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.81132e-09
Minuit parameter uncertainties:
  1  5.94012e-06
  2  3.65076
  3  17.4222
  4  1.35095e-08
  5  1.58374
  6  4.94311e-06
  7  37.1001
  8  17.997
  9  2.49894e-05
  10  2.00161e-06
  11  5.3395e-06
  12  1.17364e-06
  13  3.4815
  14  8.27713e-06
  15  5.9219e-06
  16  0.00444792
  17  6.35158
  18  0.00378881
  19  0.301682
  20  0.118244
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.000e-04  2.499e-05  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:  9.368e-01  1.182e-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.615e+00  3.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/802124/likelihoodResults_625276801_625536001_4FGL_J1018.3-3124_daily_bin1489.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): 102
logL (Free Index) = 8374.32616367
delta logL = -0.000490305284984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8374.32567383
delta logL = -4.73453837913e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11626E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5011       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93686       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8374.283     FROM MIGRAD    STATUS=FAILED       162 CALLS      312 TOTAL
                     EDM=   .34E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85093        60.107        .42261E-01    .11478E-02
   2  alpha         3.9500        2.8899        .16461        .10385E-02
   3  Normalizat    1.5897        .45358E-01    .35191E-03   -.11630E-05
   4  Prefactor     .94241        .18481E-01    .18390E-03    .12297E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8374.283     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      387 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85093        60.107        .25366E-03    .11478E-02
   2  alpha         3.9500        2.8899        .65987E-02    .10385E-02
   3  Normalizat    1.5897        .45358E-01    .10827E-03   -.11630E-05
   4  Prefactor     .94241        .18481E-01    .32331E-04    .12297E-03
                               ERR DEF=  .500    

 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=   8374.283     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      458 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85094        6.1446        .42824E-03   -.42794E-04
   2  alpha         3.9500        4.1313        .65843E-02   -.13571E-05
   3  Normalizat    1.5897        .28938        .28153E-05   -.16153E-05
   4  Prefactor     .94241        .11634        .73559E-05    .12302E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.850943
  alpha      = 3.94999
  Normalizat = 1.58967
  Prefactor  = 0.942415
 **********
 **   18 **HESSE 
 **********

 FCN=   8374.283     FROM HESSE     STATUS=OK            25 CALLS      483 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85094        5.0221        .17130E-04   -1.5523    
   2  alpha         3.9500        4.0047        .26337E-03    .61872    
   3  Normalizat    1.5897        .29702        .56305E-06   -.75289    
   4  Prefactor     .94241        .11865        .14712E-05   -.94674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7104e-11
Minuit parameter uncertainties:
  1  4.13476
  2  2.63171
  3  0.297354
  4  0.118679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/802124': 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) = 8374.28308003
delta logL = 0.0425933307379

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  8.509e-01  4.135e+00  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  3.950e+00  2.632e+00  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:  9.424e-01  1.187e-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.590e+00  2.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.591 -31.403

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/802124/cmap_HighResolution_625276801_625536001_4FGL_J1018.3-3124_daily_bin1489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.04e-05', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-01 17:35:47.511240', job_id='802124', GAL2='0.94', fit_tolerance='1e-08', EG2='1.59', EG='1.62', time_epoch_completed='1630542947.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='4.26e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1489' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:35:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 802124: <4FGL_J1018.3-3124_daily_bin1489> in cluster <slac> Done

Job <4FGL_J1018.3-3124_daily_bin1489> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 17:20:43 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:21:24 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:21:24 2021
Terminated at Wed Sep  1 17:35:48 2021
Results reported at Wed Sep  1 17:35:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin1489 154.591 -31.4032 625276801 625536001 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 :                                   765.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            905 sec.

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

