/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 177 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 = 7353
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1147.8-0724_daily_bin41
RA = 176.961, Dec = -7.4144
tmin = 249955201, tmax = 250214401
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='62599', job_status='RUN', time_executed='2021-09-04 10:55:44.062558', time_epoch_executed='1630778144.06' WHERE source_name='4FGL J1147.8-0724' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62599

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62599/ft1_4FGL_J1147.8-0724_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62599/ft2_4FGL_J1147.8-0724_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62599/ft1_4FGL_J1147.8-0724_daily_bin41.fits outfile=/scratch/kocevski/62599/ft1_filteredMKT_4FGL_J1147.8-0724_daily_bin41.fits ra=176.961 dec=-7.4144 rad=12.0 tmin=249955201.0 tmax=250214401.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 1.45
user 1.25
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62599/ft1_filtered_4FGL_J1147.8-0724_daily_bin41.fits" evtable="EVENTS" scfile=/scratch/kocevski/62599/ft2_4FGL_J1147.8-0724_daily_bin41.fits sctable="SC_DATA" outfile=/scratch/kocevski/62599/ltcube_249955201_250214401_4FGL_J1147.8-0724_daily_bin41.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/62599/ft2_4FGL_J1147.8-0724_daily_bin41.fits
.....................!
real 13.82
user 13.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62599/ft1_filtered_4FGL_J1147.8-0724_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/62599/ft2_4FGL_J1147.8-0724_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/62599/ltcube_249955201_250214401_4FGL_J1147.8-0724_daily_bin41.fits outfile=/scratch/kocevski/62599/expmap_249955201_250214401_4FGL_J1147.8-0724_daily_bin41.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/62599/ltcube_249955201_250214401_4FGL_J1147.8-0724_daily_bin41.fits
.....................!
real 191.58
user 185.95
sys 5.19

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/62599/ft1_filtered_4FGL_J1147.8-0724_daily_bin41.fits scfile=/scratch/kocevski/62599/ft2_4FGL_J1147.8-0724_daily_bin41.fits outfile=/scratch/kocevski/62599/cmap_249955201_250214401_4FGL_J1147.8-0724_daily_bin41.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62599/ft1_filtered_4FGL_J1147.8-0724_daily_bin41.fits scfile=/scratch/kocevski/62599/ft2_4FGL_J1147.8-0724_daily_bin41.fits outfile=/scratch/kocevski/62599/cmap_HighResolution_249955201_250214401_4FGL_J1147.8-0724_daily_bin41.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/62599/ft1_filtered_4FGL_J1147.8-0724_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/62599/ft2_4FGL_J1147.8-0724_daily_bin41.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/62599/Model_4FGL_J1147.8-0724_daily_bin41.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/62599/ft1_filtered_4FGL_J1147.8-0724_daily_bin41.fits....................!
real 71.24
user 68.42
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/62599/ft1_filtered_4FGL_J1147.8-0724_daily_bin41.fits', '/scratch/kocevski/62599/ft2_4FGL_J1147.8-0724_daily_bin41.fits', expMap='/scratch/kocevski/62599/expmap_249955201_250214401_4FGL_J1147.8-0724_daily_bin41.fits', expCube='/scratch/kocevski/62599/ltcube_249955201_250214401_4FGL_J1147.8-0724_daily_bin41.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/62599/Model_4FGL_J1147.8-0724_daily_bin41.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/62599/ft1_filtered_4FGL_J1147.8-0724_daily_bin41.fits
Spacecraft file(s): /scratch/kocevski/62599/ft2_4FGL_J1147.8-0724_daily_bin41.fits
Exposure map: /scratch/kocevski/62599/expmap_249955201_250214401_4FGL_J1147.8-0724_daily_bin41.fits
Exposure cube: /scratch/kocevski/62599/ltcube_249955201_250214401_4FGL_J1147.8-0724_daily_bin41.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/62599/Model_4FGL_J1147.8-0724_daily_bin41.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) = 8086.20225943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13491E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12269E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8858       1.0000         .10000E-03   10000.    
     8 'norm      '    .12156E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7140       1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.616       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.016       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1243       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.8934       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.567       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.679       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10631E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.854       1.0000         .10000E-03   10000.    
    22 'norm      '    .18963       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0076       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90112       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1824       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=   8086.178     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2919 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1132        .10460E-05** at limit **
   2  Prefactor     .10000E-03    4.8844       -.11241E-06** at limit **
   3  Prefactor     .10000E-03    1.1910       -.34195E-08** at limit **
   4  Prefactor     .10000E-03    65.646        .38258E-06** at limit **
   5  norm          .10000E-03    3.9872       -.11787E-06** at limit **
   6  Prefactor     .10001E-03    2.2403       -.45676E-06** at limit **
   7  Prefactor     7.8903        8.1168       -.16001E-06   -.19057E-04
   8  norm          .10000E-03    26.400       -.37226E-05** at limit **
   9  Prefactor     1.7145        1.8231        .17263E-07   -.34456E-04
  10  Prefactor     35.573        26.843        .14283E-05   -.91180E-04
  11  Prefactor     .10000E-03    10.539       -.94668E-07** at limit **
  12  norm          12.019        7.0069       -.67693E-07   -.50995E-04
  13  Prefactor     1.1244        3.1667        .95243E-06   -.77713E-04
  14  Prefactor     .10000E-03    4.2423        .12013E-06** at limit **
  15  Prefactor     .10000E-03    9.0103       -.19227E-05** at limit **
  16  Prefactor     9.8680        26.632       -.34901E-05   -.86263E-04
  17  Prefactor     .10000E-03    2.5355       -.27911E-08** at limit **
  18  Prefactor     12.568        13.419       -.12256E-06   -.52394E-04
  19  Prefactor     21.662        20.941       -.34301E-06   -.37493E-04
  20  Prefactor     .10000E-03    34.179        .31948E-05** at limit **
  21  Prefactor     22.850        16.999       -.11989E-05   -.54473E-03
  22  norm          .18748        2.6969        .11625E-05   -.85777E-03
  23  Prefactor     3.0077        3.4420       -.43220E-07   -.18270E-04
  24  Normalizat    .90072        .20950        .26310E-05   -.11600E-03
  25  Prefactor     1.1825        .13675       -.51240E-06    .13604E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 7.89028
  norm       = 0.000100001
  Prefactor  = 1.71451
  Prefactor  = 35.5733
  Prefactor  = 0.0001
  norm       = 12.0186
  Prefactor  = 1.12437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.86802
  Prefactor  = 0.0001
  Prefactor  = 12.5682
  Prefactor  = 21.6623
  Prefactor  = 0.0001
  Prefactor  = 22.8497
  norm       = 0.18748
  Prefactor  = 3.00773
  Normalizat = 0.900718
  Prefactor  = 1.18252
 **********
 **   18 **HESSE 
 **********

 FCN=   8086.178     FROM HESSE     STATUS=OK           429 CALLS     3348 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.9292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.1970        .95810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    65.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.0148        .17532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    11.017        .24266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.8903        8.1186        .14279E-03   -1.5146    
   8  norm          .10000E-03    26.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7145        1.8077        .12010E-03   -1.5446    
  10  Prefactor     35.573        27.004        .67151E-04   -1.4514    
  11  Prefactor     .10000E-03    10.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.019        6.9006        .11556E-03   -1.5014    
  13  Prefactor     1.1244        3.0738        .23660E-03   -1.5496    
  14  Prefactor     .10000E-03    4.2511        .18084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.1262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.8680        26.821        .12740E-03   -1.5080    
  17  Prefactor     .10000E-03    2.5454        .13983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.568        13.454        .11299E-03   -1.4999    
  19  Prefactor     21.662        20.937        .86026E-04   -1.4777    
  20  Prefactor     .10000E-03    34.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.850        16.124        .83788E-04   -1.4752    
  22  norm          .18748        5.6133        .21810E-02   -1.5621    
  23  Prefactor     3.0077        3.4392        .17360E-03   -1.5361    
  24  Normalizat    .90072        .23569        .33114E-03   -.96435    
  25  Prefactor     1.1825        .15660        .20632E-03   -.86871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.522e-09
