/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 154 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 = 7425
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1147.0-3812_daily_bin358
RA = 176.76, Dec = -38.2006
tmin = 332121601, tmax = 332380801
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='43205', job_status='RUN', time_executed='2021-09-04 10:09:15.461048', time_epoch_executed='1630775355.46' WHERE source_name='4FGL J1147.0-3812' and cadence='daily' and bin_id='358'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/43205

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/43205/ft1_4FGL_J1147.0-3812_daily_bin358.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/43205/ft2_4FGL_J1147.0-3812_daily_bin358.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/43205/ft1_4FGL_J1147.0-3812_daily_bin358.fits outfile=/scratch/kocevski/43205/ft1_filteredMKT_4FGL_J1147.0-3812_daily_bin358.fits ra=176.76 dec=-38.2006 rad=12.0 tmin=332121601.0 tmax=332380801.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.39
user 3.07
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/43205/ft1_filtered_4FGL_J1147.0-3812_daily_bin358.fits" evtable="EVENTS" scfile=/scratch/kocevski/43205/ft2_4FGL_J1147.0-3812_daily_bin358.fits sctable="SC_DATA" outfile=/scratch/kocevski/43205/ltcube_332121601_332380801_4FGL_J1147.0-3812_daily_bin358.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/43205/ft2_4FGL_J1147.0-3812_daily_bin358.fits
.....................!
real 11.76
user 11.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/43205/ft1_filtered_4FGL_J1147.0-3812_daily_bin358.fits evtable="EVENTS" scfile=/scratch/kocevski/43205/ft2_4FGL_J1147.0-3812_daily_bin358.fits sctable="SC_DATA" expcube=/scratch/kocevski/43205/ltcube_332121601_332380801_4FGL_J1147.0-3812_daily_bin358.fits outfile=/scratch/kocevski/43205/expmap_332121601_332380801_4FGL_J1147.0-3812_daily_bin358.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/43205/ltcube_332121601_332380801_4FGL_J1147.0-3812_daily_bin358.fits
.....................!
real 190.05
user 184.96
sys 4.47

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/43205/ft1_filtered_4FGL_J1147.0-3812_daily_bin358.fits scfile=/scratch/kocevski/43205/ft2_4FGL_J1147.0-3812_daily_bin358.fits outfile=/scratch/kocevski/43205/cmap_332121601_332380801_4FGL_J1147.0-3812_daily_bin358.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/43205/ft1_filtered_4FGL_J1147.0-3812_daily_bin358.fits scfile=/scratch/kocevski/43205/ft2_4FGL_J1147.0-3812_daily_bin358.fits outfile=/scratch/kocevski/43205/cmap_HighResolution_332121601_332380801_4FGL_J1147.0-3812_daily_bin358.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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/43205/ft1_filtered_4FGL_J1147.0-3812_daily_bin358.fits evtable="EVENTS" scfile=/scratch/kocevski/43205/ft2_4FGL_J1147.0-3812_daily_bin358.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/43205/Model_4FGL_J1147.0-3812_daily_bin358.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/43205/ft1_filtered_4FGL_J1147.0-3812_daily_bin358.fits.....................!
real 136.82
user 134.53
sys 1.87

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/43205/ft1_filtered_4FGL_J1147.0-3812_daily_bin358.fits', '/scratch/kocevski/43205/ft2_4FGL_J1147.0-3812_daily_bin358.fits', expMap='/scratch/kocevski/43205/expmap_332121601_332380801_4FGL_J1147.0-3812_daily_bin358.fits', expCube='/scratch/kocevski/43205/ltcube_332121601_332380801_4FGL_J1147.0-3812_daily_bin358.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/43205/Model_4FGL_J1147.0-3812_daily_bin358.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/43205/ft1_filtered_4FGL_J1147.0-3812_daily_bin358.fits
Spacecraft file(s): /scratch/kocevski/43205/ft2_4FGL_J1147.0-3812_daily_bin358.fits
Exposure map: /scratch/kocevski/43205/expmap_332121601_332380801_4FGL_J1147.0-3812_daily_bin358.fits
Exposure cube: /scratch/kocevski/43205/ltcube_332121601_332380801_4FGL_J1147.0-3812_daily_bin358.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/43205/Model_4FGL_J1147.0-3812_daily_bin358.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) = 7446.84066153

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.360       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    19.574       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    55.548       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .45929E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10492E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0598       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.727       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17978E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.0132       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.2319       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=   7446.803     FROM MIGRAD    STATUS=CONVERGED    285 CALLS     1342 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.361        11.340        .28579E-05   -.50700E-04
   2  norm          .10000E-03    .88679        .89781E-07** at limit **
   3  norm          19.571        25.035        .12552E-05    .13807E-04
   4  Prefactor     .10000E-03    22.081        .82481E-07** at limit **
   5  norm          55.532        53.627       -.10930E-04    .17276E-04
   6  Prefactor     .10000E-03    9.5834        .13036E-06** at limit **
   7  norm          .10000E-03    3.8989        .11328E-06** at limit **
   8  Prefactor     .10000E-03    5.9277       -.38372E-06** at limit **
   9  Prefactor     .10176E-03    18.032        .15217E-07** at limit **
  10  norm          .10000E-03    111.96        .72983E-06** at limit **
  11  Prefactor     3.0618        27.229        .79962E-05   -.51491E-04
  12  Prefactor     13.809        96.515        .15808E-03    .27264E-05
  13  Prefactor     .10000E-03    173.61        .14202E-04** at limit **
  14  Normalizat    1.0127        .31626       -.20015E-04    .10324E-03
  15  Prefactor     1.2321        .11752        .27451E-05   -.73940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3609
  norm       = 0.0001
  norm       = 19.5706
  Prefactor  = 0.0001
  norm       = 55.532
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101756
  norm       = 0.0001
  Prefactor  = 3.06181
  Prefactor  = 13.8089
  Prefactor  = 0.0001
  Normalizat = 1.01269
  Prefactor  = 1.23208
 **********
 **   18 **HESSE 
 **********

 FCN=   7446.803     FROM HESSE     STATUS=OK           180 CALLS     1522 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.361        11.331        .12449E-03   -1.5064    
   2  norm          .10000E-03    .89723        .79324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          19.571        25.068        .90530E-04   -1.4823    
   4  Prefactor     .10000E-03    22.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          55.532        53.738        .53821E-04   -1.4216    
   6  Prefactor     .10000E-03    9.6427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.9159        .16636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.9752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10176E-03    134.04        .69695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    115.78        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.0618        27.020        .23192E-03   -1.5358    
  12  Prefactor     13.809        96.292        .10811E-03   -1.4965    
  13  Prefactor     .10000E-03    173.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.0127        .35703        .46628E-03   -.92607    
  15  Prefactor     1.2321        .13497        .16372E-03   -.85350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42107e-08
