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


Performing analysis on: 4FGL_J1018.3-3124_daily_bin375
RA = 154.591, Dec = -31.4032
tmin = 336528001, tmax = 336787201
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='795860', job_status='RUN', time_executed='2021-09-01 17:06:28.544405', time_epoch_executed='1630541188.54' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/795860

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/795860/ft1_4FGL_J1018.3-3124_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/795860/ft2_4FGL_J1018.3-3124_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/795860/ft1_4FGL_J1018.3-3124_daily_bin375.fits outfile=/scratch/kocevski/795860/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin375.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=336528001.0 tmax=336787201.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.85
user 5.57
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/795860/ft1_filtered_4FGL_J1018.3-3124_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/795860/ft2_4FGL_J1018.3-3124_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/795860/ltcube_336528001_336787201_4FGL_J1018.3-3124_daily_bin375.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/795860/ft2_4FGL_J1018.3-3124_daily_bin375.fits
.....................!
real 15.83
user 15.41
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/795860/ft1_filtered_4FGL_J1018.3-3124_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/795860/ft2_4FGL_J1018.3-3124_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/795860/ltcube_336528001_336787201_4FGL_J1018.3-3124_daily_bin375.fits outfile=/scratch/kocevski/795860/expmap_336528001_336787201_4FGL_J1018.3-3124_daily_bin375.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/795860/ltcube_336528001_336787201_4FGL_J1018.3-3124_daily_bin375.fits
.....................!
real 192.12
user 186.40
sys 4.87

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/795860/ft1_filtered_4FGL_J1018.3-3124_daily_bin375.fits scfile=/scratch/kocevski/795860/ft2_4FGL_J1018.3-3124_daily_bin375.fits outfile=/scratch/kocevski/795860/cmap_336528001_336787201_4FGL_J1018.3-3124_daily_bin375.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.59
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/795860/ft1_filtered_4FGL_J1018.3-3124_daily_bin375.fits scfile=/scratch/kocevski/795860/ft2_4FGL_J1018.3-3124_daily_bin375.fits outfile=/scratch/kocevski/795860/cmap_HighResolution_336528001_336787201_4FGL_J1018.3-3124_daily_bin375.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/795860/ft1_filtered_4FGL_J1018.3-3124_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/795860/ft2_4FGL_J1018.3-3124_daily_bin375.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/795860/Model_4FGL_J1018.3-3124_daily_bin375.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/795860/ft1_filtered_4FGL_J1018.3-3124_daily_bin375.fits.....................!
real 65.02
user 61.25
sys 1.91

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .36808E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.4910       1.0000         .10000E-03   10000.    
     6 'norm      '    10.271       1.0000         .10000E-03   10000.    
     7 'Prefactor '    67.643       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.053       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    50.431       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .95810E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.529       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.288       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.676       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .49456E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5772       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83389       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=   5273.104     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     2494 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.133        .18142E-02** at limit **
   2  norm          .10101E-03    6.0931        .57183E-01** at limit **
   3  norm          .10000E-03    11.153        .18142E-02** at limit **
   4  norm          .10000E-03    4.4890        .15025E-02** at limit **
   5  norm          4.4913        2.5574        .83421E-04   -.10385E-03
   6  norm          10.269        14.636        .12502E-03   -.35645E-04
   7  Prefactor     67.629        50.211        .48802E-04   -.34943E-05
   8  Prefactor     21.052        18.539        .87294E-04    .61210E-05
   9  norm          .10000E-03    5.3601        .16412E-02** at limit **
  10  norm          50.446        18.601        .56472E-04    .24412E-03
  11  Prefactor     .10007E-03    28.669        .97697E-01** at limit **
  12  Prefactor     .10000E-03    7.3832        .18142E-02** at limit **
  13  norm          .10000E-03    1.8320        .95838E-03** at limit **
  14  Prefactor     27.611        30.239        .76355E-04   -.10294E-03
  15  Prefactor     .10000E-03    3.1129        .12461E-02** at limit **
  16  Prefactor     19.284        19.481        .91198E-04    .19696E-04
  17  Prefactor     18.678        12.481        .92679E-04   -.97153E-04
  18  Prefactor     .10027E-03    125.94        .41796E-02** at limit **
  19  Normalizat    1.5770        .40158        .36661E-03    .10357E-03
  20  Prefactor     .83402        .14572        .19178E-03    .37643E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.00010101
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.49132
  norm       = 10.2688
  Prefactor  = 67.6292
  Prefactor  = 21.0524
  norm       = 0.0001
  norm       = 50.4458
  Prefactor  = 0.000100069
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.611
  Prefactor  = 0.0001
  Prefactor  = 19.2842
  Prefactor  = 18.6783
  Prefactor  = 0.000100271
  Normalizat = 1.57702
  Prefactor  = 0.834018
 **********
 **   18 **HESSE 
 **********

 FCN=   5273.104     FROM HESSE     STATUS=OK           291 CALLS     2785 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.133        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10101E-03    6.0776        .57308E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.154        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.4891        .30050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.4913        2.5575        .33368E-05   -1.5284    
   6  norm          10.269        14.635        .50009E-05   -1.5067    
   7  Prefactor     67.629        50.213        .97604E-05   -1.4061    
   8  Prefactor     21.052        18.539        .34917E-05   -1.4790    
   9  norm          .10000E-03    5.3603        .32824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          50.446        18.601        .11294E-04   -1.4286    
  11  Prefactor     .10007E-03    27.157        .10159       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.3833        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.8320        .19168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.611        30.207        .15271E-04   -1.4657    
  15  Prefactor     .10000E-03    3.1133        .24922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.284        19.482        .36479E-05   -1.4829    
  17  Prefactor     18.678        12.481        .37071E-05   -1.4843    
  18  Prefactor     .10027E-03    131.66        .16718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.5770        .40206        .14665E-04   -.75636    
  20  Prefactor     .83402        .14584        .76712E-05   -.98486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41627e-09
