/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 98 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 = 6705
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1018.1+1905_daily_bin59
RA = 154.548, Dec = 19.0963
tmin = 254620801, tmax = 254880001
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='785869', job_status='RUN', time_executed='2021-09-01 16:35:24.859315', time_epoch_executed='1630539324.86' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='59'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/785869

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/785869/ft1_4FGL_J1018.1+1905_daily_bin59.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/785869/ft2_4FGL_J1018.1+1905_daily_bin59.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/785869/ft1_4FGL_J1018.1+1905_daily_bin59.fits outfile=/scratch/kocevski/785869/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin59.fits ra=154.548 dec=19.0963 rad=12.0 tmin=254620801.0 tmax=254880001.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.40
user 1.19
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/785869/ft1_filtered_4FGL_J1018.1+1905_daily_bin59.fits" evtable="EVENTS" scfile=/scratch/kocevski/785869/ft2_4FGL_J1018.1+1905_daily_bin59.fits sctable="SC_DATA" outfile=/scratch/kocevski/785869/ltcube_254620801_254880001_4FGL_J1018.1+1905_daily_bin59.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/785869/ft2_4FGL_J1018.1+1905_daily_bin59.fits
.....................!
real 17.07
user 16.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/785869/ft1_filtered_4FGL_J1018.1+1905_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/785869/ft2_4FGL_J1018.1+1905_daily_bin59.fits sctable="SC_DATA" expcube=/scratch/kocevski/785869/ltcube_254620801_254880001_4FGL_J1018.1+1905_daily_bin59.fits outfile=/scratch/kocevski/785869/expmap_254620801_254880001_4FGL_J1018.1+1905_daily_bin59.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/785869/ltcube_254620801_254880001_4FGL_J1018.1+1905_daily_bin59.fits
.....................!
real 190.18
user 185.62
sys 3.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/785869/ft1_filtered_4FGL_J1018.1+1905_daily_bin59.fits scfile=/scratch/kocevski/785869/ft2_4FGL_J1018.1+1905_daily_bin59.fits outfile=/scratch/kocevski/785869/cmap_254620801_254880001_4FGL_J1018.1+1905_daily_bin59.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/785869/ft1_filtered_4FGL_J1018.1+1905_daily_bin59.fits scfile=/scratch/kocevski/785869/ft2_4FGL_J1018.1+1905_daily_bin59.fits outfile=/scratch/kocevski/785869/cmap_HighResolution_254620801_254880001_4FGL_J1018.1+1905_daily_bin59.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/785869/ft1_filtered_4FGL_J1018.1+1905_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/785869/ft2_4FGL_J1018.1+1905_daily_bin59.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/785869/Model_4FGL_J1018.1+1905_daily_bin59.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/785869/ft1_filtered_4FGL_J1018.1+1905_daily_bin59.fits.....................!
real 43.56
user 42.18
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.2362       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.825       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3250       1.0000         .10000E-03   10000.    
     7 'norm      '    9.0255       1.0000         .10000E-03   10000.    
     8 'Prefactor '    49.810       1.0000         .10000E-03   10000.    
     9 'Prefactor '    77.615       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.184       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3429       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .66280       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1055       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=   4329.827     FROM MIGRAD    STATUS=CONVERGED    320 CALLS     1558 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.237        .90712E-02** at limit **
   2  norm          5.2363        2.1534        .43915E-02    .34761E-04
   3  Prefactor     .10000E-03    28.533        .90712E-02** at limit **
   4  Prefactor     11.825        26.525        .29124E-02   -.56836E-04
   5  Prefactor     .10000E-03    2.9383        .90712E-02** at limit **
   6  Prefactor     1.3250        1.9258        .95483E-02    .29813E-03
   7  norm          9.0256        6.5702        .33353E-02    .20005E-03
   8  Prefactor     49.810        70.501        .14205E-02   -.25038E-03
   9  Prefactor     77.616        49.135        .11395E-02   -.95206E-03
  10  Prefactor     .10000E-03    4.6680        .90712E-02** at limit **
  11  Prefactor     .10000E-03    .56227        .90712E-02** at limit **
  12  Prefactor     16.184        9.0071        .24889E-02    .11697E-02
  13  Prefactor     .10000E-03    10.773        .90712E-02** at limit **
  14  Prefactor     .10000E-03    3.6863        .90712E-02** at limit **
  15  Prefactor     7.3396        11.383        .37003E-02    .15250E-02
  16  Normalizat    .66280        .18701        .41792E-01    .25857E-04
  17  Prefactor     1.1055        .18943        .37382E-01    .15435E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.23629
  Prefactor  = 0.0001
  Prefactor  = 11.8253
  Prefactor  = 0.0001
  Prefactor  = 1.32499
  norm       = 9.02556
  Prefactor  = 49.81
  Prefactor  = 77.616
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.33957
  Normalizat = 0.662801
  Prefactor  = 1.10546
 **********
 **   18 **HESSE 
 **********

 FCN=   4329.827     FROM HESSE     STATUS=OK           221 CALLS     1779 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.2363        2.1532        .59680E-04   -1.5250    
   3  Prefactor     .10000E-03    28.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.825        26.525        .11649E-03   -1.5020    
   5  Prefactor     .10000E-03    2.9660        .11012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.3250        1.8939        .10659E-03   -1.5478    
   7  norm          9.0256        6.5724        .13341E-03   -1.5107    
   8  Prefactor     49.810        70.537        .56821E-04   -1.4295    
   9  Prefactor     77.616        49.148        .45581E-04   -1.3944    
  10  Prefactor     .10000E-03    4.7221        .13875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .56533        .48173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.184        9.0140        .49779E-03   -1.4903    
  13  Prefactor     .10000E-03    11.161        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.6994        .12336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.3396        11.354        .74007E-03   -1.5166    
  16  Normalizat    .66280        .21367        .25953E-03   -1.0538    
  17  Prefactor     1.1055        .21724        .21251E-03   -.89292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64325e-09
