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


Performing analysis on: 4FGL_J1018.3-3124_daily_bin959
RA = 154.591, Dec = -31.4032
tmin = 487900801, tmax = 488160001
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='799118', job_status='RUN', time_executed='2021-09-01 17:12:18.298986', time_epoch_executed='1630541538.3' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799118

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799118/ft1_4FGL_J1018.3-3124_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799118/ft2_4FGL_J1018.3-3124_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799118/ft1_4FGL_J1018.3-3124_daily_bin959.fits outfile=/scratch/kocevski/799118/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin959.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=487900801.0 tmax=488160001.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.99
user 4.72
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/799118/ft2_4FGL_J1018.3-3124_daily_bin959.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/799118/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin959.fits evtable="EVENTS" outfile="/scratch/kocevski/799118/ft1_filtered_4FGL_J1018.3-3124_daily_bin959.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.46
user 0.31
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799118/ft1_filtered_4FGL_J1018.3-3124_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/799118/ft2_4FGL_J1018.3-3124_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/799118/ltcube_487900801_488160001_4FGL_J1018.3-3124_daily_bin959.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/799118/ft2_4FGL_J1018.3-3124_daily_bin959.fits
.....................!
real 13.23
user 12.91
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799118/ft1_filtered_4FGL_J1018.3-3124_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/799118/ft2_4FGL_J1018.3-3124_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/799118/ltcube_487900801_488160001_4FGL_J1018.3-3124_daily_bin959.fits outfile=/scratch/kocevski/799118/expmap_487900801_488160001_4FGL_J1018.3-3124_daily_bin959.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/799118/ltcube_487900801_488160001_4FGL_J1018.3-3124_daily_bin959.fits
.....................!
real 155.54
user 152.01
sys 3.15

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/799118/ft1_filtered_4FGL_J1018.3-3124_daily_bin959.fits scfile=/scratch/kocevski/799118/ft2_4FGL_J1018.3-3124_daily_bin959.fits outfile=/scratch/kocevski/799118/cmap_487900801_488160001_4FGL_J1018.3-3124_daily_bin959.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.51
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799118/ft1_filtered_4FGL_J1018.3-3124_daily_bin959.fits scfile=/scratch/kocevski/799118/ft2_4FGL_J1018.3-3124_daily_bin959.fits outfile=/scratch/kocevski/799118/cmap_HighResolution_487900801_488160001_4FGL_J1018.3-3124_daily_bin959.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.50
user 0.35
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799118/ft1_filtered_4FGL_J1018.3-3124_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/799118/ft2_4FGL_J1018.3-3124_daily_bin959.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799118/Model_4FGL_J1018.3-3124_daily_bin959.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/799118/ft1_filtered_4FGL_J1018.3-3124_daily_bin959.fits.....................!
real 53.92
user 52.39
sys 0.98

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.244       1.0000         .10000E-03   10000.    
     2 'norm      '    .11818E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.128       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.2032       1.0000         .10000E-03   10000.    
    10 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .46656       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1605       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99454       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=   5469.274     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     2320 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.244        21.567        .12519E-03   -.69924E-05
   2  norm          .10005E-03    44.272        .35102E-02** at limit **
   3  norm          .10000E-03    6.0056        .17689E-02** at limit **
   4  norm          .10000E-03    39.689        .36285E-03** at limit **
   5  norm          .10000E-03    .88946        .13415E-03** at limit **
   6  norm          .10000E-03    13.361        .18142E-02** at limit **
   7  Prefactor     29.127        36.760        .74234E-04    .68916E-05
   8  Prefactor     .10000E-03    12.079        .18142E-02** at limit **
   9  norm          9.2050        12.454        .13211E-03    .49653E-04
  10  norm          .10000E-03    19.237        .36285E-03** at limit **
  11  Prefactor     .10000E-03    36.312        .18142E-02** at limit **
  12  Prefactor     .10000E-03    8.2839        .18142E-02** at limit **
  13  norm          .10000E-03    1.7073        .94191E-03** at limit **
  14  Prefactor     .44134        155.61        .55629E-02    .11095E-03
  15  Prefactor     .10000E-03    1.7734        .96022E-03** at limit **
  16  Prefactor     .10000E-03    13.524        .18142E-02** at limit **
  17  Prefactor     .10000E-03    8.3881        .18142E-02** at limit **
  18  Prefactor     .10000E-03    11.184        .18142E-02** at limit **
  19  Normalizat    1.1603        .31478        .36041E-03    .14084E-03
  20  Prefactor     .99464        .13104        .16484E-03    .95797E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2442
  norm       = 0.000100055
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 29.1271
  Prefactor  = 0.0001
  norm       = 9.20504
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.441338
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16027
  Prefactor  = 0.99464
 **********
 **   18 **HESSE 
 **********

 FCN=   5469.274     FROM HESSE     STATUS=OK           273 CALLS     2593 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.244        21.567        .50077E-05   -1.5068    
   2  norm          .10005E-03    45.468        .14041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.0059        .35378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    39.692        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .88946        .26831E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    13.369        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.127        36.756        .29694E-05   -1.4628    
   8  Prefactor     .10000E-03    12.081        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.2050        12.452        .52844E-05   -1.5101    
  10  norm          .10000E-03    19.238        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    36.324        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.2842        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.7073        .18838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .44134        158.85        .22252E-03   -1.5575    
  15  Prefactor     .10000E-03    1.7734        .19204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.529        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.3918        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.187        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1603        .31371        .14416E-04   -.87840    
  20  Prefactor     .99464        .13106        .32968E-04   -.92908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68209e-09
