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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin824
RA = 176.811, Dec = -26.4649
tmin = 452908801, tmax = 453168001
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='58013', job_status='RUN', time_executed='2021-09-04 10:44:15.210748', time_epoch_executed='1630777455.21' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='824'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58013

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58013/ft1_4FGL_J1147.2-2627_daily_bin824.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58013/ft2_4FGL_J1147.2-2627_daily_bin824.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58013/ft1_4FGL_J1147.2-2627_daily_bin824.fits outfile=/scratch/kocevski/58013/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin824.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=452908801.0 tmax=453168001.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.08
user 3.85
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58013/ft1_filtered_4FGL_J1147.2-2627_daily_bin824.fits" evtable="EVENTS" scfile=/scratch/kocevski/58013/ft2_4FGL_J1147.2-2627_daily_bin824.fits sctable="SC_DATA" outfile=/scratch/kocevski/58013/ltcube_452908801_453168001_4FGL_J1147.2-2627_daily_bin824.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/58013/ft2_4FGL_J1147.2-2627_daily_bin824.fits
.....................!
real 12.26
user 11.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58013/ft1_filtered_4FGL_J1147.2-2627_daily_bin824.fits evtable="EVENTS" scfile=/scratch/kocevski/58013/ft2_4FGL_J1147.2-2627_daily_bin824.fits sctable="SC_DATA" expcube=/scratch/kocevski/58013/ltcube_452908801_453168001_4FGL_J1147.2-2627_daily_bin824.fits outfile=/scratch/kocevski/58013/expmap_452908801_453168001_4FGL_J1147.2-2627_daily_bin824.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/58013/ltcube_452908801_453168001_4FGL_J1147.2-2627_daily_bin824.fits
.....................!
real 190.72
user 185.20
sys 4.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/58013/ft1_filtered_4FGL_J1147.2-2627_daily_bin824.fits scfile=/scratch/kocevski/58013/ft2_4FGL_J1147.2-2627_daily_bin824.fits outfile=/scratch/kocevski/58013/cmap_452908801_453168001_4FGL_J1147.2-2627_daily_bin824.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.68
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58013/ft1_filtered_4FGL_J1147.2-2627_daily_bin824.fits scfile=/scratch/kocevski/58013/ft2_4FGL_J1147.2-2627_daily_bin824.fits outfile=/scratch/kocevski/58013/cmap_HighResolution_452908801_453168001_4FGL_J1147.2-2627_daily_bin824.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.78
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.760       1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.457       1.0000         .10000E-03   10000.    
     3 'Prefactor '    230.96       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.783       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    52.718       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4116       1.0000         .10000E-03   10000.    
     8 'norm      '    6.8120       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.3338       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    75.263       1.0000         .10000E-03   10000.    
    13 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.269       1.0000         .10000E-03   10000.    
    15 'norm      '    .11734E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0112       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .93916       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.134       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .69451       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1894       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=   7404.701     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2575 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.759        9.8156        .20335E-06    .59254E-05
   2  Prefactor     41.460        48.635        .12311E-06   -.34099E-06
   3  Prefactor     230.90        143.09       -.61515E-07   -.10000E-04
   4  Prefactor     20.774        32.114        .13452E-06   -.74745E-06
   5  Prefactor     .10000E-03    3.5440       -.24850E-06** at limit **
   6  Prefactor     52.709        53.842        .41076E-07   -.22817E-05
   7  Prefactor     2.3693        150.65       -.46313E-05    .12429E-05
   8  norm          6.8119        1.9274        .33955E-07    .23602E-04
   9  Prefactor     .10000E-03    6.5224       -.81225E-06** at limit **
  10  norm          9.3335        6.5699       -.24395E-07    .19754E-04
  11  Prefactor     .10000E-03    3.3312        .65819E-07** at limit **
  12  Prefactor     75.264        37.587        .43361E-07   -.92994E-05
  13  norm          .10000E-03    24.753       -.15249E-06** at limit **
  14  Prefactor     31.285        17.534       -.28112E-06    .44020E-05
  15  norm          .10000E-03    18.737       -.33619E-05** at limit **
  16  Prefactor     3.0115        5.1657        .13885E-05    .46422E-04
  17  Prefactor     .10000E-03    49.390        .51244E-06** at limit **
  18  Prefactor     .85238        339.61       -.39723E-05    .24068E-06
  19  Prefactor     .10000E-03    11.264        .35863E-07** at limit **
  20  Prefactor     .10000E-03    24.825       -.17218E-07** at limit **
  21  Prefactor     23.135        26.155        .35552E-06   -.16832E-05
  22  Normalizat    .69438        .26892       -.19960E-05   -.46700E-05
  23  Prefactor     1.1895        .12998        .22925E-06   -.13363E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.7591
  Prefactor  = 41.4603
  Prefactor  = 230.897
  Prefactor  = 20.7744
  Prefactor  = 0.0001
  Prefactor  = 52.7092
  Prefactor  = 2.36927
  norm       = 6.81194
  Prefactor  = 0.0001
  norm       = 9.33346
  Prefactor  = 0.0001
  Prefactor  = 75.2644
  norm       = 0.0001
  Prefactor  = 31.2852
  norm       = 0.0001
  Prefactor  = 3.01146
  Prefactor  = 0.0001
  Prefactor  = 0.852379
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1348
  Normalizat = 0.69438
  Prefactor  = 1.18947
 **********
 **   18 **HESSE 
 **********

 FCN=   7404.701     FROM HESSE     STATUS=OK           372 CALLS     2947 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.759        9.8185        .11214E-03   -1.4993    
   2  Prefactor     41.460        48.637        .62258E-04   -1.4419    
   3  Prefactor     230.90        143.35        .13315E-03   -1.2657    
   4  Prefactor     20.774        32.123        .87858E-04   -1.4796    
   5  Prefactor     .10000E-03    3.5430        .15810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     52.709        53.861        .55239E-04   -1.4255    
   7  Prefactor     2.3693        152.57        .26362E-03   -1.5400    
   8  norm          6.8119        1.9279        .59824E-04   -1.5186    
   9  Prefactor     .10000E-03    6.4953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.3335        6.5692        .13118E-03   -1.5097    
  11  Prefactor     .10000E-03    3.3893        .15337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     75.264        37.535        .46283E-04   -1.3971    
  13  norm          .10000E-03    24.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.285        17.639        .71654E-04   -1.4589    
  15  norm          .10000E-03    18.702        .33739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0115        5.4415        .22312E-03   -1.5361    
  17  Prefactor     .10000E-03    49.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .85238        382.78        .77985E-02   -1.5523    
  19  Prefactor     .10000E-03    11.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    24.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.135        26.315        .83279E-04   -1.4746    
  22  Normalizat    .69438        .29175        .44046E-03   -1.0412    
  23  Prefactor     1.1895        .14445        .17626E-03   -.86656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24166e-10
