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


Performing analysis on: 4FGL_J1006.7-2159_daily_bin1115
RA = 151.693, Dec = -21.991
tmin = 528336001, tmax = 528595201
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='668024', job_status='RUN', time_executed='2021-09-01 10:27:08.638272', time_epoch_executed='1630517228.64' WHERE source_name='4FGL J1006.7-2159' and cadence='daily' and bin_id='1115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/668024

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/668024/ft1_4FGL_J1006.7-2159_daily_bin1115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/668024/ft2_4FGL_J1006.7-2159_daily_bin1115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/668024/ft1_4FGL_J1006.7-2159_daily_bin1115.fits outfile=/scratch/kocevski/668024/ft1_filteredMKT_4FGL_J1006.7-2159_daily_bin1115.fits ra=151.693 dec=-21.991 rad=12.0 tmin=528336001.0 tmax=528595201.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.53
user 3.22
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/668024/ft2_4FGL_J1006.7-2159_daily_bin1115.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/668024/ft1_filteredMKT_4FGL_J1006.7-2159_daily_bin1115.fits evtable="EVENTS" outfile="/scratch/kocevski/668024/ft1_filtered_4FGL_J1006.7-2159_daily_bin1115.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.56
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/668024/ft1_filtered_4FGL_J1006.7-2159_daily_bin1115.fits" evtable="EVENTS" scfile=/scratch/kocevski/668024/ft2_4FGL_J1006.7-2159_daily_bin1115.fits sctable="SC_DATA" outfile=/scratch/kocevski/668024/ltcube_528336001_528595201_4FGL_J1006.7-2159_daily_bin1115.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/668024/ft2_4FGL_J1006.7-2159_daily_bin1115.fits
.....................!
real 12.01
user 11.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/668024/ft1_filtered_4FGL_J1006.7-2159_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/668024/ft2_4FGL_J1006.7-2159_daily_bin1115.fits sctable="SC_DATA" expcube=/scratch/kocevski/668024/ltcube_528336001_528595201_4FGL_J1006.7-2159_daily_bin1115.fits outfile=/scratch/kocevski/668024/expmap_528336001_528595201_4FGL_J1006.7-2159_daily_bin1115.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/668024/ltcube_528336001_528595201_4FGL_J1006.7-2159_daily_bin1115.fits
.....................!
real 190.02
user 185.41
sys 4.20

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/668024/ft1_filtered_4FGL_J1006.7-2159_daily_bin1115.fits scfile=/scratch/kocevski/668024/ft2_4FGL_J1006.7-2159_daily_bin1115.fits outfile=/scratch/kocevski/668024/cmap_528336001_528595201_4FGL_J1006.7-2159_daily_bin1115.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.62
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/668024/ft1_filtered_4FGL_J1006.7-2159_daily_bin1115.fits scfile=/scratch/kocevski/668024/ft2_4FGL_J1006.7-2159_daily_bin1115.fits outfile=/scratch/kocevski/668024/cmap_HighResolution_528336001_528595201_4FGL_J1006.7-2159_daily_bin1115.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.60
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/668024/ft1_filtered_4FGL_J1006.7-2159_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/668024/ft2_4FGL_J1006.7-2159_daily_bin1115.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/668024/Model_4FGL_J1006.7-2159_daily_bin1115.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/668024/ft1_filtered_4FGL_J1006.7-2159_daily_bin1115.fits.....................!
real 77.95
user 75.30
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.4149       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0961       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9249       1.0000         .10000E-03   10000.    
     9 'norm      '    2.9027       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.838       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8597       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5141       1.0000         .10000E-03   10000.    
    13 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .61643E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25753       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.683       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.207       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .79855       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2487       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .81395       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99466       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.

 FCN=   7901.614     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2421 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6175       -.55746E-07** at limit **
   2  Prefactor     .10000E-03    8.1232       -.28356E-06** at limit **
   3  Prefactor     .10000E-03    6.4903        .23015E-06** at limit **
   4  norm          .10000E-03    1.4025        .99110E-08** at limit **
   5  norm          .10000E-03    2.9478        .46953E-08** at limit **
   6  norm          1.4107        9.4246       -.10260E-05   -.64203E-04
   7  norm          1.0877        14.908       -.30961E-05   -.73878E-04
   8  norm          1.9247        1.0582       -.11856E-07    .12272E-03
   9  norm          2.9027        5.5536        .28173E-06   -.94073E-03
  10  Prefactor     17.848        20.060       -.77046E-05   -.12750E-04
  11  Prefactor     7.8601        8.2101       -.19295E-07    .17575E-04
  12  norm          2.5219        3.8530        .72764E-06   -.13658E-02
  13  norm          .10000E-03    3.8582       -.72647E-07** at limit **
  14  Prefactor     .10000E-03    4.2880        .17982E-06** at limit **
  15  Prefactor     .24047E-01    9.7535       -.12998E-05   -.39427E-04
  16  Prefactor     11.706        12.961        .38191E-05    .21145E-03
  17  norm          .10000E-03    1.1690       -.79523E-07** at limit **
  18  Prefactor     12.334        16.572        .22396E-05    .30789E-03
  19  Prefactor     .79788        4.6034       -.18964E-05   -.30572E-03
  20  Prefactor     1.2442        6.9714       -.15400E-05   -.98883E-04
  21  Normalizat    .81418        .18037        .65915E-06    .25092E-03
  22  Prefactor     .99471        .10077        .22653E-06    .36934E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.41065
  norm       = 1.08767
  norm       = 1.92471
  norm       = 2.90273
  Prefactor  = 17.8475
  Prefactor  = 7.86006
  norm       = 2.52187
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0240473
  Prefactor  = 11.7058
  norm       = 0.0001
  Prefactor  = 12.3336
  Prefactor  = 0.797879
  Prefactor  = 1.24419
  Normalizat = 0.814177
  Prefactor  = 0.994709
 **********
 **   18 **HESSE 
 **********

 FCN=   7901.614     FROM HESSE     STATUS=OK           356 CALLS     2777 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.1293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.5420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.4065        .10279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.9837        .14901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4107        9.5858        .36399E-03   -1.5470    
   7  norm          1.0877        15.601        .45520E-03   -1.5499    
   8  norm          1.9247        1.0589        .29944E-04   -1.5430    
   9  norm          2.9027        6.4059        .11925E-02   -1.5367    
  10  Prefactor     17.848        19.819        .94830E-04   -1.4863    
  11  Prefactor     7.8601        8.2327        .14303E-03   -1.5147    
  12  norm          2.5219        5.9704        .12884E-02   -1.5390    
  13  norm          .10000E-03    3.8990        .17048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.943        .35512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .24047E-01    17.471        .71996E-01   -1.5677    
  16  Prefactor     11.706        12.819        .11720E-03   -1.5024    
  17  norm          .10000E-03    1.1763        .93672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.334        17.127        .11465E-03   -1.5005    
  19  Prefactor     .79788        4.5867        .34340E-03   -1.5529    
  20  Prefactor     1.2442        7.1371        .40039E-03   -1.5485    
  21  Normalizat    .81418        .21503        .31763E-03   -.99545    
  22  Prefactor     .99471        .12204        .16659E-03   -.92906    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66538e-09