Minuit parameter uncertainties:
  1  7.20454e-06
  2  0.00495545
  3  1.49519e-05
  4  1.24161e-06
  5  2.55752
  6  14.6401
  7  50.2445
  8  18.5439
  9  5.39576e-05
  10  18.6027
  11  0.00274007
  12  2.06241e-05
  13  5.08724e-06
  14  30.2236
  15  8.48688e-06
  16  19.488
  17  12.4829
  18  0.0119755
  19  0.402881
  20  0.14591
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.000e-04  5.396e-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:  8.340e-01  1.459e-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.577e+00  4.029e-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.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/795860/likelihoodResults_336528001_336787201_4FGL_J1018.3-3124_daily_bin375.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) = 5273.10441719
delta logL = -0.000883715029886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5273.10353347
delta logL = 6.75754563417e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4561       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83402       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=   5273.104     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      227 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    669.21        .16427E-02** at limit **
   2  alpha         2.1965        2.8629        .50000       -.29627E-07
   3  Normalizat    1.5770        .11224        .36661E-03    .12156E-04
   4  Prefactor     .83402        .44741E-01    .19178E-03    .26202E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.1965
  Normalizat = 1.57702
  Prefactor  = 0.834019
 **********
 **   18 **HESSE 
 **********

 FCN=   5273.104     FROM HESSE     STATUS=OK            27 CALLS      254 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.8596        .32855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1965        3.6304        .20000       -.12170    
   3  Normalizat    1.5770        .35592        .14665E-04   -.75637    
   4  Prefactor     .83402        .14202        .76712E-05   -.98486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89962e-11
Minuit parameter uncertainties:
  1  2.88226e-05
  2  371.669
  3  0.356489
  4  0.142087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/795860': 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) = 5273.10353323
delta logL = 2.46011040872e-07

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.000e-04  2.882e-05  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  2.197e+00  3.717e+02  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:  8.340e-01  1.421e-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.577e+00  3.565e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/795860/cmap_HighResolution_336528001_336787201_4FGL_J1018.3-3124_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.32e-05', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-01 17:17:00.525424', job_id='795860', GAL2='0.83', fit_tolerance='1e-08', EG2='1.58', EG='1.58', time_epoch_completed='1630541820.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='375' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:17:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 795860: <4FGL_J1018.3-3124_daily_bin375> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin375 154.591 -31.4032 336528001 336787201 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 :                                   629.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            953 sec.

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

