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


Performing analysis on: 4FGL_J1018.1+1905_daily_bin1114
RA = 154.548, Dec = 19.0963
tmin = 528076801, tmax = 528336001
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='792459', job_status='RUN', time_executed='2021-09-01 16:54:36.634376', time_epoch_executed='1630540476.63' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='1114'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792459

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792459/ft1_4FGL_J1018.1+1905_daily_bin1114.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792459/ft2_4FGL_J1018.1+1905_daily_bin1114.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792459/ft1_4FGL_J1018.1+1905_daily_bin1114.fits outfile=/scratch/kocevski/792459/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1114.fits ra=154.548 dec=19.0963 rad=12.0 tmin=528076801.0 tmax=528336001.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 7.12
user 3.24
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/792459/ft2_4FGL_J1018.1+1905_daily_bin1114.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/792459/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1114.fits evtable="EVENTS" outfile="/scratch/kocevski/792459/ft1_filtered_4FGL_J1018.1+1905_daily_bin1114.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.53
user 0.35
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792459/ft1_filtered_4FGL_J1018.1+1905_daily_bin1114.fits evtable="EVENTS" scfile=/scratch/kocevski/792459/ft2_4FGL_J1018.1+1905_daily_bin1114.fits sctable="SC_DATA" expcube=/scratch/kocevski/792459/ltcube_528076801_528336001_4FGL_J1018.1+1905_daily_bin1114.fits outfile=/scratch/kocevski/792459/expmap_528076801_528336001_4FGL_J1018.1+1905_daily_bin1114.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/792459/ltcube_528076801_528336001_4FGL_J1018.1+1905_daily_bin1114.fits
.....................!
real 190.71
user 186.36
sys 3.98

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/792459/ft1_filtered_4FGL_J1018.1+1905_daily_bin1114.fits scfile=/scratch/kocevski/792459/ft2_4FGL_J1018.1+1905_daily_bin1114.fits outfile=/scratch/kocevski/792459/cmap_528076801_528336001_4FGL_J1018.1+1905_daily_bin1114.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/792459/ft1_filtered_4FGL_J1018.1+1905_daily_bin1114.fits scfile=/scratch/kocevski/792459/ft2_4FGL_J1018.1+1905_daily_bin1114.fits outfile=/scratch/kocevski/792459/cmap_HighResolution_528076801_528336001_4FGL_J1018.1+1905_daily_bin1114.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9461       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.191       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.849       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.9689       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.651       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .78262       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.700       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.139       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11196E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.907       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .74317       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.3110       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=   6570.921     FROM MIGRAD    STATUS=CONVERGED    322 CALLS     1583 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.845       -.27037E-06** at limit **
   2  norm          1.9462        1.3211        .32624E-07    .53190E-05
   3  Prefactor     32.194        58.229        .25115E-06    .55179E-05
   4  Prefactor     26.845        31.158        .10483E-06   -.28033E-04
   5  Prefactor     9.9705        7.8536        .12949E-06    .35527E-04
   6  Prefactor     .10000E-03    .69191        .35798E-07** at limit **
   7  norm          .10000E-03    7.5576        .16002E-06** at limit **
   8  Prefactor     .10000E-03    40.430       -.38223E-06** at limit **
   9  Prefactor     10.651        28.362        .21905E-06   -.15478E-05
  10  Prefactor     .10000E-03    7.1989       -.41609E-06** at limit **
  11  Prefactor     .78225        2.8135        .15209E-05   -.18091E-04
  12  Prefactor     11.700        7.3765        .64952E-07   -.18549E-04
  13  Prefactor     19.141        12.800        .66977E-06   -.88945E-04
  14  Prefactor     .10000E-03    27.907       -.95731E-07** at limit **
  15  Prefactor     10.909        16.345        .66182E-06   -.15107E-04
  16  Normalizat    .74302        .17853       -.64903E-06   -.59099E-04
  17  Prefactor     1.3111        .16635       -.68741E-07   -.82052E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.94621
  Prefactor  = 32.1935
  Prefactor  = 26.8447
  Prefactor  = 9.97047
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.651
  Prefactor  = 0.0001
  Prefactor  = 0.782246
  Prefactor  = 11.7
  Prefactor  = 19.1411
  Prefactor  = 0.0001
  Prefactor  = 10.9088
  Normalizat = 0.743015
  Prefactor  = 1.31108
 **********
 **   18 **HESSE 
 **********

 FCN=   6570.921     FROM HESSE     STATUS=OK           225 CALLS     1808 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9462        1.3177        .74196E-04   -1.5429    
   3  Prefactor     32.194        58.220        .70623E-04   -1.4573    
   4  Prefactor     26.845        31.203        .77313E-04   -1.4671    
   5  Prefactor     9.9705        7.8683        .12691E-03   -1.5076    
   6  Prefactor     .10000E-03    .69589        .65829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.6408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    40.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.651        28.363        .12277E-03   -1.5055    
  10  Prefactor     .10000E-03    7.3710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .78225        2.7613        .22744E-03   -1.5531    
  12  Prefactor     11.700        7.3784        .11712E-03   -1.5024    
  13  Prefactor     19.141        12.508        .91551E-04   -1.4833    
  14  Prefactor     .10000E-03    28.258        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.909        16.313        .12131E-03   -1.5047    
  16  Normalizat    .74302        .20907        .29105E-03   -1.0222    
  17  Prefactor     1.3111        .19627        .22500E-03   -.82978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.08921e-11
