/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 79 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 = 7737
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0947.1-2541_daily_bin767
RA = 146.781, Dec = -25.6839
tmin = 438134401, tmax = 438393601
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='507348', job_status='RUN', time_executed='2021-09-01 02:23:02.697142', time_epoch_executed='1630488182.7' WHERE source_name='4FGL J0947.1-2541' and cadence='daily' and bin_id='767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507348

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507348/ft1_4FGL_J0947.1-2541_daily_bin767.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507348/ft2_4FGL_J0947.1-2541_daily_bin767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507348/ft1_4FGL_J0947.1-2541_daily_bin767.fits outfile=/scratch/kocevski/507348/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin767.fits ra=146.781 dec=-25.6839 rad=12.0 tmin=438134401.0 tmax=438393601.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 6.32
user 6.00
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/507348/ft2_4FGL_J0947.1-2541_daily_bin767.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/507348/ft2_4FGL_J0947.1-2541_daily_bin767.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/507348/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin767.fits evtable="EVENTS" outfile="/scratch/kocevski/507348/ft1_filtered_4FGL_J0947.1-2541_daily_bin767.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.56
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/507348/ft1_filtered_4FGL_J0947.1-2541_daily_bin767.fits" evtable="EVENTS" scfile=/scratch/kocevski/507348/ft2_4FGL_J0947.1-2541_daily_bin767.fits sctable="SC_DATA" outfile=/scratch/kocevski/507348/ltcube_438134401_438393601_4FGL_J0947.1-2541_daily_bin767.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/507348/ft2_4FGL_J0947.1-2541_daily_bin767.fits
.....................!
real 12.71
user 12.19
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507348/ft1_filtered_4FGL_J0947.1-2541_daily_bin767.fits evtable="EVENTS" scfile=/scratch/kocevski/507348/ft2_4FGL_J0947.1-2541_daily_bin767.fits sctable="SC_DATA" expcube=/scratch/kocevski/507348/ltcube_438134401_438393601_4FGL_J0947.1-2541_daily_bin767.fits outfile=/scratch/kocevski/507348/expmap_438134401_438393601_4FGL_J0947.1-2541_daily_bin767.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/507348/ltcube_438134401_438393601_4FGL_J0947.1-2541_daily_bin767.fits
.....................!
real 191.06
user 184.84
sys 4.55

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

