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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin1328
RA = 176.811, Dec = -26.4649
tmin = 583545601, tmax = 583804801
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='60199', job_status='RUN', time_executed='2021-09-04 10:47:56.654771', time_epoch_executed='1630777676.65' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='1328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/60199

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/60199/ft1_4FGL_J1147.2-2627_daily_bin1328.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/60199/ft2_4FGL_J1147.2-2627_daily_bin1328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/60199/ft1_4FGL_J1147.2-2627_daily_bin1328.fits outfile=/scratch/kocevski/60199/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1328.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=583545601.0 tmax=583804801.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.24
user 3.20
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/60199/ft1_filtered_4FGL_J1147.2-2627_daily_bin1328.fits" evtable="EVENTS" scfile=/scratch/kocevski/60199/ft2_4FGL_J1147.2-2627_daily_bin1328.fits sctable="SC_DATA" outfile=/scratch/kocevski/60199/ltcube_583545601_583804801_4FGL_J1147.2-2627_daily_bin1328.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/60199/ft2_4FGL_J1147.2-2627_daily_bin1328.fits
.....................!
real 11.77
user 11.37
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/60199/ft1_filtered_4FGL_J1147.2-2627_daily_bin1328.fits evtable="EVENTS" scfile=/scratch/kocevski/60199/ft2_4FGL_J1147.2-2627_daily_bin1328.fits sctable="SC_DATA" expcube=/scratch/kocevski/60199/ltcube_583545601_583804801_4FGL_J1147.2-2627_daily_bin1328.fits outfile=/scratch/kocevski/60199/expmap_583545601_583804801_4FGL_J1147.2-2627_daily_bin1328.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/60199/ltcube_583545601_583804801_4FGL_J1147.2-2627_daily_bin1328.fits
.....................!
real 191.12
user 186.14
sys 3.90

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/60199/ft1_filtered_4FGL_J1147.2-2627_daily_bin1328.fits scfile=/scratch/kocevski/60199/ft2_4FGL_J1147.2-2627_daily_bin1328.fits outfile=/scratch/kocevski/60199/cmap_583545601_583804801_4FGL_J1147.2-2627_daily_bin1328.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 1.22
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/60199/ft1_filtered_4FGL_J1147.2-2627_daily_bin1328.fits scfile=/scratch/kocevski/60199/ft2_4FGL_J1147.2-2627_daily_bin1328.fits outfile=/scratch/kocevski/60199/cmap_HighResolution_583545601_583804801_4FGL_J1147.2-2627_daily_bin1328.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 1.48
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/60199/ft1_filtered_4FGL_J1147.2-2627_daily_bin1328.fits evtable="EVENTS" scfile=/scratch/kocevski/60199/ft2_4FGL_J1147.2-2627_daily_bin1328.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/60199/Model_4FGL_J1147.2-2627_daily_bin1328.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/60199/ft1_filtered_4FGL_J1147.2-2627_daily_bin1328.fits.....................!
real 63.41
user 59.69
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23713E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .26073E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .50571E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15514       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23659E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .93393E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.3381       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3289       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.066       1.0000         .10000E-03   10000.    
    13 'norm      '    11.970       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.227       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    50.193       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.409       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .77687E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    53.448       1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.663       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .69267       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2231       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=   6990.738     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2373 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0136        .15339E-06** at limit **
   2  Prefactor     .10000E-03    10.251        .36127E-07** at limit **
   3  Prefactor     .10000E-03    27.629        .64894E-07** at limit **
   4  Prefactor     .10000E-03    27.859        .23964E-06** at limit **
   5  Prefactor     .10000E-03    19.089        .72922E-06** at limit **
   6  Prefactor     .10000E-03    197.68        .44973E-05** at limit **
   7  Prefactor     .10000E-03    38.721        .31665E-06** at limit **
   8  norm          .90341E-01    .75253        .28681E-06   -.49779E-03
   9  Prefactor     .10000E-03    3.6643        .95972E-07** at limit **
  10  norm          7.3321        5.4569       -.69066E-06   -.69018E-04
  11  Prefactor     5.2124        7.1461        .32195E-06    .23871E-04
  12  Prefactor     21.582        22.179       -.92504E-07    .52873E-05
  13  norm          12.037        18.867        .36094E-08    .12487E-04
  14  Prefactor     17.649        20.041        .13161E-06    .53993E-04
  15  norm          .10000E-03    5.5738       -.73404E-06** at limit **
  16  Prefactor     .10000E-03    2.1774       -.34071E-06** at limit **
  17  Prefactor     57.513        78.551       -.33564E-08    .67678E-05
  18  Prefactor     8.9795        29.494       -.54588E-07    .19192E-05
  19  Prefactor     .10000E-03    25.867       -.54557E-05** at limit **
  20  Prefactor     49.859        59.553        .80944E-07   -.90605E-05
  21  Prefactor     33.671        33.691       -.93657E-07    .76627E-05
  22  Normalizat    .69400        .25436       -.25288E-05   -.26732E-05
  23  Prefactor     1.2238        .12957        .95843E-06   -.99972E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0903411
  Prefactor  = 0.0001
  norm       = 7.33211
  Prefactor  = 5.21242
  Prefactor  = 21.5818
  norm       = 12.0372
  Prefactor  = 17.6493
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.5131
  Prefactor  = 8.97946
  Prefactor  = 0.0001
  Prefactor  = 49.8592
  Prefactor  = 33.6709
  Normalizat = 0.694004
  Prefactor  = 1.22379
 **********
 **   18 **HESSE 
 **********

 FCN=   6990.738     FROM HESSE     STATUS=OK           370 CALLS     2743 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0433        .14175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.636        .20070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.967        .19976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.643        .42304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    202.73        .39084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    38.861        .20072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .90341E-01    1.6644        .13495E-02   -1.5648    
   9  Prefactor     .10000E-03    3.6695        .15632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.3321        5.4674        .74031E-03   -1.5166    
  11  Prefactor     5.2124        7.1261        .17410E-03   -1.5251    
  12  Prefactor     21.582        22.165        .87268E-04   -1.4779    
  13  norm          12.037        18.875        .11579E-03   -1.5014    
  14  Prefactor     17.649        19.913        .93813E-04   -1.4867    
  15  norm          .10000E-03    5.6212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.1908        .12043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     57.513        78.426        .56605E-04   -1.4190    
  18  Prefactor     8.9795        29.458        .12419E-03   -1.5109    
  19  Prefactor     .10000E-03    26.356        .18527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     49.859        59.598        .27431E-03   -1.4295    
  21  Prefactor     33.671        33.677        .68065E-04   -1.4547    
  22  Normalizat    .69400        .27429        .42309E-03   -1.0413    
  23  Prefactor     1.2238        .14216        .17054E-03   -.85602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95476e-08
