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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1084
RA = 154.607, Dec = 35.6802
tmin = 520300801, tmax = 520560001
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='814097', job_status='RUN', time_executed='2021-09-01 18:02:39.719470', time_epoch_executed='1630544559.72' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1084'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814097

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814097/ft1_4FGL_J1018.4+3540_daily_bin1084.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814097/ft2_4FGL_J1018.4+3540_daily_bin1084.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814097/ft1_4FGL_J1018.4+3540_daily_bin1084.fits outfile=/scratch/kocevski/814097/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1084.fits ra=154.607 dec=35.6802 rad=12.0 tmin=520300801.0 tmax=520560001.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 6.13
user 5.84
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/814097/ft2_4FGL_J1018.4+3540_daily_bin1084.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/814097/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1084.fits evtable="EVENTS" outfile="/scratch/kocevski/814097/ft1_filtered_4FGL_J1018.4+3540_daily_bin1084.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/814097/ft1_filtered_4FGL_J1018.4+3540_daily_bin1084.fits" evtable="EVENTS" scfile=/scratch/kocevski/814097/ft2_4FGL_J1018.4+3540_daily_bin1084.fits sctable="SC_DATA" outfile=/scratch/kocevski/814097/ltcube_520300801_520560001_4FGL_J1018.4+3540_daily_bin1084.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/814097/ft2_4FGL_J1018.4+3540_daily_bin1084.fits
.....................!
real 15.94
user 15.47
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814097/ft1_filtered_4FGL_J1018.4+3540_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/814097/ft2_4FGL_J1018.4+3540_daily_bin1084.fits sctable="SC_DATA" expcube=/scratch/kocevski/814097/ltcube_520300801_520560001_4FGL_J1018.4+3540_daily_bin1084.fits outfile=/scratch/kocevski/814097/expmap_520300801_520560001_4FGL_J1018.4+3540_daily_bin1084.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/814097/ltcube_520300801_520560001_4FGL_J1018.4+3540_daily_bin1084.fits
.....................!
real 191.92
user 186.42
sys 4.72

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/814097/ft1_filtered_4FGL_J1018.4+3540_daily_bin1084.fits scfile=/scratch/kocevski/814097/ft2_4FGL_J1018.4+3540_daily_bin1084.fits outfile=/scratch/kocevski/814097/cmap_520300801_520560001_4FGL_J1018.4+3540_daily_bin1084.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.38
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.521       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.656       1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.969       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7164       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8252       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5299       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.4145       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .25942E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.020       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.233       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .37936       1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.471       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .33626       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .98472       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0171       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=   5303.662     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3459 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9335        .75542E-07** at limit **
   2  norm          .10000E-03    4.2175       -.38163E-07** at limit **
   3  Prefactor     37.517        31.730       -.26165E-05   -.53602E-05
   4  Prefactor     13.643        35.397       -.12249E-04   -.10173E-04
   5  Prefactor     52.967        48.825        .76632E-06    .32390E-04
   6  Prefactor     .10000E-03    1.7617        .29195E-07** at limit **
   7  Prefactor     5.7118        10.510       -.10690E-05   -.10426E-03
   8  Prefactor     2.8249        1.9755        .99130E-07    .70301E-05
   9  norm          .10000E-03    2.4833        .15504E-07** at limit **
  10  Prefactor     5.5297        4.1026        .44162E-06   -.95852E-04
  11  Prefactor     8.4439        27.726        .27500E-04    .12290E-03
  12  Prefactor     .10000E-03    2.1932       -.61644E-07** at limit **
  13  norm          .10003E-03    5.1705       -.40675E-05** at limit **
  14  Prefactor     .10000E-03    27.874       -.14690E-05** at limit **
  15  Prefactor     25.021        25.941       -.41600E-06    .82837E-04
  16  Prefactor     .10000E-03    .99973       -.44939E-07** at limit **
  17  Prefactor     .10000E-03    2.1083       -.35659E-08** at limit **
  18  Prefactor     .10000E-03    8.5498        .17697E-05** at limit **
  19  Prefactor     .10000E-03    7.4233       -.20522E-05** at limit **
  20  Prefactor     12.226        77.398       -.17157E-04    .57106E-06
  21  Prefactor     .10000E-03    7.5346        .81955E-06** at limit **
  22  norm          .37933        .21489       -.15377E-06   -.21408E-03
  23  Prefactor     33.498        18.488        .79617E-05    .31954E-03
  24  Prefactor     .10000E-03    5.0878        .97644E-07** at limit **
  25  norm          .28137        9.1194       -.22004E-05   -.55411E-03
  26  Normalizat    .98479        .17831       -.95061E-06    .39338E-03
  27  Prefactor     1.0171        .20701       -.55037E-06    .28551E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 37.5168
  Prefactor  = 13.6428
  Prefactor  = 52.9666
  Prefactor  = 0.0001
  Prefactor  = 5.71182
  Prefactor  = 2.82495
  norm       = 0.0001
  Prefactor  = 5.52967
  Prefactor  = 8.44388
  Prefactor  = 0.0001
  norm       = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 25.0206
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2263
  Prefactor  = 0.0001
  norm       = 0.379331
  Prefactor  = 33.4984
  Prefactor  = 0.0001
  norm       = 0.281366
  Normalizat = 0.984786
  Prefactor  = 1.0171
 **********
 **   18 **HESSE 
 **********

 FCN=   5303.662     FROM HESSE     STATUS=OK           486 CALLS     3945 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9452        .12181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.2181        .14606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.517        31.771        .65431E-04   -1.4482    
   4  Prefactor     13.643        35.363        .10839E-03   -1.4969    
   5  Prefactor     52.967        48.686        .55109E-04   -1.4251    
   6  Prefactor     .10000E-03    1.7645        .94396E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.7118        10.525        .16800E-03   -1.5230    
   8  Prefactor     2.8249        1.9753        .82594E-04   -1.5372    
   9  norm          .10000E-03    2.4931        .11208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5297        4.0972        .11883E-03   -1.5238    
  11  Prefactor     8.4439        27.565        .13820E-03   -1.5127    
  12  Prefactor     .10000E-03    2.2234        .10509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10003E-03    14.107        .31603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.021        25.836        .80085E-04   -1.4707    
  16  Prefactor     .10000E-03    1.0025        .71103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.1122        .10289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.5503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.4258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.226        77.516        .11453E-03   -1.5009    
  21  Prefactor     .10000E-03    7.6018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .37933        .21669        .24333E-04   -1.5585    
  23  Prefactor     33.498        18.694        .69263E-04   -1.4550    
  24  Prefactor     .10000E-03    5.0885        .16041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .28137        108.34        .41320E-02   -1.5602    
  26  Normalizat    .98479        .21527        .22454E-03   -.93542    
  27  Prefactor     1.0171        .24895        .27385E-03   -.92162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49424e-08
