/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 86 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 = 7382
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1006.7-2159_daily_bin1325
RA = 151.693, Dec = -21.991
tmin = 582768001, tmax = 583027201
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='669450', job_status='RUN', time_executed='2021-09-01 10:32:49.041289', time_epoch_executed='1630517569.04' WHERE source_name='4FGL J1006.7-2159' and cadence='daily' and bin_id='1325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/669450

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/669450/ft1_4FGL_J1006.7-2159_daily_bin1325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/669450/ft2_4FGL_J1006.7-2159_daily_bin1325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/669450/ft1_4FGL_J1006.7-2159_daily_bin1325.fits outfile=/scratch/kocevski/669450/ft1_filteredMKT_4FGL_J1006.7-2159_daily_bin1325.fits ra=151.693 dec=-21.991 rad=12.0 tmin=582768001.0 tmax=583027201.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.73
user 3.36
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/669450/ft1_filtered_4FGL_J1006.7-2159_daily_bin1325.fits" evtable="EVENTS" scfile=/scratch/kocevski/669450/ft2_4FGL_J1006.7-2159_daily_bin1325.fits sctable="SC_DATA" outfile=/scratch/kocevski/669450/ltcube_582768001_583027201_4FGL_J1006.7-2159_daily_bin1325.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/669450/ft2_4FGL_J1006.7-2159_daily_bin1325.fits
.....................!
real 13.36
user 12.14
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/669450/ft1_filtered_4FGL_J1006.7-2159_daily_bin1325.fits evtable="EVENTS" scfile=/scratch/kocevski/669450/ft2_4FGL_J1006.7-2159_daily_bin1325.fits sctable="SC_DATA" expcube=/scratch/kocevski/669450/ltcube_582768001_583027201_4FGL_J1006.7-2159_daily_bin1325.fits outfile=/scratch/kocevski/669450/expmap_582768001_583027201_4FGL_J1006.7-2159_daily_bin1325.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/669450/ltcube_582768001_583027201_4FGL_J1006.7-2159_daily_bin1325.fits
.....................!
real 193.85
user 185.64
sys 6.43

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/669450/ft1_filtered_4FGL_J1006.7-2159_daily_bin1325.fits scfile=/scratch/kocevski/669450/ft2_4FGL_J1006.7-2159_daily_bin1325.fits outfile=/scratch/kocevski/669450/cmap_582768001_583027201_4FGL_J1006.7-2159_daily_bin1325.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.93
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/669450/ft1_filtered_4FGL_J1006.7-2159_daily_bin1325.fits scfile=/scratch/kocevski/669450/ft2_4FGL_J1006.7-2159_daily_bin1325.fits outfile=/scratch/kocevski/669450/cmap_HighResolution_582768001_583027201_4FGL_J1006.7-2159_daily_bin1325.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 1.47
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/669450/ft1_filtered_4FGL_J1006.7-2159_daily_bin1325.fits evtable="EVENTS" scfile=/scratch/kocevski/669450/ft2_4FGL_J1006.7-2159_daily_bin1325.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/669450/Model_4FGL_J1006.7-2159_daily_bin1325.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/669450/ft1_filtered_4FGL_J1006.7-2159_daily_bin1325.fits.....................!
real 100.08
user 95.21
sys 2.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5290       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.8726       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5330       1.0000         .10000E-03   10000.    
     4 'norm      '    .55652       1.0000         .10000E-03   10000.    
     5 'norm      '    .10570E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.6227       1.0000         .10000E-03   10000.    
     7 'norm      '    8.4132       1.0000         .10000E-03   10000.    
     8 'norm      '    4.9403       1.0000         .10000E-03   10000.    
     9 'norm      '    16.650       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8252       1.0000         .10000E-03   10000.    
    12 'norm      '    2.9616       1.0000         .10000E-03   10000.    
    13 'norm      '    .47510E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4742       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7288       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.645       1.0000         .10000E-03   10000.    
    17 'norm      '    9.0789       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1624       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.9563       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1080       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92208       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=   10390.09     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2186 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5302        16.102         .0000        .49236E-04
   2  Prefactor     6.8644        17.178         .0000        .39704E-04
   3  Prefactor     5.5342        7.6255         .0000        .15156E-03
   4  norm          .53977        2.0756         .0000        .80737E-03
   5  norm          .10000E-03    3.6352         .0000    ** at limit **
   6  norm          3.6234        5.7724         .0000        .31486E-03
   7  norm          8.4143        7.3154         .0000        .21628E-03
   8  norm          4.9406        1.3559         .0000        .15697E-03
   9  norm          16.644        9.6682         .0000        .86458E-03
  10  Prefactor     .10000E-03    5.9149         .0000    ** at limit **
  11  Prefactor     8.8254        8.4516         .0000        .29974E-03
  12  norm          2.9311        7.0638         .0000        .43609E-03
  13  norm          .95306E-01    3.9242         .0000        .47145E-03
  14  Prefactor     1.4751        8.6104         .0000        .18231E-01
  15  Prefactor     3.7322        10.403         .0000        .42261E-02
  16  Prefactor     17.642        16.429         .0000        .14034E-03
  17  norm          9.0800        4.5461         .0000        .38261E-03
  18  Prefactor     .10000E-03    5.0295         .0000    ** at limit **
  19  Prefactor     1.1613        7.2993         .0000        .21015E-02
  20  Prefactor     6.9574        5.5373         .0000        .24449E-03
  21  Normalizat    1.1079        .17643         .0000        .33829E-04
  22  Prefactor     .92208        .97233E-01     .0000       -.39317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.53024
  Prefactor  = 6.86444
  Prefactor  = 5.53422
  norm       = 0.53977
  norm       = 0.0001
  norm       = 3.62337
  norm       = 8.4143
  norm       = 4.94063
  norm       = 16.644
  Prefactor  = 0.0001
  Prefactor  = 8.82537
  norm       = 2.93107
  norm       = 0.0953056
  Prefactor  = 1.47507
  Prefactor  = 3.7322
  Prefactor  = 17.6416
  norm       = 9.08004
  Prefactor  = 0.0001
  Prefactor  = 1.16125
  Prefactor  = 6.95736
  Normalizat = 1.10791
  Prefactor  = 0.922084
 **********
 **   18 **HESSE 
 **********

 FCN=   10390.09     FROM HESSE     STATUS=OK           368 CALLS     2554 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5302        16.094        .17087E-03   -1.5238    
   2  Prefactor     6.8644        17.138        .15304E-03   -1.5184    
   3  Prefactor     5.5342        7.6186        .17080E-03   -1.5237    
   4  norm          .53977        7.9248        .27248E-02   -1.5561    
   5  norm          .10000E-03    3.7054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.6234        5.7609        .21227E-03   -1.5327    
   7  norm          8.4143        7.3156        .13821E-03   -1.5128    
   8  norm          4.9406        1.3593        .59134E-04   -1.5263    
   9  norm          16.644        9.6702        .49077E-03   -1.4892    
  10  Prefactor     .10000E-03    5.9228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.8254        8.4434        .13492E-03   -1.5114    
  12  norm          2.9311        7.0059        .23596E-03   -1.5366    
  13  norm          .95306E-01    4.1191        .62362E-01   -1.5646    
  14  Prefactor     1.4751        8.6473        .17689E-02   -1.5465    
  15  Prefactor     3.7322        10.368        .10455E-02   -1.5322    
  16  Prefactor     17.642        15.957        .95348E-04   -1.4868    
  17  norm          9.0800        4.4216        .12385E-03   -1.5105    
  18  Prefactor     .10000E-03    5.0468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.1613        6.4494        .41917E-03   -1.5492    
  20  Prefactor     6.9574        5.5330        .15211E-03   -1.5180    
  21  Normalizat    1.1079        .21013        .30762E-03   -.89498    
  22  Prefactor     .92208        .11719        .18872E-03   -.95374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58849e-09
