/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 61 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 = 7409
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1018.1+1905_daily_bin62
RA = 154.548, Dec = 19.0963
tmin = 255398401, tmax = 255657601
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='785872', job_status='RUN', time_executed='2021-09-01 16:36:49.711015', time_epoch_executed='1630539409.71' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='62'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/785872

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/785872/ft1_4FGL_J1018.1+1905_daily_bin62.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/785872/ft2_4FGL_J1018.1+1905_daily_bin62.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/785872/ft1_4FGL_J1018.1+1905_daily_bin62.fits outfile=/scratch/kocevski/785872/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin62.fits ra=154.548 dec=19.0963 rad=12.0 tmin=255398401.0 tmax=255657601.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 1.88
user 1.67
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/785872/ft2_4FGL_J1018.1+1905_daily_bin62.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/785872/ft2_4FGL_J1018.1+1905_daily_bin62.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/785872/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin62.fits evtable="EVENTS" outfile="/scratch/kocevski/785872/ft1_filtered_4FGL_J1018.1+1905_daily_bin62.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.55
user 0.37
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/785872/ft1_filtered_4FGL_J1018.1+1905_daily_bin62.fits" evtable="EVENTS" scfile=/scratch/kocevski/785872/ft2_4FGL_J1018.1+1905_daily_bin62.fits sctable="SC_DATA" outfile=/scratch/kocevski/785872/ltcube_255398401_255657601_4FGL_J1018.1+1905_daily_bin62.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/785872/ft2_4FGL_J1018.1+1905_daily_bin62.fits
.....................!
real 21.36
user 20.98
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/785872/ft1_filtered_4FGL_J1018.1+1905_daily_bin62.fits evtable="EVENTS" scfile=/scratch/kocevski/785872/ft2_4FGL_J1018.1+1905_daily_bin62.fits sctable="SC_DATA" expcube=/scratch/kocevski/785872/ltcube_255398401_255657601_4FGL_J1018.1+1905_daily_bin62.fits outfile=/scratch/kocevski/785872/expmap_255398401_255657601_4FGL_J1018.1+1905_daily_bin62.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/785872/ltcube_255398401_255657601_4FGL_J1018.1+1905_daily_bin62.fits
.....................!
real 191.89
user 186.82
sys 4.47

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 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J1018.1+1905 @ 154.548 19.0963

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/785872/ft1_filtered_4FGL_J1018.1+1905_daily_bin62.fits scfile=/scratch/kocevski/785872/ft2_4FGL_J1018.1+1905_daily_bin62.fits outfile=/scratch/kocevski/785872/cmap_255398401_255657601_4FGL_J1018.1+1905_daily_bin62.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.548 yref=19.0963 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/785872/ft1_filtered_4FGL_J1018.1+1905_daily_bin62.fits scfile=/scratch/kocevski/785872/ft2_4FGL_J1018.1+1905_daily_bin62.fits outfile=/scratch/kocevski/785872/cmap_HighResolution_255398401_255657601_4FGL_J1018.1+1905_daily_bin62.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.548 yref=19.0963 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.58
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/785872/ft1_filtered_4FGL_J1018.1+1905_daily_bin62.fits evtable="EVENTS" scfile=/scratch/kocevski/785872/ft2_4FGL_J1018.1+1905_daily_bin62.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/785872/Model_4FGL_J1018.1+1905_daily_bin62.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/785872/ft1_filtered_4FGL_J1018.1+1905_daily_bin62.fits.....................!
real 64.14
user 62.71
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/785872/ft1_filtered_4FGL_J1018.1+1905_daily_bin62.fits', '/scratch/kocevski/785872/ft2_4FGL_J1018.1+1905_daily_bin62.fits', expMap='/scratch/kocevski/785872/expmap_255398401_255657601_4FGL_J1018.1+1905_daily_bin62.fits', expCube='/scratch/kocevski/785872/ltcube_255398401_255657601_4FGL_J1018.1+1905_daily_bin62.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/785872/Model_4FGL_J1018.1+1905_daily_bin62.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.1+1905'

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  4.691e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.062e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  2.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/785872/ft1_filtered_4FGL_J1018.1+1905_daily_bin62.fits
Spacecraft file(s): /scratch/kocevski/785872/ft2_4FGL_J1018.1+1905_daily_bin62.fits
Exposure map: /scratch/kocevski/785872/expmap_255398401_255657601_4FGL_J1018.1+1905_daily_bin62.fits
Exposure cube: /scratch/kocevski/785872/ltcube_255398401_255657601_4FGL_J1018.1+1905_daily_bin62.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/785872/Model_4FGL_J1018.1+1905_daily_bin62.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) = 7302.21109903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.273       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.093       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.7419       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.142       1.0000         .10000E-03   10000.    
     8 'Prefactor '    60.879       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4596       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0266       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2213       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.306       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .96447       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1538       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7302.211     FROM MIGRAD    STATUS=CONVERGED    327 CALLS     1572 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.273        24.785         .0000       -.23602E-04
   2  norm          .10000E-03    .34497         .0000    ** at limit **
   3  Prefactor     .10000E-03    20.501         .0000    ** at limit **
   4  Prefactor     14.093        26.247         .0000       -.19094E-04
   5  Prefactor     8.7420        6.7800         .0000        .17370E-03
   6  Prefactor     .10000E-03    .89399         .0000    ** at limit **
   7  norm          13.142        9.2493         .0000        .25563E-03
   8  Prefactor     60.879        68.984         .0000       -.55219E-03
   9  Prefactor     .10009E-03    78.914         .0000    ** at limit **
  10  Prefactor     2.4601        5.8573         .0000        .18613E-02
  11  Prefactor     2.0268        2.1885         .0000        .16696E-03
  12  Prefactor     .10000E-03    2.8511         .0000    ** at limit **
  13  Prefactor     1.2201        13.221         .0000        .25777E-01
  14  Prefactor     10.304        11.100         .0000       -.65814E-03
  15  Prefactor     .10000E-03    6.7104         .0000    ** at limit **
  16  Normalizat    .96444        .16266         .0000        .75806E-04
  17  Prefactor     1.1538        .15560         .0000        .35271E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2732
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 14.093
  Prefactor  = 8.74201
  Prefactor  = 0.0001
  norm       = 13.142
  Prefactor  = 60.8791
  Prefactor  = 0.000100089
  Prefactor  = 2.46013
  Prefactor  = 2.02678
  Prefactor  = 0.0001
  Prefactor  = 1.22007
  Prefactor  = 10.3043
  Prefactor  = 0.0001
  Normalizat = 0.964436
  Prefactor  = 1.15377
 **********
 **   18 **HESSE 
 **********

 FCN=   7302.211     FROM HESSE     STATUS=OK           223 CALLS     1795 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.273        24.787        .88956E-04   -1.4807    
   2  norm          .10000E-03    .34887        .48999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.093        26.267        .10669E-03   -1.4957    
   5  Prefactor     8.7420        6.7858        .13557E-03   -1.5117    
   6  Prefactor     .10000E-03    .90557        .78863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.142        9.2469        .11049E-03   -1.4983    
   8  Prefactor     60.879        69.158        .51424E-04   -1.4146    
   9  Prefactor     .10009E-03    79.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4601        5.7959        .26078E-03   -1.5394    
  11  Prefactor     2.0268        2.1540        .12083E-03   -1.5423    
  12  Prefactor     .10000E-03    2.8972        .14085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.2201        12.014        .20402E-02   -1.5487    
  14  Prefactor     10.304        10.557        .12481E-03   -1.5066    
  15  Prefactor     .10000E-03    6.7305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .96444        .19124        .25216E-03   -.94232    
  17  Prefactor     1.1538        .18330        .23470E-03   -.87766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.93411e-09
