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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin581
RA = 154.607, Dec = 35.6802
tmin = 389923201, tmax = 390182401
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='811374', job_status='RUN', time_executed='2021-09-01 17:52:00.089635', time_epoch_executed='1630543920.09' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811374

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811374/ft1_4FGL_J1018.4+3540_daily_bin581.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811374/ft2_4FGL_J1018.4+3540_daily_bin581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811374/ft1_4FGL_J1018.4+3540_daily_bin581.fits outfile=/scratch/kocevski/811374/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin581.fits ra=154.607 dec=35.6802 rad=12.0 tmin=389923201.0 tmax=390182401.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.48
user 3.27
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811374/ft1_filtered_4FGL_J1018.4+3540_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/811374/ft2_4FGL_J1018.4+3540_daily_bin581.fits sctable="SC_DATA" expcube=/scratch/kocevski/811374/ltcube_389923201_390182401_4FGL_J1018.4+3540_daily_bin581.fits outfile=/scratch/kocevski/811374/expmap_389923201_390182401_4FGL_J1018.4+3540_daily_bin581.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/811374/ltcube_389923201_390182401_4FGL_J1018.4+3540_daily_bin581.fits
.....................!
real 191.67
user 187.15
sys 4.09

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/811374/ft1_filtered_4FGL_J1018.4+3540_daily_bin581.fits scfile=/scratch/kocevski/811374/ft2_4FGL_J1018.4+3540_daily_bin581.fits outfile=/scratch/kocevski/811374/cmap_389923201_390182401_4FGL_J1018.4+3540_daily_bin581.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811374/ft1_filtered_4FGL_J1018.4+3540_daily_bin581.fits scfile=/scratch/kocevski/811374/ft2_4FGL_J1018.4+3540_daily_bin581.fits outfile=/scratch/kocevski/811374/cmap_HighResolution_389923201_390182401_4FGL_J1018.4+3540_daily_bin581.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.55
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8352       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.201       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2622       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .44166       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.889       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.545       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    73.506       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6484       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.1549       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .89014       1.0000         .10000E-03   10000.    
    25 'norm      '    11.564       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .87216       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1106       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=   5492.962     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     3357 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8349        6.9492        .11715E-05    .18520E-03
   2  norm          .10000E-03    4.2271       -.12107E-07** at limit **
   3  Prefactor     26.202        34.430        .48780E-06   -.10190E-04
   4  Prefactor     .10000E-03    17.360       -.11885E-07** at limit **
   5  Prefactor     .10000E-03    14.696        .31668E-06** at limit **
   6  Prefactor     .10000E-03    3.6593        .34141E-07** at limit **
   7  Prefactor     .10000E-03    4.0023        .17808E-07** at limit **
   8  Prefactor     9.2620        3.4575        .52086E-07   -.23828E-03
   9  norm          .10000E-03    3.8252        .13669E-07** at limit **
  10  Prefactor     .43589        4.4738        .18221E-05   -.19886E-03
  11  Prefactor     18.890        40.148        .45209E-06   -.16086E-04
  12  Prefactor     .10000E-03    8.0487       -.17248E-06** at limit **
  13  norm          13.546        12.546       -.19158E-06   -.37127E-04
  14  Prefactor     .10000E-03    57.141       -.45874E-06** at limit **
  15  Prefactor     73.521        69.666       -.42681E-05   -.84339E-04
  16  Prefactor     .10001E-03    3.1920       -.13976E-05** at limit **
  17  Prefactor     3.6459        11.790        .40741E-05    .25426E-03
  18  Prefactor     .10000E-03    13.837       -.84798E-07** at limit **
  19  Prefactor     .10001E-03    111.77       -.29725E-05** at limit **
  20  Prefactor     .10001E-03    82.537        .22255E-05** at limit **
  21  Prefactor     .10000E-03    5.5738        .29754E-07** at limit **
  22  norm          2.1548        .44385       -.35467E-07   -.36535E-02
  23  Prefactor     .10000E-03    6.9831       -.71329E-07** at limit **
  24  Prefactor     .90478        18.304        .39421E-05   -.40437E-03
  25  norm          11.564        17.022       -.47231E-07   -.11794E-03
  26  Normalizat    .87216        .19333       -.16448E-05   -.41195E-03
  27  Prefactor     1.1106        .21140       -.31433E-06   -.41196E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.83487
  norm       = 0.0001
  Prefactor  = 26.2021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.26202
  norm       = 0.0001
  Prefactor  = 0.435885
  Prefactor  = 18.8898
  Prefactor  = 0.0001
  norm       = 13.5462
  Prefactor  = 0.0001
  Prefactor  = 73.5208
  Prefactor  = 0.000100012
  Prefactor  = 3.64595
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 2.15481
  Prefactor  = 0.0001
  Prefactor  = 0.904784
  norm       = 11.5639
  Normalizat = 0.872158
  Prefactor  = 1.11064
 **********
 **   18 **HESSE 
 **********

 FCN=   5492.962     FROM HESSE     STATUS=OK           484 CALLS     3841 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8349        6.9686        .24151E-03   -1.5371    
   2  norm          .10000E-03    4.2279        .14882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.202        34.457        .78262E-04   -1.4684    
   4  Prefactor     .10000E-03    17.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.6839        .13844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.0084        .14479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.2620        3.4579        .80128E-04   -1.5099    
   9  norm          .10000E-03    3.8442        .14156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .43589        7.1739        .25872E-02   -1.5576    
  11  Prefactor     18.890        40.311        .92155E-04   -1.4838    
  12  Prefactor     .10000E-03    8.2252        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.546        12.461        .10883E-03   -1.4972    
  14  Prefactor     .10000E-03    57.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     73.521        70.333        .46829E-04   -1.3991    
  16  Prefactor     .10001E-03    8.6126        .21354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.6459        12.047        .21149E-03   -1.5326    
  18  Prefactor     .10000E-03    13.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    112.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    82.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.5850        .17089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.1548        .45144        .20590E-04   -1.5414    
  23  Prefactor     .10000E-03    6.9891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .90478        75.750        .46695E-02   -1.5518    
  25  norm          11.564        16.973        .11781E-03   -1.5028    
  26  Normalizat    .87216        .23018        .25631E-03   -.97445    
  27  Prefactor     1.1106        .25430        .27275E-03   -.89127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58596e-08
