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


Performing analysis on: 4FGL_J1006.7-2159_daily_bin1747
RA = 151.693, Dec = -21.991
tmin = 692150401, tmax = 692409601
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='795475', job_status='RUN', time_executed='2022-12-11 00:35:52.253066', time_epoch_executed='1670747752.25' WHERE source_name='4FGL J1006.7-2159' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/795475

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/795475/ft1_4FGL_J1006.7-2159_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/795475/ft2_4FGL_J1006.7-2159_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/795475/ft1_4FGL_J1006.7-2159_daily_bin1747.fits outfile=/scratch/kocevski/795475/ft1_filteredMKT_4FGL_J1006.7-2159_daily_bin1747.fits ra=151.693 dec=-21.991 rad=12.0 tmin=692150401.0 tmax=692409601.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.98
user 3.77
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/795475/ft2_4FGL_J1006.7-2159_daily_bin1747.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/795475/ft2_4FGL_J1006.7-2159_daily_bin1747.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/795475/ft1_filteredMKT_4FGL_J1006.7-2159_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/795475/ft1_filtered_4FGL_J1006.7-2159_daily_bin1747.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.51
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 945

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/795475/ft1_filtered_4FGL_J1006.7-2159_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/795475/ft2_4FGL_J1006.7-2159_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/795475/ltcube_692150401_692409601_4FGL_J1006.7-2159_daily_bin1747.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/795475/ft2_4FGL_J1006.7-2159_daily_bin1747.fits
.....................!
real 11.85
user 11.48
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/795475/ft1_filtered_4FGL_J1006.7-2159_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/795475/ft2_4FGL_J1006.7-2159_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/795475/ltcube_692150401_692409601_4FGL_J1006.7-2159_daily_bin1747.fits outfile=/scratch/kocevski/795475/expmap_692150401_692409601_4FGL_J1006.7-2159_daily_bin1747.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/795475/ltcube_692150401_692409601_4FGL_J1006.7-2159_daily_bin1747.fits
.....................!
real 192.82
user 187.70
sys 4.79

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 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J1006.7-2159 @ 151.693 -21.991

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/795475/ft1_filtered_4FGL_J1006.7-2159_daily_bin1747.fits scfile=/scratch/kocevski/795475/ft2_4FGL_J1006.7-2159_daily_bin1747.fits outfile=/scratch/kocevski/795475/cmap_692150401_692409601_4FGL_J1006.7-2159_daily_bin1747.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=151.693 yref=-21.991 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/795475/ft1_filtered_4FGL_J1006.7-2159_daily_bin1747.fits scfile=/scratch/kocevski/795475/ft2_4FGL_J1006.7-2159_daily_bin1747.fits outfile=/scratch/kocevski/795475/cmap_HighResolution_692150401_692409601_4FGL_J1006.7-2159_daily_bin1747.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=151.693 yref=-21.991 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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/795475/ft1_filtered_4FGL_J1006.7-2159_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/795475/ft2_4FGL_J1006.7-2159_daily_bin1747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/795475/Model_4FGL_J1006.7-2159_daily_bin1747.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/795475/ft1_filtered_4FGL_J1006.7-2159_daily_bin1747.fits.....................!
real 99.07
user 97.73
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/795475/ft1_filtered_4FGL_J1006.7-2159_daily_bin1747.fits', '/scratch/kocevski/795475/ft2_4FGL_J1006.7-2159_daily_bin1747.fits', expMap='/scratch/kocevski/795475/expmap_692150401_692409601_4FGL_J1006.7-2159_daily_bin1747.fits', expCube='/scratch/kocevski/795475/ltcube_692150401_692409601_4FGL_J1006.7-2159_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/795475/Model_4FGL_J1006.7-2159_daily_bin1747.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1006.7-2159'

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  1.522e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
269        alpha:  2.294e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
270         beta:  4.599e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
271           Eb:  5.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/795475/ft1_filtered_4FGL_J1006.7-2159_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/795475/ft2_4FGL_J1006.7-2159_daily_bin1747.fits
Exposure map: /scratch/kocevski/795475/expmap_692150401_692409601_4FGL_J1006.7-2159_daily_bin1747.fits
Exposure cube: /scratch/kocevski/795475/ltcube_692150401_692409601_4FGL_J1006.7-2159_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/795475/Model_4FGL_J1006.7-2159_daily_bin1747.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) = 10087.8128864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23260       1.0000          .0000       .10000E+07
     2 'Prefactor '    .33426E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    14.302       1.0000          .0000       .10000E+07
     4 'norm      '    .29235       1.0000          .0000       .10000E+07
     5 'norm      '    .20655E-01   1.0000          .0000       .10000E+07
     6 'norm      '    4.1262       1.0000          .0000       .10000E+07
     7 'norm      '    .23853E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .31021       1.0000          .0000       .10000E+07
     9 'norm      '    .12069E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    14.403       1.0000          .0000       .10000E+07
    11 'Prefactor '    .19809E-04   1.0000          .0000       .10000E+07
    12 'norm      '    6.2669       1.0000          .0000       .10000E+07
    13 'norm      '    1.4695       1.0000          .0000       .10000E+07
    14 'Prefactor '    .75577E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .13867E-02   1.0000          .0000       .10000E+07
    16 'norm      '    2.0294       1.0000          .0000       .10000E+07
    17 'Prefactor '    .94260E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.6599       1.0000          .0000       .10000E+07
    19 'Prefactor '    .38478E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0851       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93961       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10087.80     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     1629 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48594E-06    76.791        .37766E-05** at limit **
   2  Prefactor      .0000        5.2324        .22878E-05** at limit **
   3  Prefactor     14.291        1.0809        .26543E-07   -.18636E-02
   4  norm          .27958        10.297       -.15537E-06    .17692E-02
   5  norm          .22099E-01    1.2376       -.10073E-05** at limit **
   6  norm          4.1006        5.4662       -.11870E-06   -.22378E-02
   7  norm          .28422E-07    39.768       -.18437E-05** at limit **
   8  norm          .30842        .70169       -.14534E-06    .79155E-02
   9  norm          .22871E-07    3.6101       -.13284E-05** at limit **
  10  Prefactor     14.151        6.8916        .10595E-05   -.57210E-01
  11  Prefactor     .22204E-09    3.1375        .26952E-06** at limit **
  12  norm          6.2760        5.8790        .11462E-06    .43798E-02
  13  norm          1.4335        4.6256       -.28792E-06    .13146E-02
  14  Prefactor      .0000        1.6070       -.26954E-06** at limit **
  15  Prefactor     .71054E-08    6.1730       -.17534E-05** at limit **
  16  norm          2.0314        2.4514       -.82872E-07    .11658E-02
  17  Prefactor     .31808E-07    2.9591        .97592E-06** at limit **
  18  Prefactor     1.6574        2.7104       -.25140E-06    .97024E-02
  19  Prefactor     .38858E-09    3.1107        .33107E-07** at limit **
  20  Normalizat    1.0860        .18490        .26171E-05    .82492E-03
  21  Prefactor     .93961        .10624        .11746E-05    .10603E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.85945e-07
  Prefactor  = 0
  Prefactor  = 14.2912
  norm       = 0.279577
  norm       = 0.0220991
  norm       = 4.10056
  norm       = 2.84217e-08
  norm       = 0.308423
  norm       = 2.28706e-08
  Prefactor  = 14.1512
  Prefactor  = 2.22045e-10
  norm       = 6.27601
  norm       = 1.43351
  Prefactor  = 0
  Prefactor  = 7.10543e-09
  norm       = 2.03136
  Prefactor  = 3.18079e-08
  Prefactor  = 1.65741
  Prefactor  = 3.88578e-10
  Normalizat = 1.08597
  Prefactor  = 0.939613
 **********
 **   18 **HESSE 
 **********

 FCN=   10087.80     FROM HESSE     STATUS=OK           379 CALLS     2008 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48594E-06    78.606        .11222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        6.4666        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.291        11.869        .26459E-03   -1.5632    
   4  norm          .27958        2.8424        .52041E-02   -1.5697    
   5  norm          .22099E-01    2.1862        .46624E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.1006        5.4838        .49600E-03   -1.5667    
   7  norm          .28422E-07    3.2392        .65945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .30842        .67113        .28456E-02   -1.5697    
   9  norm          .22871E-07    5.2061        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.151        20.190        .26365E-03   -1.5633    
  11  Prefactor     .22204E-09    3.1528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.2760        5.9731        .40075E-03   -1.5658    
  13  norm          1.4335        4.7157        .88628E-03   -1.5684    
  14  Prefactor      .0000        1.6163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .71054E-08    6.9324        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0314        2.4909        .72593E-03   -1.5679    
  17  Prefactor     .31808E-07    5.2926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.6574        2.7606        .81856E-03   -1.5682    
  19  Prefactor     .38858E-09    3.1062        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0860        .16019        .65868E-01   -.90204    
  21  Prefactor     .93961        .89742E-01    .45508E-01   -.94770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30383e-07
