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


Performing analysis on: 4FGL_J1147.8-0724_daily_bin817
RA = 176.961, Dec = -7.4144
tmin = 451094401, tmax = 451353601
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='67214', job_status='RUN', time_executed='2021-09-04 11:06:33.962702', time_epoch_executed='1630778793.96' WHERE source_name='4FGL J1147.8-0724' and cadence='daily' and bin_id='817'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/67214

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/67214/ft1_4FGL_J1147.8-0724_daily_bin817.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/67214/ft2_4FGL_J1147.8-0724_daily_bin817.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/67214/ft1_4FGL_J1147.8-0724_daily_bin817.fits outfile=/scratch/kocevski/67214/ft1_filteredMKT_4FGL_J1147.8-0724_daily_bin817.fits ra=176.961 dec=-7.4144 rad=12.0 tmin=451094401.0 tmax=451353601.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.41
user 3.21
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/67214/ft2_4FGL_J1147.8-0724_daily_bin817.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/67214/ft2_4FGL_J1147.8-0724_daily_bin817.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/67214/ft1_filteredMKT_4FGL_J1147.8-0724_daily_bin817.fits evtable="EVENTS" outfile="/scratch/kocevski/67214/ft1_filtered_4FGL_J1147.8-0724_daily_bin817.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/67214/ft1_filtered_4FGL_J1147.8-0724_daily_bin817.fits" evtable="EVENTS" scfile=/scratch/kocevski/67214/ft2_4FGL_J1147.8-0724_daily_bin817.fits sctable="SC_DATA" outfile=/scratch/kocevski/67214/ltcube_451094401_451353601_4FGL_J1147.8-0724_daily_bin817.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/67214/ft2_4FGL_J1147.8-0724_daily_bin817.fits
.....................!
real 12.05
user 11.72
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/67214/ft1_filtered_4FGL_J1147.8-0724_daily_bin817.fits evtable="EVENTS" scfile=/scratch/kocevski/67214/ft2_4FGL_J1147.8-0724_daily_bin817.fits sctable="SC_DATA" expcube=/scratch/kocevski/67214/ltcube_451094401_451353601_4FGL_J1147.8-0724_daily_bin817.fits outfile=/scratch/kocevski/67214/expmap_451094401_451353601_4FGL_J1147.8-0724_daily_bin817.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/67214/ltcube_451094401_451353601_4FGL_J1147.8-0724_daily_bin817.fits
.....................!
real 190.38
user 185.65
sys 4.24

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 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J1147.8-0724 @ 176.961 -7.4144

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/67214/ft1_filtered_4FGL_J1147.8-0724_daily_bin817.fits scfile=/scratch/kocevski/67214/ft2_4FGL_J1147.8-0724_daily_bin817.fits outfile=/scratch/kocevski/67214/cmap_451094401_451353601_4FGL_J1147.8-0724_daily_bin817.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.961 yref=-7.4144 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/67214/ft1_filtered_4FGL_J1147.8-0724_daily_bin817.fits scfile=/scratch/kocevski/67214/ft2_4FGL_J1147.8-0724_daily_bin817.fits outfile=/scratch/kocevski/67214/cmap_HighResolution_451094401_451353601_4FGL_J1147.8-0724_daily_bin817.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.961 yref=-7.4144 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/67214/ft1_filtered_4FGL_J1147.8-0724_daily_bin817.fits evtable="EVENTS" scfile=/scratch/kocevski/67214/ft2_4FGL_J1147.8-0724_daily_bin817.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/67214/Model_4FGL_J1147.8-0724_daily_bin817.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/67214/ft1_filtered_4FGL_J1147.8-0724_daily_bin817.fits.....................!
real 51.91
user 50.59
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/67214/ft1_filtered_4FGL_J1147.8-0724_daily_bin817.fits', '/scratch/kocevski/67214/ft2_4FGL_J1147.8-0724_daily_bin817.fits', expMap='/scratch/kocevski/67214/expmap_451094401_451353601_4FGL_J1147.8-0724_daily_bin817.fits', expCube='/scratch/kocevski/67214/ltcube_451094401_451353601_4FGL_J1147.8-0724_daily_bin817.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/67214/Model_4FGL_J1147.8-0724_daily_bin817.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1147.8-0724'

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  2.739e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.336e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
290         beta:  1.710e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  7.338e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/67214/ft1_filtered_4FGL_J1147.8-0724_daily_bin817.fits
Spacecraft file(s): /scratch/kocevski/67214/ft2_4FGL_J1147.8-0724_daily_bin817.fits
Exposure map: /scratch/kocevski/67214/expmap_451094401_451353601_4FGL_J1147.8-0724_daily_bin817.fits
Exposure cube: /scratch/kocevski/67214/ltcube_451094401_451353601_4FGL_J1147.8-0724_daily_bin817.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/67214/Model_4FGL_J1147.8-0724_daily_bin817.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) = 5588.48082533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.7274       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .97349E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6776       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.206       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.4436       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.6858       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.972       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.9749       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3753       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83894       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5588.410     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2848 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.050        .38490E-05** at limit **
   2  Prefactor     .10000E-03    3.9316       -.17538E-05** at limit **
   3  Prefactor     .10000E-03    1.3063       -.47619E-09** at limit **
   4  Prefactor     .10000E-03    52.205       -.25845E-05** at limit **
   5  norm          9.7280        7.6354       -.27483E-06   -.51954E-03
   6  Prefactor     .10000E-03    2.0374       -.17146E-07** at limit **
   7  Prefactor     .10000E-03    27.985        .17131E-04** at limit **
   8  norm          .10000E-03    8.0903        .23152E-06** at limit **
   9  Prefactor     1.6779        2.1623       -.80798E-07   -.34153E-03
  10  Prefactor     .10000E-03    14.287       -.21764E-05** at limit **
  11  Prefactor     .10000E-03    13.683       -.19241E-05** at limit **
  12  norm          .10000E-03    3.0732       -.16874E-05** at limit **
  13  Prefactor     .10000E-03    1.0223       -.16119E-07** at limit **
  14  Prefactor     15.206        18.837       -.53499E-07   -.43379E-04
  15  Prefactor     9.4440        15.335       -.28194E-07   -.20186E-04
  16  Prefactor     .10000E-03    14.866       -.13405E-05** at limit **
  17  Prefactor     .10000E-03    3.1292        .20510E-05** at limit **
  18  Prefactor     8.6849        17.023       -.32433E-07   -.36447E-04
  19  Prefactor     .10000E-03    13.309       -.10924E-05** at limit **
  20  Prefactor     26.971        21.546       -.75465E-06   -.28354E-04
  21  Prefactor     .10000E-03    4.4383        .35531E-05** at limit **
  22  norm          4.9744        3.0492       -.26645E-07   -.28075E-03
  23  Prefactor     .10000E-03    4.8676       -.22109E-05** at limit **
  24  Normalizat    1.3755        .23210       -.12149E-06   -.26076E-03
  25  Prefactor     .83864        .15213       -.34058E-07   -.27385E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.72797
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.6779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2056
  Prefactor  = 9.44397
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.68491
  Prefactor  = 0.0001
  Prefactor  = 26.9705
  Prefactor  = 0.0001
  norm       = 4.97437
  Prefactor  = 0.0001
  Normalizat = 1.37546
  Prefactor  = 0.838641
 **********
 **   18 **HESSE 
 **********

 FCN=   5588.410     FROM HESSE     STATUS=OK           415 CALLS     3263 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9360        .14476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.3094        .83425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    52.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.7280        7.6539        .64242E-03   -1.5084    
   6  Prefactor     .10000E-03    2.0518        .10415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.147        .41560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.0946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.6779        2.1472        .11999E-03   -1.5449    
  10  Prefactor     .10000E-03    14.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.0983        .12791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.0241        .73784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.206        18.842        .10271E-03   -1.4928    
  15  Prefactor     9.4440        15.333        .13041E-03   -1.5093    
  16  Prefactor     .10000E-03    14.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.1412        .12921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.6849        17.108        .13601E-03   -1.5118    
  19  Prefactor     .10000E-03    13.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     26.971        21.546        .77137E-04   -1.4669    
  21  Prefactor     .10000E-03    4.4551        .15395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.9744        3.0466        .98198E-04   -1.5262    
  23  Prefactor     .10000E-03    4.9092        .16099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3755        .27439        .27778E-03   -.81341    
  25  Prefactor     .83864        .17939        .23201E-03   -.98319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06207e-10
