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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1749
RA = 154.607, Dec = 35.6802
tmin = 692668801, tmax = 692928001
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='947860', job_status='RUN', time_executed='2022-12-17 00:33:51.999303', time_epoch_executed='1671266032.0' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947860

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947860/ft1_4FGL_J1018.4+3540_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947860/ft2_4FGL_J1018.4+3540_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/947860/ft1_4FGL_J1018.4+3540_daily_bin1749.fits outfile=/scratch/kocevski/947860/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1749.fits ra=154.607 dec=35.6802 rad=12.0 tmin=692668801.0 tmax=692928001.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.63
user 3.42
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/947860/ft2_4FGL_J1018.4+3540_daily_bin1749.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/947860/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/947860/ft1_filtered_4FGL_J1018.4+3540_daily_bin1749.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.49
user 0.31
sys 0.17

Number of photons that the gtmktime cut: 544

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947860/ft1_filtered_4FGL_J1018.4+3540_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/947860/ft2_4FGL_J1018.4+3540_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/947860/ltcube_692668801_692928001_4FGL_J1018.4+3540_daily_bin1749.fits outfile=/scratch/kocevski/947860/expmap_692668801_692928001_4FGL_J1018.4+3540_daily_bin1749.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/947860/ltcube_692668801_692928001_4FGL_J1018.4+3540_daily_bin1749.fits
.....................!
real 191.22
user 185.68
sys 5.21

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/947860/ft1_filtered_4FGL_J1018.4+3540_daily_bin1749.fits scfile=/scratch/kocevski/947860/ft2_4FGL_J1018.4+3540_daily_bin1749.fits outfile=/scratch/kocevski/947860/cmap_692668801_692928001_4FGL_J1018.4+3540_daily_bin1749.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/947860/ft1_filtered_4FGL_J1018.4+3540_daily_bin1749.fits scfile=/scratch/kocevski/947860/ft2_4FGL_J1018.4+3540_daily_bin1749.fits outfile=/scratch/kocevski/947860/cmap_HighResolution_692668801_692928001_4FGL_J1018.4+3540_daily_bin1749.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .67639E-05   1.0000          .0000       .10000E+07
     2 'norm      '    .12719E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .81971E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .31954E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .44773E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    10.482       1.0000          .0000       .10000E+07
     7 'Prefactor '    .93439       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.6536       1.0000          .0000       .10000E+07
     9 'norm      '    7.8791       1.0000          .0000       .10000E+07
    10 'Prefactor '    15.415       1.0000          .0000       .10000E+07
    11 'Prefactor '    .84049E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .86570E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .19538E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .60148E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    4.7572       1.0000          .0000       .10000E+07
    16 'Prefactor '    .55810E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    80.078       1.0000          .0000       .10000E+07
    18 'Prefactor '    4.3081       1.0000          .0000       .10000E+07
    19 'norm      '    1.4543       1.0000          .0000       .10000E+07
    20 'Prefactor '    10.791       1.0000          .0000       .10000E+07
    21 'Prefactor '    .12208E-02   1.0000          .0000       .10000E+07
    22 'norm      '    7.1534       1.0000          .0000       .10000E+07
    23 'Normalizat'    .98852       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78636       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=   6022.371     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     1994 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        3.1170       -.40397E-06** at limit **
   2  norm          .11057E-05    10.238        .44465E-07** at limit **
   3  Prefactor     .13212E-07    28.752       -.20562E-06** at limit **
   4  Prefactor     .55511E-10    36.702        .13556E-05** at limit **
   5  Prefactor     .14988E-08    12.252        .37373E-06** at limit **
   6  Prefactor     10.488        7.8500        .14851E-07    .19969E-03
   7  Prefactor     .93757        .47187        .85088E-08    .21696E-03
   8  Prefactor     2.6527        1.7347       -.70500E-07    .48310E-03
   9  norm          7.8645        6.2784       -.87486E-08    .62694E-04
  10  Prefactor     15.413        5.1028       -.37487E-07    .64677E-03
  11  Prefactor      .0000        4.6436       -.43931E-06** at limit **
  12  norm           .0000        4.2973       -.51747E-06** at limit **
  13  Prefactor     .74329E-06    13.053        .64474E-07** at limit **
  14  Prefactor     .21649E-08    15.172        .31081E-06** at limit **
  15  Prefactor     4.7615        4.1998        .11649E-07    .10603E-03
  16  Prefactor     .33307E-09    8.3796        .17105E-06** at limit **
  17  Prefactor     79.408        72.200       -.21141E-06    .20546E-02
  18  Prefactor     4.3064        6.3731        .66640E-07   -.67034E-04
  19  norm          1.4542        .33121       -.81253E-08    .43137E-03
  20  Prefactor     10.783        2.9660       -.79111E-08    .12431E-01
  21  Prefactor     .77716E-09    8.0633       -.49484E-07** at limit **
  22  norm          7.1543        8.9545        .53042E-07   -.20612E-02
  23  Normalizat    .98869        .18097       -.21262E-05   -.26071E-05
  24  Prefactor     .78637        .20670        .42269E-05   -.12709E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 1.10567e-06
  Prefactor  = 1.32117e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 1.4988e-09
  Prefactor  = 10.4881
  Prefactor  = 0.93757
  Prefactor  = 2.6527
  norm       = 7.86445
  Prefactor  = 15.4132
  Prefactor  = 0
  norm       = 0
  Prefactor  = 7.43294e-07
  Prefactor  = 2.16493e-09
  Prefactor  = 4.76148
  Prefactor  = 3.33067e-10
  Prefactor  = 79.4082
  Prefactor  = 4.30639
  norm       = 1.45424
  Prefactor  = 10.7834
  Prefactor  = 7.77156e-10
  norm       = 7.15429
  Normalizat = 0.98869
  Prefactor  = 0.786368
 **********
 **   18 **HESSE 
 **********

 FCN=   6022.371     FROM HESSE     STATUS=OK           447 CALLS     2441 TOTAL
                     EDM=   .88E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        3.1173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .11057E-05    23.777        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .13212E-07    28.885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    35.830        .16349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .14988E-08    12.279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.488        7.8576        .30923E-03   -1.5643    
   7  Prefactor     .93757        11.622        .43411E-03   -1.5689    
   8  Prefactor     2.6527        1.7371        .62552E-03   -1.5675    
   9  norm          7.8645        6.2777        .35698E-03   -1.5652    
  10  Prefactor     15.413        5.1385        .25484E-03   -1.5629    
  11  Prefactor      .0000        4.6291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        4.2924        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .74329E-06    22.256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .21649E-08    15.196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.7615        4.2022        .46107E-03   -1.5664    
  16  Prefactor     .33307E-09    8.4171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     79.408        72.316        .11176E-03   -1.5530    
  18  Prefactor     4.3064        6.3815        .48511E-03   -1.5666    
  19  norm          1.4542        .33714        .46499E-03   -1.5684    
  20  Prefactor     10.783        13.904        .30475E-03   -1.5642    
  21  Prefactor     .77716E-09    8.1037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.1543        9.7475        .37481E-03   -1.5654    
  23  Normalizat    .98869        .15539        .46023E-01   -.93410    
  24  Prefactor     .78637        .17800        .65583E-01   -1.0023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.81446e-08