Minuit parameter uncertainties:
  1  9.81975
  2  48.6837
  3  143.57
  4  32.1496
  5  3.18678e-06
  6  53.9108
  7  38.1258
  8  1.92787
  9  1.70354e-05
  10  6.56973
  11  7.50934e-06
  12  37.547
  13  2.95683e-05
  14  17.6417
  15  1.77348e-05
  16  5.44242
  17  8.4489e-05
  18  36.36
  19  4.91415e-06
  20  5.10087e-06
  21  26.3281
  22  0.292408
  23  0.144499
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  1.189e+00  1.445e-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.944e-01  2.924e-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.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/58013/likelihoodResults_452908801_453168001_4FGL_J1147.2-2627_daily_bin824.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) = 7404.70221988
delta logL = -0.00140506672506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7404.70081886
delta logL = -4.04090769734e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13387E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5260       1.0000          .0000       10.000    
     3 'Normalizat'    .69455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1894       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=   7404.701     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      260 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3578        .62177E-01** at limit **
   2  Index         2.0681        7.0931        .50000        .10095E-07
   3  Normalizat    .69438        .37793E-02    .44045E-03    .79738E-03
   4  Prefactor     1.1895        .19464E-02    .17626E-03    .18280E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.0681
  Normalizat = 0.694383
  Prefactor  = 1.18947
 **********
 **   18 **HESSE 
 **********

 FCN=   7404.701     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      291 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.841        .30539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0681        6.0739        .50000       -.62658    
   3  Normalizat    .69438        .19248E-01    .88090E-04   -1.0412    
   4  Prefactor     1.1895        .99126E-02    .35252E-04   -.86656    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.62391e-11
Minuit parameter uncertainties:
  1  4.09244e-05
  2  238.581
  3  0.0192477
  4  0.00991258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58013': 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) = 7404.70080907
delta logL = 5.74838031753e-06

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  4.092e-05  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.068e+00  2.386e+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.189e+00  9.913e-03  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.944e-01  1.925e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/58013/cmap_HighResolution_452908801_453168001_4FGL_J1147.2-2627_daily_bin824.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.74e-03', job_status='DONE', photon_flux_upper_limit='8.64e-08', time_completed='2021-09-04 10:57:20.844857', job_id='58013', GAL2='1.19', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1630778240.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='5.75e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='824' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:57:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 58013: <4FGL_J1147.2-2627_daily_bin824> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin824 176.811 -26.4649 452908801 453168001 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 :                                   775.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            961 sec.

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

