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


Performing analysis on: 4FGL_J1006.7-2159_daily_bin1751
RA = 151.693, Dec = -21.991
tmin = 693187201, tmax = 693446401
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='75102', job_status='RUN', time_executed='2022-12-23 00:31:14.390421', time_epoch_executed='1671784274.39' WHERE source_name='4FGL J1006.7-2159' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75102

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75102/ft1_4FGL_J1006.7-2159_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75102/ft2_4FGL_J1006.7-2159_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75102/ft1_4FGL_J1006.7-2159_daily_bin1751.fits outfile=/scratch/kocevski/75102/ft1_filteredMKT_4FGL_J1006.7-2159_daily_bin1751.fits ra=151.693 dec=-21.991 rad=12.0 tmin=693187201.0 tmax=693446401.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.60
user 3.41
sys 0.15

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

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

Number of photons that the gtmktime cut: 730

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75102/ft1_filtered_4FGL_J1006.7-2159_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/75102/ft2_4FGL_J1006.7-2159_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/75102/ltcube_693187201_693446401_4FGL_J1006.7-2159_daily_bin1751.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/75102/ft2_4FGL_J1006.7-2159_daily_bin1751.fits
.....................!
real 12.74
user 12.29
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75102/ft1_filtered_4FGL_J1006.7-2159_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/75102/ft2_4FGL_J1006.7-2159_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/75102/ltcube_693187201_693446401_4FGL_J1006.7-2159_daily_bin1751.fits outfile=/scratch/kocevski/75102/expmap_693187201_693446401_4FGL_J1006.7-2159_daily_bin1751.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/75102/ltcube_693187201_693446401_4FGL_J1006.7-2159_daily_bin1751.fits
.....................!
real 192.02
user 185.63
sys 5.52

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/75102/ft1_filtered_4FGL_J1006.7-2159_daily_bin1751.fits scfile=/scratch/kocevski/75102/ft2_4FGL_J1006.7-2159_daily_bin1751.fits outfile=/scratch/kocevski/75102/cmap_693187201_693446401_4FGL_J1006.7-2159_daily_bin1751.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75102/ft1_filtered_4FGL_J1006.7-2159_daily_bin1751.fits scfile=/scratch/kocevski/75102/ft2_4FGL_J1006.7-2159_daily_bin1751.fits outfile=/scratch/kocevski/75102/cmap_HighResolution_693187201_693446401_4FGL_J1006.7-2159_daily_bin1751.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.55
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/75102/ft1_filtered_4FGL_J1006.7-2159_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/75102/ft2_4FGL_J1006.7-2159_daily_bin1751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/75102/Model_4FGL_J1006.7-2159_daily_bin1751.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/75102/ft1_filtered_4FGL_J1006.7-2159_daily_bin1751.fits.....................!
real 76.02
user 74.58
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66122E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    7.1727       1.0000          .0000       .10000E+07
     3 'Prefactor '    .38621E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .65011       1.0000          .0000       .10000E+07
     5 'norm      '    3.5106       1.0000          .0000       .10000E+07
     6 'norm      '    .10808E-03   1.0000          .0000       .10000E+07
     7 'norm      '    5.5086       1.0000          .0000       .10000E+07
     8 'norm      '    .78768       1.0000          .0000       .10000E+07
     9 'norm      '    .62217E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .54157       1.0000          .0000       .10000E+07
    11 'Prefactor '    .12032E-05   1.0000          .0000       .10000E+07
    12 'norm      '    .87301E-02   1.0000          .0000       .10000E+07
    13 'norm      '    8.5797       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.4067       1.0000          .0000       .10000E+07
    15 'Prefactor '    10.741       1.0000          .0000       .10000E+07
    16 'norm      '    .12390E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .46702E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    9.4861       1.0000          .0000       .10000E+07
    19 'Prefactor '    9.1252       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1395       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99983       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=   7957.821     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1324 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37909E-06    13.550        .65771E-07** at limit **
   2  Prefactor     7.1922        1.1237       -.89905E-08   -.18828E-03
   3  Prefactor     .38858E-09    7.6751       -.41784E-06** at limit **
   4  norm          .66638        2.4087        .37840E-06    .13198E-02
   5  norm          3.5021        5.0106        .75613E-07    .64493E-03
   6  norm          .55511E-10    2.2841       -.15792E-06** at limit **
   7  norm          5.5060        1.4162       -.45761E-07   -.83917E-02
   8  norm          .78790        1.2263        .37546E-06    .13009E-02
   9  norm           .0000        3.3115       -.23520E-06** at limit **
  10  Prefactor     .17946        109.87       -.34638E-05** at limit **
  11  Prefactor     .10299E-05    14.689        .32632E-05** at limit **
  12  norm          .37938E-01    166.87       -.83658E-06** at limit **
  13  norm          8.5777        8.1311       -.14658E-06    .81949E-02
  14  Prefactor     2.4063        3.7160       -.25496E-06    .11330E-02
  15  Prefactor     10.729        10.387        .18973E-06    .22707E-01
  16  norm           .0000        1.4656        .48316E-07** at limit **
  17  Prefactor     .33307E-09    4.2839       -.42843E-06** at limit **
  18  Prefactor     9.5052        5.1291       -.38760E-06   -.47176E-02
  19  Prefactor     9.1211        7.4246        .54395E-06    .11500E-01
  20  Normalizat    1.1398        .24423       -.12389E-04   -.10707E-03
  21  Prefactor     .99983        .13517        .53455E-05   -.13395E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.79086e-07
  Prefactor  = 7.19221
  Prefactor  = 3.88578e-10
  norm       = 0.666379
  norm       = 3.50209
  norm       = 5.55112e-11
  norm       = 5.50602
  norm       = 0.787901
  norm       = 0
  Prefactor  = 0.179464
  Prefactor  = 1.0299e-06
  norm       = 0.0379376
  norm       = 8.57767
  Prefactor  = 2.40626
  Prefactor  = 10.7293
  norm       = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 9.5052
  Prefactor  = 9.12112
  Normalizat = 1.13979
  Prefactor  = 0.999827
 **********
 **   18 **HESSE 
 **********

 FCN=   7957.821     FROM HESSE     STATUS=OK           375 CALLS     1699 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37909E-06    13.660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.1922        19.682        .37430E-03   -1.5654    
   3  Prefactor     .38858E-09    7.6934        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .66638        2.4295        .64854E-03   -1.5692    
   5  norm          3.5021        5.1705        .53933E-03   -1.5671    
   6  norm          .55511E-10    2.2932        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.5060        12.063        .42785E-03   -1.5661    
   8  norm          .78790        1.2365        .53858E-03   -1.5690    
   9  norm           .0000        3.3150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .17946        19.259        .10473E-01   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10299E-05    14.897        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .37938E-01    5.7866        .66877E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.5777        8.2551        .34198E-03   -1.5649    
  14  Prefactor     2.4063        3.7286        .65969E-03   -1.5677    
  15  Prefactor     10.729        10.428        .30545E-03   -1.5642    
  16  norm           .0000        1.4658        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .33307E-09    4.3070        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.5052        5.1443        .32514E-03   -1.5646    
  19  Prefactor     9.1211        7.4453        .33154E-03   -1.5648    
  20  Normalizat    1.1398        .20537        .71321E-01   -.88484    
  21  Prefactor     .99983        .11155        .46265E-01   -.92735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98987e-07
