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


Performing analysis on: 4FGL_J1018.1+1905_daily_bin1435
RA = 154.548, Dec = 19.0963
tmin = 611280001, tmax = 611539201
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='792966', job_status='RUN', time_executed='2021-09-01 16:56:51.746315', time_epoch_executed='1630540611.75' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='1435'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792966

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792966/ft1_4FGL_J1018.1+1905_daily_bin1435.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792966/ft2_4FGL_J1018.1+1905_daily_bin1435.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792966/ft1_4FGL_J1018.1+1905_daily_bin1435.fits outfile=/scratch/kocevski/792966/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1435.fits ra=154.548 dec=19.0963 rad=12.0 tmin=611280001.0 tmax=611539201.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.49
user 3.27
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/792966/ft1_filtered_4FGL_J1018.1+1905_daily_bin1435.fits" evtable="EVENTS" scfile=/scratch/kocevski/792966/ft2_4FGL_J1018.1+1905_daily_bin1435.fits sctable="SC_DATA" outfile=/scratch/kocevski/792966/ltcube_611280001_611539201_4FGL_J1018.1+1905_daily_bin1435.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/792966/ft2_4FGL_J1018.1+1905_daily_bin1435.fits
.....................!
real 13.75
user 13.29
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792966/ft1_filtered_4FGL_J1018.1+1905_daily_bin1435.fits evtable="EVENTS" scfile=/scratch/kocevski/792966/ft2_4FGL_J1018.1+1905_daily_bin1435.fits sctable="SC_DATA" expcube=/scratch/kocevski/792966/ltcube_611280001_611539201_4FGL_J1018.1+1905_daily_bin1435.fits outfile=/scratch/kocevski/792966/expmap_611280001_611539201_4FGL_J1018.1+1905_daily_bin1435.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/792966/ltcube_611280001_611539201_4FGL_J1018.1+1905_daily_bin1435.fits
.....................!
real 191.74
user 186.76
sys 4.38

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/792966/ft1_filtered_4FGL_J1018.1+1905_daily_bin1435.fits scfile=/scratch/kocevski/792966/ft2_4FGL_J1018.1+1905_daily_bin1435.fits outfile=/scratch/kocevski/792966/cmap_611280001_611539201_4FGL_J1018.1+1905_daily_bin1435.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/792966/ft1_filtered_4FGL_J1018.1+1905_daily_bin1435.fits scfile=/scratch/kocevski/792966/ft2_4FGL_J1018.1+1905_daily_bin1435.fits outfile=/scratch/kocevski/792966/cmap_HighResolution_611280001_611539201_4FGL_J1018.1+1905_daily_bin1435.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.3778       1.0000         .10000E-03   10000.    
     3 'Prefactor '    101.56       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28754E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6498       1.0000         .10000E-03   10000.    
     7 'norm      '    2.3499       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    91.221       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .28872E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.522       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1184       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1920       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0490       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=   5524.790     FROM MIGRAD    STATUS=CONVERGED    362 CALLS     1665 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.917        .47490E-06** at limit **
   2  norm          3.3780        1.9164        .12075E-07   -.35677E-04
   3  Prefactor     101.54        77.561       -.64166E-05   -.68861E-04
   4  Prefactor     .10000E-03    181.66       -.61489E-07** at limit **
   5  Prefactor     .10000E-03    3.1336        .57437E-06** at limit **
   6  Prefactor     1.6496        1.8924        .22334E-06   -.26466E-04
   7  norm          2.3508        3.4878        .67695E-06   -.24838E-02
   8  Prefactor     .10000E-03    38.449       -.17871E-05** at limit **
   9  Prefactor     91.244        58.220        .12559E-04    .19976E-03
  10  Prefactor     .10000E-03    3.8588       -.61338E-06** at limit **
  11  Prefactor     .10000E-03    1.0652        .10357E-06** at limit **
  12  Prefactor     .10000E-03    2.8592        .50903E-06** at limit **
  13  Prefactor     .10000E-03    6.9175       -.11633E-06** at limit **
  14  Prefactor     11.520        8.5937       -.87200E-07    .13991E-04
  15  Prefactor     3.1265        9.6603        .12375E-05   -.85584E-03
  16  Normalizat    1.1919        .18845       -.84335E-06    .65720E-04
  17  Prefactor     1.0489        .18223       -.64682E-06   -.51359E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.37799
  Prefactor  = 101.545
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.64959
  norm       = 2.35083
  Prefactor  = 0.0001
  Prefactor  = 91.244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5198
  Prefactor  = 3.12651
  Normalizat = 1.19192
  Prefactor  = 1.04886
 **********
 **   18 **HESSE 
 **********

 FCN=   5524.790     FROM HESSE     STATUS=OK           223 CALLS     1888 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.3780        1.9160        .74908E-04   -1.5340    
   3  Prefactor     101.54        77.767        .39896E-04   -1.3689    
   4  Prefactor     .10000E-03    189.51        .39748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.1609        .12851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6496        1.8762        .10595E-03   -1.5451    
   7  norm          2.3508        5.3178        .12534E-02   -1.5401    
   8  Prefactor     .10000E-03    38.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     91.244        58.493        .42074E-04   -1.3795    
  10  Prefactor     .10000E-03    19.520        .27359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.3695        .14572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.8806        .12273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.0396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.520        8.5890        .11802E-03   -1.5029    
  15  Prefactor     3.1265        10.967        .11480E-02   -1.5354    
  16  Normalizat    1.1919        .22026        .23880E-03   -.86853    
  17  Prefactor     1.0489        .21621        .25274E-03   -.91118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04864e-08