Minuit parameter uncertainties:
  1  16.1064
  2  17.1505
  3  7.61998
  4  4.13673
  5  5.78272e-07
  6  5.76181
  7  7.31638
  8  1.35928
  9  9.67114
  10  4.99607e-05
  11  8.44458
  12  7.00787
  13  1.25255
  14  7.14426
  15  10.3733
  16  15.9609
  17  4.42178
  18  5.24066e-05
  19  5.474
  20  5.53343
  21  0.210284
  22  0.117225
Done.

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

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  4.941e+00  1.359e+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.221e-01  1.172e-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.108e+00  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.59
Ra Dec: 151.693 -21.991
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 1.49e-07 +/- 4.10e-08
Energy Flux (Fixed Index): 5.23e-05 +/- 1.44e-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) = 10389.8147652
delta logL = 0.274890998893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10389.8132891
delta logL = 0.276367099681

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6444       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5219       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0705       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93655       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=   10389.81     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      241 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6442        16.499        .46688E-02    .25676E-03
   2  alpha         2.5219        3.7418        .23946        .23816E-04
   3  Normalizat    1.0704        .15924        .70538E-01   -.33709E-04
   4  Prefactor     .93657        .74339E-01    .45469E-01   -.21223E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.64425
  alpha      = 2.52186
  Normalizat = 1.07042
  Prefactor  = 0.936572
 **********
 **   18 **HESSE 
 **********

 FCN=   10389.81     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6442        1.3878        .54826E-04   -1.5277    
   2  alpha         2.5219        .31804        .99410E-02    .87447E-02
   3  Normalizat    1.0704        .20982        .31211E-03   -.90707    
   4  Prefactor     .93657        .11629        .18740E-03   -.94875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47928e-11
Minuit parameter uncertainties:
  1  1.38781
  2  0.318907
  3  0.209984
  4  0.11632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/669450': 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) = 10389.8132891
delta logL = 0.276367136694

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  4.644e+00  1.388e+00  1.000e-04  1.000e+04 ( 1.000e-11)
269        alpha:  2.522e+00  3.189e-01  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.366e-01  1.163e-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.070e+00  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 35.15
Ra Dec: 151.693 -21.991
Photon Index (Free Index): 2.52 +/- 0.32
Photon Flux (Free Index): 1.72e-07 +/- 5.34e-08
Energy Flux (Free Index): 4.74e-05 +/- 1.38e-05

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/669450/cmap_HighResolution_582768001_583027201_4FGL_J1006.7-2159_daily_bin1325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.49e-07', energy_flux2='4.74e-05', photon_flux_error='4.10e-08', dlogl='2.76e-01', energy_flux='5.23e-05', photon_flux2='1.72e-07', job_status='DONE', time_completed='2021-09-01 10:45:55.550019', photon_index_error2='0.32', photon_index2='2.52', ts='34.59', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='1.11', time_epoch_completed='1630518355.55', return_code='0', job_id='669450', GAL2='0.94', EG2='1.07', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='5.34e-08', ts2='35.15', photon_index='2.29' WHERE bin_id='1325' AND source_name='4FGL J1006.7-2159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:45:55 PDT 2021


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

Job <4FGL_J1006.7-2159_daily_bin1325> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 10:31:01 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:31:03 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:31:03 2021
Terminated at Wed Sep  1 10:45:56 2021
Results reported at Wed Sep  1 10:45:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1006.7-2159_daily_bin1325 151.693 -21.991 582768001 583027201 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 :                                   772.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            895 sec.

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