Minuit parameter uncertainties:
  1  1.46036e-06
  2  1.76424e-06
  3  4.28685e-06
  4  3.3304e-07
  5  3.49295e-08
  6  7.35593
  7  8.24078
  8  1.0589
  9  6.40739
  10  19.8265
  11  8.23389
  12  5.97184
  13  3.94876e-06
  14  0.000315993
  15  1.29402
  16  12.8215
  17  9.44411e-06
  18  17.1343
  19  3.82623
  20  5.96068
  21  0.215257
  22  0.122071
Done.

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

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  1.925e+00  1.059e+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.947e-01  1.221e-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:  8.142e-01  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.24
Ra Dec: 151.693 -21.991
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 5.81e-08 +/- 3.20e-08
Energy Flux (Fixed Index): 2.04e-05 +/- 1.12e-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) = 7901.44736745
delta logL = 0.166563603731

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7901.44350429
delta logL = 0.170426756608

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9716       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0418       1.0000          .0000       5.0000    
     3 'Normalizat'    .82638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99025       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=   7901.444     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9718        1.5140        .73823E-02   -.26570E-02
   2  alpha         2.0418        .50511        .33170       -.30330E-04
   3  Normalizat    .82658        .17415        .71289E-01   -.18347E-03
   4  Prefactor     .99017        .10038        .46145E-01   -.17835E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.97182
  alpha      = 2.04183
  Normalizat = 0.826579
  Prefactor  = 0.990166
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9718        1.1065        .67375E-04   -1.5427    
   2  alpha         2.0418        .41794        .12981E-01   -.18431    
   3  Normalizat    .82658        .20957        .31546E-03   -.99090    
   4  Prefactor     .99017        .12067        .16692E-03   -.93058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42215e-10
Minuit parameter uncertainties:
  1  1.10654
  2  0.419981
  3  0.209774
  4  0.120707
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/668024': 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) = 7901.44350371
delta logL = 0.170427341645

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  1.972e+00  1.107e+00  1.000e-04  1.000e+04 ( 1.000e-11)
269        alpha:  2.042e+00  4.200e-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.902e-01  1.207e-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:  8.266e-01  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.58
Ra Dec: 151.693 -21.991
Photon Index (Free Index): 2.04 +/- 0.42
Photon Flux (Free Index): 4.91e-08 +/- 3.20e-08
Energy Flux (Free Index): 2.53e-05 +/- 1.77e-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/668024/cmap_HighResolution_528336001_528595201_4FGL_J1006.7-2159_daily_bin1115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.81e-08', energy_flux2='2.53e-05', photon_flux_error='3.20e-08', dlogl='1.70e-01', energy_flux='2.04e-05', photon_flux2='4.91e-08', job_status='DONE', time_completed='2021-09-01 10:38:09.385698', photon_index_error2='0.42', photon_index2='2.04', ts='8.24', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.77e-05', EG='0.81', time_epoch_completed='1630517889.39', return_code='0', job_id='668024', GAL2='0.99', EG2='0.83', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='3.20e-08', ts2='8.58', photon_index='2.29' WHERE bin_id='1115' AND source_name='4FGL J1006.7-2159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:38:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 668024: <4FGL_J1006.7-2159_daily_bin1115> in cluster <slac> Done

Job <4FGL_J1006.7-2159_daily_bin1115> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 10:25:56 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:25:57 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:25:57 2021
Terminated at Wed Sep  1 10:38:10 2021
Results reported at Wed Sep  1 10:38:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1006.7-2159_daily_bin1115 151.693 -21.991 528336001 528595201 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 :                                   657.01 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 :                                   732 sec.
    Turnaround time :                            734 sec.

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

