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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin1006
RA = 176.811, Dec = -26.4649
tmin = 500083201, tmax = 500342401
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='58287', job_status='RUN', time_executed='2021-09-04 10:42:23.241200', time_epoch_executed='1630777343.24' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58287

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58287/ft1_4FGL_J1147.2-2627_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58287/ft2_4FGL_J1147.2-2627_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58287/ft1_4FGL_J1147.2-2627_daily_bin1006.fits outfile=/scratch/kocevski/58287/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1006.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=500083201.0 tmax=500342401.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 5.76
user 5.49
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58287/ft1_filtered_4FGL_J1147.2-2627_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/58287/ft2_4FGL_J1147.2-2627_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/58287/ltcube_500083201_500342401_4FGL_J1147.2-2627_daily_bin1006.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/58287/ft2_4FGL_J1147.2-2627_daily_bin1006.fits
.....................!
real 11.74
user 11.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58287/ft1_filtered_4FGL_J1147.2-2627_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/58287/ft2_4FGL_J1147.2-2627_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/58287/ltcube_500083201_500342401_4FGL_J1147.2-2627_daily_bin1006.fits outfile=/scratch/kocevski/58287/expmap_500083201_500342401_4FGL_J1147.2-2627_daily_bin1006.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/58287/ltcube_500083201_500342401_4FGL_J1147.2-2627_daily_bin1006.fits
.....................!
real 190.29
user 185.63
sys 4.33

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/58287/ft1_filtered_4FGL_J1147.2-2627_daily_bin1006.fits scfile=/scratch/kocevski/58287/ft2_4FGL_J1147.2-2627_daily_bin1006.fits outfile=/scratch/kocevski/58287/cmap_500083201_500342401_4FGL_J1147.2-2627_daily_bin1006.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.51
user 0.36
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58287/ft1_filtered_4FGL_J1147.2-2627_daily_bin1006.fits scfile=/scratch/kocevski/58287/ft2_4FGL_J1147.2-2627_daily_bin1006.fits outfile=/scratch/kocevski/58287/cmap_HighResolution_500083201_500342401_4FGL_J1147.2-2627_daily_bin1006.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0503       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.258       1.0000         .10000E-03   10000.    
     6 'Prefactor '    80.674       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .71790       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.4854       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .46073       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.358       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.839       1.0000         .10000E-03   10000.    
    15 'norm      '    .17371E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6280       1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.142       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.055       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0125       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94037       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=   7603.191     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2554 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0509        3.4482        .11893E-05   -.24256E-03
   2  Prefactor     .10000E-03    7.5366       -.19806E-06** at limit **
   3  Prefactor     .10000E-03    27.526        .24963E-06** at limit **
   4  Prefactor     .10000E-03    12.542       -.13034E-06** at limit **
   5  Prefactor     12.258        11.556        .61488E-07   -.11446E-04
   6  Prefactor     80.661        47.499       -.85398E-06   -.10935E-03
   7  Prefactor     .10000E-03    11.939        .15332E-06** at limit **
   8  norm          .71928        .90226        .58550E-07    .42534E-04
   9  Prefactor     .10000E-03    6.1616        .67873E-08** at limit **
  10  norm          9.4852        6.7331        .48044E-07   -.93372E-05
  11  Prefactor     .45972        2.4613       -.62677E-07    .16986E-03
  12  Prefactor     10.358        15.428       -.75021E-07   -.17773E-04
  13  norm          .10000E-03    5.7825        .41608E-07** at limit **
  14  Prefactor     20.837        13.970       -.15840E-05   -.11873E-02
  15  norm          .10036E-03    3.2666        .19516E-05** at limit **
  16  Prefactor     5.6293        4.7398       -.92745E-07   -.27130E-03
  17  Prefactor     31.123        36.158       -.18144E-05   -.24263E-03
  18  Prefactor     .10000E-03    29.383       -.97382E-06** at limit **
  19  Prefactor     .10000E-03    7.7954       -.23336E-07** at limit **
  20  Prefactor     .10000E-03    16.578       -.31335E-06** at limit **
  21  Prefactor     15.055        15.348        .34120E-07   -.35895E-05
  22  Normalizat    1.0122        .20317       -.44286E-06   -.25747E-03
  23  Prefactor     .94053        .10091       -.17834E-07   -.34836E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.0509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2577
  Prefactor  = 80.661
  Prefactor  = 0.0001
  norm       = 0.719276
  Prefactor  = 0.0001
  norm       = 9.4852
  Prefactor  = 0.459719
  Prefactor  = 10.3584
  norm       = 0.0001
  Prefactor  = 20.8365
  norm       = 0.000100357
  Prefactor  = 5.62926
  Prefactor  = 31.1229
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0551
  Normalizat = 1.01217
  Prefactor  = 0.940529
 **********
 **   18 **HESSE 
 **********

 FCN=   7603.191     FROM HESSE     STATUS=OK           374 CALLS     2928 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0509        3.3660        .27906E-03   -1.5503    
   2  Prefactor     .10000E-03    7.5399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.258        11.578        .11442E-03   -1.5008    
   6  Prefactor     80.661        47.401        .22358E-03   -1.3909    
   7  Prefactor     .10000E-03    11.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .71928        .80911        .87320E-03   -1.5538    
   9  Prefactor     .10000E-03    6.2044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.4852        6.7347        .13012E-03   -1.5092    
  11  Prefactor     .45972        9.0706        .25319E-02   -1.5572    
  12  Prefactor     10.358        15.431        .12449E-03   -1.5064    
  13  norm          .10000E-03    5.7841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.837        13.895        .87741E-04   -1.4795    
  15  norm          .10036E-03    25.438        .23237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.6293        4.7260        .16430E-03   -1.5233    
  17  Prefactor     31.123        36.421        .71800E-04   -1.4592    
  18  Prefactor     .10000E-03    29.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.8094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.055        15.351        .10323E-03   -1.4932    
  22  Normalizat    1.0122        .23959        .31933E-03   -.92624    
  23  Prefactor     .94053        .11997        .17300E-03   -.94739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44277e-08
