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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin605
RA = 176.811, Dec = -26.4649
tmin = 396144001, tmax = 396403201
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='55921', job_status='RUN', time_executed='2021-09-04 10:39:14.407778', time_epoch_executed='1630777154.41' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='605'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55921

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55921/ft1_4FGL_J1147.2-2627_daily_bin605.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55921/ft2_4FGL_J1147.2-2627_daily_bin605.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55921/ft1_4FGL_J1147.2-2627_daily_bin605.fits outfile=/scratch/kocevski/55921/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin605.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=396144001.0 tmax=396403201.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.37
user 3.06
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55921/ft1_filtered_4FGL_J1147.2-2627_daily_bin605.fits" evtable="EVENTS" scfile=/scratch/kocevski/55921/ft2_4FGL_J1147.2-2627_daily_bin605.fits sctable="SC_DATA" outfile=/scratch/kocevski/55921/ltcube_396144001_396403201_4FGL_J1147.2-2627_daily_bin605.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/55921/ft2_4FGL_J1147.2-2627_daily_bin605.fits
.....................!
real 12.45
user 11.65
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55921/ft1_filtered_4FGL_J1147.2-2627_daily_bin605.fits evtable="EVENTS" scfile=/scratch/kocevski/55921/ft2_4FGL_J1147.2-2627_daily_bin605.fits sctable="SC_DATA" expcube=/scratch/kocevski/55921/ltcube_396144001_396403201_4FGL_J1147.2-2627_daily_bin605.fits outfile=/scratch/kocevski/55921/expmap_396144001_396403201_4FGL_J1147.2-2627_daily_bin605.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/55921/ltcube_396144001_396403201_4FGL_J1147.2-2627_daily_bin605.fits
.....................!
real 193.12
user 187.26
sys 4.21

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/55921/ft1_filtered_4FGL_J1147.2-2627_daily_bin605.fits scfile=/scratch/kocevski/55921/ft2_4FGL_J1147.2-2627_daily_bin605.fits outfile=/scratch/kocevski/55921/cmap_396144001_396403201_4FGL_J1147.2-2627_daily_bin605.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55921/ft1_filtered_4FGL_J1147.2-2627_daily_bin605.fits scfile=/scratch/kocevski/55921/ft2_4FGL_J1147.2-2627_daily_bin605.fits outfile=/scratch/kocevski/55921/cmap_HighResolution_396144001_396403201_4FGL_J1147.2-2627_daily_bin605.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6351       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    54.756       1.0000         .10000E-03   10000.    
     8 'norm      '    6.0517       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.761       1.0000         .10000E-03   10000.    
    10 'norm      '    7.8821       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6212       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    15.309       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.1004       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.351       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    54.311       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .90140       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0956       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=   6537.629     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2551 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6342        7.0141        .16007E-05   -.92613E-03
   2  Prefactor     .10000E-03    12.859       -.16503E-07** at limit **
   3  Prefactor     .10000E-03    119.01        .17786E-06** at limit **
   4  Prefactor     .10000E-03    12.918       -.30396E-06** at limit **
   5  Prefactor     .10000E-03    3.8279       -.18453E-08** at limit **
   6  Prefactor     .10000E-03    15.505        .54142E-07** at limit **
   7  Prefactor     54.750        60.930       -.21663E-05   -.84862E-04
   8  norm          6.0516        1.8300       -.55769E-08   -.18007E-04
   9  Prefactor     20.762        17.704        .15741E-06    .14736E-05
  10  norm          7.8822        7.9212        .47747E-06   -.31391E-03
  11  Prefactor     1.6205        7.4553        .38714E-06   -.22877E-03
  12  Prefactor     .10000E-03    12.793        .23717E-06** at limit **
  13  norm          15.309        19.137        .21751E-07   -.25716E-05
  14  Prefactor     .10000E-03    6.6344        .20714E-07** at limit **
  15  norm          .10000E-03    3.4464        .42398E-07** at limit **
  16  Prefactor     7.1037        11.047        .21190E-05    .37867E-05
  17  Prefactor     .10000E-03    35.266        .27654E-07** at limit **
  18  Prefactor     32.333        61.540       -.88768E-05   -.19226E-03
  19  Prefactor     .10000E-03    10.335        .22171E-07** at limit **
  20  Prefactor     .10000E-03    20.666        .39971E-09** at limit **
  21  Prefactor     54.312        40.402        .95505E-06   -.94523E-05
  22  Normalizat    .90155        .26117       -.36772E-06   -.99198E-05
  23  Prefactor     1.0956        .12827        .42102E-07   -.22921E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.63421
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.7499
  norm       = 6.0516
  Prefactor  = 20.7619
  norm       = 7.88221
  Prefactor  = 1.62054
  Prefactor  = 0.0001
  norm       = 15.3088
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.10372
  Prefactor  = 0.0001
  Prefactor  = 32.3334
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.312
  Normalizat = 0.901545
  Prefactor  = 1.09556
 **********
 **   18 **HESSE 
 **********

 FCN=   6537.629     FROM HESSE     STATUS=OK           366 CALLS     2917 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6342        8.1556        .77893E-03   -1.5193    
   2  Prefactor     .10000E-03    12.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    119.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8322        .15449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     54.750        61.462        .54207E-04   -1.4227    
   8  norm          6.0516        1.8318        .57684E-04   -1.5216    
   9  Prefactor     20.762        17.696        .87904E-04   -1.4796    
  10  norm          7.8822        8.0313        .71411E-03   -1.5146    
  11  Prefactor     1.6205        7.8785        .33238E-03   -1.5453    
  12  Prefactor     .10000E-03    12.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.309        19.141        .10237E-03   -1.4925    
  14  Prefactor     .10000E-03    6.6513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.6040        .29301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.1037        11.237        .15054E-03   -1.5175    
  17  Prefactor     .10000E-03    35.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     32.333        65.716        .70448E-04   -1.4570    
  19  Prefactor     .10000E-03    10.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     54.312        40.425        .54427E-04   -1.4233    
  22  Normalizat    .90155        .29832        .39495E-03   -.96406    
  23  Prefactor     1.0956        .14709        .18271E-03   -.89609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74824e-09
