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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1015
RA = 154.607, Dec = 35.6802
tmin = 502416001, tmax = 502675201
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='812991', job_status='RUN', time_executed='2021-09-01 17:58:38.324624', time_epoch_executed='1630544318.32' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812991

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812991/ft1_4FGL_J1018.4+3540_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812991/ft2_4FGL_J1018.4+3540_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812991/ft1_4FGL_J1018.4+3540_daily_bin1015.fits outfile=/scratch/kocevski/812991/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1015.fits ra=154.607 dec=35.6802 rad=12.0 tmin=502416001.0 tmax=502675201.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.58
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/812991/ft1_filtered_4FGL_J1018.4+3540_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/812991/ft2_4FGL_J1018.4+3540_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/812991/ltcube_502416001_502675201_4FGL_J1018.4+3540_daily_bin1015.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/812991/ft2_4FGL_J1018.4+3540_daily_bin1015.fits
.....................!
real 15.01
user 14.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812991/ft1_filtered_4FGL_J1018.4+3540_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/812991/ft2_4FGL_J1018.4+3540_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/812991/ltcube_502416001_502675201_4FGL_J1018.4+3540_daily_bin1015.fits outfile=/scratch/kocevski/812991/expmap_502416001_502675201_4FGL_J1018.4+3540_daily_bin1015.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/812991/ltcube_502416001_502675201_4FGL_J1018.4+3540_daily_bin1015.fits
.....................!
real 192.81
user 186.99
sys 3.93

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/812991/ft1_filtered_4FGL_J1018.4+3540_daily_bin1015.fits scfile=/scratch/kocevski/812991/ft2_4FGL_J1018.4+3540_daily_bin1015.fits outfile=/scratch/kocevski/812991/cmap_502416001_502675201_4FGL_J1018.4+3540_daily_bin1015.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/812991/ft1_filtered_4FGL_J1018.4+3540_daily_bin1015.fits scfile=/scratch/kocevski/812991/ft2_4FGL_J1018.4+3540_daily_bin1015.fits outfile=/scratch/kocevski/812991/cmap_HighResolution_502416001_502675201_4FGL_J1018.4+3540_daily_bin1015.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    8.1361       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11071E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9590       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7522       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    19.875       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9464       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .55959       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.1375       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.273       1.0000         .10000E-03   10000.    
    25 'norm      '    15.977       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .94599       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1908       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=   5627.318     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     2809 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.2979       -.14945E-07** at limit **
   2  norm          8.1355        11.279        .31245E-07   -.19304E-04
   3  Prefactor     .10000E-03    84.170        .49990E-05** at limit **
   4  Prefactor     .10000E-03    5.7976        .22630E-05** at limit **
   5  Prefactor     .10000E-03    22.012       -.46808E-05** at limit **
   6  Prefactor     5.9590        6.6035       -.26477E-06   -.22644E-03
   7  Prefactor     6.7536        11.488       -.25388E-06   -.96149E-04
   8  Prefactor     .10000E-03    .64502       -.87739E-08** at limit **
   9  norm          19.876        8.7777       -.47415E-08   -.36068E-05
  10  Prefactor     4.9439        4.9601       -.44741E-06   -.36794E-03
  11  Prefactor     .10000E-03    18.201        .77533E-05** at limit **
  12  Prefactor     .56655        3.5637        .34272E-06   -.48315E-03
  13  norm          .10000E-03    10.656        .19325E-05** at limit **
  14  Prefactor     .10000E-03    16.949        .14051E-05** at limit **
  15  Prefactor     .10000E-03    14.870       -.45878E-05** at limit **
  16  Prefactor     .10001E-03    3.8631       -.23975E-05** at limit **
  17  Prefactor     .10000E-03    4.2774        .78277E-07** at limit **
  18  Prefactor     .10000E-03    16.369       -.13045E-05** at limit **
  19  Prefactor     .10000E-03    6.8072        .65240E-05** at limit **
  20  Prefactor     .10000E-03    152.98       -.80490E-05** at limit **
  21  Prefactor     .10000E-03    5.0286       -.15282E-06** at limit **
  22  norm          1.1375        .31470       -.10912E-07    .85903E-03
  23  Prefactor     .10000E-03    6.0760       -.46147E-05** at limit **
  24  Prefactor     17.274        11.949        .16127E-06    .49821E-04
  25  norm          15.978        15.077        .64269E-06    .54646E-04
  26  Normalizat    .94586        .17364        .64470E-06    .28317E-03
  27  Prefactor     1.1909        .21269       -.21751E-06    .21404E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 8.13548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.95898
  Prefactor  = 6.75359
  Prefactor  = 0.0001
  norm       = 19.8758
  Prefactor  = 4.94389
  Prefactor  = 0.0001
  Prefactor  = 0.566548
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.13754
  Prefactor  = 0.0001
  Prefactor  = 17.2738
  norm       = 15.9782
  Normalizat = 0.945863
  Prefactor  = 1.1909
 **********
 **   18 **HESSE 
 **********

 FCN=   5627.318     FROM HESSE     STATUS=OK           482 CALLS     3291 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3153        .13304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.1355        11.278        .14056E-03   -1.5137    
   3  Prefactor     .10000E-03    86.691        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8016        .17641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.9590        6.6095        .16449E-03   -1.5220    
   7  Prefactor     6.7536        11.481        .15441E-03   -1.5188    
   8  Prefactor     .10000E-03    .65275        .58819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          19.876        8.7802        .89841E-04   -1.4816    
  10  Prefactor     4.9439        4.9332        .13686E-03   -1.5263    
  11  Prefactor     .10000E-03    18.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .56655        11.573        .22854E-02   -1.5557    
  13  norm          .10000E-03    10.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    7.1969        .27159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.4133        .30269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.8191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    153.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.0467        .16429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1375        .31535        .21361E-04   -1.5495    
  23  Prefactor     .10000E-03    6.1080        .18082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     17.274        11.957        .96369E-04   -1.4876    
  25  norm          15.978        15.066        .10020E-03   -1.4908    
  26  Normalizat    .94586        .20620        .23607E-03   -.94867    
  27  Prefactor     1.1909        .25585        .26868E-03   -.86612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.716e-09