Minuit parameter uncertainties:
  1  3.82155e-06
  2  4.54402e-07
  3  5.74497e-07
  4  1.06448e-05
  5  7.6547
  6  1.63451e-06
  7  0.000391329
  8  1.20628e-06
  9  2.14732
  10  5.69795e-06
  11  8.10893e-06
  12  3.32735e-06
  13  3.44116e-07
  14  18.8493
  15  15.3391
  16  1.63948e-06
  17  2.39104e-07
  18  17.118
  19  1.12305e-06
  20  21.5521
  21  1.00899e-06
  22  3.04669
  23  5.32441e-06
  24  0.274681
  25  0.179515
Done.

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

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  1.000e-04  3.327e-06  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.336e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
290         beta:  1.710e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  7.338e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  8.386e-01  1.795e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  1.375e+00  2.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 176.961 -7.414
Photon Flux Upper Limit: 6.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.35e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/67214/likelihoodResults_451094401_451353601_4FGL_J1147.8-0724_daily_bin817.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5588.41170382
delta logL = -0.00153260336447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5588.41017122
delta logL = -1.23418431031e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3254       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83865       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+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=   5588.410     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      227 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    275.75        .12846E-01** at limit **
   2  alpha         1.9374        3.8837        .82558E-01   -.64584E-07
   3  Normalizat    1.3755        .59434E-01    .27778E-03    .72849E-05
   4  Prefactor     .83864        .40154E-01    .23201E-03    .15681E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.93743
  Normalizat = 1.37546
  Prefactor  = 0.838641
 **********
 **   18 **HESSE 
 **********

 FCN=   5588.410     FROM HESSE     STATUS=OK            23 CALLS      250 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3913        .13319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9374        3.4090        .33023E-02   -.22697    
   3  Normalizat    1.3755        .26447        .11111E-04   -.81341    
   4  Prefactor     .83864        .17852        .92803E-05   -.98319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82254e-11