Setting source of interest to:
4FGL J0947.1-2541 @ 146.781 -25.6839

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/507348/ft1_filtered_4FGL_J0947.1-2541_daily_bin767.fits scfile=/scratch/kocevski/507348/ft2_4FGL_J0947.1-2541_daily_bin767.fits outfile=/scratch/kocevski/507348/cmap_438134401_438393601_4FGL_J0947.1-2541_daily_bin767.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=146.781 yref=-25.6839 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/507348/ft1_filtered_4FGL_J0947.1-2541_daily_bin767.fits scfile=/scratch/kocevski/507348/ft2_4FGL_J0947.1-2541_daily_bin767.fits outfile=/scratch/kocevski/507348/cmap_HighResolution_438134401_438393601_4FGL_J0947.1-2541_daily_bin767.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=146.781 yref=-25.6839 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.59
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/507348/ft1_filtered_4FGL_J0947.1-2541_daily_bin767.fits evtable="EVENTS" scfile=/scratch/kocevski/507348/ft2_4FGL_J0947.1-2541_daily_bin767.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/507348/Model_4FGL_J0947.1-2541_daily_bin767.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/507348/ft1_filtered_4FGL_J0947.1-2541_daily_bin767.fits.....................!
real 71.87
user 70.14
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/507348/ft1_filtered_4FGL_J0947.1-2541_daily_bin767.fits', '/scratch/kocevski/507348/ft2_4FGL_J0947.1-2541_daily_bin767.fits', expMap='/scratch/kocevski/507348/expmap_438134401_438393601_4FGL_J0947.1-2541_daily_bin767.fits', expCube='/scratch/kocevski/507348/ltcube_438134401_438393601_4FGL_J0947.1-2541_daily_bin767.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/507348/Model_4FGL_J0947.1-2541_daily_bin767.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0947.1-2541'

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  2.329e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  1.751e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
270         beta:  8.622e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
271           Eb:  2.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/507348/ft1_filtered_4FGL_J0947.1-2541_daily_bin767.fits
Spacecraft file(s): /scratch/kocevski/507348/ft2_4FGL_J0947.1-2541_daily_bin767.fits
Exposure map: /scratch/kocevski/507348/expmap_438134401_438393601_4FGL_J0947.1-2541_daily_bin767.fits
Exposure cube: /scratch/kocevski/507348/ltcube_438134401_438393601_4FGL_J0947.1-2541_daily_bin767.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/507348/Model_4FGL_J0947.1-2541_daily_bin767.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) = 5824.01414624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11549E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.024       1.0000         .10000E-03   10000.    
     3 'Prefactor '    46.196       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.744       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.096       1.0000         .10000E-03   10000.    
     6 'norm      '    11.768       1.0000         .10000E-03   10000.    
     7 'norm      '    20.632       1.0000         .10000E-03   10000.    
     8 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.0124       1.0000         .10000E-03   10000.    
    10 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.4406       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    19.170       1.0000         .10000E-03   10000.    
    14 'norm      '    .64273       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.8791       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.6753       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5824.005     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     2003 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    17.734       -.17129E-04** at limit **
   2  Prefactor     17.008        44.484       -.31090E-04    .36388E-04
   3  Prefactor     46.117        60.992       -.10174E-03    .13246E-03
   4  Prefactor     30.733        41.320       -.16039E-04    .24813E-04
   5  Prefactor     16.095        14.829       -.76945E-06    .78460E-04
   6  norm          11.765        12.148        .58168E-05    .24276E-03
   7  norm          20.634        24.595        .61650E-06    .54946E-04
   8  norm          .10000E-03    4.7595        .95773E-07** at limit **
   9  norm          1.0121        1.6195       -.14272E-05   -.24965E-02
  10  norm          .10000E-03    16.040        .10755E-04** at limit **
  11  Prefactor     9.4346        36.340       -.13288E-04    .64072E-04
  12  Prefactor     .10000E-03    9.2183        .10617E-06** at limit **
  13  norm          19.158        15.866       -.35316E-05    .44922E-03
  14  norm          .70635        8.6735       -.52017E-05    .55306E-03
  15  Prefactor     .10000E-03    40.787       -.53709E-05** at limit **
  16  Prefactor     .10000E-03    27.251        .11197E-04** at limit **
  17  norm          .10000E-03    2.5797       -.25048E-06** at limit **
  18  Prefactor     9.8735        13.893       -.56637E-06    .50984E-04
  19  Normalizat    1.6755        .30370        .16881E-04    .14688E-03
  20  Prefactor     .91567        .12138        .41316E-05    .63779E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Prefactor  = 17.0083
  Prefactor  = 46.117
  Prefactor  = 30.7329
  Prefactor  = 16.0947
  norm       = 11.7648
  norm       = 20.6337
  norm       = 0.0001
  norm       = 1.01212
  norm       = 0.0001
  Prefactor  = 9.43462
  Prefactor  = 0.0001
  norm       = 19.1584
  norm       = 0.706354
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.87348
  Normalizat = 1.67553
  Prefactor  = 0.915674
 **********
 **   18 **HESSE 
 **********

 FCN=   5824.005     FROM HESSE     STATUS=OK           289 CALLS     2292 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    17.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.008        44.580        .97070E-04   -1.4883    
   3  Prefactor     46.117        61.011        .58991E-04   -1.4349    
   4  Prefactor     30.733        41.342        .72261E-04   -1.4599    
   5  Prefactor     16.095        14.842        .99829E-04   -1.4905    
   6  norm          11.765        12.156        .11678E-03   -1.5022    
   7  norm          20.634        24.638        .88179E-04   -1.4799    
   8  norm          .10000E-03    4.7614        .16260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0121        1.4447        .11721E-02   -1.5507    
  10  norm          .10000E-03    16.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.4346        36.351        .13043E-03   -1.5094    
  12  Prefactor     .10000E-03    9.2240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          19.158        15.744        .91477E-04   -1.4832    
  14  norm          .70635        28.427        .41781E-02   -1.5540    
  15  Prefactor     .10000E-03    41.932        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.5895        .11970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.8735        13.887        .12749E-03   -1.5079    
  19  Normalizat    1.6755        .34861        .35709E-03   -.72959    
  20  Prefactor     .91567        .14050        .19251E-03   -.95596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32154e-09
