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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin1469
RA = 176.811, Dec = -26.4649
tmin = 620092801, tmax = 620352001
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='62345', job_status='RUN', time_executed='2021-09-04 10:52:22.770293', time_epoch_executed='1630777942.77' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='1469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62345

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62345/ft1_4FGL_J1147.2-2627_daily_bin1469.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62345/ft2_4FGL_J1147.2-2627_daily_bin1469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62345/ft1_4FGL_J1147.2-2627_daily_bin1469.fits outfile=/scratch/kocevski/62345/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1469.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=620092801.0 tmax=620352001.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.44
user 3.21
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62345/ft1_filtered_4FGL_J1147.2-2627_daily_bin1469.fits" evtable="EVENTS" scfile=/scratch/kocevski/62345/ft2_4FGL_J1147.2-2627_daily_bin1469.fits sctable="SC_DATA" outfile=/scratch/kocevski/62345/ltcube_620092801_620352001_4FGL_J1147.2-2627_daily_bin1469.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/62345/ft2_4FGL_J1147.2-2627_daily_bin1469.fits
.....................!
real 11.50
user 11.12
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62345/ft1_filtered_4FGL_J1147.2-2627_daily_bin1469.fits evtable="EVENTS" scfile=/scratch/kocevski/62345/ft2_4FGL_J1147.2-2627_daily_bin1469.fits sctable="SC_DATA" expcube=/scratch/kocevski/62345/ltcube_620092801_620352001_4FGL_J1147.2-2627_daily_bin1469.fits outfile=/scratch/kocevski/62345/expmap_620092801_620352001_4FGL_J1147.2-2627_daily_bin1469.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/62345/ltcube_620092801_620352001_4FGL_J1147.2-2627_daily_bin1469.fits
.....................!
real 190.31
user 185.10
sys 4.88

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/62345/ft1_filtered_4FGL_J1147.2-2627_daily_bin1469.fits scfile=/scratch/kocevski/62345/ft2_4FGL_J1147.2-2627_daily_bin1469.fits outfile=/scratch/kocevski/62345/cmap_620092801_620352001_4FGL_J1147.2-2627_daily_bin1469.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.56
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/62345/ft1_filtered_4FGL_J1147.2-2627_daily_bin1469.fits evtable="EVENTS" scfile=/scratch/kocevski/62345/ft2_4FGL_J1147.2-2627_daily_bin1469.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/62345/Model_4FGL_J1147.2-2627_daily_bin1469.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/62345/ft1_filtered_4FGL_J1147.2-2627_daily_bin1469.fits....................!
real 70.40
user 68.80
sys 1.48

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.747       1.0000         .10000E-03   10000.    
     3 'Prefactor '    158.37       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.256       1.0000         .10000E-03   10000.    
     8 'norm      '    .85160       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7460       1.0000         .10000E-03   10000.    
    10 'norm      '    2.6105       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13920E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    20.716       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.387       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18271E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0401       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.8052       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83869       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.

 FCN=   7575.107     FROM MIGRAD    STATUS=CONVERGED    912 CALLS     2955 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5621        .15996E-02** at limit **
   2  Prefactor     25.746        33.203        .78948E-04    .35828E-04
   3  Prefactor     158.33        116.25        .16020E-03    .48738E-04
   4  Prefactor     .10000E-03    12.003        .18142E-02** at limit **
   5  Prefactor     .10000E-03    13.226        .18142E-02** at limit **
   6  Prefactor     .10000E-03    19.172        .18142E-02** at limit **
   7  Prefactor     36.242        57.255        .66558E-04    .83696E-05
   8  norm          .85153        1.1529        .11467E-02   -.46796E-03
   9  Prefactor     4.7497        10.209        .92347E-03    .29300E-04
  10  norm          2.6091        6.9366        .25247E-03    .98165E-05
  11  Prefactor     .10000E-03    11.355        .33495E-02** at limit **
  12  Prefactor     .10000E-03    38.230        .18142E-02** at limit **
  13  norm          .10000E-03    10.287        .18142E-02** at limit **
  14  Prefactor     .10000E-03    100.39        .62223E-02** at limit **
  15  norm          20.711        7.5902        .88001E-04   -.11472E-03
  16  Prefactor     12.402        8.9301        .11382E-03   -.22524E-03
  17  Prefactor     .10000E-03    34.941        .17189    ** at limit **
  18  Prefactor     2.0678        226.81        .28953E-03    .12565E-05
  19  Prefactor     .10000E-03    8.0198        .18142E-02** at limit **
  20  Prefactor     .10000E-03    15.995        .18142E-02** at limit **
  21  Prefactor     .10000E-03    10.234        .18142E-02** at limit **
  22  Normalizat    1.8054        .29925        .31963E-03    .39490E-03
  23  Prefactor     .83871        .14258        .21455E-03    .16066E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.7455
  Prefactor  = 158.326
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.2422
  norm       = 0.851529
  Prefactor  = 4.7497
  norm       = 2.60905
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 20.7114
  Prefactor  = 12.4016
  Prefactor  = 0.0001
  Prefactor  = 2.0678
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.80543
  Prefactor  = 0.838712
 **********
 **   18 **HESSE 
 **********

 FCN=   7575.107     FROM HESSE     STATUS=OK           360 CALLS     3315 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5627        .31991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.746        33.202        .15790E-04   -1.4693    
   3  Prefactor     158.33        116.23        .32040E-04   -1.3185    
   4  Prefactor     .10000E-03    12.003        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.231        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.172        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     36.242        57.175        .26623E-05   -1.4503    
   8  norm          .85153        1.1516        .45870E-04   -1.5523    
   9  Prefactor     4.7497        10.205        .36939E-04   -1.5272    
  10  norm          2.6091        6.9361        .10099E-04   -1.5385    
  11  Prefactor     .10000E-03    11.429        .66991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    38.234        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.287        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    101.61        .24889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          20.711        7.5393        .35200E-05   -1.4797    
  16  Prefactor     12.402        8.9174        .45526E-05   -1.5004    
  17  Prefactor     .10000E-03    35.044        .17139       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0678        226.08        .11581E-04   -1.5420    
  19  Prefactor     .10000E-03    8.0200        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.234        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.8054        .29939        .63927E-04   -.69522    
  23  Prefactor     .83871        .14269        .85820E-05   -.98317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.49972e-10