Minuit parameter uncertainties:
  1  9.11005e-06
  2  227.742
  3  0.264731
  4  0.178648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/67214': 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) = 5588.41016983
delta logL = 1.39178246172e-06

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  1.000e-04  9.110e-06  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.937e+00  2.277e+02  0.000e+00  5.000e+00 ( 1.000e+00)
290         beta:  1.710e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  7.338e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  8.386e-01  1.786e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  1.375e+00  2.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 176.961 -7.414

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/67214/cmap_HighResolution_451094401_451353601_4FGL_J1147.8-0724_daily_bin817.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.35e-05', job_status='DONE', photon_flux_upper_limit='6.73e-08', time_completed='2021-09-04 11:18:05.010786', job_id='67214', GAL2='0.84', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1630779485.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='817' AND source_name='4FGL J1147.8-0724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:18:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 67214: <4FGL_J1147.8-0724_daily_bin817> in cluster <slac> Done

Job <4FGL_J1147.8-0724_daily_bin817> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 11:06:19 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:06:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 11:06:21 2021
Terminated at Sat Sep  4 11:18:05 2021
Results reported at Sat Sep  4 11:18:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.8-0724_daily_bin817 176.961 -7.4144 451094401 451353601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1147.8-0724 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   686.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            706 sec.

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

