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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin540
RA = 154.607, Dec = 35.6802
tmin = 379296001, tmax = 379555201
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='811302', job_status='RUN', time_executed='2021-09-01 17:51:42.683016', time_epoch_executed='1630543902.68' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='540'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811302

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811302/ft1_4FGL_J1018.4+3540_daily_bin540.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811302/ft2_4FGL_J1018.4+3540_daily_bin540.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811302/ft1_4FGL_J1018.4+3540_daily_bin540.fits outfile=/scratch/kocevski/811302/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin540.fits ra=154.607 dec=35.6802 rad=12.0 tmin=379296001.0 tmax=379555201.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 4.69
user 4.41
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/811302/ft2_4FGL_J1018.4+3540_daily_bin540.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/811302/ft2_4FGL_J1018.4+3540_daily_bin540.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/811302/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin540.fits evtable="EVENTS" outfile="/scratch/kocevski/811302/ft1_filtered_4FGL_J1018.4+3540_daily_bin540.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.37
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811302/ft1_filtered_4FGL_J1018.4+3540_daily_bin540.fits" evtable="EVENTS" scfile=/scratch/kocevski/811302/ft2_4FGL_J1018.4+3540_daily_bin540.fits sctable="SC_DATA" outfile=/scratch/kocevski/811302/ltcube_379296001_379555201_4FGL_J1018.4+3540_daily_bin540.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/811302/ft2_4FGL_J1018.4+3540_daily_bin540.fits
.....................!
real 15.75
user 15.34
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811302/ft1_filtered_4FGL_J1018.4+3540_daily_bin540.fits evtable="EVENTS" scfile=/scratch/kocevski/811302/ft2_4FGL_J1018.4+3540_daily_bin540.fits sctable="SC_DATA" expcube=/scratch/kocevski/811302/ltcube_379296001_379555201_4FGL_J1018.4+3540_daily_bin540.fits outfile=/scratch/kocevski/811302/expmap_379296001_379555201_4FGL_J1018.4+3540_daily_bin540.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/811302/ltcube_379296001_379555201_4FGL_J1018.4+3540_daily_bin540.fits
.....................!
real 190.97
user 186.03
sys 4.57

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 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J1018.4+3540 @ 154.607 35.6802

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/811302/ft1_filtered_4FGL_J1018.4+3540_daily_bin540.fits scfile=/scratch/kocevski/811302/ft2_4FGL_J1018.4+3540_daily_bin540.fits outfile=/scratch/kocevski/811302/cmap_379296001_379555201_4FGL_J1018.4+3540_daily_bin540.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.607 yref=35.6802 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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811302/ft1_filtered_4FGL_J1018.4+3540_daily_bin540.fits scfile=/scratch/kocevski/811302/ft2_4FGL_J1018.4+3540_daily_bin540.fits outfile=/scratch/kocevski/811302/cmap_HighResolution_379296001_379555201_4FGL_J1018.4+3540_daily_bin540.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.607 yref=35.6802 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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/811302/ft1_filtered_4FGL_J1018.4+3540_daily_bin540.fits evtable="EVENTS" scfile=/scratch/kocevski/811302/ft2_4FGL_J1018.4+3540_daily_bin540.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/811302/Model_4FGL_J1018.4+3540_daily_bin540.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/811302/ft1_filtered_4FGL_J1018.4+3540_daily_bin540.fits.....................!
real 51.54
user 50.22
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/811302/ft1_filtered_4FGL_J1018.4+3540_daily_bin540.fits', '/scratch/kocevski/811302/ft2_4FGL_J1018.4+3540_daily_bin540.fits', expMap='/scratch/kocevski/811302/expmap_379296001_379555201_4FGL_J1018.4+3540_daily_bin540.fits', expCube='/scratch/kocevski/811302/ltcube_379296001_379555201_4FGL_J1018.4+3540_daily_bin540.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/811302/Model_4FGL_J1018.4+3540_daily_bin540.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+3540'

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/811302/ft1_filtered_4FGL_J1018.4+3540_daily_bin540.fits
Spacecraft file(s): /scratch/kocevski/811302/ft2_4FGL_J1018.4+3540_daily_bin540.fits
Exposure map: /scratch/kocevski/811302/expmap_379296001_379555201_4FGL_J1018.4+3540_daily_bin540.fits
Exposure cube: /scratch/kocevski/811302/ltcube_379296001_379555201_4FGL_J1018.4+3540_daily_bin540.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/811302/Model_4FGL_J1018.4+3540_daily_bin540.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) = 5915.30770231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.5206       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.536       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.769       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9933       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6725       1.0000         .10000E-03   10000.    
     9 'norm      '    .38245       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .70622       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11177E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.2578       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2350       1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.294       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.832       1.0000         .10000E-03   10000.    
    20 'Prefactor '    226.55       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.7232       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.1672       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.8753       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .95570       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0454       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5915.300     FROM MIGRAD    STATUS=CONVERGED    653 CALLS     3348 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.314        .28435E-07** at limit **
   2  norm          6.5196        12.708       -.31614E-06   -.14748E-04
   3  Prefactor     14.536        16.781        .53514E-07    .80451E-06
   4  Prefactor     34.772        30.169        .12614E-05    .19513E-03
   5  Prefactor     .10000E-03    15.939       -.13361E-07** at limit **
   6  Prefactor     3.9934        4.3810       -.47273E-06   -.44250E-03
   7  Prefactor     .10000E-03    4.9653        .15527E-06** at limit **
   8  Prefactor     1.6722        2.2435        .11730E-06   -.89713E-04
   9  norm          .38664        5.5055       -.29085E-05    .42078E-03
  10  Prefactor     .70588        3.0374        .89069E-06   -.34676E-03
  11  Prefactor     .10001E-03    36.066        .40783E-05** at limit **
  12  Prefactor     .10000E-03    1.4552       -.70076E-07** at limit **
  13  norm          .10000E-03    5.7297       -.10028E-06** at limit **
  14  Prefactor     .10000E-03    20.718        .26677E-05** at limit **
  15  Prefactor     .10000E-03    69.276       -.26895E-05** at limit **
  16  Prefactor     6.2579        4.4937       -.28132E-06   -.70559E-03
  17  Prefactor     4.2338        4.3838        .68826E-08   -.51163E-04
  18  Prefactor     32.291        30.737       -.69811E-06   -.15067E-03
  19  Prefactor     27.832        23.253       -.55721E-07    .43256E-05
  20  Prefactor     226.55        111.81       -.36100E-06   -.50295E-04
  21  Prefactor     .10000E-03    4.8801       -.11965E-07** at limit **
  22  norm          1.7232        .38051       -.28125E-07    .13388E-02
  23  Prefactor     6.1657        16.139        .26038E-05   -.29635E-03
  24  Prefactor     .10002E-03    23.217       -.55618E-05** at limit **
  25  norm          5.8755        11.149        .17682E-05   -.47666E-03
  26  Normalizat    .95571        .17385       -.80043E-06    .41842E-04
  27  Prefactor     1.0454        .20560        .21142E-06    .38793E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 6.51961
  Prefactor  = 14.536
  Prefactor  = 34.7724
  Prefactor  = 0.0001
  Prefactor  = 3.99342
  Prefactor  = 0.0001
  Prefactor  = 1.67225
  norm       = 0.386635
  Prefactor  = 0.705876
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100003
  Prefactor  = 6.25793
  Prefactor  = 4.23383
  Prefactor  = 32.291
  Prefactor  = 27.8317
  Prefactor  = 226.546
  Prefactor  = 0.0001
  norm       = 1.72318
  Prefactor  = 6.16573
  Prefactor  = 0.000100016
  norm       = 5.87548
  Normalizat = 0.95571
  Prefactor  = 1.04545
 **********
 **   18 **HESSE 
 **********

 FCN=   5915.300     FROM HESSE     STATUS=OK           486 CALLS     3834 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.701        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.5196        12.716        .15716E-03   -1.5197    
   3  Prefactor     14.536        16.782        .10505E-03   -1.4945    
   4  Prefactor     34.772        30.378        .67962E-04   -1.4528    
   5  Prefactor     .10000E-03    15.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.9934        4.4024        .16470E-03   -1.5308    
   7  Prefactor     .10000E-03    4.9943        .16735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6722        2.2277        .12689E-03   -1.5449    
   9  norm          .38664        9.5104        .29661E-02   -1.5584    
  10  Prefactor     .70588        3.1911        .25847E-03   -1.5540    
  11  Prefactor     .10001E-03    37.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.4599        .90501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.7797        .17971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    69.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.2579        4.5352        .13092E-03   -1.5208    
  17  Prefactor     4.2338        4.3491        .15601E-03   -1.5296    
  18  Prefactor     32.291        30.780        .70511E-04   -1.4571    
  19  Prefactor     27.832        23.265        .75939E-04   -1.4652    
  20  Prefactor     226.55        112.03        .26882E-04   -1.2686    
  21  Prefactor     .10000E-03    4.8921        .16593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.7232        .38267        .20883E-04   -1.5445    
  23  Prefactor     6.1657        16.918        .80829E-03   -1.5211    
  24  Prefactor     .10002E-03    25.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.8755        11.647        .82840E-03   -1.5223    
  26  Normalizat    .95571        .20748        .23742E-03   -.94529    
  27  Prefactor     1.0454        .24624        .28206E-03   -.91229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6235e-09
