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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin786
RA = 176.811, Dec = -26.4649
tmin = 443059201, tmax = 443318401
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='57960', job_status='RUN', time_executed='2021-09-04 10:41:37.010284', time_epoch_executed='1630777297.01' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='786'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57960

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57960/ft1_4FGL_J1147.2-2627_daily_bin786.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57960/ft2_4FGL_J1147.2-2627_daily_bin786.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57960/ft1_4FGL_J1147.2-2627_daily_bin786.fits outfile=/scratch/kocevski/57960/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin786.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=443059201.0 tmax=443318401.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.79
user 3.58
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57960/ft1_filtered_4FGL_J1147.2-2627_daily_bin786.fits" evtable="EVENTS" scfile=/scratch/kocevski/57960/ft2_4FGL_J1147.2-2627_daily_bin786.fits sctable="SC_DATA" outfile=/scratch/kocevski/57960/ltcube_443059201_443318401_4FGL_J1147.2-2627_daily_bin786.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/57960/ft2_4FGL_J1147.2-2627_daily_bin786.fits
.....................!
real 11.63
user 11.30
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57960/ft1_filtered_4FGL_J1147.2-2627_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/57960/ft2_4FGL_J1147.2-2627_daily_bin786.fits sctable="SC_DATA" expcube=/scratch/kocevski/57960/ltcube_443059201_443318401_4FGL_J1147.2-2627_daily_bin786.fits outfile=/scratch/kocevski/57960/expmap_443059201_443318401_4FGL_J1147.2-2627_daily_bin786.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/57960/ltcube_443059201_443318401_4FGL_J1147.2-2627_daily_bin786.fits
.....................!
real 190.02
user 184.73
sys 4.81

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/57960/ft1_filtered_4FGL_J1147.2-2627_daily_bin786.fits scfile=/scratch/kocevski/57960/ft2_4FGL_J1147.2-2627_daily_bin786.fits outfile=/scratch/kocevski/57960/cmap_443059201_443318401_4FGL_J1147.2-2627_daily_bin786.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57960/ft1_filtered_4FGL_J1147.2-2627_daily_bin786.fits scfile=/scratch/kocevski/57960/ft2_4FGL_J1147.2-2627_daily_bin786.fits outfile=/scratch/kocevski/57960/cmap_HighResolution_443059201_443318401_4FGL_J1147.2-2627_daily_bin786.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    80.667       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.3144       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.977       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10398E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.338       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.122       1.0000         .10000E-03   10000.    
    15 'norm      '    3.4057       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15629E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11337E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    104.54       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3061       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .85471       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=   6685.726     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2577 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3821        .55724E-08** at limit **
   2  Prefactor     .10000E-03    16.952        .15045E-05** at limit **
   3  Prefactor     .10000E-03    42.504       -.29475E-05** at limit **
   4  Prefactor     .10000E-03    22.598        .50684E-05** at limit **
   5  Prefactor     .10000E-03    19.669       -.58516E-05** at limit **
   6  Prefactor     80.688        64.542        .42547E-05    .80009E-05
   7  Prefactor     .10000E-03    30.291        .76733E-06** at limit **
   8  norm          2.3146        1.2386       -.14736E-06    .13222E-04
   9  Prefactor     14.977        12.885       -.34947E-06    .20051E-04
  10  norm          .10000E-03    2.7770        .76199E-08** at limit **
  11  Prefactor     .10000E-03    7.5703       -.10708E-06** at limit **
  12  Prefactor     26.341        30.184       -.62314E-08    .10137E-03
  13  norm          .10000E-03    12.435       -.35334E-07** at limit **
  14  Prefactor     19.123        16.328        .13376E-05    .14325E-03
  15  norm          3.4060        5.1495        .35350E-06    .66169E-04
  16  Prefactor     .10005E-03    4.8849       -.22209E-05** at limit **
  17  Prefactor     .10000E-03    22.135        .31120E-05** at limit **
  18  Prefactor     .10000E-03    44.701        .45687E-05** at limit **
  19  Prefactor     .10054E-03    29.409       -.34710E-05** at limit **
  20  Prefactor     104.43        60.611        .10578E-05    .17353E-03
  21  Prefactor     .10000E-03    31.838       -.44506E-05** at limit **
  22  Normalizat    1.3060        .23399        .17712E-05    .39657E-03
  23  Prefactor     .85474        .11329        .92644E-06    .58942E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 80.6881
  Prefactor  = 0.0001
  norm       = 2.31459
  Prefactor  = 14.977
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.3408
  norm       = 0.0001
  Prefactor  = 19.1227
  norm       = 3.40597
  Prefactor  = 0.000100051
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100543
  Prefactor  = 104.432
  Prefactor  = 0.0001
  Normalizat = 1.30601
  Prefactor  = 0.854738
 **********
 **   18 **HESSE 
 **********

 FCN=   6685.726     FROM HESSE     STATUS=OK           368 CALLS     2945 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4351        .16715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    42.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     80.688        64.378        .44718E-04   -1.3909    
   7  Prefactor     .10000E-03    30.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3146        1.2398        .63718E-04   -1.5404    
   9  Prefactor     14.977        12.901        .10349E-03   -1.4934    
  10  norm          .10000E-03    2.7864        .13307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.7513        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.341        30.062        .78058E-04   -1.4681    
  13  norm          .10000E-03    12.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.123        16.298        .91592E-04   -1.4833    
  15  norm          3.4060        5.1123        .18998E-03   -1.5339    
  16  Prefactor     .10005E-03    20.623        .33331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    44.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10054E-03    39.533        .11392       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     104.43        77.924        .19665E-03   -1.3661    
  21  Prefactor     .10000E-03    32.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3060        .27984        .31910E-03   -.83387    
  23  Prefactor     .85474        .13575        .18850E-03   -.97741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74571e-09
