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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin646
RA = 176.811, Dec = -26.4649
tmin = 406771201, tmax = 407030401
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='56035', job_status='RUN', time_executed='2021-09-04 10:36:47.756793', time_epoch_executed='1630777007.76' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='646'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/56035

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/56035/ft1_4FGL_J1147.2-2627_daily_bin646.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/56035/ft2_4FGL_J1147.2-2627_daily_bin646.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/56035/ft1_4FGL_J1147.2-2627_daily_bin646.fits outfile=/scratch/kocevski/56035/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin646.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=406771201.0 tmax=407030401.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 4.12
user 3.24
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/56035/ft2_4FGL_J1147.2-2627_daily_bin646.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/56035/ft2_4FGL_J1147.2-2627_daily_bin646.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/56035/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin646.fits evtable="EVENTS" outfile="/scratch/kocevski/56035/ft1_filtered_4FGL_J1147.2-2627_daily_bin646.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.98
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/56035/ft1_filtered_4FGL_J1147.2-2627_daily_bin646.fits" evtable="EVENTS" scfile=/scratch/kocevski/56035/ft2_4FGL_J1147.2-2627_daily_bin646.fits sctable="SC_DATA" outfile=/scratch/kocevski/56035/ltcube_406771201_407030401_4FGL_J1147.2-2627_daily_bin646.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/56035/ft2_4FGL_J1147.2-2627_daily_bin646.fits
.....................!
real 12.65
user 12.16
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/56035/ft1_filtered_4FGL_J1147.2-2627_daily_bin646.fits evtable="EVENTS" scfile=/scratch/kocevski/56035/ft2_4FGL_J1147.2-2627_daily_bin646.fits sctable="SC_DATA" expcube=/scratch/kocevski/56035/ltcube_406771201_407030401_4FGL_J1147.2-2627_daily_bin646.fits outfile=/scratch/kocevski/56035/expmap_406771201_407030401_4FGL_J1147.2-2627_daily_bin646.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/56035/ltcube_406771201_407030401_4FGL_J1147.2-2627_daily_bin646.fits
.....................!
real 191.45
user 185.09
sys 5.10

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 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1147.2-2627 @ 176.811 -26.4649

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/56035/ft1_filtered_4FGL_J1147.2-2627_daily_bin646.fits scfile=/scratch/kocevski/56035/ft2_4FGL_J1147.2-2627_daily_bin646.fits outfile=/scratch/kocevski/56035/cmap_406771201_407030401_4FGL_J1147.2-2627_daily_bin646.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=176.811 yref=-26.4649 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.67
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/56035/ft1_filtered_4FGL_J1147.2-2627_daily_bin646.fits scfile=/scratch/kocevski/56035/ft2_4FGL_J1147.2-2627_daily_bin646.fits outfile=/scratch/kocevski/56035/cmap_HighResolution_406771201_407030401_4FGL_J1147.2-2627_daily_bin646.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=176.811 yref=-26.4649 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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/56035/ft1_filtered_4FGL_J1147.2-2627_daily_bin646.fits evtable="EVENTS" scfile=/scratch/kocevski/56035/ft2_4FGL_J1147.2-2627_daily_bin646.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/56035/Model_4FGL_J1147.2-2627_daily_bin646.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/56035/ft1_filtered_4FGL_J1147.2-2627_daily_bin646.fits.....................!
real 61.43
user 58.98
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/56035/ft1_filtered_4FGL_J1147.2-2627_daily_bin646.fits', '/scratch/kocevski/56035/ft2_4FGL_J1147.2-2627_daily_bin646.fits', expMap='/scratch/kocevski/56035/expmap_406771201_407030401_4FGL_J1147.2-2627_daily_bin646.fits', expCube='/scratch/kocevski/56035/ltcube_406771201_407030401_4FGL_J1147.2-2627_daily_bin646.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/56035/Model_4FGL_J1147.2-2627_daily_bin646.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1147.2-2627'

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.341e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.563e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  6.672e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/56035/ft1_filtered_4FGL_J1147.2-2627_daily_bin646.fits
Spacecraft file(s): /scratch/kocevski/56035/ft2_4FGL_J1147.2-2627_daily_bin646.fits
Exposure map: /scratch/kocevski/56035/expmap_406771201_407030401_4FGL_J1147.2-2627_daily_bin646.fits
Exposure cube: /scratch/kocevski/56035/ltcube_406771201_407030401_4FGL_J1147.2-2627_daily_bin646.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/56035/Model_4FGL_J1147.2-2627_daily_bin646.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) = 6838.0693445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.2283       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.772       1.0000         .10000E-03   10000.    
     8 'norm      '    2.9958       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.524       1.0000         .10000E-03   10000.    
    10 'norm      '    16.920       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5675       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.1053       1.0000         .10000E-03   10000.    
    15 'norm      '    .11103E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.790       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.038       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11061E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10518E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .94084       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97104       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6838.068     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2498 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6243       -.32347E-08** at limit **
   2  Prefactor     4.2263        13.884        .27788E-05   -.31834E-03
   3  Prefactor     .10000E-03    23.026        .39187E-06** at limit **
   4  Prefactor     .10000E-03    21.902        .17498E-05** at limit **
   5  Prefactor     .10000E-03    3.5579        .75452E-09** at limit **
   6  Prefactor     .10000E-03    19.461       -.47702E-06** at limit **
   7  Prefactor     16.771        41.560       -.67080E-06   -.16974E-04
   8  norm          2.9957        1.3130       -.53332E-08   -.27443E-04
   9  Prefactor     10.524        16.134       -.21840E-07   -.17070E-04
  10  norm          16.921        9.3404        .23360E-07    .10977E-04
  11  Prefactor     .10000E-03    2.2624       -.13664E-08** at limit **
  12  Prefactor     5.5544        30.418       -.48925E-05   -.98720E-04
  13  norm          .10000E-03    8.9744        .26931E-08** at limit **
  14  Prefactor     9.1170        13.795       -.38959E-07   -.31512E-04
  15  norm          .10000E-03    4.1984       -.10367E-07** at limit **
  16  Prefactor     .10000E-03    7.0442        .61207E-09** at limit **
  17  Prefactor     .10000E-03    24.033       -.19804E-05** at limit **
  18  Prefactor     29.793        36.318        .17538E-05    .91199E-04
  19  Prefactor     26.032        24.815       -.61113E-06   -.53483E-04
  20  Prefactor     .10000E-03    89.156        .35374E-06** at limit **
  21  Prefactor     .10000E-03    33.533        .30056E-06** at limit **
  22  Normalizat    .94088        .22224       -.26561E-06    .80616E-05
  23  Prefactor     .97102        .11097        .13818E-06   -.24339E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.22626
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7706
  norm       = 2.99573
  Prefactor  = 10.5245
  norm       = 16.9206
  Prefactor  = 0.0001
  Prefactor  = 5.55442
  norm       = 0.0001
  Prefactor  = 9.11695
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 29.7925
  Prefactor  = 26.0316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.940875
  Prefactor  = 0.971017
 **********
 **   18 **HESSE 
 **********

 FCN=   6838.068     FROM HESSE     STATUS=OK           364 CALLS     2862 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6264        .10292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.2263        19.678        .97982E-03   -1.5297    
   3  Prefactor     .10000E-03    23.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.5633        .15233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.771        41.605        .97799E-04   -1.4889    
   8  norm          2.9957        1.3130        .60366E-04   -1.5362    
   9  Prefactor     10.524        16.134        .12350E-03   -1.5059    
  10  norm          16.921        9.3416        .97368E-04   -1.4885    
  11  Prefactor     .10000E-03    2.2758        .12140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.5544        32.717        .17027E-03   -1.5237    
  13  norm          .10000E-03    8.9828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.1170        13.646        .13282E-03   -1.5104    
  15  norm          .10000E-03    4.2289        .32688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.1656        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.793        36.591        .73407E-04   -1.4616    
  19  Prefactor     26.032        24.863        .78506E-04   -1.4687    
  20  Prefactor     .10000E-03    89.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .94088        .26450        .34523E-03   -.95038    
  23  Prefactor     .97102        .13314        .17236E-03   -.93702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02676e-09