Minuit parameter uncertainties:
  1  2.12293e-05
  2  2.15327
  3  6.23162e-06
  4  26.5517
  5  7.08539e-06
  6  1.894
  7  6.57296
  8  70.6555
  9  49.174
  10  8.03576e-06
  11  1.91954e-07
  12  9.0148
  13  2.27042e-06
  14  2.57492e-06
  15  11.3576
  16  0.213939
  17  0.217418
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  7.762e+01  4.917e+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.105e+00  2.174e-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:  6.628e-01  2.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.86
Ra Dec: 154.548 19.096
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 5.51e-08 +/- 3.49e-08
Energy Flux (Fixed Index): 3.29e-05 +/- 2.09e-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) = 4329.82307445
delta logL = 0.00376459592007

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4329.81707483
delta logL = 0.00976421763698

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.673       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1318       1.0000          .0000       10.000    
     3 'Normalizat'    .65962       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1073       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=   4329.817     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      259 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.749        77.412        .24045E-03    .18321E-03
   2  Index         2.1317        .54651        .40486E-02    .12709E-03
   3  Normalizat    .65919        .21059        .26019E-03   -.14004E-03
   4  Prefactor     1.1077        .21755        .21232E-03    .29375E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.7486
  Index      = 2.13168
  Normalizat = 0.659194
  Prefactor  = 1.10772
 **********
 **   18 **HESSE 
 **********

 FCN=   4329.817     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.749        71.650        .96180E-05   -1.4036    
   2  Index         2.1317        .50558        .16195E-03   -.61097    
   3  Normalizat    .65919        .21044        .10407E-04   -1.0553    
   4  Prefactor     1.1077        .21754        .42464E-04   -.89220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09576e-09
Minuit parameter uncertainties:
  1  71.7392
  2  0.506869
  3  0.210701
  4  0.21772
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/785869': 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) = 4329.81707135
delta logL = 0.00976769926365

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  6.975e+01  7.174e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.132e+00  5.069e-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.108e+00  2.177e-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:  6.592e-01  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.86
Ra Dec: 154.548 19.096
Photon Index (Free Index): 2.13 +/- 0.51
Photon Flux (Free Index): 5.82e-08 +/- 4.24e-08
Energy Flux (Free Index): 2.99e-05 +/- 2.75e-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/785869/cmap_HighResolution_254620801_254880001_4FGL_J1018.1+1905_daily_bin59.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.51e-08', energy_flux2='2.99e-05', photon_flux_error='3.49e-08', dlogl='9.77e-03', energy_flux='3.29e-05', photon_flux2='5.82e-08', job_status='DONE', time_completed='2021-09-01 16:42:38.083801', photon_index_error2='0.51', photon_index2='2.13', ts='4.86', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='2.75e-05', EG='0.66', time_epoch_completed='1630539758.08', return_code='0', job_id='785869', GAL2='1.11', EG2='0.66', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='4.24e-08', ts2='4.86', photon_index='2.06' WHERE bin_id='59' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:42:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 785869: <4FGL_J1018.1+1905_daily_bin59> in cluster <slac> Done

Job <4FGL_J1018.1+1905_daily_bin59> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 16:31:52 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:32:45 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:45 2021
Terminated at Wed Sep  1 16:42:38 2021
Results reported at Wed Sep  1 16:42:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin59 154.548 19.0963 254620801 254880001 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 :                                   432.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   593 sec.
    Turnaround time :                            646 sec.

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