Minuit parameter uncertainties:
  1  6.9039e-06
  2  0.0102547
  3  0.00123572
  4  7.52236e-05
  5  0.000273233
  6  7.85756
  7  6.6019
  8  1.73705
  9  6.27767
  10  5.13855
  11  1.89404e-07
  12  1.58208e-05
  13  0.00813475
  14  0.000364927
  15  4.20218
  16  0.000109791
  17  72.3169
  18  6.38152
  19  0.337138
  20  13.9042
  21  0.00015866
  22  9.74753
  23  0.155458
  24  0.178126
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  0.000e+00  1.894e-07  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:  7.864e-01  1.781e-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.887e-01  1.555e-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: 8.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/947860/likelihoodResults_692668801_692928001_4FGL_J1018.4+3540_daily_bin1749.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) = 6022.37268146
delta logL = -0.00119324470506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6022.37148831
delta logL = -9.04174157768e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51625E-08   1.0000          .0000       .10000E+07
     2 'Index     '    1.7234       1.0000          .0000       10.000    
     3 'Normalizat'    .98871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78631       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6022.371     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      251 TOTAL
                     EDM=   .37E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .37549        .28623E-02** at limit **
   2  Index         4.0148        1.3392        .16822E-04     .0000    
   3  Normalizat    .98869        1.3191       -.55969E-05    .32356E-04
   4  Prefactor     .78637        1.1353        .79436E-05   -.45286E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 4.01481
  Normalizat = 0.988691
  Prefactor  = 0.786368
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6022.371     FROM HESSE     STATUS=FAILED         9 CALLS      260 TOTAL
                     EDM=   .37E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .37549        .28623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7471        2.3051        .16822E-04   -.19834    
   3  Normalizat    .98869        1.3191       -.55969E-05   -.93410    
   4  Prefactor     .78637        1.1353        .79436E-05   -1.0023    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.67036e-12
Minuit parameter uncertainties:
  1  1.0341e-06
  2  1.35648
  3  1.36683
  4  1.17194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947860': 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): 101
logL (Free Index) = 6022.37148822
delta logL = -2.72848410532e-12

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  0.000e+00  1.034e-06  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  4.015e+00  1.356e+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:  7.864e-01  1.172e+00  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.887e-01  1.367e+00  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/947860/cmap_HighResolution_692668801_692928001_4FGL_J1018.4+3540_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-03', job_status='DONE', photon_flux_upper_limit='8.23e-08', time_completed='2022-12-17 00:44:18.977798', job_id='947860', GAL2='0.79', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1671266658.98', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='-2.73e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1749' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 00:44:19 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 947860: <4FGL_J1018.4+3540_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1749> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Dec 17 00:30:22 2022
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:30:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:30:24 2022
Terminated at Sat Dec 17 00:44:19 2022
Results reported at Sat Dec 17 00:44:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1749 154.607 35.6802 692668801 692928001 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 :                                   629.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            837 sec.

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

