/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 228 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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 = 7493
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1006.7-2159_daily_bin193
RA = 151.693, Dec = -21.991
tmin = 289353601, tmax = 289612801
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='664407', job_status='RUN', time_executed='2021-09-01 10:20:04.039442', time_epoch_executed='1630516804.04' WHERE source_name='4FGL J1006.7-2159' and cadence='daily' and bin_id='193'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/664407

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/664407/ft1_4FGL_J1006.7-2159_daily_bin193.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/664407/ft2_4FGL_J1006.7-2159_daily_bin193.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/664407/ft1_4FGL_J1006.7-2159_daily_bin193.fits outfile=/scratch/kocevski/664407/ft1_filteredMKT_4FGL_J1006.7-2159_daily_bin193.fits ra=151.693 dec=-21.991 rad=12.0 tmin=289353601.0 tmax=289612801.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.67
user 3.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/664407/ft1_filtered_4FGL_J1006.7-2159_daily_bin193.fits" evtable="EVENTS" scfile=/scratch/kocevski/664407/ft2_4FGL_J1006.7-2159_daily_bin193.fits sctable="SC_DATA" outfile=/scratch/kocevski/664407/ltcube_289353601_289612801_4FGL_J1006.7-2159_daily_bin193.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/664407/ft2_4FGL_J1006.7-2159_daily_bin193.fits
.....................!
real 12.67
user 12.24
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/664407/ft1_filtered_4FGL_J1006.7-2159_daily_bin193.fits evtable="EVENTS" scfile=/scratch/kocevski/664407/ft2_4FGL_J1006.7-2159_daily_bin193.fits sctable="SC_DATA" expcube=/scratch/kocevski/664407/ltcube_289353601_289612801_4FGL_J1006.7-2159_daily_bin193.fits outfile=/scratch/kocevski/664407/expmap_289353601_289612801_4FGL_J1006.7-2159_daily_bin193.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/664407/ltcube_289353601_289612801_4FGL_J1006.7-2159_daily_bin193.fits
.....................!
real 191.47
user 186.33
sys 4.58

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/664407/ft1_filtered_4FGL_J1006.7-2159_daily_bin193.fits scfile=/scratch/kocevski/664407/ft2_4FGL_J1006.7-2159_daily_bin193.fits outfile=/scratch/kocevski/664407/cmap_289353601_289612801_4FGL_J1006.7-2159_daily_bin193.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/664407/ft1_filtered_4FGL_J1006.7-2159_daily_bin193.fits scfile=/scratch/kocevski/664407/ft2_4FGL_J1006.7-2159_daily_bin193.fits outfile=/scratch/kocevski/664407/cmap_HighResolution_289353601_289612801_4FGL_J1006.7-2159_daily_bin193.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.57
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/664407/ft1_filtered_4FGL_J1006.7-2159_daily_bin193.fits', '/scratch/kocevski/664407/ft2_4FGL_J1006.7-2159_daily_bin193.fits', expMap='/scratch/kocevski/664407/expmap_289353601_289612801_4FGL_J1006.7-2159_daily_bin193.fits', expCube='/scratch/kocevski/664407/ltcube_289353601_289612801_4FGL_J1006.7-2159_daily_bin193.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/664407/Model_4FGL_J1006.7-2159_daily_bin193.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  1.000e-04  1.000e+04 ( 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  0.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/664407/ft1_filtered_4FGL_J1006.7-2159_daily_bin193.fits
Spacecraft file(s): /scratch/kocevski/664407/ft2_4FGL_J1006.7-2159_daily_bin193.fits
Exposure map: /scratch/kocevski/664407/expmap_289353601_289612801_4FGL_J1006.7-2159_daily_bin193.fits
Exposure cube: /scratch/kocevski/664407/ltcube_289353601_289612801_4FGL_J1006.7-2159_daily_bin193.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/664407/Model_4FGL_J1006.7-2159_daily_bin193.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) = 9007.51707822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9467       1.0000         .10000E-03   10000.    
     4 'norm      '    10.872       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .80355       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9957       1.0000         .10000E-03   10000.    
     9 'norm      '    11.626       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4707       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5222       1.0000         .10000E-03   10000.    
    12 'norm      '    12.723       1.0000         .10000E-03   10000.    
    13 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9952       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.2544       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5669       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6937       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14037E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0019       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92843       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9007.494     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2026 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8949         .0000    ** at limit **
   2  Prefactor     .10000E-03    13.612         .0000    ** at limit **
   3  Prefactor     2.9471        10.799         .0000        .46204E-02
   4  norm          10.872        5.8514         .0000        .12924E-03
   5  norm          .10000E-03    3.4384         .0000    ** at limit **
   6  norm          .10000E-03    1.9766         .0000    ** at limit **
   7  norm          .80337        9.8593         .0000        .37709E-01
   8  norm          1.9956        1.1109         .0000        .52749E-03
   9  norm          11.626        9.4768         .0000        .14901E-02
  10  Prefactor     9.4683        13.774         .0000        .20640E-02
  11  Prefactor     2.5245        8.7369         .0000        .61589E-02
  12  norm          12.719        8.5265         .0000        .13692E-03
  13  norm          .10000E-03    6.2383         .0000    ** at limit **
  14  Prefactor     .10000E-03    1.3035         .0000    ** at limit **
  15  Prefactor     2.9970        10.214         .0000        .49857E-02
  16  Prefactor     8.2540        9.9021         .0000       -.12915E-03
  17  norm          .10000E-03    .86640         .0000    ** at limit **
  18  Prefactor     5.5663        10.093         .0000        .55689E-03
  19  Prefactor     4.6937        4.0379         .0000        .12786E-01
  20  Prefactor     .10000E-03    2.4755         .0000    ** at limit **
  21  Normalizat    1.0020        .17167         .0000        .12432E-04
  22  Prefactor     .92842        .97327E-01     .0000       -.24472E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 2.94707
  norm       = 10.8723
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.803373
  norm       = 1.99565
  norm       = 11.6257
  Prefactor  = 9.46832
  Prefactor  = 2.52448
  norm       = 12.7189
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.99703
  Prefactor  = 8.25401
  norm       = 0.0001
  Prefactor  = 5.56633
  Prefactor  = 4.69367
  Prefactor  = 0.000100001
  Normalizat = 1.00195
  Prefactor  = 0.928416
 **********
 **   18 **HESSE 
 **********

 FCN=   9007.494     FROM HESSE     STATUS=OK           348 CALLS     2374 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.9471        10.796        .11830E-02   -1.5365    
   4  norm          10.872        5.8549        .12151E-03   -1.5048    
   5  norm          .10000E-03    3.4811        .17182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.9779        .13031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .80337        10.132        .24906E-02   -1.5529    
   8  norm          1.9956        1.1077        .71174E-04   -1.5425    
   9  norm          11.626        9.4751        .58745E-03   -1.5026    
  10  Prefactor     9.4683        13.761        .13022E-03   -1.5092    
  11  Prefactor     2.5245        8.7056        .12862E-02   -1.5390    
  12  norm          12.719        8.4966        .11230E-03   -1.4995    
  13  norm          .10000E-03    6.4972        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.3052        .10582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9970        10.126        .11728E-02   -1.5362    
  16  Prefactor     8.2540        9.8734        .13954E-03   -1.5133    
  17  norm          .10000E-03    .87176        .86119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.5663        10.005        .17028E-03   -1.5236    
  19  Prefactor     4.6937        4.0250        .82272E-03   -1.5275    
  20  Prefactor     .10000E-03    7.9959        .28973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0020        .20279        .30170E-03   -.92965    
  22  Prefactor     .92842        .11591        .17865E-03   -.95155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.97888e-09
