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


Performing analysis on: 4FGL_J1018.3-3124_daily_bin1045
RA = 154.591, Dec = -31.4032
tmin = 510192001, tmax = 510451201
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='799245', job_status='RUN', time_executed='2021-09-01 17:14:20.877463', time_epoch_executed='1630541660.88' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='1045'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799245

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799245/ft1_4FGL_J1018.3-3124_daily_bin1045.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799245/ft2_4FGL_J1018.3-3124_daily_bin1045.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799245/ft1_4FGL_J1018.3-3124_daily_bin1045.fits outfile=/scratch/kocevski/799245/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin1045.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=510192001.0 tmax=510451201.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 4.48
user 4.09
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/799245/ft2_4FGL_J1018.3-3124_daily_bin1045.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/799245/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin1045.fits evtable="EVENTS" outfile="/scratch/kocevski/799245/ft1_filtered_4FGL_J1018.3-3124_daily_bin1045.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/799245/ft1_filtered_4FGL_J1018.3-3124_daily_bin1045.fits" evtable="EVENTS" scfile=/scratch/kocevski/799245/ft2_4FGL_J1018.3-3124_daily_bin1045.fits sctable="SC_DATA" outfile=/scratch/kocevski/799245/ltcube_510192001_510451201_4FGL_J1018.3-3124_daily_bin1045.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/799245/ft2_4FGL_J1018.3-3124_daily_bin1045.fits
.....................!
real 14.50
user 13.97
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799245/ft1_filtered_4FGL_J1018.3-3124_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/799245/ft2_4FGL_J1018.3-3124_daily_bin1045.fits sctable="SC_DATA" expcube=/scratch/kocevski/799245/ltcube_510192001_510451201_4FGL_J1018.3-3124_daily_bin1045.fits outfile=/scratch/kocevski/799245/expmap_510192001_510451201_4FGL_J1018.3-3124_daily_bin1045.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/799245/ltcube_510192001_510451201_4FGL_J1018.3-3124_daily_bin1045.fits
.....................!
real 191.04
user 185.56
sys 4.76

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/799245/ft1_filtered_4FGL_J1018.3-3124_daily_bin1045.fits scfile=/scratch/kocevski/799245/ft2_4FGL_J1018.3-3124_daily_bin1045.fits outfile=/scratch/kocevski/799245/cmap_510192001_510451201_4FGL_J1018.3-3124_daily_bin1045.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=154.591 yref=-31.4032 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799245/ft1_filtered_4FGL_J1018.3-3124_daily_bin1045.fits scfile=/scratch/kocevski/799245/ft2_4FGL_J1018.3-3124_daily_bin1045.fits outfile=/scratch/kocevski/799245/cmap_HighResolution_510192001_510451201_4FGL_J1018.3-3124_daily_bin1045.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799245/ft1_filtered_4FGL_J1018.3-3124_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/799245/ft2_4FGL_J1018.3-3124_daily_bin1045.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799245/Model_4FGL_J1018.3-3124_daily_bin1045.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/799245/ft1_filtered_4FGL_J1018.3-3124_daily_bin1045.fits.....................!
real 99.77
user 98.03
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5261       1.0000         .10000E-03   10000.    
     2 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.095       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.7230       1.0000         .10000E-03   10000.    
     6 'norm      '    6.3465       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.361       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10218E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8004       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.443       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5658       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .93849E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99241       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99591       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=   9510.418     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     1785 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5234        43.660        .43205E-05   -.48327E-05
   2  norm          .10000E-03    6.0590        .53397E-07** at limit **
   3  norm          11.093        12.086        .24687E-05    .53926E-04
   4  norm          .10000E-03    3.4116        .27499E-07** at limit **
   5  norm          1.7230        1.0825        .18707E-07   -.75518E-05
   6  norm          6.3456        8.3436       -.22967E-06   -.46962E-04
   7  Prefactor     27.356        20.616        .23895E-05    .57941E-04
   8  Prefactor     .10000E-03    4.4634       -.91732E-08** at limit **
   9  norm          .10000E-03    8.7592       -.72373E-06** at limit **
  10  norm          .10000E-03    8.7579        .47812E-06** at limit **
  11  Prefactor     9.7997        11.459        .22101E-05    .33771E-04
  12  Prefactor     .10000E-03    13.238        .28356E-05** at limit **
  13  norm          .10000E-03    1.1361       -.14011E-08** at limit **
  14  Prefactor     20.448        16.013       -.56349E-05   -.17384E-03
  15  Prefactor     .10000E-03    3.3976       -.17707E-06** at limit **
  16  Prefactor     2.5651        3.4891        .85668E-06   -.15891E-02
  17  Prefactor     .10003E-03    2.9810       -.17188E-06** at limit **
  18  Prefactor     .10009E-03    4.0541       -.94533E-07** at limit **
  19  Normalizat    .99246        .20110        .59687E-06   -.76024E-04
  20  Prefactor     .99591        .85315E-01   -.53331E-06    .92352E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.52335
  norm       = 0.0001
  norm       = 11.0926
  norm       = 0.0001
  norm       = 1.72305
  norm       = 6.34562
  Prefactor  = 27.3564
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.79974
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.4475
  Prefactor  = 0.0001
  Prefactor  = 2.56513
  Prefactor  = 0.00010003
  Prefactor  = 0.00010009
  Normalizat = 0.992459
  Prefactor  = 0.995912
 **********
 **   18 **HESSE 
 **********

 FCN=   9510.418     FROM HESSE     STATUS=OK           301 CALLS     2086 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5234        43.813        .25701E-03   -1.5390    
   2  norm          .10000E-03    6.2138        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.093        12.100        .12028E-03   -1.5042    
   4  norm          .10000E-03    3.4197        .17591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.7230        1.0842        .31997E-04   -1.5445    
   6  norm          6.3456        8.3430        .15933E-03   -1.5204    
   7  Prefactor     27.356        20.685        .76589E-04   -1.4661    
   8  Prefactor     .10000E-03    4.4675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.9008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.9205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.7997        11.473        .12800E-03   -1.5082    
  12  Prefactor     .10000E-03    13.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1460        .10146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.448        16.084        .88586E-04   -1.4803    
  15  Prefactor     .10000E-03    3.5429        .35060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.5651        8.2416        .12742E-02   -1.5388    
  17  Prefactor     .10003E-03    13.629        .32281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10009E-03    6.2248        .65216E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .99246        .23718        .36530E-03   -.93283    
  20  Prefactor     .99591        .10073        .15992E-03   -.92866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.65128e-09
