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


Performing analysis on: 4FGL_J1006.7-2159_daily_bin1344
RA = 151.693, Dec = -21.991
tmin = 587692801, tmax = 587952001
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='669473', job_status='RUN', time_executed='2021-09-01 10:32:48.778249', time_epoch_executed='1630517568.78' WHERE source_name='4FGL J1006.7-2159' and cadence='daily' and bin_id='1344'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/669473

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/669473/ft1_4FGL_J1006.7-2159_daily_bin1344.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/669473/ft2_4FGL_J1006.7-2159_daily_bin1344.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/669473/ft1_4FGL_J1006.7-2159_daily_bin1344.fits outfile=/scratch/kocevski/669473/ft1_filteredMKT_4FGL_J1006.7-2159_daily_bin1344.fits ra=151.693 dec=-21.991 rad=12.0 tmin=587692801.0 tmax=587952001.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.24
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/669473/ft1_filtered_4FGL_J1006.7-2159_daily_bin1344.fits evtable="EVENTS" scfile=/scratch/kocevski/669473/ft2_4FGL_J1006.7-2159_daily_bin1344.fits sctable="SC_DATA" expcube=/scratch/kocevski/669473/ltcube_587692801_587952001_4FGL_J1006.7-2159_daily_bin1344.fits outfile=/scratch/kocevski/669473/expmap_587692801_587952001_4FGL_J1006.7-2159_daily_bin1344.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/669473/ltcube_587692801_587952001_4FGL_J1006.7-2159_daily_bin1344.fits
.....................!
real 191.31
user 185.25
sys 4.48

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/669473/ft1_filtered_4FGL_J1006.7-2159_daily_bin1344.fits scfile=/scratch/kocevski/669473/ft2_4FGL_J1006.7-2159_daily_bin1344.fits outfile=/scratch/kocevski/669473/cmap_587692801_587952001_4FGL_J1006.7-2159_daily_bin1344.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.66
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/669473/ft1_filtered_4FGL_J1006.7-2159_daily_bin1344.fits scfile=/scratch/kocevski/669473/ft2_4FGL_J1006.7-2159_daily_bin1344.fits outfile=/scratch/kocevski/669473/cmap_HighResolution_587692801_587952001_4FGL_J1006.7-2159_daily_bin1344.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.72
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.754       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.0104       1.0000         .10000E-03   10000.    
     6 'norm      '    13.943       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3630       1.0000         .10000E-03   10000.    
     8 'norm      '    3.9046       1.0000         .10000E-03   10000.    
     9 'norm      '    9.9598       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.742       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4964       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.6644       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3918       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.742       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16286E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.336       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3750       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73779       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=   8819.694     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2353 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.696       -.92063E-05** at limit **
   2  Prefactor     .10000E-03    6.6756       -.73016E-07** at limit **
   3  Prefactor     14.755        10.357       -.24708E-07    .24866E-04
   4  norm          .10000E-03    2.4838        .12647E-07** at limit **
   5  norm          4.0113        5.2135        .14654E-06   -.19803E-03
   6  norm          13.943        8.1141        .78673E-08    .20762E-04
   7  norm          1.3647        4.0572       -.19467E-06   -.27239E-03
   8  norm          3.9048        1.3125        .43349E-07    .15440E-03
   9  norm          9.9592        8.4199        .16791E-07    .21911E-04
  10  Prefactor     16.742        19.480       -.66340E-06   -.18851E-04
  11  Prefactor     .10000E-03    4.3729        .23924E-05** at limit **
  12  norm          .10000E-03    4.3873       -.29273E-05** at limit **
  13  norm          1.4959        6.1811       -.22977E-06   -.17174E-04
  14  Prefactor     8.6647        6.0671       -.13172E-07    .16442E-04
  15  Prefactor     2.3918        11.638        .31349E-06   -.73916E-04
  16  Prefactor     .10000E-03    9.3168        .41880E-06** at limit **
  17  norm          11.742        4.3174       -.26989E-06   -.12227E-02
  18  Prefactor     .10000E-03    15.834       -.72671E-05** at limit **
  19  Prefactor     .10033E-03    3.2055        .19524E-05** at limit **
  20  Prefactor     17.337        7.5422       -.96411E-08   -.55767E-04
  21  Normalizat    1.3748        .18747       -.55570E-06    .86723E-04
  22  Prefactor     .73789        .10063        .10643E-05    .37593E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 14.7548
  norm       = 0.0001
  norm       = 4.01126
  norm       = 13.9431
  norm       = 1.36471
  norm       = 3.9048
  norm       = 9.9592
  Prefactor  = 16.7415
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.49592
  Prefactor  = 8.66468
  Prefactor  = 2.39179
  Prefactor  = 0.0001
  norm       = 11.7421
  Prefactor  = 0.000100001
  Prefactor  = 0.000100335
  Prefactor  = 17.3366
  Normalizat = 1.37485
  Prefactor  = 0.737892
 **********
 **   18 **HESSE 
 **********

 FCN=   8819.694     FROM HESSE     STATUS=OK           352 CALLS     2705 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.6764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.755        10.364        .10428E-03   -1.4940    
   4  norm          .10000E-03    2.5119        .14449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.0113        5.3612        .10069E-02   -1.5307    
   6  norm          13.943        8.1175        .10727E-03   -1.4961    
   7  norm          1.3647        14.686        .18696E-02   -1.5474    
   8  norm          3.9048        1.3170        .59689E-04   -1.5313    
   9  norm          9.9592        8.4223        .12697E-03   -1.5077    
  10  Prefactor     16.742        19.505        .97884E-04   -1.4889    
  11  Prefactor     .10000E-03    4.3896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.4119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4959        6.2106        .35021E-03   -1.5463    
  14  Prefactor     8.6647        6.0734        .13618E-03   -1.5119    
  15  Prefactor     2.3918        13.397        .13240E-02   -1.5399    
  16  Prefactor     .10000E-03    9.3404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.742        4.2082        .10861E-03   -1.5022    
  18  Prefactor     .10000E-03    16.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10033E-03    19.557        .28725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.337        7.5509        .96193E-04   -1.4875    
  21  Normalizat    1.3748        .22752        .28095E-03   -.81359    
  22  Prefactor     .73789        .11894        .20204E-03   -1.0206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6615e-08
