/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 62 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 = 7626
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1147.2-2627_daily_bin1211
RA = 176.811, Dec = -26.4649
tmin = 553219201, tmax = 553478401
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='59971', job_status='RUN', time_executed='2021-09-04 10:48:05.665020', time_epoch_executed='1630777685.67' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='1211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59971

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59971/ft1_4FGL_J1147.2-2627_daily_bin1211.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59971/ft2_4FGL_J1147.2-2627_daily_bin1211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59971/ft1_4FGL_J1147.2-2627_daily_bin1211.fits outfile=/scratch/kocevski/59971/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1211.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=553219201.0 tmax=553478401.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 2.95
user 2.54
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/59971/ft2_4FGL_J1147.2-2627_daily_bin1211.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/59971/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1211.fits evtable="EVENTS" outfile="/scratch/kocevski/59971/ft1_filtered_4FGL_J1147.2-2627_daily_bin1211.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.70
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/59971/ft1_filtered_4FGL_J1147.2-2627_daily_bin1211.fits" evtable="EVENTS" scfile=/scratch/kocevski/59971/ft2_4FGL_J1147.2-2627_daily_bin1211.fits sctable="SC_DATA" outfile=/scratch/kocevski/59971/ltcube_553219201_553478401_4FGL_J1147.2-2627_daily_bin1211.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/59971/ft2_4FGL_J1147.2-2627_daily_bin1211.fits
.....................!
real 12.60
user 12.00
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59971/ft1_filtered_4FGL_J1147.2-2627_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/59971/ft2_4FGL_J1147.2-2627_daily_bin1211.fits sctable="SC_DATA" expcube=/scratch/kocevski/59971/ltcube_553219201_553478401_4FGL_J1147.2-2627_daily_bin1211.fits outfile=/scratch/kocevski/59971/expmap_553219201_553478401_4FGL_J1147.2-2627_daily_bin1211.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/59971/ltcube_553219201_553478401_4FGL_J1147.2-2627_daily_bin1211.fits
.....................!
real 192.15
user 186.15
sys 4.79

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/59971/ft1_filtered_4FGL_J1147.2-2627_daily_bin1211.fits scfile=/scratch/kocevski/59971/ft2_4FGL_J1147.2-2627_daily_bin1211.fits outfile=/scratch/kocevski/59971/cmap_553219201_553478401_4FGL_J1147.2-2627_daily_bin1211.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.53
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/59971/ft1_filtered_4FGL_J1147.2-2627_daily_bin1211.fits scfile=/scratch/kocevski/59971/ft2_4FGL_J1147.2-2627_daily_bin1211.fits outfile=/scratch/kocevski/59971/cmap_HighResolution_553219201_553478401_4FGL_J1147.2-2627_daily_bin1211.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.33
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/59971/ft1_filtered_4FGL_J1147.2-2627_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/59971/ft2_4FGL_J1147.2-2627_daily_bin1211.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/59971/Model_4FGL_J1147.2-2627_daily_bin1211.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/59971/ft1_filtered_4FGL_J1147.2-2627_daily_bin1211.fits.....................!
real 87.95
user 82.86
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    115.63       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.598       1.0000         .10000E-03   10000.    
     8 'norm      '    .31050       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.310       1.0000         .10000E-03   10000.    
    10 'norm      '    15.026       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1016       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    14.269       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.576       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.297       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.2091       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3249       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78781       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=   9459.562     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2515 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3797        .12700E-07** at limit **
   2  Prefactor     .10000E-03    11.093       -.99661E-06** at limit **
   3  Prefactor     115.60        77.342       -.25747E-04   -.28747E-04
   4  Prefactor     .10000E-03    7.0827        .24677E-08** at limit **
   5  Prefactor     .10000E-03    4.3733       -.54891E-07** at limit **
   6  Prefactor     .10000E-03    22.275       -.57961E-05** at limit **
   7  Prefactor     21.597        40.208       -.10836E-05   -.11027E-04
   8  norm          .31013        .67876        .44427E-06   -.28906E-03
   9  Prefactor     11.310        11.216        .47957E-06   -.70431E-04
  10  norm          15.025        7.4128        .88589E-07   -.57973E-04
  11  Prefactor     3.1013        4.0712        .88672E-06   -.86590E-03
  12  Prefactor     .10000E-03    9.5293        .32851E-05** at limit **
  13  norm          14.270        18.192        .11245E-05   -.26694E-04
  14  Prefactor     .10000E-03    5.6059       -.50208E-07** at limit **
  15  norm          11.576        4.4957        .81353E-06   -.43521E-03
  16  Prefactor     .10000E-03    2.9832       -.33816E-06** at limit **
  17  Prefactor     .10000E-03    35.143       -.61989E-05** at limit **
  18  Prefactor     36.298        25.508        .29232E-06   -.74381E-04
  19  Prefactor     .10007E-03    28.141        .65941E-05** at limit **
  20  Prefactor     4.2351        86.959        .91963E-04   -.42944E-04
  21  Prefactor     .10000E-03    7.9663       -.16312E-05** at limit **
  22  Normalizat    1.3251        .18473       -.20316E-06   -.37384E-03
  23  Prefactor     .78771        .91976E-01   -.19631E-05   -.16010E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 115.596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.5969
  norm       = 0.310135
  Prefactor  = 11.31
  norm       = 15.0249
  Prefactor  = 3.10126
  Prefactor  = 0.0001
  norm       = 14.2705
  Prefactor  = 0.0001
  norm       = 11.5757
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 36.2979
  Prefactor  = 0.000100073
  Prefactor  = 4.23505
  Prefactor  = 0.0001
  Normalizat = 1.32508
  Prefactor  = 0.787706
 **********
 **   18 **HESSE 
 **********

 FCN=   9459.562     FROM HESSE     STATUS=OK           370 CALLS     2885 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3842        .11156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     115.60        77.243        .18708E-03   -1.3553    
   4  Prefactor     .10000E-03    7.0845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.3925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.597        40.182        .86187E-04   -1.4778    
   8  norm          .31013        .64987        .11235E-02   -1.5597    
   9  Prefactor     11.310        11.204        .11912E-03   -1.5035    
  10  norm          15.025        7.4103        .10333E-03   -1.4933    
  11  Prefactor     3.1013        4.0552        .21413E-03   -1.5356    
  12  Prefactor     .10000E-03    9.5419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          14.270        18.204        .10603E-03   -1.4952    
  14  Prefactor     .10000E-03    5.6202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.576        4.5013        .11774E-03   -1.5027    
  16  Prefactor     .10000E-03    3.0571        .32708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    35.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.298        25.461        .66520E-04   -1.4502    
  19  Prefactor     .10007E-03    27.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.2351        85.640        .19642E-03   -1.5296    
  21  Prefactor     .10000E-03    7.9879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3251        .21820        .29431E-03   -.82821    
  23  Prefactor     .78771        .10902        .18684E-03   -1.0018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62146e-08
