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


Performing analysis on: 4FGL_J1018.3-3124_daily_bin1036
RA = 154.591, Dec = -31.4032
tmin = 507859201, tmax = 508118401
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='799232', job_status='RUN', time_executed='2021-09-01 17:15:40.403432', time_epoch_executed='1630541740.4' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='1036'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799232

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799232/ft1_4FGL_J1018.3-3124_daily_bin1036.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799232/ft2_4FGL_J1018.3-3124_daily_bin1036.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799232/ft1_4FGL_J1018.3-3124_daily_bin1036.fits outfile=/scratch/kocevski/799232/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin1036.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=507859201.0 tmax=508118401.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.30
user 3.10
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799232/ft1_filtered_4FGL_J1018.3-3124_daily_bin1036.fits" evtable="EVENTS" scfile=/scratch/kocevski/799232/ft2_4FGL_J1018.3-3124_daily_bin1036.fits sctable="SC_DATA" outfile=/scratch/kocevski/799232/ltcube_507859201_508118401_4FGL_J1018.3-3124_daily_bin1036.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/799232/ft2_4FGL_J1018.3-3124_daily_bin1036.fits
.....................!
real 11.26
user 10.88
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799232/ft1_filtered_4FGL_J1018.3-3124_daily_bin1036.fits evtable="EVENTS" scfile=/scratch/kocevski/799232/ft2_4FGL_J1018.3-3124_daily_bin1036.fits sctable="SC_DATA" expcube=/scratch/kocevski/799232/ltcube_507859201_508118401_4FGL_J1018.3-3124_daily_bin1036.fits outfile=/scratch/kocevski/799232/expmap_507859201_508118401_4FGL_J1018.3-3124_daily_bin1036.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/799232/ltcube_507859201_508118401_4FGL_J1018.3-3124_daily_bin1036.fits
.....................!
real 156.92
user 153.09
sys 3.49

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/799232/ft1_filtered_4FGL_J1018.3-3124_daily_bin1036.fits scfile=/scratch/kocevski/799232/ft2_4FGL_J1018.3-3124_daily_bin1036.fits outfile=/scratch/kocevski/799232/cmap_507859201_508118401_4FGL_J1018.3-3124_daily_bin1036.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.47
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799232/ft1_filtered_4FGL_J1018.3-3124_daily_bin1036.fits scfile=/scratch/kocevski/799232/ft2_4FGL_J1018.3-3124_daily_bin1036.fits outfile=/scratch/kocevski/799232/cmap_HighResolution_507859201_508118401_4FGL_J1018.3-3124_daily_bin1036.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.48
user 0.34
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799232/ft1_filtered_4FGL_J1018.3-3124_daily_bin1036.fits evtable="EVENTS" scfile=/scratch/kocevski/799232/ft2_4FGL_J1018.3-3124_daily_bin1036.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799232/Model_4FGL_J1018.3-3124_daily_bin1036.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/799232/ft1_filtered_4FGL_J1018.3-3124_daily_bin1036.fits.....................!
real 64.58
user 63.49
sys 0.95

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.957       1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.5040       1.0000         .10000E-03   10000.    
     4 'norm      '    .14204       1.0000         .10000E-03   10000.    
     5 'norm      '    4.2034       1.0000         .10000E-03   10000.    
     6 'norm      '    17.486       1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.104       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10691E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.2016       1.0000         .10000E-03   10000.    
    10 'norm      '    .95204       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .57634E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6995       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17740E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .71625       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1179       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=   7331.768     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     2439 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.944        28.780        .10026E-03   -.21204E-04
   2  norm          .10000E-03    2.0050        .11829E-02** at limit **
   3  norm          4.4969        16.486        .18971E-03   -.25169E-05
   4  norm          .88287E-01    7.8667        .74661E-01    .11950E-03
   5  norm          4.2033        2.2022        .86379E-04    .91603E-04
   6  norm          17.483        13.196        .95780E-04    .80832E-04
   7  Prefactor     45.081        36.902        .59698E-04   -.37706E-04
   8  Prefactor     .10003E-03    29.386        .18142E-02** at limit **
   9  norm          3.2126        11.473        .22644E-03    .22116E-03
  10  norm          .94474        10.550        .51056E-03    .13166E-03
  11  Prefactor     .10000E-03    4.4266        .17583E-02** at limit **
  12  Prefactor     .10000E-03    13.136        .18142E-02** at limit **
  13  norm          .10000E-03    1.0038        .83556E-03** at limit **
  14  Prefactor     .10065E-03    12.034        .85970E-01** at limit **
  15  Prefactor     .10000E-03    2.6635        .26944E-03** at limit **
  16  Prefactor     5.7021        9.3375        .16825E-03   -.32839E-04
  17  Prefactor     .10000E-03    16.297        .29351E-02** at limit **
  18  Prefactor     .10000E-03    26.027        .36285E-03** at limit **
  19  Normalizat    .71616        .28682        .44001E-03   -.84127E-04
  20  Prefactor     1.1180        .11937        .15796E-03   -.18180E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9445
  norm       = 0.0001
  norm       = 4.49694
  norm       = 0.0882874
  norm       = 4.20328
  norm       = 17.4831
  Prefactor  = 45.0807
  Prefactor  = 0.000100027
  norm       = 3.21259
  norm       = 0.944743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100653
  Prefactor  = 0.0001
  Prefactor  = 5.70214
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.716155
  Prefactor  = 1.118
 **********
 **   18 **HESSE 
 **********

 FCN=   7331.768     FROM HESSE     STATUS=OK           291 CALLS     2730 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.944        28.788        .40105E-05   -1.4909    
   2  norm          .10000E-03    2.0051        .23657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.4969        16.485        .75884E-05   -1.5284    
   4  norm          .88287E-01    7.5406        .77394E-01   -1.5649    
   5  norm          4.2033        2.2021        .34552E-05   -1.5298    
   6  norm          17.483        13.195        .38312E-05   -1.4871    
   7  Prefactor     45.081        36.904        .23879E-05   -1.4364    
   8  Prefactor     .10003E-03    29.401        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.2126        11.461        .90576E-05   -1.5349    
  10  norm          .94474        10.526        .20423E-04   -1.5514    
  11  Prefactor     .10000E-03    4.4268        .35165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.140        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0038        .16711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10065E-03    11.770        .87448E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.6635        .53888E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.7021        9.3369        .67301E-05   -1.5230    
  17  Prefactor     .10000E-03    16.691        .58702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.029        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .71616        .28692        .17600E-04   -1.0326    
  20  Prefactor     1.1180        .11942        .31593E-04   -.88893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65602e-09