Minuit parameter uncertainties:
  1  0.000468916
  2  3.6668e-06
  3  10.3648
  4  3.667e-06
  5  5.36184
  6  8.11814
  7  8.95622
  8  1.31702
  9  8.42326
  10  19.5122
  11  4.9473e-05
  12  5.94959e-05
  13  6.09696
  14  6.07384
  15  11.3249
  16  7.16229e-06
  17  4.2083
  18  0.000287434
  19  0.00511994
  20  7.55136
  21  0.22769
  22  0.118981
Done.

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

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  3.905e+00  1.317e+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:  7.379e-01  1.190e-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.375e+00  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.20
Ra Dec: 151.693 -21.991
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 1.18e-07 +/- 3.97e-08
Energy Flux (Fixed Index): 4.14e-05 +/- 1.40e-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) = 8819.46389545
delta logL = 0.230326529352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8819.46294402
delta logL = 0.231277963516

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7127       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5406       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3435       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74879       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=   8819.463     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      238 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7120        17.039        .52395E-02    .19630E-03
   2  alpha         2.5408        3.7658        .27042        .40674E-04
   3  Normalizat    1.3437        .13465        .64092E-01    .10981E-04
   4  Prefactor     .74870        .63120E-01    .43047E-01    .16301E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.71197
  alpha      = 2.54082
  Normalizat = 1.34369
  Prefactor  = 0.748703
 **********
 **   18 **HESSE 
 **********

 FCN=   8819.463     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7120        1.3124        .54879E-04   -1.5323    
   2  alpha         2.5408        .37620        .11049E-01    .16328E-01
   3  Normalizat    1.3437        .22211        .28350E-03   -.82271    
   4  Prefactor     .74870        .11916        .20069E-03   -1.0165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04449e-10
Minuit parameter uncertainties:
  1  1.31237
  2  0.377638
  3  0.222264
  4  0.119203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/669473': 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) = 8819.46294332
delta logL = 0.231278657906

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  3.712e+00  1.312e+00  1.000e-04  1.000e+04 ( 1.000e-11)
269        alpha:  2.541e+00  3.776e-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:  7.487e-01  1.192e-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.344e+00  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.68
Ra Dec: 151.693 -21.991
Photon Index (Free Index): 2.54 +/- 0.38
Photon Flux (Free Index): 1.40e-07 +/- 5.34e-08
Energy Flux (Free Index): 3.79e-05 +/- 1.29e-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/669473/cmap_HighResolution_587692801_587952001_4FGL_J1006.7-2159_daily_bin1344.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.18e-07', energy_flux2='3.79e-05', photon_flux_error='3.97e-08', dlogl='2.31e-01', energy_flux='4.14e-05', photon_flux2='1.40e-07', job_status='DONE', time_completed='2021-09-01 10:44:35.620074', photon_index_error2='0.38', photon_index2='2.54', ts='21.20', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='1.29e-05', EG='1.37', time_epoch_completed='1630518275.62', return_code='0', job_id='669473', GAL2='0.75', EG2='1.34', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='5.34e-08', ts2='21.68', photon_index='2.29' WHERE bin_id='1344' AND source_name='4FGL J1006.7-2159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:44:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 669473: <4FGL_J1006.7-2159_daily_bin1344> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1006.7-2159_daily_bin1344 151.693 -21.991 587692801 587952001 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 :                                   694.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             350.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            813 sec.

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

