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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin147
RA = 176.811, Dec = -26.4649
tmin = 277430401, tmax = 277689601
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='50256', job_status='RUN', time_executed='2021-09-04 10:26:55.068100', time_epoch_executed='1630776415.07' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='147'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/50256

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/50256/ft1_4FGL_J1147.2-2627_daily_bin147.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/50256/ft2_4FGL_J1147.2-2627_daily_bin147.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/50256/ft1_4FGL_J1147.2-2627_daily_bin147.fits outfile=/scratch/kocevski/50256/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin147.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=277430401.0 tmax=277689601.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.51
user 3.29
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/50256/ft2_4FGL_J1147.2-2627_daily_bin147.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/50256/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin147.fits evtable="EVENTS" outfile="/scratch/kocevski/50256/ft1_filtered_4FGL_J1147.2-2627_daily_bin147.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.52
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/50256/ft1_filtered_4FGL_J1147.2-2627_daily_bin147.fits" evtable="EVENTS" scfile=/scratch/kocevski/50256/ft2_4FGL_J1147.2-2627_daily_bin147.fits sctable="SC_DATA" outfile=/scratch/kocevski/50256/ltcube_277430401_277689601_4FGL_J1147.2-2627_daily_bin147.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/50256/ft2_4FGL_J1147.2-2627_daily_bin147.fits
.....................!
real 11.76
user 11.41
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/50256/ft1_filtered_4FGL_J1147.2-2627_daily_bin147.fits evtable="EVENTS" scfile=/scratch/kocevski/50256/ft2_4FGL_J1147.2-2627_daily_bin147.fits sctable="SC_DATA" expcube=/scratch/kocevski/50256/ltcube_277430401_277689601_4FGL_J1147.2-2627_daily_bin147.fits outfile=/scratch/kocevski/50256/expmap_277430401_277689601_4FGL_J1147.2-2627_daily_bin147.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/50256/ltcube_277430401_277689601_4FGL_J1147.2-2627_daily_bin147.fits
.....................!
real 190.17
user 184.74
sys 4.98

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/50256/ft1_filtered_4FGL_J1147.2-2627_daily_bin147.fits scfile=/scratch/kocevski/50256/ft2_4FGL_J1147.2-2627_daily_bin147.fits outfile=/scratch/kocevski/50256/cmap_277430401_277689601_4FGL_J1147.2-2627_daily_bin147.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/50256/ft1_filtered_4FGL_J1147.2-2627_daily_bin147.fits scfile=/scratch/kocevski/50256/ft2_4FGL_J1147.2-2627_daily_bin147.fits outfile=/scratch/kocevski/50256/cmap_HighResolution_277430401_277689601_4FGL_J1147.2-2627_daily_bin147.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.63
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/50256/ft1_filtered_4FGL_J1147.2-2627_daily_bin147.fits evtable="EVENTS" scfile=/scratch/kocevski/50256/ft2_4FGL_J1147.2-2627_daily_bin147.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/50256/Model_4FGL_J1147.2-2627_daily_bin147.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/50256/ft1_filtered_4FGL_J1147.2-2627_daily_bin147.fits.....................!
real 60.54
user 59.00
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/50256/ft1_filtered_4FGL_J1147.2-2627_daily_bin147.fits', '/scratch/kocevski/50256/ft2_4FGL_J1147.2-2627_daily_bin147.fits', expMap='/scratch/kocevski/50256/expmap_277430401_277689601_4FGL_J1147.2-2627_daily_bin147.fits', expCube='/scratch/kocevski/50256/ltcube_277430401_277689601_4FGL_J1147.2-2627_daily_bin147.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/50256/Model_4FGL_J1147.2-2627_daily_bin147.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/50256/ft1_filtered_4FGL_J1147.2-2627_daily_bin147.fits
Spacecraft file(s): /scratch/kocevski/50256/ft2_4FGL_J1147.2-2627_daily_bin147.fits
Exposure map: /scratch/kocevski/50256/expmap_277430401_277689601_4FGL_J1147.2-2627_daily_bin147.fits
Exposure cube: /scratch/kocevski/50256/ltcube_277430401_277689601_4FGL_J1147.2-2627_daily_bin147.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/50256/Model_4FGL_J1147.2-2627_daily_bin147.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) = 6373.71223233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.509       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.660       1.0000         .10000E-03   10000.    
     3 'Prefactor '    50.525       1.0000         .10000E-03   10000.    
     4 'Prefactor '    135.30       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.522       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12852E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .94135       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.193       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12163E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.153       1.0000         .10000E-03   10000.    
    15 'norm      '    10.174       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.651       1.0000         .10000E-03   10000.    
    17 'Prefactor '    136.14       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.362       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.175       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11957E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0781       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0443       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=   6373.676     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2568 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.509        10.151        .39900E-07   -.24799E-04
   2  Prefactor     15.657        29.521       -.27965E-07   -.60044E-05
   3  Prefactor     50.516        84.230       -.18767E-05   -.86269E-05
   4  Prefactor     135.31        70.573        .43637E-06   -.59499E-05
   5  Prefactor     .10000E-03    8.2096        .93606E-07** at limit **
   6  Prefactor     33.575        76.868        .20458E-05    .16914E-05
   7  Prefactor     .10000E-03    164.88        .45505E-06** at limit **
   8  norm          .94136        1.4525        .96834E-06   -.73317E-04
   9  Prefactor     13.192        15.397        .11628E-06   -.11940E-04
  10  norm          .10000E-03    5.1527       -.21551E-07** at limit **
  11  Prefactor     .10000E-03    4.1316        .87030E-07** at limit **
  12  Prefactor     .10000E-03    19.875        .22510E-08** at limit **
  13  norm          .10000E-03    10.413        .12207E-08** at limit **
  14  Prefactor     40.156        27.813        .71384E-07   -.16394E-04
  15  norm          10.174        7.4644        .10412E-07   -.26243E-04
  16  Prefactor     19.653        10.500        .75013E-07   -.36516E-04
  17  Prefactor     136.13        85.799       -.25036E-06   -.57105E-05
  18  Prefactor     12.362        43.266        .29458E-06   -.37902E-05
  19  Prefactor     13.165        29.133        .38610E-06   -.23171E-05
  20  Prefactor     .10000E-03    100.39       -.10405E-06** at limit **
  21  Prefactor     .10000E-03    6.6890       -.30336E-08** at limit **
  22  Normalizat    1.0781        .28370       -.10990E-05   -.43643E-04
  23  Prefactor     1.0443        .13381       -.17337E-06   -.62154E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5087
  Prefactor  = 15.6566
  Prefactor  = 50.5162
  Prefactor  = 135.307
  Prefactor  = 0.0001
  Prefactor  = 33.5748
  Prefactor  = 0.0001
  norm       = 0.941359
  Prefactor  = 13.1918
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 40.1558
  norm       = 10.1741
  Prefactor  = 19.6526
  Prefactor  = 136.13
  Prefactor  = 12.3617
  Prefactor  = 13.165
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07809
  Prefactor  = 1.04433
 **********
 **   18 **HESSE 
 **********

 FCN=   6373.676     FROM HESSE     STATUS=OK           372 CALLS     2940 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.509        10.164        .11326E-03   -1.5000    
   2  Prefactor     15.657        29.505        .10121E-03   -1.4916    
   3  Prefactor     50.516        84.350        .56419E-04   -1.4285    
   4  Prefactor     135.31        70.628        .34623E-04   -1.3376    
   5  Prefactor     .10000E-03    8.2252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     33.575        77.510        .69210E-04   -1.4548    
   7  Prefactor     .10000E-03    166.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .94136        1.4597        .11712E-02   -1.5514    
   9  Prefactor     13.192        15.400        .11028E-03   -1.4981    
  10  norm          .10000E-03    5.1791        .17695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.8593        .31173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     40.156        27.842        .63257E-04   -1.4440    
  15  norm          10.174        7.4648        .12562E-03   -1.5070    
  16  Prefactor     19.653        10.437        .90352E-04   -1.4821    
  17  Prefactor     136.13        85.726        .34519E-04   -1.3369    
  18  Prefactor     12.362        43.115        .11393E-03   -1.5005    
  19  Prefactor     13.165        29.115        .11036E-03   -1.4982    
  20  Prefactor     .10000E-03    100.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.6908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0781        .32606        .39335E-03   -.90458    
  23  Prefactor     1.0443        .15483        .19470E-03   -.91266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45114e-09