Minuit parameter uncertainties:
  1  8.15693
  2  3.04363e-06
  3  1.84473e-05
  4  3.06909e-05
  5  1.03351e-06
  6  4.22222e-06
  7  61.5335
  8  1.83184
  9  17.7008
  10  8.03238
  11  7.14758
  12  2.2638e-05
  13  19.1488
  14  3.41641e-06
  15  2.93484e-06
  16  11.2402
  17  7.4263e-06
  18  65.8638
  19  2.00821e-07
  20  1.0293e-07
  21  40.4455
  22  0.298871
  23  0.147141
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.621e+00  7.148e+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.096e+00  1.471e-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:  9.015e-01  2.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/55921/likelihoodResults_396144001_396403201_4FGL_J1147.2-2627_daily_bin605.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) = 6537.6066847
delta logL = 0.0225372286523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6537.35967327
delta logL = 0.269548656661

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6537.360     FROM MIGRAD    STATUS=FAILED       221 CALLS      513 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .99378E-02    .34839E-03** at limit **
   2  Index         9.2237        9.4270        .17363        .80036E-04
   3  Normalizat    .85055        .71117E-01    .39301E-02    .27229E-04
   4  Prefactor     1.1156        .35781E-01    .18270E-03    .98269E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6537.360     FROM SIMPLEX   STATUS=UNCHANGED    161 CALLS      674 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .99378E-02    .11417E-04** at limit **
   2  Index         9.2237        9.4270        .13452E-02    .80036E-04
   3  Normalizat    .85055        .71117E-01    .94345E-05    .27229E-04
   4  Prefactor     1.1156        .35781E-01    .16937E-05    .98269E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6537.360     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      717 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .25909E-01    .25724E-03** at limit **
   2  Index         9.2237        7.9812        .24065E-02    .18519E-05
   3  Normalizat    .85055        .11122        .15720E-03    .12149E-04
   4  Prefactor     1.1156        .56294E-01    .36539E-04    .86558E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.22366
  Normalizat = 0.850551
  Prefactor  = 1.11563
 **********
 **   18 **HESSE 
 **********

 FCN=   6537.360     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      750 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .21946E-01    .27999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.2237        8.1650        .96258E-04    1.0061    
   3  Normalizat    .85055        .10586        .62882E-05   -.98220    
   4  Prefactor     1.1156        .53624E-01    .73078E-05   -.88969    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.06338e-10
Minuit parameter uncertainties:
  1  2.04583e-07
  2  9.93532
  3  0.105885
  4  0.0536269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55921': 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) = 6537.3596681
delta logL = 0.269553827023

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  2.046e-07  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  9.224e+00  9.935e+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:  1.116e+00  5.363e-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:  8.506e-01  1.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/55921/cmap_HighResolution_396144001_396403201_4FGL_J1147.2-2627_daily_bin605.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.53e-07', time_completed='2021-09-04 10:51:36.498414', job_id='55921', GAL2='1.12', fit_tolerance='1e-08', EG2='0.85', EG='0.90', time_epoch_completed='1630777896.5', return_code2='102', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='2.70e-01', ts2='0.63', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='605' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:51:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 55921: <4FGL_J1147.2-2627_daily_bin605> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin605 176.811 -26.4649 396144001 396403201 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 :                                   736.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            917 sec.

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

