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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1162
RA = 154.607, Dec = 35.6802
tmin = 540518401, tmax = 540777601
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='814211', job_status='RUN', time_executed='2021-09-01 18:02:36.718427', time_epoch_executed='1630544556.72' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1162'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814211

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814211/ft1_4FGL_J1018.4+3540_daily_bin1162.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814211/ft2_4FGL_J1018.4+3540_daily_bin1162.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814211/ft1_4FGL_J1018.4+3540_daily_bin1162.fits outfile=/scratch/kocevski/814211/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1162.fits ra=154.607 dec=35.6802 rad=12.0 tmin=540518401.0 tmax=540777601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.77
user 3.43
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814211/ft1_filtered_4FGL_J1018.4+3540_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/814211/ft2_4FGL_J1018.4+3540_daily_bin1162.fits sctable="SC_DATA" expcube=/scratch/kocevski/814211/ltcube_540518401_540777601_4FGL_J1018.4+3540_daily_bin1162.fits outfile=/scratch/kocevski/814211/expmap_540518401_540777601_4FGL_J1018.4+3540_daily_bin1162.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/814211/ltcube_540518401_540777601_4FGL_J1018.4+3540_daily_bin1162.fits
.....................!
real 193.46
user 187.89
sys 4.15

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/814211/ft1_filtered_4FGL_J1018.4+3540_daily_bin1162.fits scfile=/scratch/kocevski/814211/ft2_4FGL_J1018.4+3540_daily_bin1162.fits outfile=/scratch/kocevski/814211/cmap_540518401_540777601_4FGL_J1018.4+3540_daily_bin1162.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.61
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/814211/ft1_filtered_4FGL_J1018.4+3540_daily_bin1162.fits scfile=/scratch/kocevski/814211/ft2_4FGL_J1018.4+3540_daily_bin1162.fits outfile=/scratch/kocevski/814211/cmap_HighResolution_540518401_540777601_4FGL_J1018.4+3540_daily_bin1162.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.58
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.065       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    16.417       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7838       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11790E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .89977E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1480       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10474E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.2709       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14410E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3312       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .75381       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=   6074.837     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     2814 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.8649       -.32167E-06** at limit **
   2  norm          .10000E-03    4.4804       -.12938E-07** at limit **
   3  Prefactor     .10000E-03    33.933       -.58859E-05** at limit **
   4  Prefactor     .10000E-03    6.4863        .14515E-05** at limit **
   5  Prefactor     19.041        26.804       -.10726E-04   -.17060E-04
   6  Prefactor     .10000E-03    3.2407       -.26425E-07** at limit **
   7  Prefactor     .10000E-03    6.4382        .12642E-05** at limit **
   8  Prefactor     .10000E-03    1.8055       -.27812E-07** at limit **
   9  norm          16.418        10.804       -.21246E-06   -.16792E-04
  10  Prefactor     4.7835        3.6864       -.14481E-06   -.16919E-03
  11  Prefactor     .10000E-03    19.514        .10293E-04** at limit **
  12  Prefactor     .10000E-03    1.6680       -.23009E-07** at limit **
  13  norm          .10000E-03    6.7705       -.85767E-06** at limit **
  14  Prefactor     .10000E-03    22.151        .11348E-05** at limit **
  15  Prefactor     .10000E-03    27.373       -.15476E-04** at limit **
  16  Prefactor     .10000E-03    2.4815        .33126E-06** at limit **
  17  Prefactor     .10000E-03    2.9418        .67135E-07** at limit **
  18  Prefactor     3.1413        67.896       -.10420E-04   -.28922E-04
  19  Prefactor     .10000E-03    15.074       -.42130E-05** at limit **
  20  Prefactor     .10000E-03    40.046        .19346E-04** at limit **
  21  Prefactor     .10000E-03    6.9575        .22555E-05** at limit **
  22  norm          3.2718        .51693       -.15372E-07    .13219E-02
  23  Prefactor     .10004E-03    9.9914       -.61272E-06** at limit **
  24  Prefactor     .10000E-03    10.938        .48924E-06** at limit **
  25  norm          .10000E-03    6.6464       -.38485E-05** at limit **
  26  Normalizat    1.3313        .17696        .10792E-05   -.34987E-04
  27  Prefactor     .75386        .20590        .23208E-06    .52531E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.4182
  Prefactor  = 4.78346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.14129
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.27182
  Prefactor  = 0.000100044
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.33126
  Prefactor  = 0.753862
 **********
 **   18 **HESSE 
 **********

 FCN=   6074.837     FROM HESSE     STATUS=OK           476 CALLS     3290 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.9295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.4817        .16113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.4965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.041        26.877        .91729E-04   -1.4835    
   6  Prefactor     .10000E-03    3.2538        .13701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.4956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.8857        .20429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          16.418        10.798        .98849E-04   -1.4897    
  10  Prefactor     4.7835        3.6848        .12577E-03   -1.5271    
  11  Prefactor     .10000E-03    19.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.6777        .98207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.9111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    27.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.549        .22918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.9838        .13049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1413        65.487        .22846E-03   -1.5353    
  19  Prefactor     .10000E-03    15.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    40.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.0009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.2718        .50186        .20820E-04   -1.5346    
  23  Prefactor     .10004E-03    84.292        .45945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6.6586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3313        .20972        .21844E-03   -.82638    
  27  Prefactor     .75386        .24507        .33241E-03   -1.0145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09572e-10