Minuit parameter uncertainties:
  1  0.0123608
  2  2.44099e-05
  3  11.8688
  4  1.78288
  5  0.439603
  6  5.48385
  7  0.000607106
  8  0.671133
  9  0.000689813
  10  20.1901
  11  5.40125e-05
  12  5.97308
  13  4.71574
  14  3.04037e-06
  15  0.000444137
  16  2.49088
  17  0.000820698
  18  2.76057
  19  7.01004e-05
  20  0.160258
  21  0.0897558
Done.

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

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  3.084e-01  6.711e-01  0.000e+00  1.000e+06 ( 1.000e-11)
269        alpha:  2.294e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
270         beta:  4.599e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
271           Eb:  5.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  9.396e-01  8.976e-02  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  1.086e+00  1.603e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 151.693 -21.991
Photon Flux Upper Limit: 6.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.27e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/795475/likelihoodResults_692150401_692409601_4FGL_J1006.7-2159_daily_bin1747.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) = 10087.5019987
delta logL = 0.300225745548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10087.299498
delta logL = 0.50272644424

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58462E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96320       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10087.30     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      254 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58482E-01    1.9852        .51040E-03** at limit **
   2  alpha         5.0000        2.5373        .46267    ** at limit **
   3  Normalizat    1.0258        .77114E-01    .67569E-01   -.22577E-04
   4  Prefactor     .96315        .36984E-01    .45805E-01   -.30131E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0584821
  alpha      = 5
  Normalizat = 1.02578
  Prefactor  = 0.963151
 **********
 **   18 **HESSE 
 **********

 FCN=   10087.30     FROM HESSE     STATUS=OK            37 CALLS      291 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58482E-01    .69464E-01    .23409E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        3.4300        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0258        .19495        .29891E-03   -.92172    
   4  Prefactor     .96315        .10851        .17570E-03   -.93968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11264e-11
