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


Performing analysis on: 4FGL_J1018.1+1905_weekly_bin694
RA = 154.548, Dec = 19.0963
tmin = 658713601, tmax = 659318401
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='570792', job_status='RUN', time_executed='2021-12-08 13:50:34.163780', time_epoch_executed='1639000234.16' WHERE source_name='4FGL J1018.1+1905' and cadence='weekly' and bin_id='694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/570792

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/570792/ft1_4FGL_J1018.1+1905_weekly_bin694.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/570792/ft2_4FGL_J1018.1+1905_weekly_bin694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/570792/ft1_4FGL_J1018.1+1905_weekly_bin694.fits outfile=/scratch/kocevski/570792/ft1_filteredMKT_4FGL_J1018.1+1905_weekly_bin694.fits ra=154.548 dec=19.0963 rad=12.0 tmin=658713601.0 tmax=659318401.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 6.26
user 5.97
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/570792/ft1_filtered_4FGL_J1018.1+1905_weekly_bin694.fits" evtable="EVENTS" scfile=/scratch/kocevski/570792/ft2_4FGL_J1018.1+1905_weekly_bin694.fits sctable="SC_DATA" outfile=/scratch/kocevski/570792/ltcube_658713601_659318401_4FGL_J1018.1+1905_weekly_bin694.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/570792/ft2_4FGL_J1018.1+1905_weekly_bin694.fits
.....................!
real 34.77
user 34.25
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/570792/ft1_filtered_4FGL_J1018.1+1905_weekly_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/570792/ft2_4FGL_J1018.1+1905_weekly_bin694.fits sctable="SC_DATA" expcube=/scratch/kocevski/570792/ltcube_658713601_659318401_4FGL_J1018.1+1905_weekly_bin694.fits outfile=/scratch/kocevski/570792/expmap_658713601_659318401_4FGL_J1018.1+1905_weekly_bin694.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/570792/ltcube_658713601_659318401_4FGL_J1018.1+1905_weekly_bin694.fits
.....................!
real 191.43
user 187.02
sys 4.03

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/570792/ft1_filtered_4FGL_J1018.1+1905_weekly_bin694.fits scfile=/scratch/kocevski/570792/ft2_4FGL_J1018.1+1905_weekly_bin694.fits outfile=/scratch/kocevski/570792/cmap_658713601_659318401_4FGL_J1018.1+1905_weekly_bin694.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.62
user 0.44
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/570792/ft1_filtered_4FGL_J1018.1+1905_weekly_bin694.fits scfile=/scratch/kocevski/570792/ft2_4FGL_J1018.1+1905_weekly_bin694.fits outfile=/scratch/kocevski/570792/cmap_HighResolution_658713601_659318401_4FGL_J1018.1+1905_weekly_bin694.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.60
user 0.43
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.633       1.0000         .10000E-03   10000.    
     2 'norm      '    2.8040       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.170       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .29948E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    14.626       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.647       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.885       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0701       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .94124       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3866       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .95346       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0881       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=   20299.75     FROM MIGRAD    STATUS=CONVERGED    344 CALLS     1453 TOTAL
                     EDM=   .62E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.635        10.546         .0000       -.20785E-03
   2  norm          2.8040        .87192         .0000        .44648E-03
   3  Prefactor     23.171        22.933         .0000       -.13129E-02
   4  Prefactor     .10000E-03    10.533         .0000    ** at limit **
   5  Prefactor     .10000E-03    .93816         .0000    ** at limit **
   6  Prefactor     .10000E-03    .33247         .0000    ** at limit **
   7  norm          14.628        4.6270         .0000        .42762E-02
   8  Prefactor     .10000E-03    16.826         .0000    ** at limit **
   9  Prefactor     39.647        21.129         .0000        .10464E-02
  10  Prefactor     .10000E-03    1.1252         .0000    ** at limit **
  11  Prefactor     .10000E-03    .23731         .0000    ** at limit **
  12  Prefactor     22.884        4.4050         .0000       -.45656E-02
  13  Prefactor     2.0726        3.3537         .0000        .56552E-01
  14  Prefactor     .93942        3.6914         .0000        .99417E-01
  15  Prefactor     2.3853        4.3140         .0000       -.25428E-02
  16  Normalizat    .95346        .94439E-01     .0000        .16810E-03
  17  Prefactor     1.0882        .93309E-01     .0000        .15855E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6345
  norm       = 2.804
  Prefactor  = 23.1708
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 14.6276
  Prefactor  = 0.0001
  Prefactor  = 39.6467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.8844
  Prefactor  = 2.07265
  Prefactor  = 0.939416
  Prefactor  = 2.38532
  Normalizat = 0.953458
  Prefactor  = 1.08816
 **********
 **   18 **HESSE 
 **********

 FCN=   20299.75     FROM HESSE     STATUS=OK           225 CALLS     1678 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.635        10.531        .11745E-03   -1.5026    
   2  norm          2.8040        .87039        .71756E-04   -1.5373    
   3  Prefactor     23.171        22.899        .83215E-04   -1.4745    
   4  Prefactor     .10000E-03    10.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.8784        .26033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.2080        .15805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.628        4.6122        .10473E-03   -1.4943    
   8  Prefactor     .10000E-03    16.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.647        21.128        .63658E-04   -1.4448    
  10  Prefactor     .10000E-03    1.1452        .14746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .39844        .13373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.884        4.4049        .83731E-04   -1.4751    
  13  Prefactor     2.0726        3.2195        .14279E-02   -1.5420    
  14  Prefactor     .93942        3.5614        .23640E-02   -1.5514    
  15  Prefactor     2.3853        4.2595        .26513E-03   -1.5399    
  16  Normalizat    .95346        .10695        .24308E-03   -.94606    
  17  Prefactor     1.0882        .10735        .23522E-03   -.89846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9178e-08
