/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 5 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 = 7392
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1018.1+1905_daily_bin430
RA = 154.548, Dec = 19.0963
tmin = 350784001, tmax = 351043201
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='787779', job_status='RUN', time_executed='2021-09-01 16:45:19.854539', time_epoch_executed='1630539919.85' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/787779

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/787779/ft1_4FGL_J1018.1+1905_daily_bin430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/787779/ft2_4FGL_J1018.1+1905_daily_bin430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/787779/ft1_4FGL_J1018.1+1905_daily_bin430.fits outfile=/scratch/kocevski/787779/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin430.fits ra=154.548 dec=19.0963 rad=12.0 tmin=350784001.0 tmax=351043201.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.37
user 3.17
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/787779/ft1_filtered_4FGL_J1018.1+1905_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/787779/ft2_4FGL_J1018.1+1905_daily_bin430.fits sctable="SC_DATA" expcube=/scratch/kocevski/787779/ltcube_350784001_351043201_4FGL_J1018.1+1905_daily_bin430.fits outfile=/scratch/kocevski/787779/expmap_350784001_351043201_4FGL_J1018.1+1905_daily_bin430.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/787779/ltcube_350784001_351043201_4FGL_J1018.1+1905_daily_bin430.fits
.....................!
real 194.57
user 190.40
sys 3.77

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/787779/ft1_filtered_4FGL_J1018.1+1905_daily_bin430.fits scfile=/scratch/kocevski/787779/ft2_4FGL_J1018.1+1905_daily_bin430.fits outfile=/scratch/kocevski/787779/cmap_350784001_351043201_4FGL_J1018.1+1905_daily_bin430.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.77
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/787779/ft1_filtered_4FGL_J1018.1+1905_daily_bin430.fits scfile=/scratch/kocevski/787779/ft2_4FGL_J1018.1+1905_daily_bin430.fits outfile=/scratch/kocevski/787779/cmap_HighResolution_350784001_351043201_4FGL_J1018.1+1905_daily_bin430.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.65
user 0.43
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.973       1.0000         .10000E-03   10000.    
     2 'norm      '    2.4644       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.435       1.0000         .10000E-03   10000.    
     4 'Prefactor '    53.068       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.0252       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.246       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6379       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0959       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.4526       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15950E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0682       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0752       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .74877       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4710.998     FROM MIGRAD    STATUS=CONVERGED     55 CALLS     1315 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.972        1.1242       -.90905E-06    .17564E-02
   2  norm          2.4646        1.6575       -.18263E-06    .31514E-03
   3  Prefactor     30.435        1.0052        .20332E-06   -.20763E-03
   4  Prefactor     53.070        1.0870        .64882E-06   -.18714E-02
   5  Prefactor     8.0279        2.2490        .52324E-05    .28267E-02
   6  Prefactor     .10000E-03    .65382        .14519E-05** at limit **
   7  norm          .10000E-03    3.6518       -.36087E-07** at limit **
   8  Prefactor     .10001E-03    34.205        .91590E-04** at limit **
   9  Prefactor     30.248        1.0550        .67319E-06   -.12211E-02
  10  Prefactor     .10000E-03    3.6959        .13776E-05** at limit **
  11  Prefactor     4.6375        2.4772        .90226E-06    .59096E-03
  12  Prefactor     2.0958        1.1617       -.43455E-05   -.34211E-02
  13  Prefactor     8.4451        6.6124       -.79780E-05    .26737E-03
  14  Prefactor     .10001E-03    42.255       -.97882E-04** at limit **
  15  Prefactor     5.0651        2.1359        .95452E-06    .63877E-03
  16  Normalizat    1.0750        .19965       -.48941E-05   -.10332E-02
  17  Prefactor     .74898        .19688        .68416E-05   -.63489E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.9716
  norm       = 2.46461
  Prefactor  = 30.435
  Prefactor  = 53.0695
  Prefactor  = 8.02793
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 30.2476
  Prefactor  = 0.000100001
  Prefactor  = 4.63755
  Prefactor  = 2.09582
  Prefactor  = 8.44514
  Prefactor  = 0.000100012
  Prefactor  = 5.06506
  Normalizat = 1.07499
  Prefactor  = 0.748978
 **********
 **   18 **HESSE 
 **********

 FCN=   4710.998     FROM HESSE     STATUS=OK           263 CALLS     1578 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.972        33.784        .17446E-02   -1.4559    
   2  norm          2.4646        1.6656        .65126E-02   -1.5394    
   3  Prefactor     30.435        36.522        .18157E-02   -1.4604    
   4  Prefactor     53.070        36.881        .13764E-02   -1.4250    
   5  Prefactor     8.0279        7.5888        .35383E-02   -1.5141    
   6  Prefactor     .10000E-03    .65001        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.6177        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    34.599        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.248        46.961        .18213E-02   -1.4607    
  10  Prefactor     .10000E-03    3.6456        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6375        2.4893        .46721E-02   -1.5277    
  12  Prefactor     2.0958        5.1621        .71276E-02   -1.5418    
  13  Prefactor     8.4451        7.8842        .34471E-02   -1.5127    
  14  Prefactor     .10001E-03    7.1126        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.0651        10.773        .44651E-02   -1.5258    
  16  Normalizat    1.0750        .18528        .39111E-01   -.90559    
  17  Prefactor     .74898        .17330        .43047E-01   -1.0164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5996e-08
