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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin430
RA = 176.811, Dec = -26.4649
tmin = 350784001, tmax = 351043201
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='51672', job_status='RUN', time_executed='2021-09-04 10:32:19.813776', time_epoch_executed='1630776739.81' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/51672

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/51672/ft1_4FGL_J1147.2-2627_daily_bin430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/51672/ft2_4FGL_J1147.2-2627_daily_bin430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/51672/ft1_4FGL_J1147.2-2627_daily_bin430.fits outfile=/scratch/kocevski/51672/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin430.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=350784001.0 tmax=351043201.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.39
user 3.14
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/51672/ft1_filtered_4FGL_J1147.2-2627_daily_bin430.fits" evtable="EVENTS" scfile=/scratch/kocevski/51672/ft2_4FGL_J1147.2-2627_daily_bin430.fits sctable="SC_DATA" outfile=/scratch/kocevski/51672/ltcube_350784001_351043201_4FGL_J1147.2-2627_daily_bin430.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/51672/ft2_4FGL_J1147.2-2627_daily_bin430.fits
.....................!
real 11.82
user 11.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/51672/ft1_filtered_4FGL_J1147.2-2627_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/51672/ft2_4FGL_J1147.2-2627_daily_bin430.fits sctable="SC_DATA" expcube=/scratch/kocevski/51672/ltcube_350784001_351043201_4FGL_J1147.2-2627_daily_bin430.fits outfile=/scratch/kocevski/51672/expmap_350784001_351043201_4FGL_J1147.2-2627_daily_bin430.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/51672/ltcube_350784001_351043201_4FGL_J1147.2-2627_daily_bin430.fits
.....................!
real 190.57
user 185.47
sys 4.71

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/51672/ft1_filtered_4FGL_J1147.2-2627_daily_bin430.fits scfile=/scratch/kocevski/51672/ft2_4FGL_J1147.2-2627_daily_bin430.fits outfile=/scratch/kocevski/51672/cmap_350784001_351043201_4FGL_J1147.2-2627_daily_bin430.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.53
user 0.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/51672/ft1_filtered_4FGL_J1147.2-2627_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/51672/ft2_4FGL_J1147.2-2627_daily_bin430.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/51672/Model_4FGL_J1147.2-2627_daily_bin430.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/51672/ft1_filtered_4FGL_J1147.2-2627_daily_bin430.fits.....................!
real 55.71
user 54.30
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10231E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15164E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.1936       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6685       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9513       1.0000         .10000E-03   10000.    
     8 'norm      '    .16882       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.403       1.0000         .10000E-03   10000.    
    10 'norm      '    4.2277       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.825       1.0000         .10000E-03   10000.    
    13 'norm      '    16.942       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.551       1.0000         .10000E-03   10000.    
    15 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10950E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.8935       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .62149       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=   6030.318     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2500 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5605       -.11696E-07** at limit **
   2  Prefactor     .10000E-03    10.399       -.15148E-06** at limit **
   3  Prefactor     .10000E-03    40.218        .30498E-05** at limit **
   4  Prefactor     .10000E-03    12.672        .46345E-05** at limit **
   5  Prefactor     7.1905        9.4923       -.24916E-05   -.15015E-04
   6  Prefactor     2.3972        282.90       -.66061E-04   -.20596E-05
   7  Prefactor     9.9542        32.874       -.12526E-04   -.96953E-05
   8  norm          .16740        .78998       -.28084E-07   -.19003E-02
   9  Prefactor     14.353        21.260        .67657E-05    .17287E-04
  10  norm          4.2322        10.314       -.43471E-05   -.17406E-03
  11  Prefactor     .10000E-03    1.9072       -.10716E-06** at limit **
  12  Prefactor     31.789        31.180        .25443E-04    .11251E-04
  13  norm          16.908        16.615       -.11418E-04    .85363E-05
  14  Prefactor     11.555        12.527       -.39616E-06   -.13474E-04
  15  norm          .10000E-03    1.3193        .32089E-07** at limit **
  16  Prefactor     .10000E-03    2.1235       -.13107E-06** at limit **
  17  Prefactor     .10000E-03    15.181       -.10574E-04** at limit **
  18  Prefactor     .10000E-03    13.377       -.13245E-04** at limit **
  19  Prefactor     .10000E-03    6.4120       -.11437E-06** at limit **
  20  Prefactor     .10000E-03    14.428        .96064E-05** at limit **
  21  Prefactor     .10000E-03    14.574        .90067E-05** at limit **
  22  Normalizat    1.8937        .24904       -.21964E-06    .12074E-03
  23  Prefactor     .62145        .11834        .39193E-06    .70518E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.1905
  Prefactor  = 2.39723
  Prefactor  = 9.95418
  norm       = 0.167396
  Prefactor  = 14.3526
  norm       = 4.23219
  Prefactor  = 0.0001
  Prefactor  = 31.7892
  norm       = 16.9083
  Prefactor  = 11.5548
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.89374
  Prefactor  = 0.621449
 **********
 **   18 **HESSE 
 **********

 FCN=   6030.318     FROM HESSE     STATUS=OK           366 CALLS     2866 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5665        .12135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    40.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.1905        9.4929        .14956E-03   -1.5172    
   6  Prefactor     2.3972        279.33        .24949E-03   -1.5398    
   7  Prefactor     9.9542        32.881        .12703E-03   -1.5077    
   8  norm          .16740        .75470        .13140E-03   -1.5626    
   9  Prefactor     14.353        21.203        .10554E-03   -1.4950    
  10  norm          4.2322        10.303        .19598E-03   -1.5296    
  11  Prefactor     .10000E-03    1.9113        .10472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     31.789        31.124        .71026E-04   -1.4580    
  13  norm          16.908        16.607        .97304E-04   -1.4885    
  14  Prefactor     11.555        12.532        .11787E-03   -1.5028    
  15  norm          .10000E-03    1.3208        .87050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.1355        .11049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.4139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.8937        .29373        .27881E-03   -.67241    
  23  Prefactor     .62145        .13936        .21365E-03   -1.0669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34316e-09
