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


Performing analysis on: 4FGL_J1018.1+1905_daily_bin1543
RA = 154.548, Dec = 19.0963
tmin = 639273601, tmax = 639532801
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='794136', job_status='RUN', time_executed='2021-09-01 17:00:15.439474', time_epoch_executed='1630540815.44' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='1543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/794136

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/794136/ft1_4FGL_J1018.1+1905_daily_bin1543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/794136/ft2_4FGL_J1018.1+1905_daily_bin1543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/794136/ft1_4FGL_J1018.1+1905_daily_bin1543.fits outfile=/scratch/kocevski/794136/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1543.fits ra=154.548 dec=19.0963 rad=12.0 tmin=639273601.0 tmax=639532801.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 5.41
user 5.00
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/794136/ft2_4FGL_J1018.1+1905_daily_bin1543.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/794136/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1543.fits evtable="EVENTS" outfile="/scratch/kocevski/794136/ft1_filtered_4FGL_J1018.1+1905_daily_bin1543.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/794136/ft1_filtered_4FGL_J1018.1+1905_daily_bin1543.fits evtable="EVENTS" scfile=/scratch/kocevski/794136/ft2_4FGL_J1018.1+1905_daily_bin1543.fits sctable="SC_DATA" expcube=/scratch/kocevski/794136/ltcube_639273601_639532801_4FGL_J1018.1+1905_daily_bin1543.fits outfile=/scratch/kocevski/794136/expmap_639273601_639532801_4FGL_J1018.1+1905_daily_bin1543.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/794136/ltcube_639273601_639532801_4FGL_J1018.1+1905_daily_bin1543.fits
.....................!
real 191.60
user 186.21
sys 4.37

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/794136/ft1_filtered_4FGL_J1018.1+1905_daily_bin1543.fits scfile=/scratch/kocevski/794136/ft2_4FGL_J1018.1+1905_daily_bin1543.fits outfile=/scratch/kocevski/794136/cmap_639273601_639532801_4FGL_J1018.1+1905_daily_bin1543.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.93
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/794136/ft1_filtered_4FGL_J1018.1+1905_daily_bin1543.fits scfile=/scratch/kocevski/794136/ft2_4FGL_J1018.1+1905_daily_bin1543.fits outfile=/scratch/kocevski/794136/cmap_HighResolution_639273601_639532801_4FGL_J1018.1+1905_daily_bin1543.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 1.14
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0935       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7776       1.0000         .10000E-03   10000.    
     7 'norm      '    12.917       1.0000         .10000E-03   10000.    
     8 'Prefactor '    50.482       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.287       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .49584       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.694       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.994       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .81152       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2461       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=   5563.270     FROM MIGRAD    STATUS=CONVERGED    344 CALLS     1800 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.630        .76422E-06** at limit **
   2  norm          1.0936        1.0346       -.20006E-08    .74016E-04
   3  Prefactor     .10000E-03    24.225       -.30183E-06** at limit **
   4  Prefactor     .10000E-03    10.347        .41743E-07** at limit **
   5  Prefactor     .10000E-03    5.5952       -.13188E-06** at limit **
   6  Prefactor     1.7774        1.8728       -.11268E-06   -.15438E-03
   7  norm          12.916        7.6991       -.28244E-07   -.41053E-04
   8  Prefactor     50.468        86.868       -.16113E-04    .13902E-03
   9  Prefactor     .10000E-03    24.184       -.59767E-06** at limit **
  10  Prefactor     12.285        8.2071        .21685E-05   -.21986E-03
  11  Prefactor     .49608        2.2574       -.16408E-05   -.14296E-02
  12  Prefactor     20.694        8.7393        .31056E-06   -.11981E-03
  13  Prefactor     12.994        9.4285       -.27637E-05    .57870E-03
  14  Prefactor     .10000E-03    7.0168        .32756E-06** at limit **
  15  Prefactor     .10000E-03    6.2554        .80156E-07** at limit **
  16  Normalizat    .81167        .18208        .18834E-05    .68099E-04
  17  Prefactor     1.2459        .17816       -.47587E-06    .17878E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.09361
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.77741
  norm       = 12.9159
  Prefactor  = 50.468
  Prefactor  = 0.0001
  Prefactor  = 12.2853
  Prefactor  = 0.49608
  Prefactor  = 20.6944
  Prefactor  = 12.994
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.811666
  Prefactor  = 1.24591
 **********
 **   18 **HESSE 
 **********

 FCN=   5563.270     FROM HESSE     STATUS=OK           225 CALLS     2025 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0936        1.0483        .71675E-04   -1.5499    
   3  Prefactor     .10000E-03    24.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.7698        .34423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7774        1.8702        .10090E-03   -1.5441    
   7  norm          12.916        7.6988        .11145E-03   -1.4989    
   8  Prefactor     50.468        85.224        .56443E-04   -1.4286    
   9  Prefactor     .10000E-03    188.99        .71004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.285        8.2843        .11428E-03   -1.5007    
  11  Prefactor     .49608        2.5955        .21857E-03   -1.5567    
  12  Prefactor     20.694        8.7317        .88046E-04   -1.4798    
  13  Prefactor     12.994        9.0612        .11112E-03   -1.4987    
  14  Prefactor     .10000E-03    7.0732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.2694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .81167        .21065        .26538E-03   -.99637    
  17  Prefactor     1.2459        .20680        .22684E-03   -.84930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79217e-09