Minuit parameter uncertainties:
  1  33.804
  2  1.66563
  3  36.5488
  4  36.8967
  5  7.58971
  6  1.33803e-05
  7  3.98512e-05
  8  0.00125722
  9  47.0187
  10  0.000135679
  11  2.48938
  12  5.16315
  13  7.88513
  14  0.000586855
  15  10.777
  16  0.185391
  17  0.173426
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  3.025e+01  4.702e+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:  7.490e-01  1.734e-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.075e+00  1.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/787779/likelihoodResults_350784001_351043201_4FGL_J1018.1+1905_daily_bin430.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) = 4709.95955366
delta logL = 1.03867600277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4709.88330314
delta logL = 1.11492652717

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5683       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4120       1.0000          .0000       10.000    
     3 'Normalizat'    .99595       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79306       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=   4709.883     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      256 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5517        46.633        .53487E-02    .32537E-03
   2  Index         3.4133        2.1900        .78027E-01    .17303E-03
   3  Normalizat    .99624        .62083E-01    .46116E-01    .93775E-05
   4  Prefactor     .79294        .57969E-01    .43627E-01    .11697E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.55167
  Index      = 3.4133
  Normalizat = 0.99624
  Prefactor  = 0.792938
 **********
 **   18 **HESSE 
 **********

 FCN=   4709.883     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      289 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5517        78.722        .84540E-04   -1.5331    
   2  Index         3.4133        3.2003        .29612E-02   -.32292    
   3  Normalizat    .99624        .20837        .22215E-03   -.93156    
   4  Prefactor     .79294        .20032        .24400E-03   -.99989    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.17055e-10
Minuit parameter uncertainties:
  1  33.4917
  2  3.513
  3  0.208536
  4  0.200503
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/787779': 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) = 4709.88329948
delta logL = 1.1149301841

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  3.552e+00  3.349e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  3.413e+00  3.513e+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:  7.929e-01  2.005e-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.962e-01  2.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.85
Ra Dec: 154.548 19.096
Photon Index (Free Index): 3.41 +/- 3.51
Photon Flux (Free Index): 8.56e-08 +/- 7.02e-08
Energy Flux (Free Index): 1.46e-05 +/- 1.34e-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/787779/cmap_HighResolution_350784001_351043201_4FGL_J1018.1+1905_daily_bin430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.42e-03', comment='SUCCESS', energy_flux2='1.46e-05', dlogl='1.11e+00', photon_flux2='8.56e-08', job_status='DONE', time_completed='2021-09-01 16:53:19.909383', photon_index_error2='3.51', photon_index2='3.41', ts='0.51', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='9.85e-08', energy_flux_error2='1.34e-05', EG='1.07', time_epoch_completed='1630540399.91', return_code='0', job_id='787779', GAL2='0.79', EG2='1.00', return_code2='102', photon_flux_error2='7.02e-08', ts2='2.85', photon_index='2.06' WHERE bin_id='430' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:53:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 787779: <4FGL_J1018.1+1905_daily_bin430> in cluster <slac> Done

Job <4FGL_J1018.1+1905_daily_bin430> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 16:37:31 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:45:06 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:45:06 2021
Terminated at Wed Sep  1 16:53:20 2021
Results reported at Wed Sep  1 16:53:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin430 154.548 19.0963 350784001 351043201 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 :                                   477.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   494 sec.
    Turnaround time :                            949 sec.

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

