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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin1330
RA = 176.811, Dec = -26.4649
tmin = 584064001, tmax = 584323201
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='60202', job_status='RUN', time_executed='2021-09-04 10:48:48.858025', time_epoch_executed='1630777728.86' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='1330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/60202

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/60202/ft1_4FGL_J1147.2-2627_daily_bin1330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/60202/ft2_4FGL_J1147.2-2627_daily_bin1330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/60202/ft1_4FGL_J1147.2-2627_daily_bin1330.fits outfile=/scratch/kocevski/60202/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1330.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=584064001.0 tmax=584323201.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.62
user 4.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/60202/ft1_filtered_4FGL_J1147.2-2627_daily_bin1330.fits" evtable="EVENTS" scfile=/scratch/kocevski/60202/ft2_4FGL_J1147.2-2627_daily_bin1330.fits sctable="SC_DATA" outfile=/scratch/kocevski/60202/ltcube_584064001_584323201_4FGL_J1147.2-2627_daily_bin1330.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/60202/ft2_4FGL_J1147.2-2627_daily_bin1330.fits
.....................!
real 13.54
user 11.05
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/60202/ft1_filtered_4FGL_J1147.2-2627_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/60202/ft2_4FGL_J1147.2-2627_daily_bin1330.fits sctable="SC_DATA" expcube=/scratch/kocevski/60202/ltcube_584064001_584323201_4FGL_J1147.2-2627_daily_bin1330.fits outfile=/scratch/kocevski/60202/expmap_584064001_584323201_4FGL_J1147.2-2627_daily_bin1330.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/60202/ltcube_584064001_584323201_4FGL_J1147.2-2627_daily_bin1330.fits
.....................!
real 191.00
user 185.90
sys 4.52

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/60202/ft1_filtered_4FGL_J1147.2-2627_daily_bin1330.fits scfile=/scratch/kocevski/60202/ft2_4FGL_J1147.2-2627_daily_bin1330.fits outfile=/scratch/kocevski/60202/cmap_584064001_584323201_4FGL_J1147.2-2627_daily_bin1330.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/60202/ft1_filtered_4FGL_J1147.2-2627_daily_bin1330.fits scfile=/scratch/kocevski/60202/ft2_4FGL_J1147.2-2627_daily_bin1330.fits outfile=/scratch/kocevski/60202/cmap_HighResolution_584064001_584323201_4FGL_J1147.2-2627_daily_bin1330.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/60202/ft1_filtered_4FGL_J1147.2-2627_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/60202/ft2_4FGL_J1147.2-2627_daily_bin1330.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/60202/Model_4FGL_J1147.2-2627_daily_bin1330.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/60202/ft1_filtered_4FGL_J1147.2-2627_daily_bin1330.fits.....................!
real 55.79
user 53.26
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15217E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.503       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12035E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.599       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0190       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.2916       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2379       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4743       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.689       1.0000         .10000E-03   10000.    
    15 'norm      '    .83435E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    130.38       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7232       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5594       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0447       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=   5589.101     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2646 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.6770       -.23366E-06** at limit **
   2  Prefactor     13.526        56.830        .13667E-05   -.21978E-04
   3  Prefactor     .10000E-03    203.93       -.21789E-05** at limit **
   4  Prefactor     27.639        56.866        .81163E-06   -.41102E-04
   5  Prefactor     9.0136        21.009       -.52429E-06    .20638E-04
   6  Prefactor     .10000E-03    58.137       -.51340E-06** at limit **
   7  Prefactor     .10000E-03    15.879        .61947E-08** at limit **
   8  norm          .10000E-03    .83514       -.12131E-06** at limit **
   9  Prefactor     7.2995        15.430       -.96908E-07    .19809E-04
  10  norm          .10000E-03    5.0235        .25244E-07** at limit **
  11  Prefactor     1.2406        14.904        .39182E-05    .75530E-06
  12  Prefactor     4.4053        146.51       -.46443E-05    .22502E-04
  13  norm          .10000E-03    6.8670        .11774E-07** at limit **
  14  Prefactor     19.630        21.446        .38248E-05    .70433E-04
  15  norm          .10002E-03    4.7203       -.15181E-05** at limit **
  16  Prefactor     .10000E-03    4.7157        .39093E-06** at limit **
  17  Prefactor     130.45        94.242        .35004E-05   -.87319E-04
  18  Prefactor     .10000E-03    38.818        .42053E-06** at limit **
  19  Prefactor     2.7367        81.308       -.50584E-05    .34362E-04
  20  Prefactor     .10000E-03    31.149       -.30570E-06** at limit **
  21  Prefactor     .10000E-03    103.13       -.38103E-07** at limit **
  22  Normalizat    1.5594        .31409        .10411E-06    .81427E-04
  23  Prefactor     1.0447        .14962        .83202E-07    .29291E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 13.526
  Prefactor  = 0.000100002
  Prefactor  = 27.6389
  Prefactor  = 9.01357
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.29955
  norm       = 0.0001
  Prefactor  = 1.24062
  Prefactor  = 4.40535
  norm       = 0.0001
  Prefactor  = 19.6301
  norm       = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 130.447
  Prefactor  = 0.000100001
  Prefactor  = 2.73671
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.55939
  Prefactor  = 1.04471
 **********
 **   18 **HESSE 
 **********

 FCN=   5589.101     FROM HESSE     STATUS=OK           372 CALLS     3018 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    79.239        .37142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.526        56.564        .10900E-03   -1.4972    
   3  Prefactor     .10000E-03    203.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.639        56.533        .76257E-04   -1.4656    
   5  Prefactor     9.0136        20.930        .13346E-03   -1.5107    
   6  Prefactor     .10000E-03    58.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.2176        .66064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.2995        15.439        .74269E-03   -1.5168    
  10  norm          .10000E-03    5.0439        .16363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2406        15.163        .20167E-02   -1.5485    
  12  Prefactor     4.4053        148.19        .19035E-03   -1.5288    
  13  norm          .10000E-03    6.8673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.630        21.501        .90264E-04   -1.4822    
  15  norm          .10002E-03    25.270        .28804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.7325        .15823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     130.45        93.298        .17631E-03   -1.3419    
  18  Prefactor     .10000E-03    38.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.7367        80.232        .24678E-03   -1.5377    
  20  Prefactor     .10000E-03    31.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    103.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5594        .36665        .35187E-03   -.76123    
  23  Prefactor     1.0447        .17709        .20304E-03   -.91254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41581e-09