Minuit parameter uncertainties:
  1  11.3338
  2  8.57914e-06
  3  25.0819
  4  3.94338e-05
  5  53.7847
  6  3.66449e-05
  7  2.01022e-05
  8  9.31588e-05
  9  0.0307519
  10  0.000235878
  11  18.2018
  12  73.0982
  13  0.000238641
  14  0.357872
  15  0.135005
Done.

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

Extracting fit parameters...

4FGL J1147.0-3812
   Spectrum: LogParabola
316         norm:  1.000e-04  2.010e-05  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.232e+00  1.350e-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:  1.013e+00  3.579e-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: 9.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.06e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/43205/likelihoodResults_332121601_332380801_4FGL_J1147.0-3812_daily_bin358.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) = 7446.80375026
delta logL = -0.00121542834313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7446.80253479
delta logL = 3.86507963412e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1481       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0127       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2321       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=   7446.803     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      242 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.3174        .16723E-01** at limit **
   2  alpha         1.7899        2.5588        .16671E-01   -.85241E-07
   3  Normalizat    1.0127        .34150        .46630E-03    .54661E-04
   4  Prefactor     1.2321        .13199        .16372E-03    .17499E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.78995
  Normalizat = 1.01268
  Prefactor  = 1.23208
 **********
 **   18 **HESSE 
 **********

 FCN=   7446.803     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3164        .17306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7899        2.7896        .66686E-03   -.28799    
   3  Normalizat    1.0127        .34172        .18652E-04   -.92607    
   4  Prefactor     1.2321        .13206        .32744E-04   -.85350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42943e-10
Minuit parameter uncertainties:
  1  7.2672e-05
  2  216.397
  3  0.342464
  4  0.132091
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/43205': 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) = 7446.80253364
delta logL = 1.18564821605e-06

Extracting fit parameters...

4FGL J1147.0-3812
   Spectrum: LogParabola
316         norm:  1.000e-04  7.267e-05  1.000e-04  1.000e+04 ( 1.000e-12)
317        alpha:  1.790e+00  2.164e+02  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.232e+00  1.321e-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:  1.013e+00  3.425e-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/43205/cmap_HighResolution_332121601_332380801_4FGL_J1147.0-3812_daily_bin358.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-05', job_status='DONE', photon_flux_upper_limit='9.18e-08', time_completed='2021-09-04 10:20:27.066014', job_id='43205', GAL2='1.23', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630776027.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.19e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='358' AND source_name='4FGL J1147.0-3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:20:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 43205: <4FGL_J1147.0-3812_daily_bin358> in cluster <slac> Done

Job <4FGL_J1147.0-3812_daily_bin358> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 10:06:29 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:06:30 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:06:30 2021
Terminated at Sat Sep  4 10:20:27 2021
Results reported at Sat Sep  4 10:20:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.0-3812_daily_bin358 176.76 -38.2006 332121601 332380801 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 :                                   671.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             322.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            838 sec.

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