Minuit parameter uncertainties:
  1  0.00024361
  2  4.61614e-05
  3  10.8029
  4  5.85519
  5  6.54893e-07
  6  8.6299e-07
  7  5.70681
  8  1.10771
  9  9.47634
  10  13.7653
  11  8.70994
  12  8.49741
  13  2.36998e-05
  14  4.03635e-07
  15  10.1318
  16  9.87538
  17  6.52528e-07
  18  10.008
  19  4.02521
  20  0.000203319
  21  0.202949
  22  0.115936
Done.

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

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  1.996e+00  1.108e+00  1.000e-04  1.000e+04 ( 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  0.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.284e-01  1.159e-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.002e+00  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.94
Ra Dec: 151.693 -21.991
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 6.03e-08 +/- 3.34e-08
Energy Flux (Fixed Index): 2.11e-05 +/- 1.17e-05

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) = 9006.72093965
delta logL = 0.772715093108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9005.39216802
delta logL = 2.1014867272

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .59948E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    .49703E-04   1.0000          .0000       5.0000    
     3 'Normalizat'    1.0495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92630       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=   9005.392     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      317 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60005E-02    .16425E-01    .15633E-02   -.83635E-02
   2  alpha         .29572E-09    3.5698        .46268    ** at limit **
   3  Normalizat    1.0492        .16656        .66850E-01   -.33362E-04
   4  Prefactor     .92643        .95858E-01    .45339E-01   -.51818E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00600054
  alpha      = 2.95719e-10
  Normalizat = 1.04915
  Prefactor  = 0.926431
 **********
 **   18 **HESSE 
 **********

 FCN=   9005.392     FROM HESSE     STATUS=OK            37 CALLS      354 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .60005E-02    .83589E-02    .67264E-04   -1.5693    
   2  alpha         .29572E-09    .56585        .44865       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0492        .19883        .29573E-03   -.91401    
   4  Prefactor     .92643        .11455        .17897E-03   -.95224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04568e-11
