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


Performing analysis on: 4FGL_J1006.7-2159_daily_bin1779
RA = 151.693, Dec = -21.991
tmin = 700444801, tmax = 700704001
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='17391', job_status='RUN', time_executed='2023-03-17 01:11:41.279207', time_epoch_executed='1679040701.28' WHERE source_name='4FGL J1006.7-2159' and cadence='daily' and bin_id='1779'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17391

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17391/ft1_4FGL_J1006.7-2159_daily_bin1779.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17391/ft2_4FGL_J1006.7-2159_daily_bin1779.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17391/ft1_4FGL_J1006.7-2159_daily_bin1779.fits outfile=/scratch/kocevski/17391/ft1_filteredMKT_4FGL_J1006.7-2159_daily_bin1779.fits ra=151.693 dec=-21.991 rad=12.0 tmin=700444801.0 tmax=700704001.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 5.25
user 5.02
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/17391/ft2_4FGL_J1006.7-2159_daily_bin1779.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/17391/ft1_filteredMKT_4FGL_J1006.7-2159_daily_bin1779.fits evtable="EVENTS" outfile="/scratch/kocevski/17391/ft1_filtered_4FGL_J1006.7-2159_daily_bin1779.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.32
sys 0.16

Number of photons that the gtmktime cut: 771

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17391/ft1_filtered_4FGL_J1006.7-2159_daily_bin1779.fits" evtable="EVENTS" scfile=/scratch/kocevski/17391/ft2_4FGL_J1006.7-2159_daily_bin1779.fits sctable="SC_DATA" outfile=/scratch/kocevski/17391/ltcube_700444801_700704001_4FGL_J1006.7-2159_daily_bin1779.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/17391/ft2_4FGL_J1006.7-2159_daily_bin1779.fits
.....................!
real 12.35
user 12.03
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17391/ft1_filtered_4FGL_J1006.7-2159_daily_bin1779.fits evtable="EVENTS" scfile=/scratch/kocevski/17391/ft2_4FGL_J1006.7-2159_daily_bin1779.fits sctable="SC_DATA" expcube=/scratch/kocevski/17391/ltcube_700444801_700704001_4FGL_J1006.7-2159_daily_bin1779.fits outfile=/scratch/kocevski/17391/expmap_700444801_700704001_4FGL_J1006.7-2159_daily_bin1779.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/17391/ltcube_700444801_700704001_4FGL_J1006.7-2159_daily_bin1779.fits
.....................!
real 190.35
user 185.58
sys 4.46

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/17391/ft1_filtered_4FGL_J1006.7-2159_daily_bin1779.fits scfile=/scratch/kocevski/17391/ft2_4FGL_J1006.7-2159_daily_bin1779.fits outfile=/scratch/kocevski/17391/cmap_700444801_700704001_4FGL_J1006.7-2159_daily_bin1779.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17391/ft1_filtered_4FGL_J1006.7-2159_daily_bin1779.fits scfile=/scratch/kocevski/17391/ft2_4FGL_J1006.7-2159_daily_bin1779.fits outfile=/scratch/kocevski/17391/cmap_HighResolution_700444801_700704001_4FGL_J1006.7-2159_daily_bin1779.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/17391/ft1_filtered_4FGL_J1006.7-2159_daily_bin1779.fits evtable="EVENTS" scfile=/scratch/kocevski/17391/ft2_4FGL_J1006.7-2159_daily_bin1779.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/17391/Model_4FGL_J1006.7-2159_daily_bin1779.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/17391/ft1_filtered_4FGL_J1006.7-2159_daily_bin1779.fits.....................!
real 79.33
user 78.01
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/17391/ft1_filtered_4FGL_J1006.7-2159_daily_bin1779.fits', '/scratch/kocevski/17391/ft2_4FGL_J1006.7-2159_daily_bin1779.fits', expMap='/scratch/kocevski/17391/expmap_700444801_700704001_4FGL_J1006.7-2159_daily_bin1779.fits', expCube='/scratch/kocevski/17391/ltcube_700444801_700704001_4FGL_J1006.7-2159_daily_bin1779.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/17391/Model_4FGL_J1006.7-2159_daily_bin1779.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/17391/ft1_filtered_4FGL_J1006.7-2159_daily_bin1779.fits
Spacecraft file(s): /scratch/kocevski/17391/ft2_4FGL_J1006.7-2159_daily_bin1779.fits
Exposure map: /scratch/kocevski/17391/expmap_700444801_700704001_4FGL_J1006.7-2159_daily_bin1779.fits
Exposure cube: /scratch/kocevski/17391/ltcube_700444801_700704001_4FGL_J1006.7-2159_daily_bin1779.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/17391/Model_4FGL_J1006.7-2159_daily_bin1779.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) = 8200.51112434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.540       1.0000          .0000       .10000E+07
     2 'Prefactor '    .54745E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .10807E-02   1.0000          .0000       .10000E+07
     4 'norm      '    3.7999       1.0000          .0000       .10000E+07
     5 'norm      '    .56722E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .60914E-04   1.0000          .0000       .10000E+07
     7 'norm      '    3.1559       1.0000          .0000       .10000E+07
     8 'norm      '    1.2379       1.0000          .0000       .10000E+07
     9 'norm      '    .15740E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    41.753       1.0000          .0000       .10000E+07
    11 'Prefactor '    9.8094       1.0000          .0000       .10000E+07
    12 'norm      '    .23109E-04   1.0000          .0000       .10000E+07
    13 'norm      '    10.629       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.8605       1.0000          .0000       .10000E+07
    15 'Prefactor '    2.5087       1.0000          .0000       .10000E+07
    16 'norm      '    2.5724       1.0000          .0000       .10000E+07
    17 'Prefactor '    .91886E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    2.2370       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.0034       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.2166       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .77988       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=   8200.503     FROM MIGRAD    STATUS=CONVERGED    119 CALLS     1605 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.339        10.714       -.10554E-05   -.27298E-01
   2  Prefactor     .24647E-07    9.4840       -.19240E-05** at limit **
   3  Prefactor     .49960E-09    5.1743       -.53740E-06** at limit **
   4  norm          3.7869        3.9390        .58280E-07   -.17704E-03
   5  norm          .22204E-09    3.5643       -.18829E-06** at limit **
   6  norm          .66613E-09    2.2341       -.29220E-06** at limit **
   7  norm          3.1590        3.2718       -.50481E-06   -.44954E-01
   8  norm          1.2372        1.0870       -.10289E-06   -.13955E-01
   9  norm          .61062E-09    2.1350       -.31629E-06** at limit **
  10  Prefactor     41.921        20.759        .19837E-05   -.34196E-01
  11  Prefactor     9.8033        2.3730       -.66120E-07    .20890E-01
  12  norm          .58287E-08    11.363        .24679E-05** at limit **
  13  norm          10.589        5.8828        .74371E-06    .52977E-01
  14  Prefactor     1.8570        5.0556        .74043E-07   -.15539E-02
  15  Prefactor     2.5104        4.3748        .37817E-06   -.16284E-01
  16  norm          2.5715        1.9896        .56858E-07    .70582E-02
  17  Prefactor     .14433E-08    6.3777        .47783E-06** at limit **
  18  Prefactor     2.2375        2.5952       -.35744E-07    .34490E-02
  19  Prefactor     2.0048        3.1478        .18379E-06    .39224E-02
  20  Normalizat    1.2166        .20712       -.37364E-05   -.59852E-03
  21  Prefactor     .77990        .11481       -.22929E-05   -.81664E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.3395
  Prefactor  = 2.4647e-08
  Prefactor  = 4.996e-10
  norm       = 3.78692
  norm       = 2.22045e-10
  norm       = 6.66134e-10
  norm       = 3.159
  norm       = 1.23715
  norm       = 6.10623e-10
  Prefactor  = 41.9208
  Prefactor  = 9.80333
  norm       = 5.82867e-09
  norm       = 10.5891
  Prefactor  = 1.857
  Prefactor  = 2.51044
  norm       = 2.57152
  Prefactor  = 1.44329e-09
  Prefactor  = 2.23746
  Prefactor  = 2.00479
  Normalizat = 1.21663
  Prefactor  = 0.7799
 **********
 **   18 **HESSE 
 **********

 FCN=   8200.503     FROM HESSE     STATUS=OK           363 CALLS     1968 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.339        21.387        .21069E-03   -1.5613    
   2  Prefactor     .24647E-07    9.9504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .49960E-09    5.2177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.7869        3.9408        .51758E-03   -1.5669    
   5  norm          .22204E-09    3.5540        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .66613E-09    2.2404        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.1590        8.4221        .57030E-03   -1.5672    
   8  norm          1.2372        1.1077        .10082E-02   -1.5686    
   9  norm          .61062E-09    2.1409        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     41.921        24.931        .15477E-03   -1.5578    
  11  Prefactor     9.8033        12.415        .31970E-03   -1.5645    
  12  norm          .58287E-08    11.622        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.589        7.2575        .30707E-03   -1.5643    
  14  Prefactor     1.8570        5.0802        .76367E-03   -1.5681    
  15  Prefactor     2.5104        8.0907        .64486E-03   -1.5676    
  16  norm          2.5715        2.0167        .63613E-03   -1.5676    
  17  Prefactor     .14433E-08    6.3866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2375        2.6278        .68697E-03   -1.5678    
  19  Prefactor     2.0048        3.1690        .73133E-03   -1.5680    
  20  Normalizat    1.2166        .17789        .62050E-01   -.86090    
  21  Prefactor     .77990        .97282E-01    .43455E-01   -1.0047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.87678e-07
