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


Performing analysis on: 4FGL_J1018.1+1905_daily_bin1157
RA = 154.548, Dec = 19.0963
tmin = 539222401, tmax = 539481601
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='792527', job_status='RUN', time_executed='2021-09-01 16:54:16.893056', time_epoch_executed='1630540456.89' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792527

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792527/ft1_4FGL_J1018.1+1905_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792527/ft2_4FGL_J1018.1+1905_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792527/ft1_4FGL_J1018.1+1905_daily_bin1157.fits outfile=/scratch/kocevski/792527/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1157.fits ra=154.548 dec=19.0963 rad=12.0 tmin=539222401.0 tmax=539481601.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 8.35
user 5.33
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/792527/ft2_4FGL_J1018.1+1905_daily_bin1157.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/792527/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1157.fits evtable="EVENTS" outfile="/scratch/kocevski/792527/ft1_filtered_4FGL_J1018.1+1905_daily_bin1157.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.66
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/792527/ft1_filtered_4FGL_J1018.1+1905_daily_bin1157.fits" evtable="EVENTS" scfile=/scratch/kocevski/792527/ft2_4FGL_J1018.1+1905_daily_bin1157.fits sctable="SC_DATA" outfile=/scratch/kocevski/792527/ltcube_539222401_539481601_4FGL_J1018.1+1905_daily_bin1157.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/792527/ft2_4FGL_J1018.1+1905_daily_bin1157.fits
.....................!
real 14.49
user 14.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792527/ft1_filtered_4FGL_J1018.1+1905_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/792527/ft2_4FGL_J1018.1+1905_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/792527/ltcube_539222401_539481601_4FGL_J1018.1+1905_daily_bin1157.fits outfile=/scratch/kocevski/792527/expmap_539222401_539481601_4FGL_J1018.1+1905_daily_bin1157.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/792527/ltcube_539222401_539481601_4FGL_J1018.1+1905_daily_bin1157.fits
.....................!
real 192.21
user 186.65
sys 4.96

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/792527/ft1_filtered_4FGL_J1018.1+1905_daily_bin1157.fits scfile=/scratch/kocevski/792527/ft2_4FGL_J1018.1+1905_daily_bin1157.fits outfile=/scratch/kocevski/792527/cmap_539222401_539481601_4FGL_J1018.1+1905_daily_bin1157.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/792527/ft1_filtered_4FGL_J1018.1+1905_daily_bin1157.fits scfile=/scratch/kocevski/792527/ft2_4FGL_J1018.1+1905_daily_bin1157.fits outfile=/scratch/kocevski/792527/cmap_HighResolution_539222401_539481601_4FGL_J1018.1+1905_daily_bin1157.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.150       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.051       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .18487E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    103.05       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.156       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.422       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.6392       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1908       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0175       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=   1701.516     FROM MIGRAD    STATUS=CONVERGED    318 CALLS     1539 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.104        41.070       -.13001E-05   -.24165E-04
   2  norm          .10000E-03    .81334       -.13139E-07** at limit **
   3  Prefactor     .10000E-03    68.963       -.69222E-06** at limit **
   4  Prefactor     27.828        88.471       -.67875E-05   -.61036E-04
   5  Prefactor     .10000E-03    10.626        .34152E-06** at limit **
   6  Prefactor     .10000E-03    2.1225        .35196E-06** at limit **
   7  norm          .10001E-03    77.244        .85339E-05** at limit **
   8  Prefactor     .10000E-03    58.624        .44000E-06** at limit **
   9  Prefactor     103.04        83.908       -.55813E-06   -.20291E-04
  10  Prefactor     .10000E-03    5.5676        .35079E-06** at limit **
  11  Prefactor     .10000E-03    1.8864        .31372E-06** at limit **
  12  Prefactor     .10000E-03    5.1500        .32344E-06** at limit **
  13  Prefactor     13.155        21.586       -.61094E-06   -.20615E-04
  14  Prefactor     17.422        21.581       -.11964E-06   -.98826E-05
  15  Prefactor     8.6146        29.409       -.27906E-06   -.39546E-05
  16  Normalizat    1.1907        .38945        .12620E-04   -.95279E-04
  17  Prefactor     1.0175        .36976       -.12410E-04   -.22216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.104
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.8285
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 103.04
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1547
  Prefactor  = 17.4225
  Prefactor  = 8.61463
  Normalizat = 1.19068
  Prefactor  = 1.01746
 **********
 **   18 **HESSE 
 **********

 FCN=   1701.516     FROM HESSE     STATUS=OK           215 CALLS     1754 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.104        41.120        .10290E-03   -1.4930    
   2  norm          .10000E-03    .81482        .36332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    69.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.828        89.513        .37821E-03   -1.4652    
   5  Prefactor     .10000E-03    10.662        .13124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1314        .58735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    80.149        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    58.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     103.04        83.940        .19804E-03   -1.3674    
  10  Prefactor     .10000E-03    5.5745        .95093E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.8925        .55362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.1557        .91461E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.155        21.556        .11043E-03   -1.4982    
  14  Prefactor     17.422        21.573        .95956E-04   -1.4873    
  15  Prefactor     8.6146        29.374        .13638E-03   -1.5121    
  16  Normalizat    1.1907        .38850        .23735E-03   -.86891    
  17  Prefactor     1.0175        .37421        .25092E-03   -.92150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32228e-10