Minuit parameter uncertainties:
  1  10.1652
  2  29.5325
  3  84.5507
  4  70.6719
  5  6.31163e-06
  6  77.7443
  7  0.000194904
  8  1.45979
  9  15.4046
  10  5.15147e-06
  11  2.78719e-05
  12  4.03948e-06
  13  3.94778e-06
  14  27.8505
  15  7.46552
  16  10.4384
  17  85.8044
  18  43.2244
  19  29.1462
  20  5.13735e-05
  21  2.29494e-06
  22  0.32667
  23  0.154898
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  2.787e-05  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:  1.044e+00  1.549e-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:  1.078e+00  3.267e-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: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/50256/likelihoodResults_277430401_277689601_4FGL_J1147.2-2627_daily_bin147.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) = 6373.67696009
delta logL = -0.000481630224385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6373.67647885
delta logL = -3.89132765122e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5510       1.0000          .0000       10.000    
     3 'Normalizat'    1.0778       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0445       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.

 FCN=   6373.676     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      225 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .55660        .59686E-01** at limit **
   2  Index         2.5397        7.0792        .50000        .95003E-05
   3  Normalizat    1.0781        .25856E-02    .88818E-01    .35254E-04
   4  Prefactor     1.0443        .12679E-02    .40245E-01    .33350E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.53967
  Normalizat = 1.07809
  Prefactor  = 1.04433
 **********
 **   18 **HESSE 
 **********

 FCN=   6373.676     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      258 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    116.32        .31319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5397        6.2693        .50000       -.51446    
   3  Normalizat    1.0781        .24045E-01    .39335E-03   -.90458    
   4  Prefactor     1.0443        .11818E-01    .19470E-03   -.91266    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02627e-06
Minuit parameter uncertainties:
  1  0.000231772
  2  469.444
  3  0.0240457
  4  0.0118177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/50256': 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): 102
logL (Free Index) = 6373.67647841
delta logL = 5.55764927412e-08

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  2.318e-04  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.540e+00  4.694e+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:  1.044e+00  1.182e-02  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:  1.078e+00  2.405e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/50256/cmap_HighResolution_277430401_277689601_4FGL_J1147.2-2627_daily_bin147.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.89e-03', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-09-04 10:38:22.969017', job_id='50256', GAL2='1.04', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630777102.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='5.56e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='147' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:38:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 50256: <4FGL_J1147.2-2627_daily_bin147> in cluster <slac> Done

Job <4FGL_J1147.2-2627_daily_bin147> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 10:26:41 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:26:42 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:26:42 2021
Terminated at Sat Sep  4 10:38:24 2021
Results reported at Sat Sep  4 10:38:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin147 176.811 -26.4649 277430401 277689601 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 :                                   685.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            703 sec.

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

