/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 37 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 = 7496
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1018.4+3540_daily_bin5
RA = 154.607, Dec = 35.6802
tmin = 240624001, tmax = 240883201
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='809436', job_status='RUN', time_executed='2021-09-01 17:46:18.023230', time_epoch_executed='1630543578.02' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809436

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809436/ft1_4FGL_J1018.4+3540_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809436/ft2_4FGL_J1018.4+3540_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809436/ft1_4FGL_J1018.4+3540_daily_bin5.fits outfile=/scratch/kocevski/809436/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin5.fits ra=154.607 dec=35.6802 rad=12.0 tmin=240624001.0 tmax=240883201.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 1.40
user 1.22
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809436/ft2_4FGL_J1018.4+3540_daily_bin5.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/809436/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin5.fits evtable="EVENTS" outfile="/scratch/kocevski/809436/ft1_filtered_4FGL_J1018.4+3540_daily_bin5.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.53
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809436/ft1_filtered_4FGL_J1018.4+3540_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/809436/ft2_4FGL_J1018.4+3540_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/809436/ltcube_240624001_240883201_4FGL_J1018.4+3540_daily_bin5.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/809436/ft2_4FGL_J1018.4+3540_daily_bin5.fits
.....................!
real 18.76
user 18.32
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809436/ft1_filtered_4FGL_J1018.4+3540_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/809436/ft2_4FGL_J1018.4+3540_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/809436/ltcube_240624001_240883201_4FGL_J1018.4+3540_daily_bin5.fits outfile=/scratch/kocevski/809436/expmap_240624001_240883201_4FGL_J1018.4+3540_daily_bin5.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/809436/ltcube_240624001_240883201_4FGL_J1018.4+3540_daily_bin5.fits
.....................!
real 192.85
user 187.27
sys 5.02

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/809436/ft1_filtered_4FGL_J1018.4+3540_daily_bin5.fits scfile=/scratch/kocevski/809436/ft2_4FGL_J1018.4+3540_daily_bin5.fits outfile=/scratch/kocevski/809436/cmap_240624001_240883201_4FGL_J1018.4+3540_daily_bin5.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809436/ft1_filtered_4FGL_J1018.4+3540_daily_bin5.fits scfile=/scratch/kocevski/809436/ft2_4FGL_J1018.4+3540_daily_bin5.fits outfile=/scratch/kocevski/809436/cmap_HighResolution_240624001_240883201_4FGL_J1018.4+3540_daily_bin5.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.59
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .65553E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.5928       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    17.688       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.525       1.0000         .10000E-03   10000.    
    13 'norm      '    9.5170       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1210       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.820       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.3925       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    24.323       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1376       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0272       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4805.010     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     2753 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.2175       -.72965E-06** at limit **
   2  norm          .10000E-03    5.5452        .23363E-06** at limit **
   3  Prefactor     .33944E-03    471.70       -.31760E-04** at limit **
   4  Prefactor     .10022E-03    5.0724        .22652E-06** at limit **
   5  Prefactor     .10001E-03    11.505        .89055E-06** at limit **
   6  Prefactor     7.5900        1.0970        .48429E-07    .26106E-03
   7  Prefactor     .10007E-03    7.4319       -.22103E-06** at limit **
   8  Prefactor     .10000E-03    1.3843       -.32501E-06** at limit **
   9  norm          17.687        1.0162        .19915E-07    .51494E-03
  10  Prefactor     .10000E-03    1.7189        .51511E-06** at limit **
  11  Prefactor     .10002E-03    8.2087        .77575E-06** at limit **
  12  Prefactor     10.526        1.0239        .18212E-07    .13418E-03
  13  norm          9.5173        1.0546        .32481E-07    .55213E-04
  14  Prefactor     .10032E-03    10.067       -.10696E-05** at limit **
  15  Prefactor     .10000E-03    11.152        .91444E-06** at limit **
  16  Prefactor     4.1214        4.1029        .43228E-06    .31259E-03
  17  Prefactor     .10000E-03    2.1548        .59978E-06** at limit **
  18  Prefactor     .10000E-03    9.6031        .18082E-05** at limit **
  19  Prefactor     .10009E-03    7.6005       -.20024E-06** at limit **
  20  Prefactor     19.987        39.710        .62071E-05   -.60391E-02
  21  Prefactor     .10000E-03    3.3153       -.66467E-06** at limit **
  22  norm          1.3928        .39454       -.79821E-07   -.15281E-02
  23  Prefactor     .10017E-03    5.8246        .40466E-06** at limit **
  24  Prefactor     .10000E-03    7.6540       -.36881E-06** at limit **
  25  norm          24.333        17.397        .42268E-06   -.66449E-03
  26  Normalizat    1.1375        .22699       -.24423E-06    .17495E-03
  27  Prefactor     1.0271        .27058        .11886E-05    .15879E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000339439
  Prefactor  = 0.000100216
  Prefactor  = 0.000100013
  Prefactor  = 7.58996
  Prefactor  = 0.000100075
  Prefactor  = 0.0001
  norm       = 17.6872
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 10.5264
  norm       = 9.51732
  Prefactor  = 0.000100321
  Prefactor  = 0.0001
  Prefactor  = 4.12136
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100088
  Prefactor  = 19.9873
  Prefactor  = 0.0001
  norm       = 1.39277
  Prefactor  = 0.000100172
  Prefactor  = 0.000100005
  norm       = 24.3327
  Normalizat = 1.13747
  Prefactor  = 1.02709
 **********
 **   18 **HESSE 
 **********

 FCN=   4805.010     FROM HESSE     STATUS=OK           542 CALLS     3295 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.1962        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.5453        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .33944E-03    25.365        .12194       -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10022E-03    8.2372        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    22.543        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.5900        7.6477        .36384E-02   -1.5157    
   7  Prefactor     .10007E-03    17.231        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.3562        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          17.687        10.992        .23808E-02   -1.4867    
  10  Prefactor     .10000E-03    1.7132        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    12.995        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.526        6.1054        .30875E-02   -1.5059    
  13  norm          9.5173        11.071        .32476E-02   -1.5091    
  14  Prefactor     .10032E-03    16.199        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.443        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.1214        4.1358        .49643E-02   -1.5302    
  17  Prefactor     .10000E-03    2.1463        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.492        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10009E-03    17.530        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.987        76.393        .22492E-02   -1.4814    
  21  Prefactor     .10000E-03    3.3159        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3928        .39482        .50687E-02   -1.5472    
  23  Prefactor     .10017E-03    8.3810        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.7120        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          24.333        18.703        .20305E-02   -1.4721    
  26  Normalizat    1.1375        .19462        .53293E-01   -.88558    
  27  Prefactor     1.0271        .22869        .67024E-01   -.91832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1789e-06