Minuit parameter uncertainties:
  1  28.8128
  2  1.57678e-05
  3  16.5019
  4  1.63114
  5  2.20217
  6  13.1973
  7  36.9226
  8  0.00179084
  9  11.4684
  10  6.30788
  11  5.60392e-06
  12  0.000111338
  13  6.62805e-06
  14  0.00554625
  15  3.00071e-05
  16  9.33927
  17  3.78443e-05
  18  0.000465569
  19  0.287521
  20  0.119447
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  3.213e+00  1.147e+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.118e+00  1.194e-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:  7.162e-01  2.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/799232/likelihoodResults_507859201_508118401_4FGL_J1018.3-3124_daily_bin1036.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7331.02262512
delta logL = 0.745487475957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7331.00569267
delta logL = 0.762419927604

Fit tolerance = 1e-08

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

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

 FCN=   7331.006     FROM MIGRAD    STATUS=FAILED       102 CALLS      298 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0088        37.199        .72631E-03    .41981E-02
   2  alpha         4.8081        4.6333        .62929E-01   -.12326E-04
   3  Normalizat    .61954        .23694        .47021E-03    .14507E-06
   4  Prefactor     1.1439        .10001        .15626E-03    .33467E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7331.006     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      382 TOTAL
                     EDM=   .95E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0088        37.199        .13170E-03    .41981E-02
   2  alpha         4.8081        4.6333        .86431E-02   -.12326E-04
   3  Normalizat    .61954        .23694        .26359E-03    .14507E-06
   4  Prefactor     1.1439        .10001        .53822E-04    .33467E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7331.006     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      415 TOTAL
                     EDM=   .53E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0088        4.2441        .14526E-03   -.24496E-04
   2  alpha         4.8081        4.9006        .25172E-02   -.59617E-06
   3  Normalizat    .61954        .27336        .18808E-04    .12089E-06
   4  Prefactor     1.1439        .11800        .62504E-05    .36377E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.00884
  alpha      = 4.80812
  Normalizat = 0.619539
  Prefactor  = 1.14391
 **********
 **   18 **HESSE 
 **********

 FCN=   7331.006     FROM HESSE     STATUS=OK            23 CALLS      438 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0088        3.2406        .58105E-05   -1.5507    
   2  alpha         4.8081        4.7283        .10069E-03    1.1765    
   3  Normalizat    .61954        .27322        .37617E-05   -1.0716    
   4  Prefactor     1.1439        .11788        .12501E-05   -.88075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63806e-13
Minuit parameter uncertainties:
  1  3.24115
  2  2.12324
  3  0.273821
  4  0.117909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799232': 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) = 7331.00569121
delta logL = 0.762421391001

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.009e+00  3.241e+00  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  4.808e+00  2.123e+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:  1.144e+00  1.179e-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:  6.195e-01  2.738e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.77
Ra Dec: 154.591 -31.403
Photon Index (Free Index): 4.81 +/- 2.12
Photon Flux (Free Index): 9.23e-08 +/- 8.22e-08
Energy Flux (Free Index): 1.29e-05 +/- 1.18e-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/799232/cmap_HighResolution_507859201_508118401_4FGL_J1018.3-3124_daily_bin1036.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.66e-05', comment='SUCCESS', energy_flux2='1.29e-05', dlogl='7.62e-01', photon_flux2='9.23e-08', job_status='DONE', time_completed='2021-09-01 17:25:46.659593', photon_index_error2='2.12', photon_index2='4.81', ts='0.10', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.18e-05', EG='0.72', time_epoch_completed='1630542346.66', return_code='0', job_id='799232', GAL2='1.14', EG2='0.62', return_code2='0', photon_flux_error2='8.22e-08', ts2='1.77', photon_index='2.46' WHERE bin_id='1036' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:25:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 799232: <4FGL_J1018.3-3124_daily_bin1036> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin1036 154.591 -31.4032 507859201 508118401 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 :                                   604.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            900 sec.

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