Minuit parameter uncertainties:
  1  21.3875
  2  0.000990043
  3  0.000102189
  4  3.94083
  5  5.70262e-05
  6  7.64761e-05
  7  8.42215
  8  1.10769
  9  7.19802e-05
  10  24.9315
  11  12.4148
  12  0.000519988
  13  7.25753
  14  5.08021
  15  8.0907
  16  2.01666
  17  0.000192669
  18  2.62785
  19  3.16897
  20  0.177981
  21  0.0973037
Done.

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

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  1.237e+00  1.108e+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

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  7.799e-01  9.730e-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.217e+00  1.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.96
Ra Dec: 151.693 -21.991
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 3.74e-08 +/- 3.34e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 1.17e-05

TS (Fixed Index): 1.96
Ra Dec: 151.693 -21.991
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17391/likelihoodResults_700444801_700704001_4FGL_J1006.7-2159_daily_bin1779.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) = 8199.99466109
delta logL = 0.508768962793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8199.977432
delta logL = 0.525998050023

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0954       1.0000          .0000       .10000E+07
     2 'alpha     '    3.0347       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1718       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79487       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=   8199.977     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      202 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0949        11.416        .11386E-02   -.60044E-02
   2  alpha         3.0359        4.0103        .42409        .96909E-05
   3  Normalizat    1.1718        .50552E-01    .63039E-01   -.82990E-03
   4  Prefactor     .79497        .28563E-01    .43650E-01   -.13821E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.09492
  alpha      = 3.03586
  Normalizat = 1.17182
  Prefactor  = 0.794967
 **********
 **   18 **HESSE 
 **********

 FCN=   8199.977     FROM HESSE     STATUS=OK            29 CALLS      231 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0949        1.0808        .61136E-05   -1.5687    
   2  alpha         3.0359        .82061        .17165E-01    .21602    
   3  Normalizat    1.1718        .21104        .27884E-03   -.87478    
   4  Prefactor     .79497        .11568        .18505E-03   -.99914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.8435e-10
