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


Performing analysis on: 4FGL_J1018.1+1905_daily_bin1044
RA = 154.548, Dec = 19.0963
tmin = 509932801, tmax = 510192001
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='792348', job_status='RUN', time_executed='2021-09-01 16:53:21.414868', time_epoch_executed='1630540401.41' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792348

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792348/ft1_4FGL_J1018.1+1905_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792348/ft2_4FGL_J1018.1+1905_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792348/ft1_4FGL_J1018.1+1905_daily_bin1044.fits outfile=/scratch/kocevski/792348/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1044.fits ra=154.548 dec=19.0963 rad=12.0 tmin=509932801.0 tmax=510192001.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.82
user 3.31
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/792348/ft1_filtered_4FGL_J1018.1+1905_daily_bin1044.fits" evtable="EVENTS" scfile=/scratch/kocevski/792348/ft2_4FGL_J1018.1+1905_daily_bin1044.fits sctable="SC_DATA" outfile=/scratch/kocevski/792348/ltcube_509932801_510192001_4FGL_J1018.1+1905_daily_bin1044.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/792348/ft2_4FGL_J1018.1+1905_daily_bin1044.fits
.....................!
real 15.88
user 15.24
sys 0.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792348/ft1_filtered_4FGL_J1018.1+1905_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/792348/ft2_4FGL_J1018.1+1905_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/792348/ltcube_509932801_510192001_4FGL_J1018.1+1905_daily_bin1044.fits outfile=/scratch/kocevski/792348/expmap_509932801_510192001_4FGL_J1018.1+1905_daily_bin1044.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/792348/ltcube_509932801_510192001_4FGL_J1018.1+1905_daily_bin1044.fits
.....................!
real 193.44
user 186.41
sys 5.92

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/792348/ft1_filtered_4FGL_J1018.1+1905_daily_bin1044.fits scfile=/scratch/kocevski/792348/ft2_4FGL_J1018.1+1905_daily_bin1044.fits outfile=/scratch/kocevski/792348/cmap_509932801_510192001_4FGL_J1018.1+1905_daily_bin1044.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.59
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/792348/ft1_filtered_4FGL_J1018.1+1905_daily_bin1044.fits scfile=/scratch/kocevski/792348/ft2_4FGL_J1018.1+1905_daily_bin1044.fits outfile=/scratch/kocevski/792348/cmap_HighResolution_509932801_510192001_4FGL_J1018.1+1905_daily_bin1044.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.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.628       1.0000         .10000E-03   10000.    
     2 'norm      '    2.2406       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    59.952       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.5509       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .12958E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11500E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.690       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9630       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.695       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1856       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .87332       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=   5942.056     FROM MIGRAD    STATUS=CONVERGED    354 CALLS     1630 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.627        40.899       -.52633E-07    .23762E-03
   2  norm          2.2406        1.5951       -.21755E-08   -.73315E-03
   3  Prefactor     .10000E-03    43.424       -.52745E-08** at limit **
   4  Prefactor     59.950        50.069       -.17919E-06    .77979E-03
   5  Prefactor     7.5517        6.3592       -.12932E-07    .14255E-03
   6  Prefactor     .10000E-03    1.4997        .58796E-08** at limit **
   7  norm          .10000E-03    5.3437       -.18228E-07** at limit **
   8  Prefactor     .10000E-03    25.696       -.15805E-07** at limit **
   9  Prefactor     .10000E-03    159.85        .20569E-07** at limit **
  10  Prefactor     26.690        10.501       -.16968E-07    .49716E-03
  11  Prefactor     .10000E-03    2.0821        .67734E-08** at limit **
  12  Prefactor     3.9639        1.7631       -.44363E-06   -.27342E-03
  13  Prefactor     .10000E-03    7.4906       -.36627E-08** at limit **
  14  Prefactor     .10000E-03    13.369       -.63975E-08** at limit **
  15  Prefactor     16.693        17.835       -.18887E-07    .14001E-03
  16  Normalizat    1.1855        .19226        .11503E-06    .39294E-03
  17  Prefactor     .87340        .17020        .14678E-07    .24271E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.6271
  norm       = 2.2406
  Prefactor  = 0.0001
  Prefactor  = 59.9501
  Prefactor  = 7.55175
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 26.6905
  Prefactor  = 0.0001
  Prefactor  = 3.96394
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.6926
  Normalizat = 1.18552
  Prefactor  = 0.873397
 **********
 **   18 **HESSE 
 **********

 FCN=   5942.056     FROM HESSE     STATUS=OK           215 CALLS     1845 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.627        41.072        .55286E-04   -1.4256    
   2  norm          2.2406        1.5906        .79295E-04   -1.5409    
   3  Prefactor     .10000E-03    43.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     59.950        50.719        .51818E-04   -1.4158    
   5  Prefactor     7.5517        6.3670        .14594E-03   -1.5158    
   6  Prefactor     .10000E-03    1.5453        .18421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    16.733        .34297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    165.37        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.690        10.572        .77543E-04   -1.4674    
  11  Prefactor     .10000E-03    2.1284        .21644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.9639        9.2742        .10131E-02   -1.5310    
  13  Prefactor     .10000E-03    7.5397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.693        17.849        .98024E-04   -1.4891    
  16  Normalizat    1.1855        .23361        .24305E-03   -.87052    
  17  Prefactor     .87340        .20122        .26144E-03   -.97077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9973e-09