Minuit parameter uncertainties:
  1  0.000122214
  2  1.04828
  3  7.02088e-06
  4  8.58342e-06
  5  1.62246e-05
  6  1.8703
  7  7.69944
  8  85.4309
  9  0.0003636
  10  8.28507
  11  2.26934
  12  8.73225
  13  9.06212
  14  6.81572e-05
  15  3.51883e-05
  16  0.210866
  17  0.206933
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  3.636e-04  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.246e+00  2.069e-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:  8.117e-01  2.109e-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: 5.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/794136/likelihoodResults_639273601_639532801_4FGL_J1018.1+1905_daily_bin1543.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) = 5563.27029707
delta logL = -2.42465839619e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5563.27029706
delta logL = -2.4242532163e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96364E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0619       1.0000          .0000       10.000    
     3 'Normalizat'    .81167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2459       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=   5563.145     FROM MIGRAD    STATUS=CONVERGED    139 CALLS      308 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.597        6331.8        .90712E-02    .48371E-04
   2  Index         1.3595        7.7463        .28734        .12167E-05
   3  Normalizat    .81568        .80992E-01    .43762E-01    .22693E-04
   4  Prefactor     1.2381        .75949E-01    .51436E-01    .55654E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5971
  Index      = 1.35952
  Normalizat = 0.815677
  Prefactor  = 1.23811
 **********
 **   18 **HESSE 
 **********

 FCN=   5563.145     FROM HESSE     STATUS=OK            31 CALLS      339 TOTAL
                     EDM=   .90E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.597        36.701        .36285E-03   -1.4918    
   2  Index         1.3595        .91645        .15675E-01   -.81554    
   3  Normalizat    .81568        .19670        .26475E-03   -.99490    
   4  Prefactor     1.2381        .20494        .22740E-03   -.85166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95923e-12
Minuit parameter uncertainties:
  1  36.7545
  2  0.927736
  3  0.196877
  4  0.205074
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/794136': 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) = 5563.14471645
delta logL = 0.125556368932

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.560e+01  3.675e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.360e+00  9.277e-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.238e+00  2.051e-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:  8.157e-01  1.969e-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/794136/cmap_HighResolution_639273601_639532801_4FGL_J1018.1+1905_daily_bin1543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.78e-08', time_completed='2021-09-01 17:09:23.069542', job_id='794136', GAL2='1.24', fit_tolerance='1e-08', EG2='0.82', EG='0.81', time_epoch_completed='1630541363.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='1.26e-01', ts2='0.25', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1543' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:09:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 794136: <4FGL_J1018.1+1905_daily_bin1543> in cluster <slac> Done

Job <4FGL_J1018.1+1905_daily_bin1543> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 16:55:40 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:56:17 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:56:17 2021
Terminated at Wed Sep  1 17:09:23 2021
Results reported at Wed Sep  1 17:09:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin1543 154.548 19.0963 639273601 639532801 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 :                                   538.18 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             240.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            823 sec.

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