Minuit parameter uncertainties:
  1  0.000782936
  2  44.6678
  3  61.0943
  4  41.3809
  5  14.8454
  6  12.1581
  7  24.6502
  8  1.58133e-05
  9  1.44471
  10  0.000171816
  11  36.4368
  12  3.2916e-06
  13  15.7478
  14  8.96603
  15  0.000578707
  16  0.000178749
  17  1.98483e-05
  18  13.8917
  19  0.349124
  20  0.140556
Done.

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

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.000e-04  1.581e-05  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  1.751e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
270         beta:  8.622e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
271           Eb:  2.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  9.157e-01  1.406e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.676e+00  3.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 146.781 -25.684
Photon Flux Upper Limit: 4.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/507348/likelihoodResults_438134401_438393601_4FGL_J0947.1-2541_daily_bin767.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) = 5824.00646655
delta logL = -0.000993426830064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5824.00547311
delta logL = 1.02063495433e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7455       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91567       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+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=   5824.005     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      233 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1032.4        .16278E-02** at limit **
   2  alpha         1.5795        2.5330        .17526       -.42943E-07
   3  Normalizat    1.6755        .21098        .35709E-03    .71634E-05
   4  Prefactor     .91567        .88221E-01    .19251E-03    .14645E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.57946
  Normalizat = 1.67553
  Prefactor  = 0.915672
 **********
 **   18 **HESSE 
 **********

 FCN=   5824.005     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.8502        .32556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5795        3.0315        .70103E-02   -.37709    
   3  Normalizat    1.6755        .33083        .14283E-04   -.72959    
   4  Prefactor     .91567        .13841        .77005E-05   -.95596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56635e-11
Minuit parameter uncertainties:
  1  1.45808e-05
  2  267.174
  3  0.331263
  4  0.138466
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507348': 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) = 5824.00547293
delta logL = 1.91580511455e-07

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.000e-04  1.458e-05  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  1.579e+00  2.672e+02  0.000e+00  5.000e+00 ( 1.000e+00)
270         beta:  8.622e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
271           Eb:  2.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  9.157e-01  1.385e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.676e+00  3.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 146.781 -25.684

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/507348/cmap_HighResolution_438134401_438393601_4FGL_J0947.1-2541_daily_bin767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.63e-05', job_status='DONE', photon_flux_upper_limit='4.91e-08', time_completed='2021-09-01 02:33:04.823174', job_id='507348', GAL2='0.92', fit_tolerance='1e-08', EG2='1.68', EG='1.68', time_epoch_completed='1630488784.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.92e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.75' WHERE bin_id='767' AND source_name='4FGL J0947.1-2541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:33:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 507348: <4FGL_J0947.1-2541_daily_bin767> in cluster <slac> Done

Job <4FGL_J0947.1-2541_daily_bin767> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 02:20:47 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:21:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 02:21:10 2021
Terminated at Wed Sep  1 02:33:05 2021
Results reported at Wed Sep  1 02:33:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0947.1-2541_daily_bin767 146.781 -25.6839 438134401 438393601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0947.1-2541 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   595.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            738 sec.

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