Minuit parameter uncertainties:
  1  6.67861e-06
  2  12.721
  3  16.7873
  4  30.3915
  5  1.89202e-05
  6  4.40276
  7  1.62613e-05
  8  2.22783
  9  3.83532
  10  3.00174
  11  0.00117239
  12  2.75515e-06
  13  4.34278e-06
  14  0.000582436
  15  0.000950563
  16  4.53545
  17  4.34942
  18  30.7956
  19  23.2725
  20  112.139
  21  1.99889e-06
  22  0.382675
  23  16.9311
  24  0.00127671
  25  11.6517
  26  0.207652
  27  0.246508
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  2.755e-06  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.045e+00  2.465e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  9.557e-01  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 5.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/811302/likelihoodResults_379296001_379555201_4FGL_J1018.4+3540_daily_bin540.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) = 5915.30325889
delta logL = -0.00324237249151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5915.30001641
delta logL = 1.07033883978e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5742       1.0000          .0000       10.000    
     3 'Normalizat'    .95574       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0455       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+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=   5915.300     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      252 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.414        .91451E-02** at limit **
   2  Index         2.1230        5.4554        .50000        .22062E-06
   3  Normalizat    .95571        .10220E-01    .23742E-03   -.25235E-03
   4  Prefactor     1.0454        .12695E-01    .28206E-03   -.19839E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12299
  Normalizat = 0.95571
  Prefactor  = 1.04545
 **********
 **   18 **HESSE 
 **********

 FCN=   5915.300     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    96.406        .98522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1230        5.9367        .50000       -.61309    
   3  Normalizat    .95571        .33007E-01    .47485E-04   -.94529    
   4  Prefactor     1.0454        .41001E-01    .11282E-04   -.91229    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.57138e-10
Minuit parameter uncertainties:
  1  3.75108e-05
  2  544.791
  3  0.0330082
  4  0.0410022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811302': 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) = 5915.30001126
delta logL = 5.25284667674e-06

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  3.751e-05  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.123e+00  5.448e+02  0.000e+00  1.000e+01 (-1.000e+00)
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.045e+00  4.100e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  9.557e-01  3.301e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.607 35.680

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/811302/cmap_HighResolution_379296001_379555201_4FGL_J1018.4+3540_daily_bin540.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-03', job_status='DONE', photon_flux_upper_limit='5.70e-08', time_completed='2021-09-01 18:05:18.913023', job_id='811302', GAL2='1.05', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630544718.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='5.25e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='540' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:05:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 811302: <4FGL_J1018.4+3540_daily_bin540> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin540> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 17:51:07 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:51:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 17:51:32 2021
Terminated at Wed Sep  1 18:05:19 2021
Results reported at Wed Sep  1 18:05:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin540 154.607 35.6802 379296001 379555201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.4+3540 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   814.12 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             318.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            852 sec.

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

