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


Performing analysis on: 4FGL_J0947.1-2541_daily_bin1274
RA = 146.781, Dec = -25.6839
tmin = 569548801, tmax = 569808001
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='511249', job_status='RUN', time_executed='2021-09-01 02:31:40.310765', time_epoch_executed='1630488700.31' WHERE source_name='4FGL J0947.1-2541' and cadence='daily' and bin_id='1274'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511249

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511249/ft1_4FGL_J0947.1-2541_daily_bin1274.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511249/ft2_4FGL_J0947.1-2541_daily_bin1274.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511249/ft1_4FGL_J0947.1-2541_daily_bin1274.fits outfile=/scratch/kocevski/511249/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin1274.fits ra=146.781 dec=-25.6839 rad=12.0 tmin=569548801.0 tmax=569808001.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 4.09
user 3.42
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/511249/ft1_filtered_4FGL_J0947.1-2541_daily_bin1274.fits" evtable="EVENTS" scfile=/scratch/kocevski/511249/ft2_4FGL_J0947.1-2541_daily_bin1274.fits sctable="SC_DATA" outfile=/scratch/kocevski/511249/ltcube_569548801_569808001_4FGL_J0947.1-2541_daily_bin1274.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/511249/ft2_4FGL_J0947.1-2541_daily_bin1274.fits
.....................!
real 12.52
user 11.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511249/ft1_filtered_4FGL_J0947.1-2541_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/511249/ft2_4FGL_J0947.1-2541_daily_bin1274.fits sctable="SC_DATA" expcube=/scratch/kocevski/511249/ltcube_569548801_569808001_4FGL_J0947.1-2541_daily_bin1274.fits outfile=/scratch/kocevski/511249/expmap_569548801_569808001_4FGL_J0947.1-2541_daily_bin1274.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/511249/ltcube_569548801_569808001_4FGL_J0947.1-2541_daily_bin1274.fits
.....................!
real 193.57
user 188.24
sys 4.25

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/511249/ft1_filtered_4FGL_J0947.1-2541_daily_bin1274.fits scfile=/scratch/kocevski/511249/ft2_4FGL_J0947.1-2541_daily_bin1274.fits outfile=/scratch/kocevski/511249/cmap_569548801_569808001_4FGL_J0947.1-2541_daily_bin1274.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511249/ft1_filtered_4FGL_J0947.1-2541_daily_bin1274.fits scfile=/scratch/kocevski/511249/ft2_4FGL_J0947.1-2541_daily_bin1274.fits outfile=/scratch/kocevski/511249/cmap_HighResolution_569548801_569808001_4FGL_J0947.1-2541_daily_bin1274.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/511249/ft1_filtered_4FGL_J0947.1-2541_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/511249/ft2_4FGL_J0947.1-2541_daily_bin1274.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/511249/Model_4FGL_J0947.1-2541_daily_bin1274.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/511249/ft1_filtered_4FGL_J0947.1-2541_daily_bin1274.fits.....................!
real 101.65
user 100.23
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/511249/ft1_filtered_4FGL_J0947.1-2541_daily_bin1274.fits', '/scratch/kocevski/511249/ft2_4FGL_J0947.1-2541_daily_bin1274.fits', expMap='/scratch/kocevski/511249/expmap_569548801_569808001_4FGL_J0947.1-2541_daily_bin1274.fits', expCube='/scratch/kocevski/511249/ltcube_569548801_569808001_4FGL_J0947.1-2541_daily_bin1274.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/511249/Model_4FGL_J0947.1-2541_daily_bin1274.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/511249/ft1_filtered_4FGL_J0947.1-2541_daily_bin1274.fits
Spacecraft file(s): /scratch/kocevski/511249/ft2_4FGL_J0947.1-2541_daily_bin1274.fits
Exposure map: /scratch/kocevski/511249/expmap_569548801_569808001_4FGL_J0947.1-2541_daily_bin1274.fits
Exposure cube: /scratch/kocevski/511249/ltcube_569548801_569808001_4FGL_J0947.1-2541_daily_bin1274.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/511249/Model_4FGL_J0947.1-2541_daily_bin1274.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) = 10117.1546764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7184       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.297       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8470       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.0630       1.0000         .10000E-03   10000.    
     6 'norm      '    .81488       1.0000         .10000E-03   10000.    
     7 'norm      '    13.451       1.0000         .10000E-03   10000.    
     8 'norm      '    4.3610       1.0000         .10000E-03   10000.    
     9 'norm      '    .65453       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    38.698       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2051       1.0000         .10000E-03   10000.    
    17 'norm      '    6.8789       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .94758       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0976       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=   10117.11     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1744 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4235       -.84837E-07** at limit **
   2  Prefactor     1.7196        39.404        .28552E-05   -.14518E-04
   3  Prefactor     12.294        22.296       -.24196E-05   -.12039E-03
   4  Prefactor     5.8488        19.964        .27357E-05    .76334E-04
   5  Prefactor     8.0630        12.433       -.28088E-06   -.32166E-04
   6  norm          .81471        3.5159        .23463E-06   -.10123E-02
   7  norm          13.451        11.104       -.90984E-07   -.28144E-04
   8  norm          4.3609        5.1617        .85627E-08   -.23304E-03
   9  norm          .65458        1.2007        .63223E-07   -.10627E-02
  10  norm          .10000E-03    2.8195        .13135E-06** at limit **
  11  Prefactor     .10000E-03    9.5000        .95117E-08** at limit **
  12  Prefactor     .10000E-03    6.4371       -.10180E-06** at limit **
  13  norm          38.696        11.700       -.87303E-08    .23293E-04
  14  norm          .10000E-03    3.8763        .25504E-07** at limit **
  15  Prefactor     .10000E-03    3.7113       -.96592E-07** at limit **
  16  Prefactor     2.2008        39.150       -.11390E-04   -.19836E-03
  17  norm          6.8790        4.1697        .98236E-06   -.25177E-02
  18  Prefactor     .10000E-03    3.7486        .17167E-07** at limit **
  19  Normalizat    .94749        .19273        .38054E-06    .87175E-04
  20  Prefactor     1.0976        .85391E-01    .48330E-07    .21686E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.71962
  Prefactor  = 12.2945
  Prefactor  = 5.84879
  Prefactor  = 8.06304
  norm       = 0.81471
  norm       = 13.4512
  norm       = 4.36087
  norm       = 0.654583
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 38.6958
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.20082
  norm       = 6.87903
  Prefactor  = 0.0001
  Normalizat = 0.947494
  Prefactor  = 1.09762
 **********
 **   18 **HESSE 
 **********

 FCN=   10117.11     FROM HESSE     STATUS=OK           295 CALLS     2039 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.7196        39.506        .32050E-03   -1.5446    
   3  Prefactor     12.294        22.363        .11423E-03   -1.5007    
   4  Prefactor     5.8488        19.961        .16608E-03   -1.5224    
   5  Prefactor     8.0630        12.477        .14120E-03   -1.5140    
   6  norm          .81471        5.2923        .43931E-03   -1.5527    
   7  norm          13.451        11.121        .10921E-03   -1.4974    
   8  norm          4.3609        5.1695        .96438E-03   -1.5290    
   9  norm          .65458        1.2213        .14271E-03   -1.5546    
  10  norm          .10000E-03    2.8274        .16493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.5356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.4668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          38.696        11.692        .64431E-04   -1.4463    
  14  norm          .10000E-03    3.8964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.2008        39.247        .27704E-03   -1.5411    
  17  norm          6.8790        4.6303        .75265E-03   -1.5183    
  18  Prefactor     .10000E-03    3.7504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .94749        .21606        .38053E-03   -.94811    
  20  Prefactor     1.0976        .95919E-01    .16375E-03   -.89543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35209e-09