Minuit parameter uncertainties:
  1  3.06336e-06
  2  4.43015e-07
  3  2.28448e-06
  4  4.58472e-07
  5  1.48466e-05
  6  0.000678554
  7  1.07096e-05
  8  0.775125
  9  2.37648e-06
  10  5.46781
  11  7.1273
  12  22.1729
  13  18.8842
  14  19.9208
  15  4.51845e-06
  16  1.84032e-06
  17  78.5672
  18  29.5058
  19  0.000126587
  20  59.6698
  21  33.6959
  22  0.27483
  23  0.142205
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  5.212e+00  7.127e+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

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  1.224e+00  1.422e-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:  6.940e-01  2.748e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.68
Ra Dec: 176.811 -26.465
Photon Flux Upper Limit: 1.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/60199/likelihoodResults_583545601_583804801_4FGL_J1147.2-2627_daily_bin1328.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): 0
logL (Free Index) = 6990.4456284
delta logL = 0.292853336824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6989.80862594
delta logL = 0.929855793471

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     '    9.4530       1.0000          .0000       10.000    
     3 'Normalizat'    .62526       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2572       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=   6989.809     FROM MIGRAD    STATUS=FAILED       286 CALLS      655 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .16266E-01    .18536E-03** at limit **
   2  Index         9.4528        9.7238        .19348E-01    .15372E-03
   3  Normalizat    .62554        .13218        .44400E-03   -.22282E-03
   4  Prefactor     1.2570        .68980E-01    .16856E-03   -.52080E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6989.809     FROM SIMPLEX   STATUS=UNCHANGED    183 CALLS      838 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .16266E-01    .61623E-05** at limit **
   2  Index         9.4528        9.7238        .11867E-03    .15372E-03
   3  Normalizat    .62554        .13218        .24401E-05   -.22282E-03
   4  Prefactor     1.2570        .68980E-01    .10787E-05   -.52080E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6989.809     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      878 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .13344E-01    .20953E-03** at limit **
   2  Index         9.4528        9.7194        .38696E-02   -.14766E-04
   3  Normalizat    .62554        .12682        .17760E-04   -.22251E-03
   4  Prefactor     1.2570        .66236E-01    .33711E-04   -.50943E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.45279
  Normalizat = 0.625544
  Prefactor  = 1.25705
 **********
 **   18 **HESSE 
 **********

 FCN=   6989.809     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      911 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .14224E-01    .20258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.4528        9.7227        .15479E-03    1.0986    
   3  Normalizat    .62554        .13073        .35520E-05   -1.0691    
   4  Prefactor     1.2570        .68256E-01    .67422E-05   -.84593    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.26335e-09
Minuit parameter uncertainties:
  1  1.0669e-08
  2  5.94802
  3  0.130797
  4  0.0682606
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/60199': 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) = 6989.80861952
delta logL = 0.929862220152

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.067e-08  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  9.453e+00  5.948e+00  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.257e+00  6.826e-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:  6.255e-01  1.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.67
Ra Dec: 176.811 -26.465
Photon Index (Free Index): 9.45 +/- 5.95
Photon Flux (Free Index): 7.53e-08 +/- 7.75e-07
Energy Flux (Free Index): 8.49e-06 +/- 8.71e-05

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/60199/cmap_HighResolution_583545601_583804801_4FGL_J1147.2-2627_daily_bin1328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', comment='SUCCESS', energy_flux2='8.49e-06', dlogl='9.30e-01', photon_flux2='7.53e-08', job_status='DONE', time_completed='2021-09-04 11:00:35.859124', photon_index_error2='5.95', photon_index2='9.45', ts='0.68', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='8.71e-05', EG='0.69', time_epoch_completed='1630778435.86', return_code='0', job_id='60199', GAL2='1.26', EG2='0.63', return_code2='102', photon_flux_error2='7.75e-07', ts2='2.67', photon_index='2.56' WHERE bin_id='1328' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:00:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 60199: <4FGL_J1147.2-2627_daily_bin1328> in cluster <slac> Done

Job <4FGL_J1147.2-2627_daily_bin1328> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 10:46:49 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:46:50 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:46:50 2021
Terminated at Sat Sep  4 11:00:36 2021
Results reported at Sat Sep  4 11:00:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin1328 176.811 -26.4649 583545601 583804801 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 :                                   749.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            827 sec.

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

