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


Performing analysis on: 4FGL_J1018.1+1905_daily_bin1617
RA = 154.548, Dec = 19.0963
tmin = 658454401, tmax = 658713601
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='293184', job_status='RUN', time_executed='2021-12-07 20:55:49.739780', time_epoch_executed='1638939349.74' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='1617'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293184

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293184/ft1_4FGL_J1018.1+1905_daily_bin1617.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293184/ft2_4FGL_J1018.1+1905_daily_bin1617.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293184/ft1_4FGL_J1018.1+1905_daily_bin1617.fits outfile=/scratch/kocevski/293184/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1617.fits ra=154.548 dec=19.0963 rad=12.0 tmin=658454401.0 tmax=658713601.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 2.93
user 2.72
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293184/ft1_filtered_4FGL_J1018.1+1905_daily_bin1617.fits evtable="EVENTS" scfile=/scratch/kocevski/293184/ft2_4FGL_J1018.1+1905_daily_bin1617.fits sctable="SC_DATA" expcube=/scratch/kocevski/293184/ltcube_658454401_658713601_4FGL_J1018.1+1905_daily_bin1617.fits outfile=/scratch/kocevski/293184/expmap_658454401_658713601_4FGL_J1018.1+1905_daily_bin1617.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/293184/ltcube_658454401_658713601_4FGL_J1018.1+1905_daily_bin1617.fits
.....................!
real 192.09
user 186.34
sys 5.16

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/293184/ft1_filtered_4FGL_J1018.1+1905_daily_bin1617.fits scfile=/scratch/kocevski/293184/ft2_4FGL_J1018.1+1905_daily_bin1617.fits outfile=/scratch/kocevski/293184/cmap_658454401_658713601_4FGL_J1018.1+1905_daily_bin1617.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293184/ft1_filtered_4FGL_J1018.1+1905_daily_bin1617.fits scfile=/scratch/kocevski/293184/ft2_4FGL_J1018.1+1905_daily_bin1617.fits outfile=/scratch/kocevski/293184/cmap_HighResolution_658454401_658713601_4FGL_J1018.1+1905_daily_bin1617.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=154.548 yref=19.0963 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.3890       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.512       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5947       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .83288       1.0000         .10000E-03   10000.    
     7 'norm      '    13.921       1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.293       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.943       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1892       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3262       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.773       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.163       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .88860       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.3509       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.

 FCN=   9729.009     FROM MIGRAD    STATUS=CONVERGED    313 CALLS     1560 TOTAL
                     EDM=   .88E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.685         .0000    ** at limit **
   2  norm          1.3890        .98589         .0000        .83025E-03
   3  Prefactor     .10000E-03    23.307         .0000    ** at limit **
   4  Prefactor     10.511        26.770         .0000        .99861E-03
   5  Prefactor     1.5943        4.6387         .0000        .35237E-01
   6  Prefactor     .83280        1.3020         .0000        .54092E-03
   7  norm          13.921        6.3369         .0000       -.89023E-03
   8  Prefactor     39.293        52.685         .0000        .62727E-03
   9  Prefactor     19.943        18.760         .0000        .65366E-04
  10  Prefactor     .10000E-03    2.3866         .0000    ** at limit **
  11  Prefactor     2.1892        1.6369         .0000        .14428E-01
  12  Prefactor     2.3268        4.9006         .0000        .31872E-02
  13  Prefactor     12.773        7.2050         .0000       -.24935E-02
  14  Prefactor     11.163        7.7440         .0000       -.22846E-02
  15  Prefactor     .10000E-03    4.4918         .0000    ** at limit **
  16  Normalizat    .88857        .14678         .0000       -.57728E-04
  17  Prefactor     1.3509        .14391         .0000       -.94522E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.38899
  Prefactor  = 0.0001
  Prefactor  = 10.5114
  Prefactor  = 1.59431
  Prefactor  = 0.832798
  norm       = 13.9209
  Prefactor  = 39.2926
  Prefactor  = 19.943
  Prefactor  = 0.0001
  Prefactor  = 2.18922
  Prefactor  = 2.3268
  Prefactor  = 12.7732
  Prefactor  = 11.1634
  Prefactor  = 0.0001
  Normalizat = 0.888568
  Prefactor  = 1.35093
 **********
 **   18 **HESSE 
 **********

 FCN=   9729.009     FROM HESSE     STATUS=OK           219 CALLS     1779 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3890        .98387        .80056E-04   -1.5472    
   3  Prefactor     .10000E-03    23.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.511        26.785        .12358E-03   -1.5059    
   5  Prefactor     1.5943        4.6114        .16795E-02   -1.5455    
   6  Prefactor     .83280        1.0221        .13504E-02   -1.5525    
   7  norm          13.921        6.3336        .10735E-03   -1.4962    
   8  Prefactor     39.293        52.745        .63943E-04   -1.4453    
   9  Prefactor     19.943        18.760        .89688E-04   -1.4815    
  10  Prefactor     .10000E-03    2.4074        .14868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.1892        1.6271        .51901E-03   -1.5412    
  12  Prefactor     2.3268        4.8822        .26891E-03   -1.5403    
  13  Prefactor     12.773        7.2092        .11208E-03   -1.4993    
  14  Prefactor     11.163        7.7351        .11991E-03   -1.5040    
  15  Prefactor     .10000E-03    4.5060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .88857        .16981        .26912E-03   -.96863    
  17  Prefactor     1.3509        .16789        .23365E-03   -.81805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40458e-08