Minuit parameter uncertainties:
  1  2.5557e-05
  2  1.47655e-05
  3  2.58326e-06
  4  4.4083e-05
  5  1.31903e-05
  6  0.000597002
  7  8.11974
  8  0.000242812
  9  1.80776
  10  27.0136
  11  1.12708e-05
  12  6.90108
  13  3.07419
  14  2.52059e-06
  15  0.000104873
  16  26.8533
  17  3.22864e-06
  18  13.4568
  19  20.9442
  20  0.000184076
  21  16.1275
  22  2.05138
  23  3.43942
  24  0.235963
  25  0.156658
Done.

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

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  1.202e+01  6.901e+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

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  1.183e+00  1.567e-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:  9.007e-01  2.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.27
Ra Dec: 176.961 -7.414
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 6.76e-08 +/- 3.88e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 1.36e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8086.17249242
delta logL = 0.00581787642295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8086.17094398
delta logL = 0.00736631145173

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.680       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4375       1.0000          .0000       5.0000    
     3 'Normalizat'    .89244       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1859       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=   8086.171     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      238 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.681        7.3455        .11722E-03   -.75049E-03
   2  alpha         2.4391        .85399        .15901E-01   -.88295E-04
   3  Normalizat    .89195        .23193        .33254E-03    .24116E-03
   4  Prefactor     1.1862        .15798        .20603E-03    .77086E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.6812
  alpha      = 2.43914
  Normalizat = 0.891955
  Prefactor  = 1.18624
 **********
 **   18 **HESSE 
 **********

 FCN=   8086.171     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.681        7.0681        .46887E-05   -1.5024    
   2  alpha         2.4391        .82067        .63604E-03   -.24347E-01
   3  Normalizat    .89195        .23107        .13302E-04   -.96743    
   4  Prefactor     1.1862        .15772        .41206E-04   -.86756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30843e-09