Minuit parameter uncertainties:
  1  4.1927e-05
  2  1.00843e-05
  3  0.155929
  4  0.00266512
  5  0.00108362
  6  7.64872
  7  0.00227177
  8  9.77335e-06
  9  10.9929
  10  1.76158e-05
  11  0.00107034
  12  6.10579
  13  11.0733
  14  0.00455918
  15  8.11227e-05
  16  4.13609
  17  2.29248e-05
  18  0.000413003
  19  0.00249177
  20  76.7706
  21  3.19617e-05
  22  0.394818
  23  0.00239897
  24  0.000386112
  25  18.7072
  26  0.194748
  27  0.228909
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.053e+01  6.106e+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:  1.027e+00  2.289e-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:  1.137e+00  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.18
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 8.63e-08 +/- 5.00e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 1.32e-05

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) = 4804.96439267
delta logL = 0.0452531613528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4804.96034829
delta logL = 0.049297541942

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.269       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3863       1.0000          .0000       10.000    
     3 'Normalizat'    1.1567       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0123       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=   4804.960     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      274 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.269        7.0682        .11934E-03   -.20043E-03
   2  Index         2.3863        .64875        .79648E-02   -.48940E-04
   3  Normalizat    1.1567        .23464        .23398E-03    .31048E-04
   4  Prefactor     1.0123        .27357        .29835E-03    .33913E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2687
  Index      = 2.38626
  Normalizat = 1.15674
  Prefactor  = 1.01234
 **********
 **   18 **HESSE 
 **********

 FCN=   4804.960     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.269        7.0103        .47738E-05   -1.5036    
   2  Index         2.3863        .64226        .31859E-03   -.55007    
   3  Normalizat    1.1567        .23476        .93590E-05   -.87950    
   4  Prefactor     1.0123        .27372        .11934E-04   -.92319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.97685e-11
Minuit parameter uncertainties:
  1  7.0108
  2  0.644714
  3  0.234972
  4  0.274098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809436': 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) = 4804.96034811
delta logL = 0.0492977212434

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.127e+01  7.011e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.386e+00  6.447e-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:  1.012e+00  2.741e-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:  1.157e+00  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.22
Ra Dec: 154.607 35.680
Photon Index (Free Index): 2.39 +/- 0.64
Photon Flux (Free Index): 7.22e-08 +/- 6.39e-08
Energy Flux (Free Index): 2.41e-05 +/- 1.58e-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/809436/cmap_HighResolution_240624001_240883201_4FGL_J1018.4+3540_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.63e-08', energy_flux2='2.41e-05', photon_flux_error='5.00e-08', dlogl='4.93e-02', energy_flux='2.28e-05', photon_flux2='7.22e-08', job_status='DONE', time_completed='2021-09-01 17:56:18.901225', photon_index_error2='0.64', photon_index2='2.39', ts='7.18', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.58e-05', EG='1.14', time_epoch_completed='1630544178.9', return_code='0', job_id='809436', GAL2='1.01', EG2='1.16', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='6.39e-08', ts2='7.22', photon_index='2.59' WHERE bin_id='5' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:56:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 809436: <4FGL_J1018.4+3540_daily_bin5> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin5> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 17:45:22 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:45: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:45:32 2021
Terminated at Wed Sep  1 17:56:19 2021
Results reported at Wed Sep  1 17:56:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin5 154.607 35.6802 240624001 240883201 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 :                                   601.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   647 sec.
    Turnaround time :                            657 sec.

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