Minuit parameter uncertainties:
  1  0.000151283
  2  1.31771
  3  58.3231
  4  31.2215
  5  7.86915
  6  2.88586e-07
  7  5.86299e-06
  8  0.000243515
  9  28.3988
  10  6.33259e-05
  11  2.76174
  12  7.37895
  13  12.5101
  14  1.26017e-05
  15  16.3193
  16  0.209296
  17  0.196384
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.065e+01  2.840e+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.311e+00  1.964e-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:  7.430e-01  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/792459/likelihoodResults_528076801_528336001_4FGL_J1018.1+1905_daily_bin1114.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): 0
logL (Free Index) = 6570.83183773
delta logL = 0.0893268036707

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6570.8239816
delta logL = 0.0971829302161

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6570.824     FROM MIGRAD    STATUS=FAILED       105 CALLS      314 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8884        643.70        .10258E-02   -.43301E-04
   2  Index         2.8181        5.6504        .97740E-02    .55633E-03
   3  Normalizat    .73116        .19208        .29325E-03   -.19741E-03
   4  Prefactor     1.3171        .17387        .22454E-03   -.42753E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6570.824     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      400 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8884        643.70        .29788E-03   -.43301E-04
   2  Index         2.8181        5.6504        .13952E-02    .55633E-03
   3  Normalizat    .73116        .19208        .18980E-03   -.19741E-03
   4  Prefactor     1.3171        .17387        .13090E-03   -.42753E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6570.824     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      431 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8885        22.629        .41032E-04   -.25213E-04
   2  Index         2.8181        2.0277        .19548E-02   -.10532E-04
   3  Normalizat    .73116        .19869        .11730E-04   -.18046E-03
   4  Prefactor     1.3171        .19636        .44909E-04   -.39567E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88848
  Index      = 2.81808
  Normalizat = 0.731155
  Prefactor  = 1.31708
 **********
 **   18 **HESSE 
 **********

 FCN=   6570.824     FROM HESSE     STATUS=OK            25 CALLS      456 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8885        17.136        .16413E-05   -1.5314    
   2  Index         2.8181        1.7788        .78192E-04   -.45158    
   3  Normalizat    .73116        .19809        .23460E-05   -1.0268    
   4  Prefactor     1.3171        .19598        .89817E-05   -.82800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74915e-10
Minuit parameter uncertainties:
  1  16.3334
  2  1.82874
  3  0.198287
  4  0.196086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792459': 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) = 6570.82398071
delta logL = 0.0971838221103

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.317e+00  1.961e-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:  7.312e-01  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/792459/cmap_HighResolution_528076801_528336001_4FGL_J1018.1+1905_daily_bin1114.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-03', job_status='DONE', photon_flux_upper_limit='6.38e-08', time_completed='2021-09-01 17:03:55.488579', job_id='792459', GAL2='1.32', fit_tolerance='1e-08', EG2='0.73', EG='0.74', time_epoch_completed='1630541035.49', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='9.72e-02', ts2='0.37', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1114' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:03:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 792459: <4FGL_J1018.1+1905_daily_bin1114> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin1114 154.548 19.0963 528076801 528336001 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 :                                   551.22 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             224.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            795 sec.

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

