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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin788
RA = 176.811, Dec = -26.4649
tmin = 443577601, tmax = 443836801
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='57963', job_status='RUN', time_executed='2021-09-04 10:44:43.051863', time_epoch_executed='1630777483.05' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='788'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57963

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57963/ft1_4FGL_J1147.2-2627_daily_bin788.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57963/ft2_4FGL_J1147.2-2627_daily_bin788.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57963/ft1_4FGL_J1147.2-2627_daily_bin788.fits outfile=/scratch/kocevski/57963/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin788.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=443577601.0 tmax=443836801.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.66
user 3.36
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57963/ft1_filtered_4FGL_J1147.2-2627_daily_bin788.fits" evtable="EVENTS" scfile=/scratch/kocevski/57963/ft2_4FGL_J1147.2-2627_daily_bin788.fits sctable="SC_DATA" outfile=/scratch/kocevski/57963/ltcube_443577601_443836801_4FGL_J1147.2-2627_daily_bin788.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/57963/ft2_4FGL_J1147.2-2627_daily_bin788.fits
.....................!
real 12.18
user 11.84
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57963/ft1_filtered_4FGL_J1147.2-2627_daily_bin788.fits evtable="EVENTS" scfile=/scratch/kocevski/57963/ft2_4FGL_J1147.2-2627_daily_bin788.fits sctable="SC_DATA" expcube=/scratch/kocevski/57963/ltcube_443577601_443836801_4FGL_J1147.2-2627_daily_bin788.fits outfile=/scratch/kocevski/57963/expmap_443577601_443836801_4FGL_J1147.2-2627_daily_bin788.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/57963/ltcube_443577601_443836801_4FGL_J1147.2-2627_daily_bin788.fits
.....................!
real 190.57
user 185.56
sys 4.54

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/57963/ft1_filtered_4FGL_J1147.2-2627_daily_bin788.fits scfile=/scratch/kocevski/57963/ft2_4FGL_J1147.2-2627_daily_bin788.fits outfile=/scratch/kocevski/57963/cmap_443577601_443836801_4FGL_J1147.2-2627_daily_bin788.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57963/ft1_filtered_4FGL_J1147.2-2627_daily_bin788.fits scfile=/scratch/kocevski/57963/ft2_4FGL_J1147.2-2627_daily_bin788.fits outfile=/scratch/kocevski/57963/cmap_HighResolution_443577601_443836801_4FGL_J1147.2-2627_daily_bin788.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.73
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8081       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.437       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.170       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 '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.686       1.0000         .10000E-03   10000.    
    10 'norm      '    3.8535       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7599       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .49298E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.613       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.3361       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11142E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.539       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6137       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4917       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.339       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5092       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78869       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=   7256.413     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2539 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8084        7.5733       -.33296E-05    .21065E-03
   2  Prefactor     29.418        34.988       -.67739E-05    .94787E-04
   3  Prefactor     .10000E-03    175.72        .37518E-06** at limit **
   4  Prefactor     11.171        20.329       -.11396E-05    .10094E-04
   5  Prefactor     .10000E-03    3.2339       -.11821E-06** at limit **
   6  Prefactor     .10000E-03    25.502        .15370E-04** at limit **
   7  Prefactor     .10000E-03    49.322        .18992E-05** at limit **
   8  norm          .10000E-03    .41670       -.51751E-07** at limit **
   9  Prefactor     12.688        11.636        .21414E-06    .18240E-04
  10  norm          3.8529        8.0165       -.40253E-05   -.12754E-03
  11  Prefactor     1.7360        5.9965       -.25145E-05   -.91812E-03
  12  Prefactor     .10000E-03    204.87        .20090E-04** at limit **
  13  norm          13.614        14.160        .13678E-06    .81008E-05
  14  Prefactor     .10000E-03    5.6591        .15847E-06** at limit **
  15  norm          2.3357        3.2634       -.28553E-06   -.56456E-03
  16  Prefactor     .10000E-03    5.1554        .79692E-06** at limit **
  17  Prefactor     35.540        32.867        .48311E-06    .10689E-04
  18  Prefactor     7.5621        36.413       -.23047E-04    .51398E-04
  19  Prefactor     2.4945        14.801        .26417E-05   -.10729E-03
  20  Prefactor     .10000E-03    26.213       -.17430E-04** at limit **
  21  Prefactor     24.342        23.104        .48254E-05   -.63248E-04
  22  Normalizat    1.5091        .23112        .28220E-05   -.64552E-04
  23  Prefactor     .78871        .11031        .26847E-06    .11853E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.8084
  Prefactor  = 29.4181
  Prefactor  = 0.000100001
  Prefactor  = 11.1705
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.6885
  norm       = 3.85288
  Prefactor  = 1.73595
  Prefactor  = 0.0001
  norm       = 13.6135
  Prefactor  = 0.0001
  norm       = 2.33569
  Prefactor  = 0.000100001
  Prefactor  = 35.5399
  Prefactor  = 7.56205
  Prefactor  = 2.49451
  Prefactor  = 0.000100002
  Prefactor  = 24.3423
  Normalizat = 1.50914
  Prefactor  = 0.788706
 **********
 **   18 **HESSE 
 **********

 FCN=   7256.413     FROM HESSE     STATUS=OK           374 CALLS     2913 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8084        7.5825        .13506E-03   -1.5114    
   2  Prefactor     29.418        34.948        .73844E-04   -1.4623    
   3  Prefactor     .10000E-03    176.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.171        20.326        .11987E-03   -1.5039    
   5  Prefactor     .10000E-03    3.2369        .14960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    49.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .57415        .10658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.688        11.627        .11246E-03   -1.4995    
  10  norm          3.8529        8.0674        .20558E-03   -1.5315    
  11  Prefactor     1.7360        6.1083        .31587E-03   -1.5444    
  12  Prefactor     .10000E-03    212.65        .42329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.614        14.165        .10856E-03   -1.4970    
  14  Prefactor     .10000E-03    5.6683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.3357        3.2485        .17490E-03   -1.5402    
  16  Prefactor     .10000E-03    5.3098        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     35.540        32.838        .67224E-04   -1.4515    
  18  Prefactor     7.5621        35.997        .14534E-03   -1.5158    
  19  Prefactor     2.4945        14.681        .25894E-03   -1.5392    
  20  Prefactor     .10000E-03    25.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.342        23.032        .81196E-04   -1.4721    
  22  Normalizat    1.5091        .27693        .30146E-03   -.77522    
  23  Prefactor     .78871        .13267        .19566E-03   -1.0015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70892e-09