Minuit parameter uncertainties:
  1  3.36662
  2  1.4658e-05
  3  4.92543e-05
  4  1.62481e-05
  5  11.5803
  6  47.4236
  7  1.34774e-05
  8  0.809121
  9  2.73609e-06
  10  6.73527
  11  4.08435
  12  15.4373
  13  2.50886e-06
  14  13.8973
  15  0.00602624
  16  4.72633
  17  36.4466
  18  4.26513e-06
  19  3.11979e-05
  20  2.6785e-06
  21  15.3546
  22  0.239844
  23  0.120004
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  4.597e-01  4.084e+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:  9.405e-01  1.200e-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.012e+00  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 176.811 -26.465
Photon Flux Upper Limit: 9.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/58287/likelihoodResults_500083201_500342401_4FGL_J1147.2-2627_daily_bin1006.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) = 7602.806879
delta logL = 0.383978699754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7602.62006086
delta logL = 0.570796842627

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75268E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.1502       1.0000          .0000       10.000    
     3 'Normalizat'    .93868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96566       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=   7602.620     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      364 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66400E-03    .93247E-02    .52495E-03** at limit **
   2  Index         8.2205        2.6676        .26732       -.75914E-05
   3  Normalizat    .93924        .35921E-01    .74582E-01   -.27810E-03
   4  Prefactor     .96552        .18927E-01    .45836E-01   -.15462E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000663999
  Index      = 8.22048
  Normalizat = 0.939238
  Prefactor  = 0.96552
 **********
 **   18 **HESSE 
 **********

 FCN=   7602.620     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      397 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66400E-03    .38814E-01    .24278E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.2205        9.0462        .97031E-02    .69984    
   3  Normalizat    .93924        .15715        .33004E-03   -.95095    
   4  Prefactor     .96552        .81384E-01    .17097E-03   -.93888    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.06407e-10
Minuit parameter uncertainties:
  1  0.00935756
  2  7.81728
  3  0.157229
  4  0.0813943
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58287': 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) = 7602.62004287
delta logL = 0.570814831485

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  6.640e-04  9.358e-03  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  8.220e+00  7.817e+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:  9.655e-01  8.139e-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:  9.392e-01  1.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.25
Ra Dec: 176.811 -26.465
Photon Index (Free Index): 8.22 +/- 7.82
Photon Flux (Free Index): 5.60e-08 +/- 5.40e-08
Energy Flux (Free Index): 6.47e-06 +/- 6.70e-06

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/58287/cmap_HighResolution_500083201_500342401_4FGL_J1147.2-2627_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.42e-03', comment='SUCCESS', energy_flux2='6.47e-06', dlogl='5.71e-01', photon_flux2='5.60e-08', job_status='DONE', time_completed='2021-09-04 10:55:47.403335', photon_index_error2='7.82', photon_index2='8.22', ts='0.01', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='9.51e-08', energy_flux_error2='6.70e-06', EG='1.01', time_epoch_completed='1630778147.4', return_code='0', job_id='58287', GAL2='0.97', EG2='0.94', return_code2='102', photon_flux_error2='5.40e-08', ts2='1.25', photon_index='2.56' WHERE bin_id='1006' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:55:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 58287: <4FGL_J1147.2-2627_daily_bin1006> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin1006 176.811 -26.4649 500083201 500342401 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 :                                   802.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            848 sec.

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