Minuit parameter uncertainties:
  1  5.29531e-07
  2  16.4963
  3  22.3778
  4  19.9841
  5  12.4807
  6  4.15322
  7  11.1223
  8  5.17001
  9  1.22138
  10  3.87344e-06
  11  2.43132e-07
  12  6.34578e-06
  13  11.6927
  14  4.26737e-06
  15  3.2508e-06
  16  18.6016
  17  4.63057
  18  7.24227e-07
  19  0.216255
  20  0.0959338
Done.

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

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  4.361e+00  5.170e+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

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.098e+00  9.593e-02  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:  9.475e-01  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.67
Ra Dec: 146.781 -25.684
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 8.15e-09 +/- 9.66e-09
Energy Flux (Fixed Index): 1.10e-05 +/- 1.31e-05

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

Saving results to:
/scratch/kocevski/511249/likelihoodResults_569548801_569808001_4FGL_J0947.1-2541_daily_bin1274.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) = 10117.0897523
delta logL = 0.024636134327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10117.0892905
delta logL = 0.0250979445718

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5012       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5597       1.0000          .0000       5.0000    
     3 'Normalizat'    .94914       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0975       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.

 FCN=   10117.09     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      204 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5025        307.33        .47443E-02    .29326E-04
   2  alpha         1.5591        4.1963        .45618        .14320E-05
   3  Normalizat    .94899        .17038        .85881E-01    .11873E-04
   4  Prefactor     1.0975        .49888E-01    .37684E-01   -.39905E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.50246
  alpha      = 1.55909
  Normalizat = 0.948988
  Prefactor  = 1.09749
 **********
 **   18 **HESSE 
 **********

 FCN=   10117.09     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5025        5.3573        .18977E-03   -1.5284    
   2  alpha         1.5591        .82591        .28867E-01   -.38587    
   3  Normalizat    .94899        .20386        .38025E-03   -.94760    
   4  Prefactor     1.0975        .94395E-01    .16376E-03   -.89547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64882e-12