Minuit parameter uncertainties:
  1  21.5834
  2  0.00315297
  3  6.19524e-06
  4  0.00014195
  5  1.99089e-06
  6  6.26122e-05
  7  36.7843
  8  2.65167e-05
  9  12.455
  10  8.7854e-05
  11  0.000136066
  12  1.41136e-05
  13  2.80965e-06
  14  16.789
  15  2.18355e-06
  16  3.76082e-05
  17  9.38583e-07
  18  1.55215e-07
  19  0.314213
  20  0.131098
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  9.205e+00  1.246e+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:  9.946e-01  1.311e-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.160e+00  3.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/799118/likelihoodResults_487900801_488160001_4FGL_J1018.3-3124_daily_bin959.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) = 5469.20422568
delta logL = 0.0697201498351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5469.09121474
delta logL = 0.182731083759

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73626       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0212       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.

 FCN=   5469.091     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      261 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73767        32.752        .12200E-01    .19550E-03
   2  alpha         5.0000        4.7941        .46267    ** at limit **
   3  Normalizat    1.0785        .15589        .84012E-01   -.29908E-03
   4  Prefactor     1.0215        .56675E-01    .42025E-01   -.75341E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.73767
  alpha      = 5
  Normalizat = 1.07851
  Prefactor  = 1.02146
 **********
 **   18 **HESSE 
 **********

 FCN=   5469.091     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73767        .98089        .64224E-03   -1.5536    
   2  alpha         5.0000        3.6540        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0785        .32213        .37198E-03   -.90445    
   4  Prefactor     1.0215        .13367        .16294E-03   -.92018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26954e-10
Minuit parameter uncertainties:
  1  0.980911
  2  2.9791e-06
  3  0.322719
  4  0.133716
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799118': 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) = 5469.09120635
delta logL = 0.182739483483

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  7.377e-01  9.809e-01  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  5.000e+00  2.979e-06  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.021e+00  1.337e-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.079e+00  3.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.25
Ra Dec: 154.591 -31.403
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 8.97e-08 +/- 1.19e-07
Energy Flux (Free Index): 1.23e-05 +/- 1.63e-05

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/799118/cmap_HighResolution_487900801_488160001_4FGL_J1018.3-3124_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-05', comment='SUCCESS', energy_flux2='1.23e-05', dlogl='1.83e-01', photon_flux2='8.97e-08', job_status='DONE', time_completed='2021-09-01 17:21:02.308288', photon_index_error2='0.00', photon_index2='5.00', ts='0.78', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.65e-07', energy_flux_error2='1.63e-05', EG='1.16', time_epoch_completed='1630542062.31', return_code='0', job_id='799118', GAL2='1.02', EG2='1.08', return_code2='0', photon_flux_error2='1.19e-07', ts2='1.25', photon_index='2.46' WHERE bin_id='959' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:21:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 799118: <4FGL_J1018.3-3124_daily_bin959> in cluster <slac> Done

Job <4FGL_J1018.3-3124_daily_bin959> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 17:10:40 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:12:04 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:12:04 2021
Terminated at Wed Sep  1 17:21:03 2021
Results reported at Wed Sep  1 17:21:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin959 154.591 -31.4032 487900801 488160001 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 :                                   513.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             392.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   538 sec.
    Turnaround time :                            623 sec.

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

