aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 51 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7485
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1710
RA = 154.607, Dec = 35.6802
tmin = 682560001, tmax = 682819201
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='91735', job_status='RUN', time_executed='2022-09-16 15:18:11.935453', time_epoch_executed='1663366691.94' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/91735

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/91735/ft1_4FGL_J1018.4+3540_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/91735/ft2_4FGL_J1018.4+3540_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/91735/ft1_4FGL_J1018.4+3540_daily_bin1710.fits outfile=/scratch/kocevski/91735/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1710.fits ra=154.607 dec=35.6802 rad=12.0 tmin=682560001.0 tmax=682819201.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.65
user 3.40
sys 0.23

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

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

Number of photons that the gtmktime cut: 538

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/91735/ft1_filtered_4FGL_J1018.4+3540_daily_bin1710.fits" evtable="EVENTS" scfile=/scratch/kocevski/91735/ft2_4FGL_J1018.4+3540_daily_bin1710.fits sctable="SC_DATA" outfile=/scratch/kocevski/91735/ltcube_682560001_682819201_4FGL_J1018.4+3540_daily_bin1710.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/91735/ft2_4FGL_J1018.4+3540_daily_bin1710.fits
.....................!
real 15.07
user 14.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/91735/ft1_filtered_4FGL_J1018.4+3540_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/91735/ft2_4FGL_J1018.4+3540_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/91735/ltcube_682560001_682819201_4FGL_J1018.4+3540_daily_bin1710.fits outfile=/scratch/kocevski/91735/expmap_682560001_682819201_4FGL_J1018.4+3540_daily_bin1710.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/91735/ltcube_682560001_682819201_4FGL_J1018.4+3540_daily_bin1710.fits
.....................!
real 191.76
user 186.61
sys 4.65

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/91735/ft1_filtered_4FGL_J1018.4+3540_daily_bin1710.fits scfile=/scratch/kocevski/91735/ft2_4FGL_J1018.4+3540_daily_bin1710.fits outfile=/scratch/kocevski/91735/cmap_682560001_682819201_4FGL_J1018.4+3540_daily_bin1710.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.54
user 0.37
sys 0.16

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/91735/ft1_filtered_4FGL_J1018.4+3540_daily_bin1710.fits', '/scratch/kocevski/91735/ft2_4FGL_J1018.4+3540_daily_bin1710.fits', expMap='/scratch/kocevski/91735/expmap_682560001_682819201_4FGL_J1018.4+3540_daily_bin1710.fits', expCube='/scratch/kocevski/91735/ltcube_682560001_682819201_4FGL_J1018.4+3540_daily_bin1710.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/91735/Model_4FGL_J1018.4+3540_daily_bin1710.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  0.000e+00  1.000e+06 ( 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/91735/ft1_filtered_4FGL_J1018.4+3540_daily_bin1710.fits
Spacecraft file(s): /scratch/kocevski/91735/ft2_4FGL_J1018.4+3540_daily_bin1710.fits
Exposure map: /scratch/kocevski/91735/expmap_682560001_682819201_4FGL_J1018.4+3540_daily_bin1710.fits
Exposure cube: /scratch/kocevski/91735/ltcube_682560001_682819201_4FGL_J1018.4+3540_daily_bin1710.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/91735/Model_4FGL_J1018.4+3540_daily_bin1710.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) = 6096.96500486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24475E-02   1.0000          .0000       .10000E+07
     2 'norm      '    1.0770       1.0000          .0000       .10000E+07
     3 'Prefactor '    47.664       1.0000          .0000       .10000E+07
     4 'Prefactor '    18.350       1.0000          .0000       .10000E+07
     5 'Prefactor '    9.6645       1.0000          .0000       .10000E+07
     6 'Prefactor '    18.887       1.0000          .0000       .10000E+07
     7 'Prefactor '    12.268       1.0000          .0000       .10000E+07
     8 'Prefactor '    .47351E-07   1.0000          .0000       .10000E+07
     9 'norm      '    32.254       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.7821       1.0000          .0000       .10000E+07
    11 'Prefactor '    .20994E-03   1.0000          .0000       .10000E+07
    12 'norm      '    20.335       1.0000          .0000       .10000E+07
    13 'Prefactor '    23.065       1.0000          .0000       .10000E+07
    14 'Prefactor '    .98454E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .14693E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    17.812       1.0000          .0000       .10000E+07
    17 'Prefactor '    76.154       1.0000          .0000       .10000E+07
    18 'Prefactor '    .48535E-04   1.0000          .0000       .10000E+07
    19 'norm      '    1.4263       1.0000          .0000       .10000E+07
    20 'Prefactor '    29.440       1.0000          .0000       .10000E+07
    21 'Prefactor '    .26391E-01   1.0000          .0000       .10000E+07
    22 'norm      '    2.1632       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.1399       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82067       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6096.938     FROM MIGRAD    STATUS=CONVERGED    208 CALLS     2029 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        11.572       -.10144E-08** at limit **
   2  norm          .88998E-04    721.35        .46106E-05** at limit **
   3  Prefactor     48.532        11.562       -.14786E-07   -.87512E-01
   4  Prefactor     21.467        32.181       -.31426E-06    .71166E-01
   5  Prefactor     9.5536        57.514        .41682E-06   -.27688E-01
   6  Prefactor     18.964        10.887       -.22490E-07    .11458E-01
   7  Prefactor     12.312        10.684        .17293E-07   -.49768E-03
   8  Prefactor      .0000        1.1095        .17002E-08** at limit **
   9  norm          32.282        13.361        .41762E-07    .69361E-03
  10  Prefactor     2.7962        3.9513       -.17049E-08    .10745E-03
  11  Prefactor      .0000        2.0895       -.34078E-08** at limit **
  12  norm          20.165        11.526        .73030E-10   -.88367E-02
  13  Prefactor     22.818        4.0677        .13083E-07    .12164E-01
  14  Prefactor     .55511E-10    39.568       -.69492E-08** at limit **
  15  Prefactor      .0000        2.1876       -.14069E-08** at limit **
  16  Prefactor     17.970        4.1024        .25843E-07    .24727E-01
  17  Prefactor     77.434        41.409       -.14932E-07   -.18929    
  18  Prefactor      .0000        3.0654       -.22973E-08** at limit **
  19  norm          1.4273        .36347       -.11089E-08   -.19776E-03
  20  Prefactor     29.477        18.654        .48473E-07    .52093E-03
  21  Prefactor      .0000        18.051       -.33434E-08** at limit **
  22  norm          2.0508        11.888       -.45827E-07    .14494E-02
  23  Normalizat    1.1357        .21454        .26175E-07   -.31744E-05
  24  Prefactor     .82305        .23445       -.39105E-07   -.20185E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 8.89983e-05
  Prefactor  = 48.5322
  Prefactor  = 21.4669
  Prefactor  = 9.55358
  Prefactor  = 18.9642
  Prefactor  = 12.3118
  Prefactor  = 0
  norm       = 32.2818
  Prefactor  = 2.79625
  Prefactor  = 0
  norm       = 20.1652
  Prefactor  = 22.8183
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 17.9701
  Prefactor  = 77.4344
  Prefactor  = 0
  norm       = 1.42727
  Prefactor  = 29.4766
  Prefactor  = 0
  norm       = 2.05076
  Normalizat = 1.13573
  Prefactor  = 0.823047
 **********
 **   18 **HESSE 
 **********

 FCN=   6096.938     FROM HESSE     STATUS=OK           461 CALLS     2490 TOTAL
                     EDM=   .46E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        11.578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .88998E-04    13.383        .11637E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     48.532        36.338        .14486E-03   -1.5569    
   4  Prefactor     21.467        39.026        .23353E-03   -1.5615    
   5  Prefactor     9.5536        81.875        .32210E-03   -1.5646    
   6  Prefactor     18.964        11.010        .23018E-03   -1.5621    
   7  Prefactor     12.312        10.707        .28574E-03   -1.5638    
   8  Prefactor      .0000        1.1095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          32.282        13.342        .17610E-03   -1.5594    
  10  Prefactor     2.7962        3.9731        .60981E-03   -1.5675    
  11  Prefactor      .0000        2.0954        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          20.165        11.533        .22183E-03   -1.5618    
  13  Prefactor     22.818        46.608        .20827E-03   -1.5612    
  14  Prefactor     .55511E-10    39.783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        2.1966        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.970        27.803        .23704E-03   -1.5623    
  17  Prefactor     77.434        85.957        .11460E-03   -1.5532    
  18  Prefactor      .0000        3.0771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.4273        .36536        .50254E-03   -1.5684    
  20  Prefactor     29.477        18.841        .18433E-03   -1.5599    
  21  Prefactor      .0000        8.3042        .82278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.0508        12.054        .70001E-03   -1.5679    
  23  Normalizat    1.1357        .18196        .53868E-01   -.88613    
  24  Prefactor     .82305        .19997        .71889E-01   -.98884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62321e-06