Minuit parameter uncertainties:
  1  1.12161e-07
  2  18.2487
  3  4.6013e-05
  4  0.000198754
  5  7.99035e-08
  6  5.14032e-05
  7  41.6769
  8  1.31305
  9  16.1409
  10  9.3424
  11  8.09061e-06
  12  26.9829
  13  6.26935e-07
  14  13.6503
  15  7.80934e-06
  16  2.46856e-05
  17  0.000229808
  18  36.6187
  19  24.8733
  20  0.000158213
  21  1.52441e-05
  22  0.264867
  23  0.133185
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  8.091e-06  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.563e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  6.672e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  9.710e-01  1.332e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  9.409e-01  2.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 176.811 -26.465
Photon Flux Upper Limit: 7.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/56035/likelihoodResults_406771201_407030401_4FGL_J1147.2-2627_daily_bin646.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6838.07047381
delta logL = -0.00209390635609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6838.06837998
delta logL = -7.52515916247e-08

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 'Index     '    2.5669       1.0000          .0000       10.000    
     3 'Normalizat'    .94086       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97100       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6838.068     FROM MIGRAD    STATUS=FAILED        85 CALLS      238 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10033E-03    150.33        .12146E-02** at limit **
   2  Index         2.6227        5.0224        .50000       -.11833E-04
   3  Normalizat    .94087        .48632E-01    .34523E-03   -.42612E-04
   4  Prefactor     .97102        .24797E-01    .17236E-03   -.47305E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6838.068     FROM SIMPLEX   STATUS=UNCHANGED    149 CALLS      387 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10033E-03    150.33        .24145E-03** at limit **
   2  Index         2.6227        5.0224        .73241E-04   -.11833E-04
   3  Normalizat    .94087        .48632E-01    .19812E-05   -.42612E-04
   4  Prefactor     .97102        .24797E-01    .82631E-06   -.47305E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6838.068     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      428 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    329.97        .24292E-03** at limit **
   2  Index         2.9114        6.3484        .50000        .30036E-07
   3  Normalizat    .94088        .83874E-01    .13809E-04    .20499E-03
   4  Prefactor     .97102        .42613E-01    .34473E-04    .38249E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.91139
  Normalizat = 0.940875
  Prefactor  = 0.971017
 **********
 **   18 **HESSE 
 **********

 FCN=   6838.068     FROM HESSE     STATUS=OK            29 CALLS      457 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1089        .48584E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9114        6.3258        .50000       -.43094    
   3  Normalizat    .94088        .25598        .27619E-05   -.95038    
   4  Prefactor     .97102        .13068        .68945E-05   -.93702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.81833e-11
Minuit parameter uncertainties:
  1  1.22601e-07
  2  146.426
  3  0.25631
  4  0.130718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/56035': 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) = 6838.06837935
delta logL = 5.50826371182e-07

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.226e-07  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.911e+00  1.464e+02  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  6.672e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  9.710e-01  1.307e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  9.409e-01  2.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 176.811 -26.465

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/56035/cmap_HighResolution_406771201_407030401_4FGL_J1147.2-2627_daily_bin646.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.23e-03', job_status='DONE', photon_flux_upper_limit='7.98e-08', time_completed='2021-09-04 10:48:57.856184', job_id='56035', GAL2='0.97', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630777737.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='5.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='646' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:48:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 56035: <4FGL_J1147.2-2627_daily_bin646> in cluster <slac> Done

Job <4FGL_J1147.2-2627_daily_bin646> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 10:36:27 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:36:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 10:36:30 2021
Terminated at Sat Sep  4 10:48:59 2021
Results reported at Sat Sep  4 10:48:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin646 176.811 -26.4649 406771201 407030401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1147.2-2627 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   725.24 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            752 sec.

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