Minuit parameter uncertainties:
  1  7.58332
  2  34.9721
  3  0.000768683
  4  20.3391
  5  1.61324e-06
  6  0.000466919
  7  0.000128643
  8  3.45417e-06
  9  11.6294
  10  8.06968
  11  6.11045
  12  0.000647896
  13  14.1684
  14  2.58857e-06
  15  3.24873
  16  0.000176958
  17  32.855
  18  33.0299
  19  12.1073
  20  0.000492442
  21  23.0409
  22  0.277213
  23  0.132725
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.736e+00  6.110e+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:  7.887e-01  1.327e-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.509e+00  2.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/57963/likelihoodResults_443577601_443836801_4FGL_J1147.2-2627_daily_bin788.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) = 7256.39010178
delta logL = 0.0225417639713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7256.38910338
delta logL = 0.0235401659738

Fit tolerance = 1e-08

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

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

 FCN=   7256.389     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      260 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5771        5.6483        .28102E-03   -.54573E-04
   2  Index         2.9220        1.8085        .91584E-02   -.14845E-04
   3  Normalizat    1.5009        .27318        .30215E-03   -.13740E-03
   4  Prefactor     .79104        .13166        .19540E-03   -.17275E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.57712
  Index      = 2.92202
  Normalizat = 1.50094
  Prefactor  = 0.791036
 **********
 **   18 **HESSE 
 **********

 FCN=   7256.389     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5771        5.2437        .11241E-04   -1.5457    
   2  Index         2.9220        1.6847        .36633E-03   -.42860    
   3  Normalizat    1.5009        .27359        .60430E-04   -.77752    
   4  Prefactor     .79104        .13176        .78158E-05   -1.0006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20138e-11
Minuit parameter uncertainties:
  1  5.24525
  2  1.72588
  3  0.273865
  4  0.131816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57963': 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) = 7256.38910328
delta logL = 0.0235402683275

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.577e+00  5.245e+00  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.922e+00  1.726e+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:  7.910e-01  1.318e-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.501e+00  2.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/57963/cmap_HighResolution_443577601_443836801_4FGL_J1147.2-2627_daily_bin788.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-04 10:57:13.707374', job_id='57963', GAL2='0.79', fit_tolerance='1e-08', EG2='1.50', EG='1.51', time_epoch_completed='1630778233.71', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.35e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='788' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:57:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 57963: <4FGL_J1147.2-2627_daily_bin788> in cluster <slac> Done

Job <4FGL_J1147.2-2627_daily_bin788> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 10:41:17 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:41:18 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:41:18 2021
Terminated at Sat Sep  4 10:57:14 2021
Results reported at Sat Sep  4 10:57:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin788 176.811 -26.4649 443577601 443836801 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 :                                   746.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             249.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            957 sec.

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

