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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin659
RA = 154.607, Dec = 35.6802
tmin = 410140801, tmax = 410400001
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='812499', job_status='RUN', time_executed='2021-09-01 17:55:44.135926', time_epoch_executed='1630544144.14' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='659'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812499

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812499/ft1_4FGL_J1018.4+3540_daily_bin659.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812499/ft2_4FGL_J1018.4+3540_daily_bin659.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812499/ft1_4FGL_J1018.4+3540_daily_bin659.fits outfile=/scratch/kocevski/812499/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin659.fits ra=154.607 dec=35.6802 rad=12.0 tmin=410140801.0 tmax=410400001.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 7.08
user 6.77
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/812499/ft1_filtered_4FGL_J1018.4+3540_daily_bin659.fits" evtable="EVENTS" scfile=/scratch/kocevski/812499/ft2_4FGL_J1018.4+3540_daily_bin659.fits sctable="SC_DATA" outfile=/scratch/kocevski/812499/ltcube_410140801_410400001_4FGL_J1018.4+3540_daily_bin659.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/812499/ft2_4FGL_J1018.4+3540_daily_bin659.fits
.....................!
real 16.33
user 15.86
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812499/ft1_filtered_4FGL_J1018.4+3540_daily_bin659.fits evtable="EVENTS" scfile=/scratch/kocevski/812499/ft2_4FGL_J1018.4+3540_daily_bin659.fits sctable="SC_DATA" expcube=/scratch/kocevski/812499/ltcube_410140801_410400001_4FGL_J1018.4+3540_daily_bin659.fits outfile=/scratch/kocevski/812499/expmap_410140801_410400001_4FGL_J1018.4+3540_daily_bin659.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/812499/ltcube_410140801_410400001_4FGL_J1018.4+3540_daily_bin659.fits
.....................!
real 191.02
user 185.92
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 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/812499/ft1_filtered_4FGL_J1018.4+3540_daily_bin659.fits scfile=/scratch/kocevski/812499/ft2_4FGL_J1018.4+3540_daily_bin659.fits outfile=/scratch/kocevski/812499/cmap_410140801_410400001_4FGL_J1018.4+3540_daily_bin659.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/812499/ft1_filtered_4FGL_J1018.4+3540_daily_bin659.fits scfile=/scratch/kocevski/812499/ft2_4FGL_J1018.4+3540_daily_bin659.fits outfile=/scratch/kocevski/812499/cmap_HighResolution_410140801_410400001_4FGL_J1018.4+3540_daily_bin659.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.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/812499/ft1_filtered_4FGL_J1018.4+3540_daily_bin659.fits', '/scratch/kocevski/812499/ft2_4FGL_J1018.4+3540_daily_bin659.fits', expMap='/scratch/kocevski/812499/expmap_410140801_410400001_4FGL_J1018.4+3540_daily_bin659.fits', expCube='/scratch/kocevski/812499/ltcube_410140801_410400001_4FGL_J1018.4+3540_daily_bin659.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/812499/Model_4FGL_J1018.4+3540_daily_bin659.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/812499/ft1_filtered_4FGL_J1018.4+3540_daily_bin659.fits
Spacecraft file(s): /scratch/kocevski/812499/ft2_4FGL_J1018.4+3540_daily_bin659.fits
Exposure map: /scratch/kocevski/812499/expmap_410140801_410400001_4FGL_J1018.4+3540_daily_bin659.fits
Exposure cube: /scratch/kocevski/812499/ltcube_410140801_410400001_4FGL_J1018.4+3540_daily_bin659.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/812499/Model_4FGL_J1018.4+3540_daily_bin659.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) = 5179.1945513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5379       1.0000         .10000E-03   10000.    
     2 'norm      '    .10433E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.568       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22494E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12824       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.125       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0209       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0338       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10469E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8394       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.141       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.951       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.5734       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.7252       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.5918       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .86663       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92125       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=   5179.175     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3318 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5389        7.8719       -.15354E-06   -.71240E-05
   2  norm          .10000E-03    7.4944        .70652E-06** at limit **
   3  Prefactor     .10000E-03    21.999       -.45478E-06** at limit **
   4  Prefactor     10.562        17.383       -.18943E-05   -.12308E-03
   5  Prefactor     .10000E-03    7.8531        .15331E-06** at limit **
   6  Prefactor     .10009E-03    44.942        .15871E-04** at limit **
   7  Prefactor     .10000E-03    9.1545       -.25791E-06** at limit **
   8  Prefactor     .12840        2.0308       -.25759E-05   -.43126E-03
   9  norm          .10000E-03    1.9136       -.37265E-07** at limit **
  10  Prefactor     .10000E-03    1.0487        .71535E-08** at limit **
  11  Prefactor     30.050        34.281       -.16386E-05    .41568E-04
  12  Prefactor     4.0217        3.2524       -.16933E-06   -.18895E-03
  13  norm          2.0578        12.301        .24505E-05    .16906E-03
  14  Prefactor     .10000E-03    63.616       -.68477E-06** at limit **
  15  Prefactor     .10000E-03    30.700        .42785E-06** at limit **
  16  Prefactor     .10000E-03    1.7071        .10932E-06** at limit **
  17  Prefactor     5.8398        5.7735       -.42154E-06   -.27229E-03
  18  Prefactor     15.131        29.764       -.76297E-06   -.44382E-04
  19  Prefactor     .10000E-03    9.4776       -.44230E-07** at limit **
  20  Prefactor     43.975        95.590       -.28223E-05   -.50499E-04
  21  Prefactor     .10000E-03    4.8094       -.94369E-07** at limit **
  22  norm          1.5735        .35725        .10707E-07    .68350E-03
  23  Prefactor     1.7244        8.4902       -.15183E-05   -.82424E-04
  24  Prefactor     .10000E-03    4.1130        .31498E-07** at limit **
  25  norm          3.5916        6.9034       -.64504E-07    .40376E-04
  26  Normalizat    .86618        .16613        .32301E-05    .27460E-03
  27  Prefactor     .92185        .19549       -.25658E-05   -.34885E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.53894
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.5618
  Prefactor  = 0.0001
  Prefactor  = 0.000100085
  Prefactor  = 0.0001
  Prefactor  = 0.128398
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.0496
  Prefactor  = 4.02166
  norm       = 2.05778
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.8398
  Prefactor  = 15.1309
  Prefactor  = 0.0001
  Prefactor  = 43.9755
  Prefactor  = 0.0001
  norm       = 1.57346
  Prefactor  = 1.72443
  Prefactor  = 0.0001
  norm       = 3.59163
  Normalizat = 0.866176
  Prefactor  = 0.921845
 **********
 **   18 **HESSE 
 **********

 FCN=   5179.175     FROM HESSE     STATUS=OK           488 CALLS     3806 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5389        7.8715        .13719E-03   -1.5123    
   2  norm          .10000E-03    7.5552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.562        17.465        .61624E-03   -1.5058    
   5  Prefactor     .10000E-03    7.8618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10009E-03    54.273        .32900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.3547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12840        7.1931        .14881E-02   -1.5636    
   9  norm          .10000E-03    1.9167        .97227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.0541        .71914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.050        34.272        .72998E-04   -1.4611    
  12  Prefactor     4.0217        3.2529        .11159E-03   -1.5307    
  13  norm          2.0578        12.143        .29004E-03   -1.5421    
  14  Prefactor     .10000E-03    63.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    30.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.7142        .91626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.8398        5.7742        .15942E-03   -1.5225    
  18  Prefactor     15.131        29.747        .10293E-03   -1.4930    
  19  Prefactor     .10000E-03    9.4861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.975        96.092        .60473E-04   -1.4381    
  21  Prefactor     .10000E-03    4.8213        .15414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.5735        .35729        .19715E-04   -1.5457    
  23  Prefactor     1.7244        8.4186        .31973E-03   -1.5445    
  24  Prefactor     .10000E-03    4.1148        .14254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.5916        6.8808        .21322E-03   -1.5329    
  26  Normalizat    .86618        .19321        .21495E-03   -.97659    
  27  Prefactor     .92185        .22628        .25978E-03   -.95382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4546e-09