Minuit parameter uncertainties:
  1  5.34972e-06
  2  0.000191541
  3  77.3102
  4  5.94324e-06
  5  1.56889e-05
  6  9.74082e-05
  7  40.2328
  8  0.649885
  9  11.2064
  10  7.41072
  11  4.05553
  12  1.34384e-05
  13  18.2106
  14  7.69672e-05
  15  4.50143
  16  4.93657e-05
  17  0.000758811
  18  25.4682
  19  0.00285324
  20  38.1511
  21  4.21443e-07
  22  0.218354
  23  0.109045
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  3.101e+00  4.056e+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.877e-01  1.090e-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.325e+00  2.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.75
Ra Dec: 176.811 -26.465
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/59971/likelihoodResults_553219201_553478401_4FGL_J1147.2-2627_daily_bin1211.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) = 9459.56155056
delta logL = 1.61945172295e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9459.5615499
delta logL = 2.27895725402e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1012       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5645       1.0000          .0000       10.000    
     3 'Normalizat'    1.3250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78772       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=   9459.562     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      198 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0969        145.00        .57568E-02    .77325E-03
   2  Index         2.5655        6.0699        .23315        .70065E-04
   3  Normalizat    1.3250        .61674E-01    .66528E-01    .38566E-05
   4  Prefactor     .78772        .30456E-01    .43557E-01   -.35633E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.09691
  Index      = 2.5655
  Normalizat = 1.32503
  Prefactor  = 0.787721
 **********
 **   18 **HESSE 
 **********

 FCN=   9459.562     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0969        4.5909        .21394E-03   -1.5356    
   2  Index         2.5655        .90273        .13085E-01   -.50854    
   3  Normalizat    1.3250        .21326        .29431E-03   -.82822    
   4  Prefactor     .78772        .10714        .18683E-03   -1.0018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47137e-09
Minuit parameter uncertainties:
  1  4.59147
  2  0.909286
  3  0.213401
  4  0.107167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59971': 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) = 9459.56154892
delta logL = 3.25935616274e-06

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  3.097e+00  4.591e+00  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.566e+00  9.093e-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:  7.877e-01  1.072e-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.325e+00  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.75
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/59971/cmap_HighResolution_553219201_553478401_4FGL_J1147.2-2627_daily_bin1211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.99e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-04 11:03:01.299784', job_id='59971', GAL2='0.79', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630778581.3', return_code2='0', ts='0.75', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='3.26e-06', ts2='0.75', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1211' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:03:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 59971: <4FGL_J1147.2-2627_daily_bin1211> in cluster <slac> Done

Job <4FGL_J1147.2-2627_daily_bin1211> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 10:46:33 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:46:35 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:35 2021
Terminated at Sat Sep  4 11:03:02 2021
Results reported at Sat Sep  4 11:03:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin1211 176.811 -26.4649 553219201 553478401 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 :                                   881.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            989 sec.

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