Minuit parameter uncertainties:
  1  1.03523e-05
  2  0.0690242
  3  36.3384
  4  39.0262
  5  55.9367
  6  11.0104
  7  10.7074
  8  2.12803e-07
  9  13.3424
  10  3.97312
  11  4.63801e-06
  12  11.5328
  13  46.609
  14  0.000108522
  15  2.76546e-08
  16  27.8037
  17  85.958
  18  1.58523e-06
  19  0.365357
  20  18.8414
  21  1.52356e-06
  22  9.94399
  23  0.182059
  24  0.20015
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  0.000e+00  4.638e-06  0.000e+00  1.000e+06 ( 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:  8.230e-01  2.002e-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.136e+00  1.821e-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.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/91735/likelihoodResults_682560001_682819201_4FGL_J1018.4+3540_daily_bin1710.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) = 6096.93976981
delta logL = -0.00149564281946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6096.93827742
delta logL = -3.25001110468e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13423E-03   1.0000          .0000       .10000E+07
     2 'Index     '    1.2171       1.0000          .0000       10.000    
     3 'Normalizat'    1.1354       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82333       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=   6096.938     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      322 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26645E-08    .46239        .42118E-02** at limit **
   2  Index         1.1893        9.1568        .50000       -.15689E-08
   3  Normalizat    1.1357        .27796E-02    .53868E-01    .26464E-03
   4  Prefactor     .82305        .32299E-02    .71889E-01    .19514E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.66454e-09
  Index      = 1.18934
  Normalizat = 1.13573
  Prefactor  = 0.823047
 **********
 **   18 **HESSE 
 **********

 FCN=   6096.938     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      363 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26645E-08    .60041        .33096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1893        8.0724        .50000       -.86660    
   3  Normalizat    1.1357        .28638E-02    .23818E-03   -.88613    
   4  Prefactor     .82305        .33239E-02    .31811E-03   -.98884    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.38002e-12
Minuit parameter uncertainties:
  1  7.96743e-05
  2  4775.38
  3  0.0028638
  4  0.00332386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/91735': 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) = 6096.93827417
delta logL = -7.18500814401e-11

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.665e-09  7.967e-05  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  1.189e+00  4.775e+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:  8.230e-01  3.324e-03  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.136e+00  2.864e-03  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/91735/cmap_HighResolution_682560001_682819201_4FGL_J1018.4+3540_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-03', job_status='DONE', photon_flux_upper_limit='6.67e-08', time_completed='2022-09-16 15:28:54.766333', job_id='91735', GAL2='0.82', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1663367334.77', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-7.19e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1710' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:28:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 91735: <4FGL_J1018.4+3540_daily_bin1710> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1710> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 16 15:15:16 2022
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:17:12 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:17:12 2022
Terminated at Fri Sep 16 15:28:55 2022
Results reported at Fri Sep 16 15:28:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1710 154.607 35.6802 682560001 682819201 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 :                                   644.00 sec.
    Max Memory :                                 1177 MB
    Average Memory :                             294.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            819 sec.

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