Minuit parameter uncertainties:
  1  7.87242
  2  0.000146859
  3  0.000107558
  4  17.4739
  5  1.86547e-05
  6  0.00430211
  7  3.81534e-05
  8  1.92155
  9  3.12711e-06
  10  7.7245e-07
  11  34.2946
  12  3.25306
  13  10.0004
  14  0.000249327
  15  0.000160998
  16  7.39529e-06
  17  5.77475
  18  29.7765
  19  2.34359e-06
  20  96.4332
  21  7.33969e-06
  22  0.357294
  23  7.62179
  24  6.53672e-06
  25  6.88229
  26  0.193366
  27  0.226515
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  4.022e+00  3.253e+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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.218e-01  2.265e-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:  8.662e-01  1.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.44
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 3.30e-08 +/- 2.66e-08
Energy Flux (Fixed Index): 8.73e-06 +/- 7.06e-06

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

Saving results to:
/scratch/kocevski/812499/likelihoodResults_410140801_410400001_4FGL_J1018.4+3540_daily_bin659.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) = 5179.0127472
delta logL = 0.161759305828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5178.99857602
delta logL = 0.175930485869

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5287       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0442       1.0000          .0000       10.000    
     3 'Normalizat'    .88665       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90462       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.

 FCN=   5178.999     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      224 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5247        17.030        .47294E-02   -.15905E-04
   2  Index         2.0431        2.5651        .25541       -.27193E-04
   3  Normalizat    .88670        .18354        .44731E-01    .88012E-04
   4  Prefactor     .90459        .20849        .45064E-01    .74087E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.52472
  Index      = 2.04312
  Normalizat = 0.886697
  Prefactor  = 0.904586
 **********
 **   18 **HESSE 
 **********

 FCN=   5178.999     FROM HESSE     STATUS=OK            33 CALLS      257 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5247        3.7757        .12360E-03   -1.5283    
   2  Index         2.0431        .79381        .10392E-01   -.63276    
   3  Normalizat    .88670        .18098        .21267E-03   -.96929    
   4  Prefactor     .90459        .22429        .26188E-03   -.95981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54197e-12
