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


Performing analysis on: 4FGL_J1147.0-3812_daily_bin1476
RA = 176.76, Dec = -38.2006
tmin = 621907201, tmax = 622166401
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='48859', job_status='RUN', time_executed='2021-09-04 10:22:06.416776', time_epoch_executed='1630776126.42' WHERE source_name='4FGL J1147.0-3812' and cadence='daily' and bin_id='1476'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/48859

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/48859/ft1_4FGL_J1147.0-3812_daily_bin1476.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/48859/ft2_4FGL_J1147.0-3812_daily_bin1476.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/48859/ft1_4FGL_J1147.0-3812_daily_bin1476.fits outfile=/scratch/kocevski/48859/ft1_filteredMKT_4FGL_J1147.0-3812_daily_bin1476.fits ra=176.76 dec=-38.2006 rad=12.0 tmin=621907201.0 tmax=622166401.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.45
user 3.23
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/48859/ft2_4FGL_J1147.0-3812_daily_bin1476.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/48859/ft2_4FGL_J1147.0-3812_daily_bin1476.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/48859/ft1_filteredMKT_4FGL_J1147.0-3812_daily_bin1476.fits evtable="EVENTS" outfile="/scratch/kocevski/48859/ft1_filtered_4FGL_J1147.0-3812_daily_bin1476.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.52
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/48859/ft1_filtered_4FGL_J1147.0-3812_daily_bin1476.fits" evtable="EVENTS" scfile=/scratch/kocevski/48859/ft2_4FGL_J1147.0-3812_daily_bin1476.fits sctable="SC_DATA" outfile=/scratch/kocevski/48859/ltcube_621907201_622166401_4FGL_J1147.0-3812_daily_bin1476.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/48859/ft2_4FGL_J1147.0-3812_daily_bin1476.fits
.....................!
real 10.46
user 10.02
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/48859/ft1_filtered_4FGL_J1147.0-3812_daily_bin1476.fits evtable="EVENTS" scfile=/scratch/kocevski/48859/ft2_4FGL_J1147.0-3812_daily_bin1476.fits sctable="SC_DATA" expcube=/scratch/kocevski/48859/ltcube_621907201_622166401_4FGL_J1147.0-3812_daily_bin1476.fits outfile=/scratch/kocevski/48859/expmap_621907201_622166401_4FGL_J1147.0-3812_daily_bin1476.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/48859/ltcube_621907201_622166401_4FGL_J1147.0-3812_daily_bin1476.fits
.....................!
real 191.28
user 185.38
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
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 204 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1147.0-3812 @ 176.76 -38.2006

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/48859/ft1_filtered_4FGL_J1147.0-3812_daily_bin1476.fits scfile=/scratch/kocevski/48859/ft2_4FGL_J1147.0-3812_daily_bin1476.fits outfile=/scratch/kocevski/48859/cmap_621907201_622166401_4FGL_J1147.0-3812_daily_bin1476.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.76 yref=-38.2006 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.51
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/48859/ft1_filtered_4FGL_J1147.0-3812_daily_bin1476.fits scfile=/scratch/kocevski/48859/ft2_4FGL_J1147.0-3812_daily_bin1476.fits outfile=/scratch/kocevski/48859/cmap_HighResolution_621907201_622166401_4FGL_J1147.0-3812_daily_bin1476.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.76 yref=-38.2006 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/48859/ft1_filtered_4FGL_J1147.0-3812_daily_bin1476.fits evtable="EVENTS" scfile=/scratch/kocevski/48859/ft2_4FGL_J1147.0-3812_daily_bin1476.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/48859/Model_4FGL_J1147.0-3812_daily_bin1476.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 CenA Lobes
adding source EG_v02
adding source G296.5+10.0
adding source GAL_V02
Working on...
/scratch/kocevski/48859/ft1_filtered_4FGL_J1147.0-3812_daily_bin1476.fits.....................!
real 140.28
user 138.73
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/48859/ft1_filtered_4FGL_J1147.0-3812_daily_bin1476.fits', '/scratch/kocevski/48859/ft2_4FGL_J1147.0-3812_daily_bin1476.fits', expMap='/scratch/kocevski/48859/expmap_621907201_622166401_4FGL_J1147.0-3812_daily_bin1476.fits', expCube='/scratch/kocevski/48859/ltcube_621907201_622166401_4FGL_J1147.0-3812_daily_bin1476.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/48859/Model_4FGL_J1147.0-3812_daily_bin1476.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1147.0-3812'

4FGL J1147.0-3812
   Spectrum: LogParabola