Minuit parameter uncertainties:
  1  41.0944
  2  1.59064
  3  6.83741e-05
  4  50.7553
  5  6.36762
  6  2.66099e-05
  7  5.01485e-05
  8  0.000191367
  9  0.0012771
  10  10.573
  11  3.38049e-05
  12  9.27756
  13  3.66389e-05
  14  4.51864e-05
  15  17.8547
  16  0.233814
  17  0.20139
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.277e-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:  8.734e-01  2.014e-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.186e+00  2.338e-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: 6.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/792348/likelihoodResults_509932801_510192001_4FGL_J1018.1+1905_daily_bin1044.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) = 5942.05603331
delta logL = -2.87191696771e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5942.05600491
delta logL = -3.14447788696e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15310E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0919       1.0000          .0000       10.000    
     3 'Normalizat'    1.1855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87340       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=   5941.988     FROM MIGRAD    STATUS=CONVERGED    150 CALLS      335 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.314        1031.1        .89206E-02    .76081E-04
   2  Index         1.2847        5.2656        .50000       -.14278E-04
   3  Normalizat    1.1865        .36469E-01    .24306E-03    .73950E-04
   4  Prefactor     .86994        .31428E-01    .26144E-03    .11206E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3142
  Index      = 1.28474
  Normalizat = 1.18651
  Prefactor  = 0.869944
 **********
 **   18 **HESSE 
 **********

 FCN=   5941.988     FROM HESSE     STATUS=OK            29 CALLS      364 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.314        32.091        .35683E-03   -1.5066    
   2  Index         1.2847        1.1741        .14605E-01   -.83762    
   3  Normalizat    1.1865        .21049        .97222E-05   -.87021    
   4  Prefactor     .86994        .19872        .10458E-04   -.97199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25094e-11
Minuit parameter uncertainties:
  1  32.1444
  2  1.19959
  3  0.21064
  4  0.198885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792348': 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) = 5941.98785068
delta logL = 0.0681539088355

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.031e+01  3.214e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.285e+00  1.200e+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:  8.699e-01  1.989e-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.187e+00  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.548 19.096

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/792348/cmap_HighResolution_509932801_510192001_4FGL_J1018.1+1905_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', job_status='DONE', photon_flux_upper_limit='6.32e-08', time_completed='2021-09-01 17:02:16.523592', job_id='792348', GAL2='0.87', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630540936.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='6.82e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1044' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:02:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 792348: <4FGL_J1018.1+1905_daily_bin1044> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin1044 154.548 19.0963 509932801 510192001 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 :                                   533.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            704 sec.

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