Minuit parameter uncertainties:
  1  3.77589
  2  0.799028
  3  0.1811
  4  0.224515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812499': 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) = 5178.99857473
delta logL = 0.175931775908

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  4.525e+00  3.776e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.043e+00  7.990e-01  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:  9.046e-01  2.245e-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:  8.867e-01  1.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.79
Ra Dec: 154.607 35.680
Photon Index (Free Index): 2.04 +/- 0.80
Photon Flux (Free Index): 2.02e-08 +/- 2.35e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.68e-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/812499/cmap_HighResolution_410140801_410400001_4FGL_J1018.4+3540_daily_bin659.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.69e-03', comment='SUCCESS', photon_flux='3.30e-08', energy_flux2='1.26e-05', photon_flux_error='2.66e-08', dlogl='1.76e-01', energy_flux='8.73e-06', photon_flux2='2.02e-08', job_status='DONE', time_completed='2021-09-01 18:08:16.089259', photon_index_error2='0.80', photon_index2='2.04', ts='3.44', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='9.83e-08', energy_flux_error2='1.68e-05', EG='0.87', time_epoch_completed='1630544896.09', return_code='0', job_id='812499', GAL2='0.90', EG2='0.89', return_code2='0', energy_flux_error='7.06e-06', photon_flux_error2='2.35e-08', ts2='3.79', photon_index='2.59' WHERE bin_id='659' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:08:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 812499: <4FGL_J1018.4+3540_daily_bin659> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin659> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 17:55:32 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:55:33 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:55:33 2021
Terminated at Wed Sep  1 18:08:16 2021
Results reported at Wed Sep  1 18:08:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin659 154.607 35.6802 410140801 410400001 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 :                                   749.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            764 sec.

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