Minuit parameter uncertainties:
  1  6.97059
  2  2.78075e-06
  3  34.4834
  4  1.13702e-05
  5  0.000116289
  6  5.13751e-06
  7  3.75809e-06
  8  3.45802
  9  1.79467e-06
  10  3.53675
  11  40.3688
  12  3.86094e-05
  13  12.4637
  14  0.00031212
  15  70.413
  16  0.000652341
  17  12.0549
  18  4.83204e-05
  19  0.00231723
  20  0.00189957
  21  7.38855e-06
  22  0.451446
  23  2.22607e-05
  24  16.5782
  25  16.98
  26  0.23044
  27  0.254581
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  3.861e-05  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.111e+00  2.546e-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.722e-01  2.304e-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: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/811374/likelihoodResults_389923201_390182401_4FGL_J1018.4+3540_daily_bin581.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) = 5492.96210974
delta logL = -0.000580390577852

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5492.96153374
delta logL = -4.39437462774e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16993E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6809       1.0000          .0000       10.000    
     3 'Normalizat'    .87275       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1100       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=   5492.326     FROM MIGRAD    STATUS=CONVERGED    154 CALLS      321 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15349        2.5314        .59856E-02    .19327E-02
   2  Index         5.2487        3.4751        .13461        .10866E-03
   3  Normalizat    .78433        .40805E-01    .44552E-01    .92670E-05
   4  Prefactor     1.1800        .48709E-01    .60086E-01    .28778E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.153495
  Index      = 5.24865
  Normalizat = 0.784332
  Prefactor  = 1.17998
 **********
 **   18 **HESSE 
 **********

 FCN=   5492.326     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      356 TOTAL
                     EDM=   .95E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15349        6.8352        .27407E-03   -1.5630    
   2  Index         5.2487        7.6197        .66298E-02    .49751E-01
   3  Normalizat    .78433        .16027        .26867E-03   -1.0065    
   4  Prefactor     1.1800        .18455        .26571E-03   -.86950    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.5367e-08
Minuit parameter uncertainties:
  1  2.04817
  2  7.78827
  3  0.160366
  4  0.184652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811374': 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) = 5492.32577162
delta logL = 0.635757729417

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.535e-01  2.048e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  5.249e+00  7.788e+00  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.180e+00  1.847e-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:  7.843e-01  1.604e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.41
Ra Dec: 154.607 35.680
Photon Index (Free Index): 5.25 +/- 7.79
Photon Flux (Free Index): 7.02e-08 +/- 7.31e-08
Energy Flux (Free Index): 9.15e-06 +/- 1.28e-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/811374/cmap_HighResolution_389923201_390182401_4FGL_J1018.4+3540_daily_bin581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.31e-03', comment='SUCCESS', energy_flux2='9.15e-06', dlogl='6.36e-01', photon_flux2='7.02e-08', job_status='DONE', time_completed='2021-09-01 18:04:28.176894', photon_index_error2='7.79', photon_index2='5.25', ts='-0.00', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.28e-05', EG='0.87', time_epoch_completed='1630544668.18', return_code='0', job_id='811374', GAL2='1.18', EG2='0.78', return_code2='102', photon_flux_error2='7.31e-08', ts2='1.41', photon_index='2.59' WHERE bin_id='581' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:04:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 811374: <4FGL_J1018.4+3540_daily_bin581> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin581> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 17:51:12 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:51:40 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:40 2021
Terminated at Wed Sep  1 18:04:28 2021
Results reported at Wed Sep  1 18:04:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin581 154.607 35.6802 389923201 390182401 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 :                                   746.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            796 sec.

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