Minuit parameter uncertainties:
  1  0.00455121
  2  19.6822
  3  0.000111556
  4  2.42951
  5  5.17046
  6  1.96747e-05
  7  12.0627
  8  1.23648
  9  1.81987e-05
  10  3.71824
  11  0.0078341
  12  0.937084
  13  8.25507
  14  3.72862
  15  10.4282
  16  2.28859e-06
  17  7.7424e-05
  18  5.14433
  19  7.4453
  20  0.205519
  21  0.111577
Done.

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

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  7.879e-01  1.236e+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:  9.998e-01  1.116e-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.140e+00  2.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/75102/likelihoodResults_693187201_693446401_4FGL_J1006.7-2159_daily_bin1751.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) = 7957.80343301
delta logL = 0.0178128663101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7957.80315297
delta logL = 0.0180929072403

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .78533       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4569       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1351       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0013       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7957.803     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      273 TOTAL
                     EDM=   .63E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .78361        1.2153        .11263E-04    .58364E-03
   2  alpha         2.4554        .86050        .25428E-01    .11307E-05
   3  Normalizat    1.1352        .24253        .31616E-03    .17979E-06
   4  Prefactor     1.0014        .13452        .18571E-03    .24487E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.783608
  alpha      = 2.4554
  Normalizat = 1.13517
  Prefactor  = 1.00136
 **********
 **   18 **HESSE 
 **********

 FCN=   7957.803     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .61E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .78361        1.1949        .22525E-05   -1.5690    
   2  alpha         2.4554        .84667        .10171E-02   -.17839E-01
   3  Normalizat    1.1352        .24282        .12646E-04   -.88630    
   4  Prefactor     1.0014        .13462        .74284E-05   -.92684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05773e-13
Minuit parameter uncertainties:
  1  1.19486
  2  0.863763
  3  0.24306
  4  0.134663
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75102': 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) = 7957.80314956
delta logL = 0.0180963180019

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  7.836e-01  1.195e+00  0.000e+00  1.000e+06 ( 1.000e-11)
269        alpha:  2.455e+00  8.638e-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:  1.001e+00  1.347e-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.135e+00  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
Ra Dec: 151.693 -21.991

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/75102/cmap_HighResolution_693187201_693446401_4FGL_J1006.7-2159_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.76e-05', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2022-12-23 00:41:22.480187', job_id='75102', GAL2='1.00', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1671784882.48', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.81e-02', ts2='0.53', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='1751' AND source_name='4FGL J1006.7-2159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:41:22 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 75102: <4FGL_J1006.7-2159_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1006.7-2159_daily_bin1751> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Dec 23 00:30:14 2022
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:30:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:30:14 2022
Terminated at Fri Dec 23 00:41:23 2022
Results reported at Fri Dec 23 00:41:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1006.7-2159_daily_bin1751 151.693 -21.991 693187201 693446401 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 :                                   609.39 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             348.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   668 sec.
    Turnaround time :                            669 sec.

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

