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


Performing analysis on: 4FGL_J1018.1+1905_daily_bin1551
RA = 154.548, Dec = 19.0963
tmin = 641347201, tmax = 641606401
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='794156', job_status='RUN', time_executed='2021-09-01 17:00:17.416744', time_epoch_executed='1630540817.42' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='1551'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/794156

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/794156/ft1_4FGL_J1018.1+1905_daily_bin1551.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/794156/ft2_4FGL_J1018.1+1905_daily_bin1551.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/794156/ft1_4FGL_J1018.1+1905_daily_bin1551.fits outfile=/scratch/kocevski/794156/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1551.fits ra=154.548 dec=19.0963 rad=12.0 tmin=641347201.0 tmax=641606401.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.34
user 2.15
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/794156/ft1_filtered_4FGL_J1018.1+1905_daily_bin1551.fits" evtable="EVENTS" scfile=/scratch/kocevski/794156/ft2_4FGL_J1018.1+1905_daily_bin1551.fits sctable="SC_DATA" outfile=/scratch/kocevski/794156/ltcube_641347201_641606401_4FGL_J1018.1+1905_daily_bin1551.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/794156/ft2_4FGL_J1018.1+1905_daily_bin1551.fits
.....................!
real 15.02
user 14.68
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/794156/ft1_filtered_4FGL_J1018.1+1905_daily_bin1551.fits evtable="EVENTS" scfile=/scratch/kocevski/794156/ft2_4FGL_J1018.1+1905_daily_bin1551.fits sctable="SC_DATA" expcube=/scratch/kocevski/794156/ltcube_641347201_641606401_4FGL_J1018.1+1905_daily_bin1551.fits outfile=/scratch/kocevski/794156/expmap_641347201_641606401_4FGL_J1018.1+1905_daily_bin1551.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/794156/ltcube_641347201_641606401_4FGL_J1018.1+1905_daily_bin1551.fits
.....................!
real 157.52
user 152.36
sys 4.61

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/794156/ft1_filtered_4FGL_J1018.1+1905_daily_bin1551.fits scfile=/scratch/kocevski/794156/ft2_4FGL_J1018.1+1905_daily_bin1551.fits outfile=/scratch/kocevski/794156/cmap_641347201_641606401_4FGL_J1018.1+1905_daily_bin1551.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.69
user 0.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/794156/ft1_filtered_4FGL_J1018.1+1905_daily_bin1551.fits scfile=/scratch/kocevski/794156/ft2_4FGL_J1018.1+1905_daily_bin1551.fits outfile=/scratch/kocevski/794156/cmap_HighResolution_641347201_641606401_4FGL_J1018.1+1905_daily_bin1551.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.74
user 0.33
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3170       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5377       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9412       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4539       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4215       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.152       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7823       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.308       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20213E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0214       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0025       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=   7082.541     FROM MIGRAD    STATUS=CONVERGED    342 CALLS     1402 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.762        .79036E-06** at limit **
   2  norm          .10000E-03    .42561        .86054E-07** at limit **
   3  Prefactor     3.2911        47.148       -.23385E-05   -.13393E-03
   4  Prefactor     .10000E-03    21.592       -.11849E-05** at limit **
   5  Prefactor     3.5377        3.6239        .24608E-05    .72636E-03
   6  Prefactor     1.9413        2.2197        .89647E-07   -.35735E-04
   7  norm          1.4539        3.0716        .36677E-06    .51555E-04
   8  Prefactor     .10000E-03    29.562        .38316E-06** at limit **
   9  Prefactor     8.3729        20.451       -.11244E-05   -.27593E-03
  10  Prefactor     19.152        8.0231        .21526E-07   -.61908E-03
  11  Prefactor     1.7825        1.8622        .97688E-07   -.58847E-03
  12  Prefactor     15.308        8.4535        .11706E-06   -.20705E-03
  13  Prefactor     .10112E-03    8.6648        .32754E-05** at limit **
  14  Prefactor     .10000E-03    4.0153        .26898E-07** at limit **
  15  Prefactor     .10000E-03    9.4577        .70195E-07** at limit **
  16  Normalizat    1.0213        .16186       -.10190E-05   -.49574E-03
  17  Prefactor     1.0025        .15298        .15856E-06   -.43291E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 3.29111
  Prefactor  = 0.000100003
  Prefactor  = 3.53767
  Prefactor  = 1.94134
  norm       = 1.45388
  Prefactor  = 0.0001
  Prefactor  = 8.37292
  Prefactor  = 19.1521
  Prefactor  = 1.7825
  Prefactor  = 15.3083
  Prefactor  = 0.000101118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02134
  Prefactor  = 1.00251
 **********
 **   18 **HESSE 
 **********

 FCN=   7082.541     FROM HESSE     STATUS=OK           227 CALLS     1629 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .66188        .10680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2911        47.519        .22227E-03   -1.5345    
   4  Prefactor     .10000E-03    21.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.5377        3.6603        .78921E-03   -1.5332    
   6  Prefactor     1.9413        2.2049        .12712E-03   -1.5429    
   7  norm          1.4539        3.0236        .20843E-03   -1.5467    
   8  Prefactor     .10000E-03    29.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.3729        20.493        .13814E-03   -1.5129    
  10  Prefactor     19.152        7.9716        .91520E-04   -1.4832    
  11  Prefactor     1.7825        1.8425        .11016E-03   -1.5441    
  12  Prefactor     15.308        8.4600        .10237E-03   -1.4925    
  13  Prefactor     .10112E-03    55.484        .39420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.0228        .16460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.5085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0213        .18649        .23968E-03   -.92319    
  17  Prefactor     1.0025        .17785        .23819E-03   -.92646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99437e-08