Minuit parameter uncertainties:
  1  1.49149e-05
  2  2.54226e-05
  3  8.39519e-06
  4  6.66507e-05
  5  6.69566e-05
  6  64.4339
  7  3.69233e-05
  8  1.23983
  9  12.9031
  10  4.05511e-06
  11  5.16215e-05
  12  30.0797
  13  1.56909e-05
  14  16.3019
  15  5.11295
  16  0.00204206
  17  4.00898e-05
  18  1.76754e-05
  19  0.00927564
  20  78.0005
  21  3.38591e-05
  22  0.280169
  23  0.135808
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  5.162e-05  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.563e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  6.672e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  8.547e-01  1.358e-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.306e+00  2.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/57960/likelihoodResults_443059201_443318401_4FGL_J1147.2-2627_daily_bin786.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) = 6685.72616267
delta logL = -0.000615627546722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6685.72554737
delta logL = -3.3308606362e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10921E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5947       1.0000          .0000       10.000    
     3 'Normalizat'    1.3060       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85475       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=   6685.726     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      212 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.543        .90712E-02** at limit **
   2  Index         2.6281        6.3098        .50000       -.37609E-04
   3  Normalizat    1.3060        .22808        .72113E-01   -.16199E-03
   4  Prefactor     .85474        .11224        .44426E-01   -.30029E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.62814
  Normalizat = 1.30601
  Prefactor  = 0.854738
 **********
 **   18 **HESSE 
 **********

 FCN=   6685.726     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9277        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6281        6.3111        .50000       -.49425    
   3  Normalizat    1.3060        .27143        .31910E-03   -.83387    
   4  Prefactor     .85474        .13383        .18850E-03   -.97741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66577e-09
Minuit parameter uncertainties:
  1  8.76319e-05
  2  4.52353
  3  0.27173
  4  0.133884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57960': 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) = 6685.72554649
delta logL = 5.55642145628e-07

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  8.763e-05  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.628e+00  4.524e+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:  8.547e-01  1.339e-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.306e+00  2.717e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 176.811 -26.465

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/57960/cmap_HighResolution_443059201_443318401_4FGL_J1147.2-2627_daily_bin786.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.41e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-04 10:53:29.667405', job_id='57960', GAL2='0.85', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630778009.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='5.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='786' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:53:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 57960: <4FGL_J1147.2-2627_daily_bin786> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin786 176.811 -26.4649 443059201 443318401 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 :                                   711.25 sec.
    Max Memory :                                 1000 MB
    Average Memory :                             346.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            735 sec.

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