Minuit parameter uncertainties:
  1  5.35789
  2  0.844495
  3  0.204022
  4  0.0944094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511249': 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) = 10117.0892896
delta logL = 0.0250989046945

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  4.502e+00  5.358e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  1.559e+00  8.445e-01  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:  1.097e+00  9.441e-02  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:  9.490e-01  2.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.73
Ra Dec: 146.781 -25.684
Photon Index (Free Index): 1.56 +/- 0.84
Photon Flux (Free Index): 6.47e-09 +/- 1.00e-08
Energy Flux (Free Index): 1.43e-05 +/- 2.49e-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/511249/cmap_HighResolution_569548801_569808001_4FGL_J0947.1-2541_daily_bin1274.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.34e-05', comment='SUCCESS', photon_flux='8.15e-09', energy_flux2='1.43e-05', photon_flux_error='9.66e-09', dlogl='2.51e-02', energy_flux='1.10e-05', photon_flux2='6.47e-09', job_status='DONE', time_completed='2021-09-01 02:44:30.356675', photon_index_error2='0.84', photon_index2='1.56', ts='1.67', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='3.95e-08', energy_flux_error2='2.49e-05', EG='0.95', time_epoch_completed='1630489470.36', return_code='0', job_id='511249', GAL2='1.10', EG2='0.95', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='1.00e-08', ts2='1.73', photon_index='1.75' WHERE bin_id='1274' AND source_name='4FGL J0947.1-2541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:44:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 511249: <4FGL_J0947.1-2541_daily_bin1274> in cluster <slac> Done

Job <4FGL_J0947.1-2541_daily_bin1274> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:31:00 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:31:04 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:31:04 2021
Terminated at Wed Sep  1 02:44:31 2021
Results reported at Wed Sep  1 02:44:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0947.1-2541_daily_bin1274 146.781 -25.6839 569548801 569808001 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 :                                   762.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            811 sec.

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