Minuit parameter uncertainties:
  1  7.06861
  2  0.836188
  3  0.231324
  4  0.157787
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62599': 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) = 8086.17093963
delta logL = 0.00737066551847

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  1.168e+01  7.069e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.439e+00  8.362e-01  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:  1.186e+00  1.578e-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:  8.920e-01  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.30
Ra Dec: 176.961 -7.414
Photon Index (Free Index): 2.44 +/- 0.84
Photon Flux (Free Index): 7.41e-08 +/- 6.55e-08
Energy Flux (Free Index): 2.36e-05 +/- 1.26e-05

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/62599/cmap_HighResolution_249955201_250214401_4FGL_J1147.8-0724_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.76e-08', energy_flux2='2.36e-05', photon_flux_error='3.88e-08', dlogl='7.37e-03', energy_flux='2.36e-05', photon_flux2='7.41e-08', job_status='DONE', time_completed='2021-09-04 11:08:27.129848', photon_index_error2='0.84', photon_index2='2.44', ts='7.27', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='1.26e-05', EG='0.90', time_epoch_completed='1630778907.13', return_code='0', job_id='62599', GAL2='1.19', EG2='0.89', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='6.55e-08', ts2='7.30', photon_index='2.34' WHERE bin_id='41' AND source_name='4FGL J1147.8-0724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:08:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 62599: <4FGL_J1147.8-0724_daily_bin41> in cluster <slac> Done

Job <4FGL_J1147.8-0724_daily_bin41> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 10:52:26 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:52:28 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:28 2021
Terminated at Sat Sep  4 11:08:27 2021
Results reported at Sat Sep  4 11:08:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.8-0724_daily_bin41 176.961 -7.4144 249955201 250214401 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 :                                   758.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            961 sec.

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