Minuit parameter uncertainties:
  1  24.7992
  2  3.50585e-07
  3  0.000508628
  4  26.2881
  5  6.78643
  6  2.95552e-05
  7  9.24792
  8  69.2492
  9  0.00531381
  10  5.79721
  11  2.15409
  12  5.6731e-05
  13  7.65895
  14  10.5587
  15  0.000113869
  16  0.19138
  17  0.183398
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.001e-04  5.314e-03  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.062e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  2.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.154e+00  1.834e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  9.644e-01  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.548 19.096
Photon Flux Upper Limit: 7.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/785872/likelihoodResults_255398401_255657601_4FGL_J1018.1+1905_daily_bin62.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) = 7302.21099808
delta logL = -5.99082386543e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7302.2109387
delta logL = -5.20139110449e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13496E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0190       1.0000          .0000       10.000    
     3 'Normalizat'    .96444       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1538       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7297.923     FROM MIGRAD    STATUS=CONVERGED    229 CALLS      411 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .47781E-03   -.28056E-06** at limit **
   2  Index         7.0833        .14104        .12229E-05    .49931E-03
   3  Normalizat    .79249        .18658       -.33379E-04   -.80972E-03
   4  Prefactor     1.2678        .18931        .24928E-04   -.92970E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.08328
  Normalizat = 0.792493
  Prefactor  = 1.26778
 **********
 **   18 **HESSE 
 **********

 FCN=   7297.923     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      452 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .19939E-02    .25251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.0833        1.4167        .56094E-01    .42976    
   3  Normalizat    .79249        .54939E-01    .45720E-01   -1.0035    
   4  Prefactor     1.2678        .54124E-01    .35828E-01   -.84270    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.32191e-08
Minuit parameter uncertainties:
  1  1.72699e-08
  2  1.44067
  3  0.0549429
  4  0.0541265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/785872': 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) = 7297.92297673
delta logL = 4.28796144986

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.727e-08  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  7.083e+00  1.441e+00  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  2.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.268e+00  5.413e-02  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  7.925e-01  5.494e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.30
Ra Dec: 154.548 19.096
Photon Index (Free Index): 7.08 +/- 1.44
Photon Flux (Free Index): 1.28e-07 +/- 5.55e-07
Energy Flux (Free Index): 1.53e-05 +/- 6.57e-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/785872/cmap_HighResolution_255398401_255657601_4FGL_J1018.1+1905_daily_bin62.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.34e-03', comment='SUCCESS', energy_flux2='1.53e-05', dlogl='4.29e+00', photon_flux2='1.28e-07', job_status='DONE', time_completed='2021-09-01 16:46:38.485312', photon_index_error2='1.44', photon_index2='7.08', ts='-0.00', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='7.08e-08', energy_flux_error2='6.57e-05', EG='0.96', time_epoch_completed='1630539998.49', return_code='0', job_id='785872', GAL2='1.27', EG2='0.79', return_code2='102', photon_flux_error2='5.55e-07', ts2='9.30', photon_index='2.06' WHERE bin_id='62' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:46:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 785872: <4FGL_J1018.1+1905_daily_bin62> in cluster <slac> Done

Job <4FGL_J1018.1+1905_daily_bin62> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 16:31:53 2021
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:32:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 16:32:46 2021
Terminated at Wed Sep  1 16:46:39 2021
Results reported at Wed Sep  1 16:46:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin62 154.548 19.0963 255398401 255657601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.1+1905 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   581.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            886 sec.

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