Minuit parameter uncertainties:
  1  3.48394e-05
  2  1.916
  3  77.8455
  4  0.000667482
  5  1.43021e-05
  6  1.8763
  7  5.31892
  8  5.16198e-05
  9  58.5296
  10  0.000111945
  11  2.2531e-06
  12  5.99858e-06
  13  6.02453e-06
  14  8.58996
  15  10.9743
  16  0.22043
  17  0.216386
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  9.124e+01  5.853e+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.049e+00  2.164e-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.192e+00  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.08
Ra Dec: 154.548 19.096
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 6.48e-08 +/- 4.16e-08
Energy Flux (Fixed Index): 3.87e-05 +/- 2.48e-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) = 5522.50258445
delta logL = 2.28778097896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5522.46381552
delta logL = 2.32654990739

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2846       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3646       1.0000          .0000       10.000    
     3 'Normalizat'    1.0472       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1424       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=   5522.464     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      269 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2432        49.299        .34821E-02   -.42973E-03
   2  Index         3.3664        1.6851        .50304E-01    .18307E-04
   3  Normalizat    1.0470        .89094E-01    .40747E-01   -.33156E-03
   4  Prefactor     1.1426        .83381E-01    .55022E-01   -.27527E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.24315
  Index      = 3.36641
  Normalizat = 1.04701
  Prefactor  = 1.1426
 **********
 **   18 **HESSE 
 **********

 FCN=   5522.464     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      298 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2432        63.084        .81782E-04   -1.5134    
   2  Index         3.3664        2.0192        .21119E-02   -.33283    
   3  Normalizat    1.0470        .23920        .25169E-03   -.91472    
   4  Prefactor     1.1426        .23266        .24328E-03   -.88116    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.24776e-10
Minuit parameter uncertainties:
  1  45.6741
  2  2.08629
  3  0.239445
  4  0.232866
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792966': 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): 102
logL (Free Index) = 5522.46381138
delta logL = 2.3265540475

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  8.243e+00  4.567e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  3.366e+00  2.086e+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.143e+00  2.329e-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.047e+00  2.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.14
Ra Dec: 154.548 19.096
Photon Index (Free Index): 3.37 +/- 2.09
Photon Flux (Free Index): 1.74e-07 +/- 8.85e-08
Energy Flux (Free Index): 3.01e-05 +/- 1.62e-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/792966/cmap_HighResolution_611280001_611539201_4FGL_J1018.1+1905_daily_bin1435.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.48e-08', energy_flux2='3.01e-05', photon_flux_error='4.16e-08', dlogl='2.33e+00', energy_flux='3.87e-05', photon_flux2='1.74e-07', job_status='DONE', time_completed='2021-09-01 17:05:04.767190', photon_index_error2='2.09', photon_index2='3.37', ts='4.08', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='1.19', time_epoch_completed='1630541104.77', return_code='0', job_id='792966', GAL2='1.14', EG2='1.05', return_code2='102', energy_flux_error='2.48e-05', photon_flux_error2='8.85e-08', ts2='9.14', photon_index='2.06' WHERE bin_id='1435' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:05:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 792966: <4FGL_J1018.1+1905_daily_bin1435> in cluster <slac> Done

Job <4FGL_J1018.1+1905_daily_bin1435> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 16:51:27 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:54:31 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:54:31 2021
Terminated at Wed Sep  1 17:05:05 2021
Results reported at Wed Sep  1 17:05:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin1435 154.548 19.0963 611280001 611539201 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 :                                   488.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   634 sec.
    Turnaround time :                            818 sec.

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

