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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin500
RA = 176.811, Dec = -26.4649
tmin = 368928001, tmax = 369187201
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='55629', job_status='RUN', time_executed='2021-09-04 10:39:41.960102', time_epoch_executed='1630777181.96' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55629

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55629/ft1_4FGL_J1147.2-2627_daily_bin500.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55629/ft2_4FGL_J1147.2-2627_daily_bin500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55629/ft1_4FGL_J1147.2-2627_daily_bin500.fits outfile=/scratch/kocevski/55629/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin500.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=368928001.0 tmax=369187201.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.13
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55629/ft1_filtered_4FGL_J1147.2-2627_daily_bin500.fits" evtable="EVENTS" scfile=/scratch/kocevski/55629/ft2_4FGL_J1147.2-2627_daily_bin500.fits sctable="SC_DATA" outfile=/scratch/kocevski/55629/ltcube_368928001_369187201_4FGL_J1147.2-2627_daily_bin500.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/55629/ft2_4FGL_J1147.2-2627_daily_bin500.fits
.....................!
real 12.61
user 12.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55629/ft1_filtered_4FGL_J1147.2-2627_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/55629/ft2_4FGL_J1147.2-2627_daily_bin500.fits sctable="SC_DATA" expcube=/scratch/kocevski/55629/ltcube_368928001_369187201_4FGL_J1147.2-2627_daily_bin500.fits outfile=/scratch/kocevski/55629/expmap_368928001_369187201_4FGL_J1147.2-2627_daily_bin500.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/55629/ltcube_368928001_369187201_4FGL_J1147.2-2627_daily_bin500.fits
.....................!
real 192.26
user 187.26
sys 4.17

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/55629/ft1_filtered_4FGL_J1147.2-2627_daily_bin500.fits scfile=/scratch/kocevski/55629/ft2_4FGL_J1147.2-2627_daily_bin500.fits outfile=/scratch/kocevski/55629/cmap_368928001_369187201_4FGL_J1147.2-2627_daily_bin500.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55629/ft1_filtered_4FGL_J1147.2-2627_daily_bin500.fits scfile=/scratch/kocevski/55629/ft2_4FGL_J1147.2-2627_daily_bin500.fits outfile=/scratch/kocevski/55629/cmap_HighResolution_368928001_369187201_4FGL_J1147.2-2627_daily_bin500.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/55629/ft1_filtered_4FGL_J1147.2-2627_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/55629/ft2_4FGL_J1147.2-2627_daily_bin500.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55629/Model_4FGL_J1147.2-2627_daily_bin500.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/55629/ft1_filtered_4FGL_J1147.2-2627_daily_bin500.fits.....................!
real 61.57
user 59.91
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.126       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17544E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.238       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    48.061       1.0000         .10000E-03   10000.    
     8 'norm      '    8.4505       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14739E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.4393       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34414E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10472E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11710E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13841E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .15122E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5871       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19626E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11104E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.979       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11423E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.8117       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86061       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=   6534.148     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2599 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5213       -.13739E-07** at limit **
   2  Prefactor     37.174        36.777        .25552E-05    .80086E-04
   3  Prefactor     .10000E-03    117.32       -.37891E-06** at limit **
   4  Prefactor     .10000E-03    34.866        .10371E-05** at limit **
   5  Prefactor     11.234        15.296        .38606E-06    .23697E-04
   6  Prefactor     .10000E-03    34.314        .84756E-06** at limit **
   7  Prefactor     47.855        77.906        .64222E-05    .55705E-04
   8  norm          8.4498        2.1819        .19190E-07   -.98135E-04
   9  Prefactor     .10000E-03    24.007       -.63774E-06** at limit **
  10  norm          3.4386        6.4835        .25023E-07    .43732E-07
  11  Prefactor     .10003E-03    7.4546       -.14577E-05** at limit **
  12  Prefactor     .10000E-03    42.968       -.94518E-06** at limit **
  13  norm          .10000E-03    14.432        .14368E-07** at limit **
  14  Prefactor     .10000E-03    55.970        .75444E-06** at limit **
  15  norm          .10000E-03    3.6120        .38378E-06** at limit **
  16  Prefactor     3.5841        5.4499        .14062E-05    .38169E-03
  17  Prefactor     .10519E-03    78.259        .55296E-05** at limit **
  18  Prefactor     .10000E-03    20.013        .31046E-06** at limit **
  19  Prefactor     18.971        28.273        .19809E-07   -.14146E-03
  20  Prefactor     .10000E-03    30.702       -.11475E-05** at limit **
  21  Prefactor     .10000E-03    9.8062        .54926E-07** at limit **
  22  Normalizat    1.8119        .28741       -.18002E-05   -.10042E-03
  23  Prefactor     .86053        .13387        .11361E-06   -.19106E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 37.1744
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2344
  Prefactor  = 0.0001
  Prefactor  = 47.8545
  norm       = 8.44984
  Prefactor  = 0.0001
  norm       = 3.43855
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.58413
  Prefactor  = 0.000105193
  Prefactor  = 0.0001
  Prefactor  = 18.9705
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.81189
  Prefactor  = 0.860532
 **********
 **   18 **HESSE 
 **********

 FCN=   6534.148     FROM HESSE     STATUS=OK           372 CALLS     2971 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     37.174        36.833        .32888E-03   -1.4488    
   3  Prefactor     .10000E-03    117.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    34.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.234        15.307        .59754E-03   -1.5037    
   6  Prefactor     .10000E-03    34.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     47.855        78.500        .57841E-04   -1.4323    
   8  norm          8.4498        2.1872        .58204E-04   -1.5127    
   9  Prefactor     .10000E-03    24.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.4386        6.4692        .21809E-03   -1.5337    
  11  Prefactor     .10003E-03    29.171        .38346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    43.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    14.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    57.477        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.7734        .29144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.5841        5.5259        .10668E-02   -1.5329    
  17  Prefactor     .10519E-03    55.470        .17948       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.971        28.211        .91938E-04   -1.4837    
  20  Prefactor     .10000E-03    30.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.8225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.8119        .33878        .32911E-03   -.69354    
  23  Prefactor     .86053        .16104        .21574E-03   -.97534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91472e-09