Minuit parameter uncertainties:
  1  0.0694641
  2  1.92634e-07
  3  0.195085
  4  0.108537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/795475': 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) = 10087.2994978
delta logL = 0.50272664644

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  5.848e-02  6.946e-02  0.000e+00  1.000e+06 ( 1.000e-11)
269        alpha:  5.000e+00  1.926e-07  0.000e+00  5.000e+00 ( 1.000e+00)
270         beta:  4.599e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
271           Eb:  5.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  9.632e-01  1.085e-01  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  1.026e+00  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 151.693 -21.991
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 4.51e-08 +/- 5.33e-08
Energy Flux (Free Index): 6.05e-06 +/- 7.16e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/795475/cmap_HighResolution_692150401_692409601_4FGL_J1006.7-2159_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.27e-05', comment='SUCCESS', energy_flux2='6.05e-06', dlogl='5.03e-01', photon_flux2='4.51e-08', job_status='DONE', time_completed='2022-12-11 00:48:15.473311', photon_index_error2='0.00', photon_index2='5.00', ts='0.23', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='6.48e-08', energy_flux_error2='7.16e-06', EG='1.09', time_epoch_completed='1670748495.47', return_code='0', job_id='795475', GAL2='0.96', EG2='1.03', return_code2='0', photon_flux_error2='5.33e-08', ts2='1.34', photon_index='2.29' WHERE bin_id='1747' AND source_name='4FGL J1006.7-2159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 00:48:15 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 795475: <4FGL_J1006.7-2159_daily_bin1747> in cluster <slac> Done

Job <4FGL_J1006.7-2159_daily_bin1747> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Dec 11 00:35:16 2022
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 00:35:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 00:35:17 2022
Terminated at Sun Dec 11 00:48:16 2022
Results reported at Sun Dec 11 00:48:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1006.7-2159_daily_bin1747 151.693 -21.991 692150401 692409601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1006.7-2159 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   745.04 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             326.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            780 sec.

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