Minuit parameter uncertainties:
  1  8.78245e-06
  2  1.20312e-05
  3  31.7855
  4  35.4171
  5  48.7224
  6  2.70642e-06
  7  10.5281
  8  1.9753
  9  1.86272e-06
  10  4.09738
  11  27.6066
  12  7.51351e-06
  13  0.00122159
  14  8.41621e-06
  15  25.8474
  16  3.06539e-06
  17  4.10316e-07
  18  2.51126e-06
  19  5.86206e-06
  20  61.6882
  21  1.29278e-06
  22  0.21669
  23  18.6969
  24  3.89712e-05
  25  11.0607
  26  0.215459
  27  0.249229
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  7.514e-06  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.017e+00  2.492e-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.848e-01  2.155e-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.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/814097/likelihoodResults_520300801_520560001_4FGL_J1018.4+3540_daily_bin1084.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) = 5303.6637287
delta logL = -0.00214112647882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5303.66158763
delta logL = -5.55328369956e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5832       1.0000          .0000       10.000    
     3 'Normalizat'    .98480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0171       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=   5303.662     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      238 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10046E-03    87.131        .10531E-02** at limit **
   2  Index         2.5330        8.7016        .50000        .20391E-04
   3  Normalizat    .98478        .27158E-01    .22454E-03   -.61870E-04
   4  Prefactor     1.0171        .33753E-01    .27385E-03   -.22750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100465
  Index      = 2.53301
  Normalizat = 0.984784
  Prefactor  = 1.0171
 **********
 **   18 **HESSE 
 **********

 FCN=   5303.662     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10046E-03    310.88        .21061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5330        6.1872        .50000       -.51599    
   3  Normalizat    .98478        .61731E-01    .89817E-05   -.93542    
   4  Prefactor     1.0171        .76671E-01    .10954E-04   -.92162    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.58366e-08
Minuit parameter uncertainties:
  1  0.0241657
  2  1123.84
  3  0.0617359
  4  0.0766796
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814097': 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) = 5303.66158737
delta logL = 2.11100086744e-07

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.005e-04  2.417e-02  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.533e+00  1.124e+03  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.017e+00  7.668e-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:  9.848e-01  6.174e-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/814097/cmap_HighResolution_520300801_520560001_4FGL_J1018.4+3540_daily_bin1084.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.98e-03', job_status='DONE', photon_flux_upper_limit='6.37e-08', time_completed='2021-09-01 18:15:43.384719', job_id='814097', GAL2='1.02', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630545343.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1084' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:15:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 814097: <4FGL_J1018.4+3540_daily_bin1084> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1084> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:00:28 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:00:30 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:30 2021
Terminated at Wed Sep  1 18:15:44 2021
Results reported at Wed Sep  1 18:15:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1084 154.607 35.6802 520300801 520560001 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 :                                   780.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            916 sec.

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