Minuit parameter uncertainties:
  1  0.000337881
  2  9.42627e-07
  3  25.0347
  4  0.000528119
  5  3.66057
  6  2.20494
  7  3.0239
  8  0.00018607
  9  20.5104
  10  7.97207
  11  1.84258
  12  8.46066
  13  0.0157648
  14  1.28681e-05
  15  2.83718e-05
  16  0.186613
  17  0.177954
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  8.373e+00  2.051e+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.003e+00  1.780e-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.021e+00  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/794156/likelihoodResults_641347201_641606401_4FGL_J1018.1+1905_daily_bin1551.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7081.35469035
delta logL = 1.18665685542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7080.93303495
delta logL = 1.60831225669

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52217E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.4196       1.0000          .0000       10.000    
     3 'Normalizat'    .91404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0751       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=   7080.933     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      352 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50967E-03    .52308E-02    .29378E-03** at limit **
   2  Index         6.4275        1.5348        .77784E-01    .28361E-03
   3  Normalizat    .91430        .38989E-01    .45081E-01    .72502E-04
   4  Prefactor     1.0749        .38666E-01    .38619E-01    .31258E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000509665
  Index      = 6.4275
  Normalizat = 0.914299
  Prefactor  = 1.07488
 **********
 **   18 **HESSE 
 **********

 FCN=   7080.933     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      387 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50967E-03    .12788E-01    .13285E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.4275        2.7425        .29944E-02    .28953    
   3  Normalizat    .91430        .14238        .25139E-03   -.95960    
   4  Prefactor     1.0749        .13812        .23101E-03   -.90273    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.30402e-11
Minuit parameter uncertainties:
  1  0.00457762
  2  2.9199
  3  0.142436
  4  0.138161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/794156': 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) = 7080.93302882
delta logL = 1.60831838098

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  5.097e-04  4.578e-03  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  6.427e+00  2.920e+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.075e+00  1.382e-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.143e-01  1.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.72
Ra Dec: 154.548 19.096
Photon Index (Free Index): 6.43 +/- 2.92
Photon Flux (Free Index): 8.87e-08 +/- 5.51e-08
Energy Flux (Free Index): 1.08e-05 +/- 7.11e-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/794156/cmap_HighResolution_641347201_641606401_4FGL_J1018.1+1905_daily_bin1551.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-03', comment='SUCCESS', energy_flux2='1.08e-05', dlogl='1.61e+00', photon_flux2='8.87e-08', job_status='DONE', time_completed='2021-09-01 17:08:12.324054', photon_index_error2='2.92', photon_index2='6.43', ts='0.22', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='5.32e-08', energy_flux_error2='7.11e-06', EG='1.02', time_epoch_completed='1630541292.32', return_code='0', job_id='794156', GAL2='1.07', EG2='0.91', return_code2='102', photon_flux_error2='5.51e-08', ts2='3.72', photon_index='2.06' WHERE bin_id='1551' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:08:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 794156: <4FGL_J1018.1+1905_daily_bin1551> in cluster <slac> Done

Job <4FGL_J1018.1+1905_daily_bin1551> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 16:55:41 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:56:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 16:56:19 2021
Terminated at Wed Sep  1 17:08:13 2021
Results reported at Wed Sep  1 17:08:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin1551 154.548 19.0963 641347201 641606401 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 :                                   465.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             200.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            752 sec.

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