Minuit parameter uncertainties:
  1  3.94408e-06
  2  36.856
  3  0.000375292
  4  9.02636e-05
  5  15.3124
  6  6.4418e-05
  7  78.6703
  8  2.18727
  9  0.000140257
  10  6.47051
  11  0.00200889
  12  1.50828e-05
  13  5.00978e-06
  14  3.53591e-06
  15  9.09496e-05
  16  5.52664
  17  0.033976
  18  3.28899e-05
  19  28.2307
  20  8.61908e-05
  21  6.98846e-06
  22  0.339219
  23  0.161127
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  2.009e-03  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:  8.605e-01  1.611e-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.812e+00  3.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/55629/likelihoodResults_368928001_369187201_4FGL_J1147.2-2627_daily_bin500.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) = 6534.14839224
delta logL = -0.000161206654411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6534.14823583
delta logL = -4.79285154142e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51123E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6599       1.0000          .0000       10.000    
     3 'Normalizat'    1.8119       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86069       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6534.148     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      235 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10086E-03    6.8682        .87135E-01** at limit **
   2  Index         2.6688        6.2230        .50000       -.38091E-04
   3  Normalizat    1.8119        .99270E-02    .74389E-01    .75105E-03
   4  Prefactor     .86053        .47529E-02    .44502E-01    .11004E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100862
  Index      = 2.66877
  Normalizat = 1.8119
  Prefactor  = 0.860533
 **********
 **   18 **HESSE 
 **********

 FCN=   6534.148     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .93E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10086E-03    8571.2        .29891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6688        5.7828        .50000       -.48504    
   3  Normalizat    1.8119        .13375        .32911E-03   -.69354    
   4  Prefactor     .86053        .61654E-01    .21573E-03   -.97534    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.32082e-07
Minuit parameter uncertainties:
  1  0.186971
  2  57.392
  3  0.133775
  4  0.0616592
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55629': 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) = 6534.14823014
delta logL = 8.89582224772e-07

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.009e-04  1.870e-01  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.669e+00  5.739e+01  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:  8.605e-01  6.166e-02  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.812e+00  1.338e-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/55629/cmap_HighResolution_368928001_369187201_4FGL_J1147.2-2627_daily_bin500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-09-04 10:51:30.817680', job_id='55629', GAL2='0.86', fit_tolerance='1e-08', EG2='1.81', EG='1.81', time_epoch_completed='1630777890.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='8.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='500' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:51:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 55629: <4FGL_J1147.2-2627_daily_bin500> in cluster <slac> Done

Job <4FGL_J1147.2-2627_daily_bin500> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 10:36:11 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:36:14 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:36:14 2021
Terminated at Sat Sep  4 10:51:31 2021
Results reported at Sat Sep  4 10:51:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin500 176.811 -26.4649 368928001 369187201 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 :                                   707.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            920 sec.

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