Minuit parameter uncertainties:
  1  2.95825e-06
  2  33.2256
  3  116.396
  4  2.84073e-06
  5  2.24357e-05
  6  5.23878e-05
  7  57.2617
  8  1.15162
  9  10.2092
  10  6.93827
  11  0.000128861
  12  0.000114184
  13  1.97604e-05
  14  0.000450985
  15  7.53963
  16  8.91836
  17  5.25782e-05
  18  43.4116
  19  1.67688e-05
  20  2.57354e-05
  21  5.92886e-05
  22  0.299692
  23  0.14275
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.289e-04  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.387e-01  1.428e-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.805e+00  2.997e-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.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/62345/likelihoodResults_620092801_620352001_4FGL_J1147.2-2627_daily_bin1469.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) = 7575.1078113
delta logL = -0.000417883722548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7575.10739345
delta logL = -3.61196725862e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5956       1.0000          .0000       10.000    
     3 'Normalizat'    1.8055       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83870       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=   7575.107     FROM MIGRAD    STATUS=FAILED        96 CALLS      262 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10410E-03    60.559        .33277E-02** at limit **
   2  Index         2.7344        6.3265        .50000       -.12409E-04
   3  Normalizat    1.8054        .13644E-01    .31963E-03   -.31305E-03
   4  Prefactor     .83872        .66213E-02    .21455E-03   -.27911E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7575.107     FROM SIMPLEX   STATUS=UNCHANGED    126 CALLS      388 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10410E-03    60.559        .61197E-03** at limit **
   2  Index         2.7344        6.3265        .33292E-03   -.12409E-04
   3  Normalizat    1.8054        .13644E-01    .10241E-05   -.31305E-03
   4  Prefactor     .83872        .66213E-02    .49857E-06   -.27911E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7575.107     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      421 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10137E-03    326.79        .66554E-03** at limit **
   2  Index         2.7124        5.3005        .50000       -.14070E-04
   3  Normalizat    1.8054        .32626E-01    .63926E-04   -.32114E-03
   4  Prefactor     .83872        .15833E-01    .42910E-04   -.28879E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101374
  Index      = 2.71235
  Normalizat = 1.80542
  Prefactor  = 0.838716
 **********
 **   18 **HESSE 
 **********

 FCN=   7575.107     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      450 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10137E-03    1717.7        .13311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7124        8.5213        .50000       -.47522    
   3  Normalizat    1.8054        .92237E-01    .12785E-04   -.69522    
   4  Prefactor     .83872        .44742E-01    .85820E-05   -.98317    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.53559e-08
Minuit parameter uncertainties:
  1  0.100173
  2  1137.63
  3  0.0922459
  4  0.0447435
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62345': 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) = 7575.10739278
delta logL = 6.33361196378e-07

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.014e-04  1.002e-01  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.712e+00  1.138e+03  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.387e-01  4.474e-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:  1.805e+00  9.225e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/62345/cmap_HighResolution_620092801_620352001_4FGL_J1147.2-2627_daily_bin1469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.44e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-09-04 11:06:06.585110', job_id='62345', GAL2='0.84', fit_tolerance='1e-08', EG2='1.81', EG='1.81', time_epoch_completed='1630778766.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='6.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1469' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:06:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 62345: <4FGL_J1147.2-2627_daily_bin1469> in cluster <slac> Done

Job <4FGL_J1147.2-2627_daily_bin1469> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 10:52:06 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:52:07 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:52:07 2021
Terminated at Sat Sep  4 11:06:07 2021
Results reported at Sat Sep  4 11:06:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin1469 176.811 -26.4649 620092801 620352001 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 :                                   820.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            841 sec.

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