Minuit parameter uncertainties:
  1  0.00122755
  2  55.4103
  3  0.00132282
  4  56.6427
  5  20.9468
  6  0.000395518
  7  1.10532e-06
  8  3.14895e-06
  9  15.4476
  10  3.27194e-06
  11  8.67694
  12  51.2392
  13  1.97507e-06
  14  21.5092
  15  0.0015889
  16  4.81194e-05
  17  93.403
  18  0.000306886
  19  29.6793
  20  0.000101369
  21  0.000678459
  22  0.367279
  23  0.177191
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.241e+00  8.677e+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:  1.045e+00  1.772e-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.559e+00  3.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/60202/likelihoodResults_584064001_584323201_4FGL_J1147.2-2627_daily_bin1330.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) = 5588.89959373
delta logL = 0.201456441337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5588.73528923
delta logL = 0.365760935107

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27050E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    7.5131       1.0000          .0000       10.000    
     3 'Normalizat'    1.4920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0686       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=   5588.735     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      290 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26128E-02    .67517E-01    .99690E-03    .10315E-01
   2  Index         7.5359        3.4889        .23581        .53464E-04
   3  Normalizat    1.4924        .59122E-01    .80921E-01    .85736E-05
   4  Prefactor     1.0683        .28860E-01    .38923E-01    .28500E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00261283
  Index      = 7.53589
  Normalizat = 1.49241
  Prefactor  = 1.06831
 **********
 **   18 **HESSE 
 **********

 FCN=   5588.735     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      325 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26128E-02    .24400        .53027E-04   -1.5698    
   2  Index         7.5359        8.6143        .96279E-02    .53191    
   3  Normalizat    1.4924        .24200        .35818E-03   -.77992    
   4  Prefactor     1.0683        .11694        .20106E-03   -.90486    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15208e-10
Minuit parameter uncertainties:
  1  0.0495231
  2  10.5794
  3  0.242185
  4  0.116963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/60202': 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) = 5588.73527168
delta logL = 0.365778485033

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  2.613e-03  4.952e-02  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  7.536e+00  1.058e+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:  1.068e+00  1.170e-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.492e+00  2.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/60202/cmap_HighResolution_584064001_584323201_4FGL_J1147.2-2627_daily_bin1330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', job_status='DONE', photon_flux_upper_limit='1.80e-07', time_completed='2021-09-04 10:59:47.910592', job_id='60202', GAL2='1.07', fit_tolerance='1e-08', EG2='1.49', EG='1.56', time_epoch_completed='1630778387.91', return_code2='102', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.66e-01', ts2='0.80', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1330' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:59:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 60202: <4FGL_J1147.2-2627_daily_bin1330> in cluster <slac> Done

Job <4FGL_J1147.2-2627_daily_bin1330> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 10:46:49 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:46:50 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:50 2021
Terminated at Sat Sep  4 10:59:48 2021
Results reported at Sat Sep  4 10:59:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin1330 176.811 -26.4649 584064001 584323201 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 :                                   650.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            779 sec.

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

