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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin1241
RA = 176.811, Dec = -26.4649
tmin = 560995201, tmax = 561254401
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='60017', job_status='RUN', time_executed='2021-09-04 10:47:58.826792', time_epoch_executed='1630777678.83' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='1241'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/60017

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/60017/ft1_4FGL_J1147.2-2627_daily_bin1241.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/60017/ft2_4FGL_J1147.2-2627_daily_bin1241.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/60017/ft1_4FGL_J1147.2-2627_daily_bin1241.fits outfile=/scratch/kocevski/60017/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1241.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=560995201.0 tmax=561254401.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.92
user 3.51
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/60017/ft1_filtered_4FGL_J1147.2-2627_daily_bin1241.fits" evtable="EVENTS" scfile=/scratch/kocevski/60017/ft2_4FGL_J1147.2-2627_daily_bin1241.fits sctable="SC_DATA" outfile=/scratch/kocevski/60017/ltcube_560995201_561254401_4FGL_J1147.2-2627_daily_bin1241.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/60017/ft2_4FGL_J1147.2-2627_daily_bin1241.fits
.....................!
real 11.97
user 11.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/60017/ft1_filtered_4FGL_J1147.2-2627_daily_bin1241.fits evtable="EVENTS" scfile=/scratch/kocevski/60017/ft2_4FGL_J1147.2-2627_daily_bin1241.fits sctable="SC_DATA" expcube=/scratch/kocevski/60017/ltcube_560995201_561254401_4FGL_J1147.2-2627_daily_bin1241.fits outfile=/scratch/kocevski/60017/expmap_560995201_561254401_4FGL_J1147.2-2627_daily_bin1241.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/60017/ltcube_560995201_561254401_4FGL_J1147.2-2627_daily_bin1241.fits
.....................!
real 191.70
user 185.21
sys 5.50

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/60017/ft1_filtered_4FGL_J1147.2-2627_daily_bin1241.fits scfile=/scratch/kocevski/60017/ft2_4FGL_J1147.2-2627_daily_bin1241.fits outfile=/scratch/kocevski/60017/cmap_560995201_561254401_4FGL_J1147.2-2627_daily_bin1241.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 1.65
user 0.37
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/60017/ft1_filtered_4FGL_J1147.2-2627_daily_bin1241.fits scfile=/scratch/kocevski/60017/ft2_4FGL_J1147.2-2627_daily_bin1241.fits outfile=/scratch/kocevski/60017/cmap_HighResolution_560995201_561254401_4FGL_J1147.2-2627_daily_bin1241.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 1.27
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/60017/ft1_filtered_4FGL_J1147.2-2627_daily_bin1241.fits evtable="EVENTS" scfile=/scratch/kocevski/60017/ft2_4FGL_J1147.2-2627_daily_bin1241.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/60017/Model_4FGL_J1147.2-2627_daily_bin1241.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/60017/ft1_filtered_4FGL_J1147.2-2627_daily_bin1241.fits.....................!
real 86.83
user 80.47
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11885E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.784       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13173E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9658       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10259E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10633E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12057E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.3619       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.543       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.330       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10570E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .32947E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.524       1.0000         .10000E-03   10000.    
    21 'Prefactor '    66.390       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93108       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2141       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=   9188.371     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2588 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4922        .61304E-07** at limit **
   2  Prefactor     .10000E-03    57.543        .42379E-05** at limit **
   3  Prefactor     13.849        137.06        .33727E-05    .36145E-04
   4  Prefactor     .10000E-03    42.979       -.19473E-06** at limit **
   5  Prefactor     4.9744        11.120        .24751E-06    .15688E-05
   6  Prefactor     .10000E-03    14.887        .55320E-07** at limit **
   7  Prefactor     .10000E-03    23.241       -.19142E-06** at limit **
   8  norm          .10000E-03    .60790        .38477E-06** at limit **
   9  Prefactor     .10000E-03    4.9014        .24062E-07** at limit **
  10  norm          .10000E-03    7.4440        .27470E-07** at limit **
  11  Prefactor     .10000E-03    5.2418       -.46299E-07** at limit **
  12  Prefactor     .10000E-03    22.413       -.13559E-06** at limit **
  13  norm          .10000E-03    6.4964        .27048E-07** at limit **
  14  Prefactor     .10000E-03    8.7836       -.39085E-06** at limit **
  15  norm          6.3650        5.7768        .15758E-06    .19662E-03
  16  Prefactor     12.542        6.4115        .16341E-06    .21213E-03
  17  Prefactor     13.284        70.120        .88943E-06    .35236E-04
  18  Prefactor     .10000E-03    19.108        .34561E-06** at limit **
  19  Prefactor     .10001E-03    100.25       -.37529E-04** at limit **
  20  Prefactor     41.438        64.609        .31017E-05    .92986E-04
  21  Prefactor     66.413        33.513        .31374E-06    .12961E-03
  22  Normalizat    .93029        .23170       -.25290E-05    .13506E-03
  23  Prefactor     1.2144        .11306        .10124E-05    .74102E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8489
  Prefactor  = 0.0001
  Prefactor  = 4.97443
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.36503
  Prefactor  = 12.5424
  Prefactor  = 13.2841
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 41.4382
  Prefactor  = 66.4128
  Normalizat = 0.930286
  Prefactor  = 1.2144
 **********
 **   18 **HESSE 
 **********

 FCN=   9188.371     FROM HESSE     STATUS=OK           358 CALLS     2946 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4956        .11434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    57.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.849        135.75        .10788E-03   -1.4964    
   4  Prefactor     .10000E-03    43.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.9744        11.108        .18047E-03   -1.5262    
   6  Prefactor     .10000E-03    14.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .62985        .14557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.9185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.7481        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.3426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.5010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.8021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.3650        5.7562        .15913E-03   -1.5203    
  16  Prefactor     12.542        6.4055        .11310E-03   -1.5000    
  17  Prefactor     13.284        69.688        .10971E-03   -1.4979    
  18  Prefactor     .10000E-03    19.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    101.32        .42700E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     41.438        65.047        .62208E-04   -1.4420    
  21  Prefactor     66.413        33.493        .49257E-04   -1.4076    
  22  Normalizat    .93029        .26304        .40012E-03   -.95404    
  23  Prefactor     1.2144        .12925        .17813E-03   -.85889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78551e-10