Minuit parameter uncertainties:
  1  1.08085
  2  0.836902
  3  0.211198
  4  0.115712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17391': 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) = 8199.97742825
delta logL = 0.526001805079

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  1.095e+00  1.081e+00  0.000e+00  1.000e+06 ( 1.000e-11)
269        alpha:  3.036e+00  8.369e-01  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:  7.950e-01  1.157e-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.172e+00  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.08
Ra Dec: 151.693 -21.991
Photon Index (Free Index): 3.04 +/- 0.84
Photon Flux (Free Index): 6.94e-08 +/- 4.92e-08
Energy Flux (Free Index): 1.38e-05 +/- 9.54e-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/17391/cmap_HighResolution_700444801_700704001_4FGL_J1006.7-2159_daily_bin1779.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-05', comment='SUCCESS', photon_flux='3.74e-08', energy_flux2='1.38e-05', photon_flux_error='3.34e-08', dlogl='5.26e-01', energy_flux='1.31e-05', photon_flux2='6.94e-08', job_status='DONE', time_completed='2023-03-17 01:22:23.839223', photon_index_error2='0.84', photon_index2='3.04', ts='1.96', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='9.54e-06', EG='1.22', time_epoch_completed='1679041343.84', return_code='0', job_id='17391', GAL2='0.79', EG2='1.17', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='4.92e-08', ts2='3.08', photon_index='2.29' WHERE bin_id='1779' AND source_name='4FGL J1006.7-2159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 17 01:22:23 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 17391: <4FGL_J1006.7-2159_daily_bin1779> in cluster <slac> Done

Job <4FGL_J1006.7-2159_daily_bin1779> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Mar 17 01:10:18 2023
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 17 01:10:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 17 01:10:19 2023
Terminated at Fri Mar 17 01:22:24 2023
Results reported at Fri Mar 17 01:22:24 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1006.7-2159_daily_bin1779 151.693 -21.991 700444801 700704001 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 :                                   644.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            726 sec.

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