Minuit parameter uncertainties:
  1  2.34762e-06
  2  8.05235e-06
  3  5.96851e-05
  4  8.30362e-06
  5  9.49492
  6  52.003
  7  32.9405
  8  0.71067
  9  21.2146
  10  10.3069
  11  3.22271e-05
  12  31.1396
  13  16.6117
  14  12.5352
  15  3.41199e-06
  16  2.40817e-05
  17  9.38666e-06
  18  2.24626e-05
  19  4.9341e-06
  20  8.31376e-06
  21  1.25174e-05
  22  0.294004
  23  0.139437
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  3.223e-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:  6.214e-01  1.394e-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.894e+00  2.940e-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: 8.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/51672/likelihoodResults_350784001_351043201_4FGL_J1147.2-2627_daily_bin430.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) = 6030.32009966
delta logL = -0.00244580136314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6030.31765384
delta logL = 1.55077941599e-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.5568       1.0000          .0000       10.000    
     3 'Normalizat'    1.8937       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62147       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=   6030.318     FROM MIGRAD    STATUS=FAILED        84 CALLS      235 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10064E-03    89.604        .10491E-02** at limit **
   2  Index         2.4919        6.9032        .50000        .23440E-04
   3  Normalizat    1.8937        .45951E-01    .27881E-03    .15131E-03
   4  Prefactor     .62145        .21751E-01    .21365E-03    .26073E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6030.318     FROM SIMPLEX   STATUS=UNCHANGED    145 CALLS      380 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10064E-03    89.604        .28896E-03** at limit **
   2  Index         2.4919        6.9032        .58024E-04    .23440E-04
   3  Normalizat    1.8937        .45951E-01    .15820E-05    .15131E-03
   4  Prefactor     .62145        .21751E-01    .82847E-06    .26073E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6030.318     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      424 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    426.81        .20981E-03** at limit **
   2  Index         2.2858        7.9750        .50000       -.20964E-07
   3  Normalizat    1.8937        .16941        .55762E-04   -.23446E-04
   4  Prefactor     .62145        .80173E-01    .85461E-05   -.58532E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.2858
  Normalizat = 1.89374
  Prefactor  = 0.62145
 **********
 **   18 **HESSE 
 **********

 FCN=   6030.318     FROM HESSE     STATUS=OK            29 CALLS      453 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1308        .41962E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2858        5.4909        .50000       -.57381    
   3  Normalizat    1.8937        .29018        .11152E-04   -.67241    
   4  Prefactor     .62145        .13741        .17092E-05   -1.0669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.079e-12
Minuit parameter uncertainties:
  1  3.65821e-06
  2  104.613
  3  0.290444
  4  0.137488
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/51672': 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) = 6030.31765285
delta logL = 1.00540910353e-06

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  3.658e-06  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.286e+00  1.046e+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:  6.214e-01  1.375e-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.894e+00  2.904e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/51672/cmap_HighResolution_350784001_351043201_4FGL_J1147.2-2627_daily_bin430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', job_status='DONE', photon_flux_upper_limit='8.13e-08', time_completed='2021-09-04 10:43:39.243996', job_id='51672', GAL2='0.62', fit_tolerance='1e-08', EG2='1.89', EG='1.89', time_epoch_completed='1630777419.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='1.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='430' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:43:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 51672: <4FGL_J1147.2-2627_daily_bin430> in cluster <slac> Done

Job <4FGL_J1147.2-2627_daily_bin430> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 10:31:47 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:31:49 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:31:49 2021
Terminated at Sat Sep  4 10:43:41 2021
Results reported at Sat Sep  4 10:43:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin430 176.811 -26.4649 350784001 351043201 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 :                                   676.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            714 sec.

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