Minuit parameter uncertainties:
  1  0.00835887
  2  2.63861e-05
  3  0.198971
  4  0.114583
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/664407': 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) = 9005.39215776
delta logL = 2.10149698301

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  6.001e-03  8.359e-03  1.000e-04  1.000e+04 ( 1.000e-11)
269        alpha:  2.957e-10  2.639e-05  0.000e+00  5.000e+00 ( 1.000e+00)
270         beta:  4.599e-02  0.000e+00  0.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.264e-01  1.146e-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.049e+00  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.07
Ra Dec: 151.693 -21.991
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 2.60e-09 +/- 3.62e-09
Energy Flux (Free Index): 1.06e-04 +/- 1.47e-04

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/664407/cmap_HighResolution_289353601_289612801_4FGL_J1006.7-2159_daily_bin193.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.03e-08', energy_flux2='1.06e-04', photon_flux_error='3.34e-08', dlogl='2.10e+00', energy_flux='2.11e-05', photon_flux2='2.60e-09', job_status='DONE', time_completed='2021-09-01 10:31:23.538182', photon_index_error2='0.00', photon_index2='0.00', ts='6.94', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.47e-04', EG='1.00', time_epoch_completed='1630517483.54', return_code='0', job_id='664407', GAL2='0.93', EG2='1.05', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='3.62e-09', ts2='11.07', photon_index='2.29' WHERE bin_id='193' AND source_name='4FGL J1006.7-2159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:31:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 664407: <4FGL_J1006.7-2159_daily_bin193> in cluster <slac> Done

Job <4FGL_J1006.7-2159_daily_bin193> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 10:15:41 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:15:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 10:15:43 2021
Terminated at Wed Sep  1 10:31:24 2021
Results reported at Wed Sep  1 10:31:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1006.7-2159_daily_bin193 151.693 -21.991 289353601 289612801 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 :                                   677.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            943 sec.

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

