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


Performing analysis on: 4FGL_J1018.1+1905_daily_bin1608
RA = 154.548, Dec = 19.0963
tmin = 656121601, tmax = 656380801
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='293171', job_status='RUN', time_executed='2021-12-07 20:55:49.564700', time_epoch_executed='1638939349.56' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='1608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293171

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293171/ft1_4FGL_J1018.1+1905_daily_bin1608.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293171/ft2_4FGL_J1018.1+1905_daily_bin1608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293171/ft1_4FGL_J1018.1+1905_daily_bin1608.fits outfile=/scratch/kocevski/293171/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1608.fits ra=154.548 dec=19.0963 rad=12.0 tmin=656121601.0 tmax=656380801.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.50
user 3.28
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293171/ft1_filtered_4FGL_J1018.1+1905_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/293171/ft2_4FGL_J1018.1+1905_daily_bin1608.fits sctable="SC_DATA" expcube=/scratch/kocevski/293171/ltcube_656121601_656380801_4FGL_J1018.1+1905_daily_bin1608.fits outfile=/scratch/kocevski/293171/expmap_656121601_656380801_4FGL_J1018.1+1905_daily_bin1608.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/293171/ltcube_656121601_656380801_4FGL_J1018.1+1905_daily_bin1608.fits
.....................!
real 190.90
user 185.80
sys 4.63

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/293171/ft1_filtered_4FGL_J1018.1+1905_daily_bin1608.fits scfile=/scratch/kocevski/293171/ft2_4FGL_J1018.1+1905_daily_bin1608.fits outfile=/scratch/kocevski/293171/cmap_656121601_656380801_4FGL_J1018.1+1905_daily_bin1608.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293171/ft1_filtered_4FGL_J1018.1+1905_daily_bin1608.fits scfile=/scratch/kocevski/293171/ft2_4FGL_J1018.1+1905_daily_bin1608.fits outfile=/scratch/kocevski/293171/cmap_HighResolution_656121601_656380801_4FGL_J1018.1+1905_daily_bin1608.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/293171/ft1_filtered_4FGL_J1018.1+1905_daily_bin1608.fits', '/scratch/kocevski/293171/ft2_4FGL_J1018.1+1905_daily_bin1608.fits', expMap='/scratch/kocevski/293171/expmap_656121601_656380801_4FGL_J1018.1+1905_daily_bin1608.fits', expCube='/scratch/kocevski/293171/ltcube_656121601_656380801_4FGL_J1018.1+1905_daily_bin1608.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/293171/Model_4FGL_J1018.1+1905_daily_bin1608.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/293171/ft1_filtered_4FGL_J1018.1+1905_daily_bin1608.fits
Spacecraft file(s): /scratch/kocevski/293171/ft2_4FGL_J1018.1+1905_daily_bin1608.fits
Exposure map: /scratch/kocevski/293171/expmap_656121601_656380801_4FGL_J1018.1+1905_daily_bin1608.fits
Exposure cube: /scratch/kocevski/293171/ltcube_656121601_656380801_4FGL_J1018.1+1905_daily_bin1608.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/293171/Model_4FGL_J1018.1+1905_daily_bin1608.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) = 6956.1049357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.6706       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.134       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1615       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2383       1.0000         .10000E-03   10000.    
     7 'norm      '    21.366       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.279       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.347       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3070       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.628       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.6662       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8872       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2135       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .88114       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6956.104     FROM MIGRAD    STATUS=CONVERGED    320 CALLS     1550 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.233        .20128E-06** at limit **
   2  norm          1.6705        1.2980        .10562E-09   -.26240E-03
   3  Prefactor     .10000E-03    21.667       -.23479E-06** at limit **
   4  Prefactor     15.105        36.374        .71404E-05    .90495E-04
   5  Prefactor     6.1607        5.0909        .28221E-06    .23931E-04
   6  Prefactor     3.2381        2.4078        .60893E-07   -.82111E-04
   7  norm          21.365        8.4080        .27150E-07   -.34413E-04
   8  Prefactor     29.264        59.323        .33681E-05    .25271E-04
   9  Prefactor     22.341        32.720        .87680E-06    .14865E-04
  10  Prefactor     2.3073        5.9012        .63630E-05   -.18628E-03
  11  Prefactor     .10000E-03    .63935        .21593E-06** at limit **
  12  Prefactor     29.627        8.8599        .91796E-07   -.52619E-04
  13  Prefactor     8.6688        7.7892       -.84816E-06   -.19492E-03
  14  Prefactor     .10000E-03    6.9372        .70692E-06** at limit **
  15  Prefactor     4.8884        10.682        .13647E-06   -.18926E-04
  16  Normalizat    1.2136        .17649       -.80865E-06    .66539E-04
  17  Prefactor     .88111        .16088       -.11233E-05   -.13876E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.67045
  Prefactor  = 0.0001
  Prefactor  = 15.1048
  Prefactor  = 6.16074
  Prefactor  = 3.23811
  norm       = 21.3653
  Prefactor  = 29.2638
  Prefactor  = 22.3408
  Prefactor  = 2.30731
  Prefactor  = 0.0001
  Prefactor  = 29.6271
  Prefactor  = 8.66884
  Prefactor  = 0.0001
  Prefactor  = 4.88842
  Normalizat = 1.21361
  Prefactor  = 0.881105
 **********
 **   18 **HESSE 
 **********

 FCN=   6956.104     FROM HESSE     STATUS=OK           229 CALLS     1779 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6705        1.2933        .80835E-04   -1.5449    
   3  Prefactor     .10000E-03    21.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.105        36.436        .10295E-03   -1.4930    
   5  Prefactor     6.1607        5.0901        .16173E-03   -1.5211    
   6  Prefactor     3.2381        2.4055        .10739E-03   -1.5348    
   7  norm          21.365        8.4101        .86654E-04   -1.4783    
   8  Prefactor     29.264        59.384        .74043E-04   -1.4626    
   9  Prefactor     22.341        32.728        .84732E-04   -1.4762    
  10  Prefactor     2.3073        5.9394        .13507E-02   -1.5404    
  11  Prefactor     .10000E-03    .64603        .65180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.627        8.8771        .73607E-04   -1.4619    
  13  Prefactor     8.6688        7.8060        .13616E-03   -1.5119    
  14  Prefactor     .10000E-03    7.0623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8884        10.646        .18195E-03   -1.5266    
  16  Normalizat    1.2136        .20914        .24073E-03   -.86183    
  17  Prefactor     .88111        .18954        .26631E-03   -.96805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32461e-10