Minuit parameter uncertainties:
  1  5.90598e-05
  2  0.983886
  3  0.000139509
  4  26.8156
  5  4.61243
  6  1.02212
  7  6.33389
  8  52.8078
  9  18.7658
  10  1.76336e-05
  11  1.62717
  12  4.88303
  13  7.2097
  14  7.73577
  15  9.17852e-06
  16  0.169912
  17  0.167953
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.994e+01  1.877e+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.351e+00  1.680e-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.886e-01  1.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.66
Ra Dec: 154.548 19.096
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 1.42e-08 +/- 1.33e-08
Energy Flux (Fixed Index): 8.46e-06 +/- 7.96e-06

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

Saving results to:
/scratch/kocevski/293184/likelihoodResults_658454401_658713601_4FGL_J1018.1+1905_daily_bin1617.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) = 9729.00719679
delta logL = 0.0017672082522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9729.00572419
delta logL = 0.00323981033398

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.322       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0047       1.0000          .0000       10.000    
     3 'Normalizat'    .88956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3504       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=   9729.006     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      273 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.328        27.966        .86741E-04    .57668E-05
   2  Index         2.0045        .74936        .98469E-02   -.23493E-04
   3  Normalizat    .88958        .15982        .26898E-03   -.21572E-03
   4  Prefactor     1.3504        .16719        .23368E-03   -.17888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.3284
  Index      = 2.00451
  Normalizat = 0.889576
  Prefactor  = 1.3504
 **********
 **   18 **HESSE 
 **********

 FCN=   9729.006     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.328        26.230        .34697E-05   -1.4784    
   2  Index         2.0045        .70329        .39388E-03   -.64237    
   3  Normalizat    .88958        .15982        .10759E-04   -.96827    
   4  Prefactor     1.3504        .16728        .46737E-04   -.81821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.79197e-11
Minuit parameter uncertainties:
  1  26.2442
  2  0.70696
  3  0.159905
  4  0.167351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293184': 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) = 9729.00572415
delta logL = 0.00323985289106

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  2.133e+01  2.624e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.005e+00  7.070e-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.350e+00  1.674e-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.896e-01  1.599e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.66
Ra Dec: 154.548 19.096
Photon Index (Free Index): 2.00 +/- 0.71
Photon Flux (Free Index): 1.33e-08 +/- 1.63e-08
Energy Flux (Free Index): 9.10e-06 +/- 1.22e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/293184/cmap_HighResolution_658454401_658713601_4FGL_J1018.1+1905_daily_bin1617.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.87e-03', comment='SUCCESS', photon_flux='1.42e-08', energy_flux2='9.10e-06', photon_flux_error='1.33e-08', dlogl='3.24e-03', energy_flux='8.46e-06', photon_flux2='1.33e-08', job_status='DONE', time_completed='2021-12-07 21:06:47.631742', photon_index_error2='0.71', photon_index2='2.00', ts='2.66', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='5.13e-08', energy_flux_error2='1.22e-05', EG='0.89', time_epoch_completed='1638940007.63', return_code='0', job_id='293184', GAL2='1.35', EG2='0.89', return_code2='0', energy_flux_error='7.96e-06', photon_flux_error2='1.63e-08', ts2='2.66', photon_index='2.06' WHERE bin_id='1617' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 21:06:47 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 293184: <4FGL_J1018.1+1905_daily_bin1617> in cluster <slac> Done

Job <4FGL_J1018.1+1905_daily_bin1617> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 20:50:25 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 20:53:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 20:53:17 2021
Terminated at Tue Dec  7 21:06:48 2021
Results reported at Tue Dec  7 21:06:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin1617 154.548 19.0963 658454401 658713601 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 :                                   656.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            983 sec.

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