Minuit parameter uncertainties:
  1  10.5323
  2  0.870391
  3  22.9077
  4  0.000116932
  5  0.000351615
  6  1.42335e-06
  7  4.61229
  8  0.000144163
  9  21.1318
  10  2.28367e-07
  11  3.8533e-08
  12  4.40495
  13  3.21975
  14  3.56225
  15  4.26001
  16  0.10697
  17  0.107371
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  3.965e+01  2.113e+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.088e+00  1.074e-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:  9.535e-01  1.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.88
Ra Dec: 154.548 19.096
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 2.82e-08 +/- 1.50e-08
Energy Flux (Fixed Index): 1.68e-05 +/- 8.96e-06

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) = 20299.7382598
delta logL = 0.0135991453135

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20299.7234722
delta logL = 0.028386696813

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.483       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1535       1.0000          .0000       10.000    
     3 'Normalizat'    .94989       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0901       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=   20299.72     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      257 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.481        28.427        .67277E-04   -.16979E-03
   2  Index         2.1535        .42338        .57188E-02   -.93076E-04
   3  Normalizat    .94989        .10523        .24348E-03   -.33395E-03
   4  Prefactor     1.0901        .10750        .23503E-03   -.45341E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.4808
  Index      = 2.15351
  Normalizat = 0.949886
  Prefactor  = 1.09007
 **********
 **   18 **HESSE 
 **********

 FCN=   20299.72     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.481        26.143        .13455E-04   -1.4516    
   2  Index         2.1535        .38903        .22875E-03   -.60565    
   3  Normalizat    .94989        .10506        .97390E-05   -.94729    
   4  Prefactor     1.0901        .10746        .47006E-04   -.89785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30665e-10
Minuit parameter uncertainties:
  1  26.151
  2  0.389613
  3  0.105079
  4  0.10748
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/570792': 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) = 20299.7234722
delta logL = 0.0283867049366

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  3.548e+01  2.615e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.154e+00  3.896e-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.090e+00  1.075e-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:  9.499e-01  1.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.91
Ra Dec: 154.548 19.096
Photon Index (Free Index): 2.15 +/- 0.39
Photon Flux (Free Index): 3.12e-08 +/- 2.03e-08
Energy Flux (Free Index): 1.53e-05 +/- 9.87e-06

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/570792/cmap_HighResolution_658713601_659318401_4FGL_J1018.1+1905_weekly_bin694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.82e-08', energy_flux2='1.53e-05', photon_flux_error='1.50e-08', dlogl='2.84e-02', energy_flux='1.68e-05', photon_flux2='3.12e-08', job_status='DONE', time_completed='2021-12-08 14:06:03.173287', photon_index_error2='0.39', photon_index2='2.15', ts='8.88', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='9.87e-06', EG='0.95', time_epoch_completed='1639001163.17', return_code='0', job_id='570792', GAL2='1.09', EG2='0.95', return_code2='0', energy_flux_error='8.96e-06', photon_flux_error2='2.03e-08', ts2='8.91', photon_index='2.06' WHERE bin_id='694' AND source_name='4FGL J1018.1+1905' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Dec  8 14:06:03 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 570792: <4FGL_J1018.1+1905_weekly_bin694> in cluster <slac> Done

Job <4FGL_J1018.1+1905_weekly_bin694> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Dec  8 13:50:20 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 13:50:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 13:50:27 2021
Terminated at Wed Dec  8 14:06:04 2021
Results reported at Wed Dec  8 14:06:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_weekly_bin694 154.548 19.0963 658713601 659318401 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 :                                   927.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             365.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            944 sec.

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