316         norm:  5.752e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
317        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
318         beta:  5.457e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
319           Eb:  7.398e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/48859/ft1_filtered_4FGL_J1147.0-3812_daily_bin1476.fits
Spacecraft file(s): /scratch/kocevski/48859/ft2_4FGL_J1147.0-3812_daily_bin1476.fits
Exposure map: /scratch/kocevski/48859/expmap_621907201_622166401_4FGL_J1147.0-3812_daily_bin1476.fits
Exposure cube: /scratch/kocevski/48859/ltcube_621907201_622166401_4FGL_J1147.0-3812_daily_bin1476.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/48859/Model_4FGL_J1147.0-3812_daily_bin1476.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) = 7624.17842558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    7.3954       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .47184E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.081       1.0000         .10000E-03   10000.    
     7 'norm      '    .17366E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2477       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    15.638       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    53.769       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .45867E-01   1.0000         .10000E-03   10000.    
    14 'Normalizat'    .90048       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.1097       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7624.174     FROM MIGRAD    STATUS=CONVERGED    280 CALLS     1363 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1921       -.44578E-06** at limit **
   2  norm          7.3958        2.9559       -.73827E-08    .33270E-03
   3  norm          .10000E-03    12.960       -.39672E-06** at limit **
   4  Prefactor     .10000E-03    19.276       -.37154E-06** at limit **
   5  norm          .10006E-03    72.282       -.22560E-04** at limit **
   6  Prefactor     22.089        18.419        .68522E-06    .67970E-03
   7  norm          .10001E-03    7.4394       -.60109E-05** at limit **
   8  Prefactor     9.2483        6.9158       -.10899E-06    .31299E-05
   9  Prefactor     .10001E-03    33.387       -.25263E-05** at limit **
  10  norm          15.622        26.114        .24289E-06    .10508E-03
  11  Prefactor     .10001E-03    25.018       -.25815E-05** at limit **
  12  Prefactor     53.774        43.462       -.24726E-06    .23406E-04
  13  Prefactor     .10360E-03    6813.9       -.22041E-04** at limit **
  14  Normalizat    .90051        .26659        .49010E-05    .54221E-03
  15  Prefactor     1.1097        .10618       -.10987E-05    .74634E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.3958
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100059
  Prefactor  = 22.0888
  norm       = 0.000100009
  Prefactor  = 9.24826
  Prefactor  = 0.000100008
  norm       = 15.622
  Prefactor  = 0.00010001
  Prefactor  = 53.7743
  Prefactor  = 0.000103605
  Normalizat = 0.900512
  Prefactor  = 1.10966
 **********
 **   18 **HESSE 
 **********

 FCN=   7624.174     FROM HESSE     STATUS=OK           188 CALLS     1551 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2242        .17494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.3958        2.9581        .91354E-04   -1.5164    
   3  norm          .10000E-03    13.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10006E-03    88.024        .64989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.089        18.380        .85239E-04   -1.4768    
   7  norm          .10001E-03    24.394        .32056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.2483        6.9197        .13179E-03   -1.5100    
   9  Prefactor     .10001E-03    34.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          15.622        26.138        .10128E-03   -1.4917    
  11  Prefactor     .10001E-03    26.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     53.774        43.481        .54700E-04   -1.4240    
  13  Prefactor     .10360E-03    142.46        .37280       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .90051        .31186        .44178E-03   -.96442    
  15  Prefactor     1.1097        .12314        .15715E-03   -.89158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49578e-09
Minuit parameter uncertainties:
  1  6.97775e-05
  2  2.95817
  3  0.000106651
  4  0.000122175
  5  0.00454656
  6  18.385
  7  0.00095774
  8  6.92026
  9  0.00104094
  10  26.1567
  11  0.00100497
  12  43.5062
  13  0.0454303
  14  0.312483
  15  0.12317
Done.

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

Extracting fit parameters...

4FGL J1147.0-3812
   Spectrum: LogParabola
316         norm:  1.000e-04  9.577e-04  1.000e-04  1.000e+04 ( 1.000e-12)
317        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
318         beta:  5.457e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
319           Eb:  7.398e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  1.110e+00  1.232e-01  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  9.005e-01  3.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 176.760 -38.201
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/48859/likelihoodResults_621907201_622166401_4FGL_J1147.0-3812_daily_bin1476.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): 0
logL (Free Index) = 7624.17410538
delta logL = -0.000193939848941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7624.14803083
delta logL = 0.0258806136162

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96620       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7688       1.0000          .0000       5.0000    
     3 'Normalizat'    .89236       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1097       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+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=   7624.148     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      477 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95856        7.7156        .35873E-03   -.51815E-04
   2  alpha         2.7636        1.7416        .43923E-01    .17685E-03
   3  Normalizat    .89251        .31044        .44353E-03    .15584E-04
   4  Prefactor     1.1096        .12169        .15714E-03    .36318E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.958559
  alpha      = 2.76361
  Normalizat = 0.892506
  Prefactor  = 1.10963
 **********
 **   18 **HESSE 
 **********

 FCN=   7624.148     FROM HESSE     STATUS=OK            25 CALLS      502 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .95856        5.8570        .14349E-04   -1.5512    
   2  alpha         2.7636        1.5583        .87847E-02    .10564    
   3  Normalizat    .89251        .31074        .17741E-04   -.96724    
   4  Prefactor     1.1096        .12175        .62857E-05   -.89159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.5887e-12
Minuit parameter uncertainties:
  1  4.73933
  2  1.68424
  3  0.311363
  4  0.12178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/48859': 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) = 7624.14802135
delta logL = 0.025890095123

Extracting fit parameters...

4FGL J1147.0-3812
   Spectrum: LogParabola
316         norm:  9.586e-01  4.739e+00  1.000e-04  1.000e+04 ( 1.000e-12)
317        alpha:  2.764e+00  1.684e+00  0.000e+00  5.000e+00 ( 1.000e+00)
318         beta:  5.457e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
319           Eb:  7.398e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  1.110e+00  1.218e-01  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  8.925e-01  3.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 176.760 -38.201

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/48859/cmap_HighResolution_621907201_622166401_4FGL_J1147.0-3812_daily_bin1476.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.50e-05', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-04 10:34:02.245594', job_id='48859', GAL2='1.11', fit_tolerance='1e-08', EG2='0.89', EG='0.90', time_epoch_completed='1630776842.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.59e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1476' AND source_name='4FGL J1147.0-3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:34:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 48859: <4FGL_J1147.0-3812_daily_bin1476> in cluster <slac> Done

Job <4FGL_J1147.0-3812_daily_bin1476> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 10:21:52 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:21:54 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:21:54 2021
Terminated at Sat Sep  4 10:34:02 2021
Results reported at Sat Sep  4 10:34:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.0-3812_daily_bin1476 176.76 -38.2006 621907201 622166401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1147.0-3812 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   716.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             410.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            730 sec.

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