Minuit parameter uncertainties:
  1  5.63719e-06
  2  7.3847e-06
  3  1.82387e-05
  4  2.32016e-05
  5  26.8938
  6  2.43226e-06
  7  5.74721e-06
  8  5.79292e-06
  9  10.7988
  10  3.68496
  11  5.50348e-06
  12  7.23312e-07
  13  6.18144e-06
  14  8.37377e-06
  15  5.97041e-05
  16  1.18858e-05
  17  1.01267e-05
  18  28.721
  19  8.84183e-07
  20  1.01748e-05
  21  1.00139e-05
  22  0.501865
  23  0.00386197
  24  2.52335e-06
  25  1.20152e-06
  26  0.209854
  27  0.24542
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  7.233e-07  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:  7.539e-01  2.454e-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.331e+00  2.099e-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: 6.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/814211/likelihoodResults_540518401_540777601_4FGL_J1018.4+3540_daily_bin1162.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) = 6074.83997152
delta logL = -0.00280364959963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6074.83716785
delta logL = 2.19597495743e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5701       1.0000          .0000       10.000    
     3 'Normalizat'    1.3313       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75389       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=   6074.837     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      257 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.125        .99844E-02** at limit **
   2  Index         2.0852        6.3213        .50000        .75265E-06
   3  Normalizat    1.3313        .10009E-01    .21843E-03    .37792E-03
   4  Prefactor     .75386        .11861E-01    .33241E-03    .25904E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.08519
  Normalizat = 1.33126
  Prefactor  = 0.753861
 **********
 **   18 **HESSE 
 **********

 FCN=   6074.837     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    98.256        .11063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0852        5.4048        .50000       -.62237    
   3  Normalizat    1.3313        .31144E-01    .43687E-04   -.82638    
   4  Prefactor     .75386        .36905E-01    .13296E-04   -1.0145    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.70816e-09
Minuit parameter uncertainties:
  1  6.09335e-05
  2  484.22
  3  0.0311443
  4  0.0369064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814211': 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) = 6074.8371616
delta logL = 6.26695782557e-06

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  6.093e-05  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.085e+00  4.842e+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:  7.539e-01  3.691e-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:  1.331e+00  3.114e-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/814211/cmap_HighResolution_540518401_540777601_4FGL_J1018.4+3540_daily_bin1162.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-03', job_status='DONE', photon_flux_upper_limit='6.07e-08', time_completed='2021-09-01 18:15:37.257638', job_id='814211', GAL2='0.75', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630545337.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='6.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1162' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:15:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 814211: <4FGL_J1018.4+3540_daily_bin1162> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1162> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:00:36 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:00:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 18:00:38 2021
Terminated at Wed Sep  1 18:15:38 2021
Results reported at Wed Sep  1 18:15:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1162 154.607 35.6802 540518401 540777601 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 :                                   774.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            902 sec.

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