Minuit parameter uncertainties:
  1  41.1977
  2  1.02622e-06
  3  0.000128883
  4  89.9499
  5  9.81459e-06
  6  1.05384e-05
  7  0.00127445
  8  4.06756e-05
  9  84.037
  10  1.6307e-05
  11  8.14005e-06
  12  1.55205e-05
  13  21.5684
  14  21.5831
  15  29.4229
  16  0.389447
  17  0.375177
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.030e+02  8.404e+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:  1.017e+00  3.752e-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.191e+00  3.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.10
Ra Dec: 154.548 19.096
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 7.32e-08 +/- 5.97e-08
Energy Flux (Fixed Index): 4.37e-05 +/- 3.56e-05

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) = 1701.51249383
delta logL = 0.00396284147791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1701.50779095
delta logL = 0.00866571878851

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1701.508     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      259 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     115.19        135.54        .18747E-03    .56033E-05
   2  Index         1.9857        .59111        .37754E-02    .65471E-05
   3  Normalizat    1.1943        .37865        .23705E-03   -.13129E-04
   4  Prefactor     1.0156        .37446        .25114E-03    .20835E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 115.192
  Index      = 1.98574
  Normalizat = 1.19434
  Prefactor  = 1.01561
 **********
 **   18 **HESSE 
 **********

 FCN=   1701.508     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     115.19        130.95        .37495E-04   -1.3557    
   2  Index         1.9857        .57103        .15102E-03   -.64707    
   3  Normalizat    1.1943        .37893        .94818E-05   -.86778    
   4  Prefactor     1.0156        .37480        .10046E-04   -.92211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61949e-11
Minuit parameter uncertainties:
  1  131.283
  2  0.573
  3  0.379807
  4  0.375766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792527': 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) = 1701.50779009
delta logL = 0.00866658032692

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.152e+02  1.313e+02  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.986e+00  5.730e-01  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.016e+00  3.758e-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.194e+00  3.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.12
Ra Dec: 154.548 19.096
Photon Index (Free Index): 1.99 +/- 0.57
Photon Flux (Free Index): 6.90e-08 +/- 6.55e-08
Energy Flux (Free Index): 4.94e-05 +/- 6.24e-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/792527/cmap_HighResolution_539222401_539481601_4FGL_J1018.1+1905_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.32e-08', energy_flux2='4.94e-05', photon_flux_error='5.97e-08', dlogl='8.67e-03', energy_flux='4.37e-05', photon_flux2='6.90e-08', job_status='DONE', time_completed='2021-09-01 17:00:47.930795', photon_index_error2='0.57', photon_index2='1.99', ts='4.10', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='6.24e-05', EG='1.19', time_epoch_completed='1630540847.93', return_code='0', job_id='792527', GAL2='1.02', EG2='1.19', return_code2='0', energy_flux_error='3.56e-05', photon_flux_error2='6.55e-08', ts2='4.12', photon_index='2.06' WHERE bin_id='1157' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:00:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 792527: <4FGL_J1018.1+1905_daily_bin1157> in cluster <slac> Done

Job <4FGL_J1018.1+1905_daily_bin1157> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 16:50:47 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:51: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 16:51:32 2021
Terminated at Wed Sep  1 17:00:48 2021
Results reported at Wed Sep  1 17:00:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin1157 154.548 19.0963 539222401 539481601 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 :                                   379.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   556 sec.
    Turnaround time :                            601 sec.

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