Minuit parameter uncertainties:
  1  21.0467
  2  9.8879e-06
  3  12.1028
  4  5.69283e-08
  5  1.08421
  6  8.34457
  7  20.6903
  8  5.47586e-06
  9  3.16785e-05
  10  7.65497e-06
  11  11.4752
  12  3.95525e-05
  13  1.33418e-06
  14  16.0874
  15  5.58423e-06
  16  8.24529
  17  0.00127098
  18  0.00149667
  19  0.237434
  20  0.100749
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.000e-04  3.168e-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.959e-01  1.007e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  9.925e-01  2.374e-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: 7.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/799245/likelihoodResults_510192001_510451201_4FGL_J1018.3-3124_daily_bin1045.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) = 9510.41876139
delta logL = -0.000535607272468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9510.41822639
delta logL = -6.10976712778e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11512E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4924       1.0000          .0000       5.0000    
     3 'Normalizat'    .99250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99591       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=   9510.398     FROM MIGRAD    STATUS=CONVERGED    150 CALLS      295 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19094        15.023        .25882E-01    .26657E-02
   2  alpha         4.4958        3.2457        .16461        .96325E-05
   3  Normalizat    .97737        .29219E-01    .36530E-03   -.15442E-03
   4  Prefactor     .99965        .12801E-01    .15992E-03   -.22464E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.19094
  alpha      = 4.49579
  Normalizat = 0.977371
  Prefactor  = 0.999651
 **********
 **   18 **HESSE 
 **********

 FCN=   9510.398     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      324 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19094        210.79        .13476E-02   -1.5621    
   2  alpha         4.4958        3.5803        .65843E-02    19.774    
   3  Normalizat    .97737        .17071        .14612E-04   -.93792    
   4  Prefactor     .99965        .62201E-01    .63970E-05   -.92741    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20159e-08
Minuit parameter uncertainties:
  1  12.7301
  2  39.3311
  3  0.170809
  4  0.062205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799245': 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): 102
logL (Free Index) = 9510.39821539
delta logL = 0.0200103913885

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.909e-01  1.273e+01  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  4.496e+00  3.933e+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:  9.997e-01  6.220e-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:  9.774e-01  1.708e-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/799245/cmap_HighResolution_510192001_510451201_4FGL_J1018.3-3124_daily_bin1045.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.33e-05', job_status='DONE', photon_flux_upper_limit='7.96e-08', time_completed='2021-09-01 17:27:26.648753', job_id='799245', GAL2='1.00', fit_tolerance='1e-08', EG2='0.98', EG='0.99', time_epoch_completed='1630542446.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.00e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1045' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:27:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 799245: <4FGL_J1018.3-3124_daily_bin1045> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin1045 154.591 -31.4032 510192001 510451201 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 :                                   783.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             359.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            999 sec.

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