Minuit parameter uncertainties:
  1  6.38571e-05
  2  1.29328
  3  4.22443e-05
  4  36.4892
  5  5.09048
  6  2.40554
  7  8.41053
  8  59.5045
  9  32.7546
  10  5.94094
  11  8.08101e-06
  12  8.87752
  13  7.80693
  14  0.000101255
  15  10.6502
  16  0.209283
  17  0.189682
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  2.234e+01  3.275e+01  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:  8.811e-01  1.897e-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:  1.214e+00  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/293171/likelihoodResults_656121601_656380801_4FGL_J1018.1+1905_daily_bin1608.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) = 6955.60460737
delta logL = 0.499214270333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6955.55006272
delta logL = 0.553758913135

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17667E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.1913       1.0000          .0000       10.000    
     3 'Normalizat'    1.1253       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94605       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.

 FCN=   6955.550     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      376 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17189E-01    .20148        .19291E-02    .13262E-01
   2  Index         5.2007        1.8110        .73290E-01    .34506E-03
   3  Normalizat    1.1253        .39414E-01    .56226E-01    .63296E-04
   4  Prefactor     .94598        .38017E-01    .45589E-01    .30823E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0171891
  Index      = 5.20066
  Normalizat = 1.12526
  Prefactor  = 0.945982
 **********
 **   18 **HESSE 
 **********

 FCN=   6955.550     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      411 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17189E-01    .54622        .87172E-04   -1.5682    
   2  Index         5.2007        3.4147        .36017E-02    .40142E-01
   3  Normalizat    1.1253        .14522        .24863E-03   -.88945    
   4  Prefactor     .94598        .13728        .25819E-03   -.94552    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1123e-10
Minuit parameter uncertainties:
  1  0.193231
  2  3.75958
  3  0.145268
  4  0.137332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293171': 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) = 6955.5500571
delta logL = 0.553764539825

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.719e-02  1.932e-01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  5.201e+00  3.760e+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:  9.460e-01  1.373e-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:  1.125e+00  1.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.87
Ra Dec: 154.548 19.096
Photon Index (Free Index): 5.20 +/- 3.76
Photon Flux (Free Index): 7.47e-08 +/- 5.73e-08
Energy Flux (Free Index): 9.77e-06 +/- 8.09e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/293171/cmap_HighResolution_656121601_656380801_4FGL_J1018.1+1905_daily_bin1608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.55e-03', comment='SUCCESS', energy_flux2='9.77e-06', dlogl='5.54e-01', photon_flux2='7.47e-08', job_status='DONE', time_completed='2021-12-07 21:05:10.190570', photon_index_error2='3.76', photon_index2='5.20', ts='0.62', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='7.37e-08', energy_flux_error2='8.09e-06', EG='1.21', time_epoch_completed='1638939910.19', return_code='0', job_id='293171', GAL2='0.95', EG2='1.13', return_code2='102', photon_flux_error2='5.73e-08', ts2='1.87', photon_index='2.06' WHERE bin_id='1608' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 21:05:10 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 293171: <4FGL_J1018.1+1905_daily_bin1608> in cluster <slac> Done

Job <4FGL_J1018.1+1905_daily_bin1608> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 20:50:24 2021
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 20:53:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 20:53:05 2021
Terminated at Tue Dec  7 21:05:10 2021
Results reported at Tue Dec  7 21:05:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin1608 154.548 19.0963 656121601 656380801 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 :                                   560.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            886 sec.

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