Minuit parameter uncertainties:
  1  1.01016e-06
  2  11.2808
  3  0.000180845
  4  4.28351e-07
  5  4.09724e-06
  6  6.61032
  7  11.4849
  8  7.22163e-08
  9  8.78073
  10  4.93361
  11  1.1115e-05
  12  5.12196
  13  2.92177e-05
  14  1.1956e-06
  15  5.70791e-06
  16  0.000616054
  17  4.59839e-06
  18  2.17767e-05
  19  1.88537e-06
  20  5.85543e-05
  21  1.17759e-06
  22  0.315355
  23  4.61334e-06
  24  11.9587
  25  15.0694
  26  0.206376
  27  0.256121
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.665e-01  5.122e+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.191e+00  2.561e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  9.459e-01  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/812991/likelihoodResults_502416001_502675201_4FGL_J1018.4+3540_daily_bin1015.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) = 5627.3096524
delta logL = 0.00826387526831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5627.30956687
delta logL = 0.00834940680488

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56665       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9571       1.0000          .0000       10.000    
     3 'Normalizat'    .94219       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1936       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=   5627.310     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      239 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58434        14.921        .38205E-01    .90876E-03
   2  Index         2.9549        1.6356        .50000        .60414E-05
   3  Normalizat    .94200        .10879E-01    .45439E-01   -.97452E-05
   4  Prefactor     1.1936        .13780E-01    .60689E-01    .16084E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.584342
  Index      = 2.95488
  Normalizat = 0.942001
  Prefactor  = 1.19364
 **********
 **   18 **HESSE 
 **********

 FCN=   5627.310     FROM HESSE     STATUS=OK            35 CALLS      274 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .58434        11.461        .21962E-02   -1.5555    
   2  Index         2.9549        3.5578        .10420E-01   -.42138    
   3  Normalizat    .94200        .20606        .23649E-03   -.95000    
   4  Prefactor     1.1936        .25520        .26841E-03   -.86527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32593e-10
Minuit parameter uncertainties:
  1  5.1765
  2  4.08043
  3  0.206232
  4  0.255466
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812991': 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) = 5627.30955394
delta logL = 0.00836233344762

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.843e-01  5.177e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.955e+00  4.080e+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.194e+00  2.555e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  9.420e-01  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/812991/cmap_HighResolution_502416001_502675201_4FGL_J1018.4+3540_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.32e-03', job_status='DONE', photon_flux_upper_limit='9.36e-08', time_completed='2021-09-01 18:10:47.725556', job_id='812991', GAL2='1.19', fit_tolerance='1e-08', EG2='0.94', EG='0.95', time_epoch_completed='1630545047.73', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='8.36e-03', ts2='0.04', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1015' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:10:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 812991: <4FGL_J1018.4+3540_daily_bin1015> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1015> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 17:56:09 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:56:21 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:56:21 2021
Terminated at Wed Sep  1 18:10:48 2021
Results reported at Wed Sep  1 18:10:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1015 154.607 35.6802 502416001 502675201 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 :                                   723.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            879 sec.

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