Minuit parameter uncertainties:
  1  1.61315e-07
  2  0.000153853
  3  86.975
  4  0.00014896
  5  11.1124
  6  5.20479e-05
  7  0.000104155
  8  2.77339e-06
  9  1.23698e-06
  10  8.7449e-06
  11  4.09411e-06
  12  4.0768e-05
  13  2.74288e-07
  14  9.80103e-06
  15  5.7567
  16  6.40583
  17  60.9634
  18  0.00015216
  19  0.00204643
  20  65.1582
  21  33.5021
  22  0.263407
  23  0.129284
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  4.094e-06  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.214e+00  1.293e-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.303e-01  2.634e-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.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/60017/likelihoodResults_560995201_561254401_4FGL_J1147.2-2627_daily_bin1241.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) = 9188.37143787
delta logL = -0.000892252544872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9188.37054574
delta logL = -1.20280674309e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10607E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5977       1.0000          .0000       10.000    
     3 'Normalizat'    .93031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2144       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=   9188.365     FROM MIGRAD    STATUS=FAILED       184 CALLS      337 TOTAL
                     EDM=   .24E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12146        41.177        .36285E-02   -.37879E-01
   2  Index         3.9329        2.7804        .50000       -.21173E-04
   3  Normalizat    .92135        .24139E-01    .40013E-03   -.14843E-03
   4  Prefactor     1.2169        .12165E-01    .17813E-03    .46634E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9188.365     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      419 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12146        41.177        .19175E-03   -.37879E-01
   2  Index         3.9329        2.7804        .36835E-02   -.21173E-04
   3  Normalizat    .92135        .24139E-01    .10134E-03   -.14843E-03
   4  Prefactor     1.2169        .12165E-01    .25543E-04    .46634E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9188.365     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      452 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12149        4.3368        .72569E-03   -.14667E-02
   2  Index         3.9329        6.8475        .13195E-01   -.14869E-04
   3  Normalizat    .92135        .26701        .16005E-04   -.14206E-05
   4  Prefactor     1.2169        .13071        .35625E-04    .67780E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.121486
  Index      = 3.93289
  Normalizat = 0.921347
  Prefactor  = 1.21688
 **********
 **   18 **HESSE 
 **********

 FCN=   9188.365     FROM HESSE     STATUS=OK            27 CALLS      479 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12149        4.4295        .14514E-03   -1.5778    
   2  Index         3.9329        6.8496        .52781E-03   -.21508    
   3  Normalizat    .92135        .26744        .32010E-05   -.95714    
   4  Prefactor     1.2169        .13066        .71251E-05   -.85814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.2911e-10
Minuit parameter uncertainties:
  1  1.46665
  2  5.12305
  3  0.267829
  4  0.1307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/60017': 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) = 9188.36483155
delta logL = 0.00571406916242

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.215e-01  1.467e+00  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  3.933e+00  5.123e+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.217e+00  1.307e-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.213e-01  2.678e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/60017/cmap_HighResolution_560995201_561254401_4FGL_J1147.2-2627_daily_bin1241.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.97e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-04 11:03:03.809522', job_id='60017', GAL2='1.22', fit_tolerance='1e-08', EG2='0.92', EG='0.93', time_epoch_completed='1630778583.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='5.71e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1241' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:03:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 60017: <4FGL_J1147.2-2627_daily_bin1241> in cluster <slac> Done

Job <4FGL_J1147.2-2627_daily_bin1241> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 10:46:37 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:46:39 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:39 2021
Terminated at Sat Sep  4 11:03:04 2021
Results reported at Sat Sep  4 11:03:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin1241 176.811 -26.4649 560995201 561254401 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 :                                   883.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            987 sec.

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

