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


Performing analysis on: 4FGL_J0947.1-2541_daily_bin523
RA = 146.781, Dec = -25.6839
tmin = 374889601, tmax = 375148801
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='506761', job_status='RUN', time_executed='2021-09-01 02:24:11.419025', time_epoch_executed='1630488251.42' WHERE source_name='4FGL J0947.1-2541' and cadence='daily' and bin_id='523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506761

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506761/ft1_4FGL_J0947.1-2541_daily_bin523.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506761/ft2_4FGL_J0947.1-2541_daily_bin523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506761/ft1_4FGL_J0947.1-2541_daily_bin523.fits outfile=/scratch/kocevski/506761/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin523.fits ra=146.781 dec=-25.6839 rad=12.0 tmin=374889601.0 tmax=375148801.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.58
user 3.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/506761/ft2_4FGL_J0947.1-2541_daily_bin523.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/506761/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin523.fits evtable="EVENTS" outfile="/scratch/kocevski/506761/ft1_filtered_4FGL_J0947.1-2541_daily_bin523.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506761/ft1_filtered_4FGL_J0947.1-2541_daily_bin523.fits" evtable="EVENTS" scfile=/scratch/kocevski/506761/ft2_4FGL_J0947.1-2541_daily_bin523.fits sctable="SC_DATA" outfile=/scratch/kocevski/506761/ltcube_374889601_375148801_4FGL_J0947.1-2541_daily_bin523.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/506761/ft2_4FGL_J0947.1-2541_daily_bin523.fits
.....................!
real 14.65
user 14.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506761/ft1_filtered_4FGL_J0947.1-2541_daily_bin523.fits evtable="EVENTS" scfile=/scratch/kocevski/506761/ft2_4FGL_J0947.1-2541_daily_bin523.fits sctable="SC_DATA" expcube=/scratch/kocevski/506761/ltcube_374889601_375148801_4FGL_J0947.1-2541_daily_bin523.fits outfile=/scratch/kocevski/506761/expmap_374889601_375148801_4FGL_J0947.1-2541_daily_bin523.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/506761/ltcube_374889601_375148801_4FGL_J0947.1-2541_daily_bin523.fits
.....................!
real 190.69
user 186.09
sys 4.14

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/506761/ft1_filtered_4FGL_J0947.1-2541_daily_bin523.fits scfile=/scratch/kocevski/506761/ft2_4FGL_J0947.1-2541_daily_bin523.fits outfile=/scratch/kocevski/506761/cmap_374889601_375148801_4FGL_J0947.1-2541_daily_bin523.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506761/ft1_filtered_4FGL_J0947.1-2541_daily_bin523.fits scfile=/scratch/kocevski/506761/ft2_4FGL_J0947.1-2541_daily_bin523.fits outfile=/scratch/kocevski/506761/cmap_HighResolution_374889601_375148801_4FGL_J0947.1-2541_daily_bin523.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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/506761/ft1_filtered_4FGL_J0947.1-2541_daily_bin523.fits evtable="EVENTS" scfile=/scratch/kocevski/506761/ft2_4FGL_J0947.1-2541_daily_bin523.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/506761/Model_4FGL_J0947.1-2541_daily_bin523.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/506761/ft1_filtered_4FGL_J0947.1-2541_daily_bin523.fits.....................!
real 79.62
user 78.14
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44032E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .89841E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1807       1.0000         .10000E-03   10000.    
     6 'norm      '    .59715       1.0000         .10000E-03   10000.    
     7 'norm      '    26.013       1.0000         .10000E-03   10000.    
     8 'norm      '    11.003       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    27.210       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3624       1.0000         .10000E-03   10000.    
    13 'norm      '    .10275E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.6589       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.168       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4648       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7256       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .82990       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0884       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7538.654     FROM MIGRAD    STATUS=FAILED       748 CALLS     2128 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10050E-03    55.896        .47252E-02** at limit **
   2  Prefactor     .10000E-03    16.164        .18142E-02** at limit **
   3  Prefactor     .10001E-03    39.781        .13444    ** at limit **
   4  Prefactor     .10000E-03    27.514        .18142E-02** at limit **
   5  Prefactor     1.1807        55.159        .42070E-03   -.40265E-05
   6  norm          .58573        12.675        .36414E-02    .30173E-02
   7  norm          26.022        18.833        .78544E-04    .54857E-04
   8  norm          11.001        8.9733        .12078E-03   -.36239E-04
   9  norm          .10000E-03    1.4821        .14200E-02** at limit **
  10  norm          27.209        12.877        .76800E-04   -.18370E-03
  11  Prefactor     .10000E-03    44.370        .18142E-02** at limit **
  12  Prefactor     4.3633        10.150        .96422E-03   -.41393E-03
  13  norm          .10000E-03    9.6239        .18142E-02** at limit **
  14  norm          3.6610        5.1172        .21117E-03    .27133E-04
  15  Prefactor     11.169        14.171        .11988E-03   -.75864E-05
  16  Prefactor     .10000E-03    5.7332        .18142E-02** at limit **
  17  norm          3.4645        3.4295        .15485E-03   -.11226E-03
  18  Prefactor     1.7222        47.339        .31969E-03   -.19950E-04
  19  Normalizat    .82991        .24160        .39548E-03   -.16676E-03
  20  Prefactor     1.0885        .11083        .16090E-03   -.19292E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7538.654     FROM SIMPLEX   STATUS=UNCHANGED    956 CALLS     3084 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10050E-03    55.896        .98523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.164        .65328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    39.781        .33031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.514        .79415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.1807        55.159        .51792E-06   -1.5491    
   6  norm          .58573        12.675        .52048E-06   -1.5555    
   7  norm          26.022        18.833        .49773E-06   -1.4687    
   8  norm          11.001        8.9733        .50665E-06   -1.5044    
   9  norm          .10000E-03    1.4821        .66877E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          27.209        12.877        .49576E-06   -1.4664    
  11  Prefactor     .10000E-03    44.370        .65240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3633        10.150        .52059E-06   -1.5290    
  13  norm          .10000E-03    9.6239        .40072E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.6610        5.1172        .51502E-06   -1.5325    
  15  Prefactor     11.169        14.171        .51171E-06   -1.5039    
  16  Prefactor     .10000E-03    5.7332        .29209E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4645        3.4295        .51893E-06   -1.5336    
  18  Prefactor     1.7222        47.339        .53122E-06   -1.5445    
  19  Normalizat    .82991        .24160        .33815E-06   -.98968    
  20  Prefactor     1.0885        .11083        .30416E-06   -.89836    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7538.654     FROM MIGRAD    STATUS=CONVERGED    288 CALLS     3372 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.036        .94504E-03** at limit **
   2  Prefactor     .10000E-03    16.165        .36285E-03** at limit **
   3  Prefactor     .10001E-03    39.342        .13524    ** at limit **
   4  Prefactor     .10000E-03    27.517        .36285E-03** at limit **
   5  Prefactor     1.1807        55.081        .16828E-04    .32428E-06
   6  norm          .58581        12.658        .72828E-03    .14986E-04
   7  norm          26.022        18.830        .31418E-05    .57897E-05
   8  norm          11.001        8.9723        .24156E-04    .18825E-07
   9  norm          .10000E-03    1.4880        .28400E-03** at limit **
  10  norm          27.209        12.875        .30720E-05    .14803E-05
  11  Prefactor     .10000E-03    44.391        .36285E-03** at limit **
  12  Prefactor     4.3635        10.149        .38569E-04    .11790E-06
  13  norm          .10000E-03    9.6318        .36285E-03** at limit **
  14  norm          3.6610        5.1169        .84470E-05   -.80754E-06
  15  Prefactor     11.169        14.157        .47954E-05   -.47415E-06
  16  Prefactor     .10000E-03    5.7333        .36285E-03** at limit **
  17  norm          3.4645        3.4293        .61939E-05   -.36709E-06
  18  Prefactor     1.7223        47.233        .12788E-04    .14225E-06
  19  Normalizat    .82992        .24154        .15819E-04    .48294E-04
  20  Prefactor     1.0885        .11084        .32180E-04    .16859E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 1.18067
  norm       = 0.585814
  norm       = 26.0219
  norm       = 11.0007
  norm       = 0.0001
  norm       = 27.209
  Prefactor  = 0.0001
  Prefactor  = 4.36349
  norm       = 0.0001
  norm       = 3.66104
  Prefactor  = 11.169
  Prefactor  = 0.0001
  norm       = 3.46448
  Prefactor  = 1.72225
  Normalizat = 0.829915
  Prefactor  = 1.08847
 **********
 **   18 **HESSE 
 **********

 FCN=   7538.654     FROM HESSE     STATUS=OK           283 CALLS     3655 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.083        .18901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.165        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    39.453        .13495       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.517        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.1807        55.077        .16828E-04   -1.5491    
   6  norm          .58581        12.638        .29131E-04   -1.5555    
   7  norm          26.022        18.804        .62835E-06   -1.4687    
   8  norm          11.001        8.9721        .24156E-04   -1.5044    
   9  norm          .10000E-03    1.4882        .56800E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          27.209        12.869        .61440E-06   -1.4664    
  11  Prefactor     .10000E-03    44.391        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3635        10.148        .77138E-05   -1.5290    
  13  norm          .10000E-03    9.6321        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.6610        5.1156        .16894E-05   -1.5325    
  15  Prefactor     11.169        14.137        .95908E-06   -1.5039    
  16  Prefactor     .10000E-03    5.7333        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4645        3.4292        .12388E-05   -1.5336    
  18  Prefactor     1.7223        47.215        .12788E-04   -1.5445    
  19  Normalizat    .82992        .24150        .31639E-05   -.98968    
  20  Prefactor     1.0885        .11083        .64360E-05   -.89836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65869e-11
Minuit parameter uncertainties:
  1  0.000236329
  2  5.69721e-07
  3  0.00108249
  4  3.90687e-07
  5  16.1431
  6  5.44275
  7  18.8081
  8  8.97322
  9  4.4498e-07
  10  12.8702
  11  9.45656e-06
  12  10.1524
  13  2.30928e-06
  14  5.11623
  15  14.1407
  16  1.7572e-07
  17  3.42937
  18  18.0504
  19  0.241816
  20  0.110852
Done.

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

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.100e+01  8.973e+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.088e+00  1.109e-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:  8.299e-01  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.87
Ra Dec: 146.781 -25.684
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 2.06e-08 +/- 1.68e-08
Energy Flux (Fixed Index): 2.78e-05 +/- 2.27e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7538.63993388
delta logL = 0.0136809391734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7538.63879011
delta logL = 0.0148247124362

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.592       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8559       1.0000          .0000       5.0000    
     3 'Normalizat'    .82773       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0886       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=   7538.639     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      249 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.593        9.1963        .12311E-03   -.23985E-03
   2  alpha         1.8559        .61325        .16243E-01    .16058E-03
   3  Normalizat    .82772        .23450        .39595E-03   -.48064E-04
   4  Prefactor     1.0886        .10858        .16089E-03   -.11129E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.5927
  alpha      = 1.85595
  Normalizat = 0.827721
  Prefactor  = 1.08859
 **********
 **   18 **HESSE 
 **********

 FCN=   7538.639     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.593        9.0641        .24621E-04   -1.5057    
   2  alpha         1.8559        .60473        .32486E-02   -.26056    
   3  Normalizat    .82772        .23457        .15838E-04   -.99049    
   4  Prefactor     1.0886        .10863        .32177E-04   -.89832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22972e-11
Minuit parameter uncertainties:
  1  9.06531
  2  0.611235
  3  0.234855
  4  0.10865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506761': 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) = 7538.6387901
delta logL = 0.0148247280749

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.059e+01  9.065e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  1.856e+00  6.112e-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.089e+00  1.086e-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:  8.277e-01  2.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.90
Ra Dec: 146.781 -25.684
Photon Index (Free Index): 1.86 +/- 0.61
Photon Flux (Free Index): 2.34e-08 +/- 2.53e-08
Energy Flux (Free Index): 2.46e-05 +/- 2.60e-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/506761/cmap_HighResolution_374889601_375148801_4FGL_J0947.1-2541_daily_bin523.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.06e-08', energy_flux2='2.46e-05', photon_flux_error='1.68e-08', dlogl='1.48e-02', energy_flux='2.78e-05', photon_flux2='2.34e-08', job_status='DONE', time_completed='2021-09-01 02:36:14.411983', photon_index_error2='0.61', photon_index2='1.86', ts='4.87', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='2.60e-05', EG='0.83', time_epoch_completed='1630488974.41', return_code='0', job_id='506761', GAL2='1.09', EG2='0.83', return_code2='0', energy_flux_error='2.27e-05', photon_flux_error2='2.53e-08', ts2='4.90', photon_index='1.75' WHERE bin_id='523' AND source_name='4FGL J0947.1-2541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:36:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 506761: <4FGL_J0947.1-2541_daily_bin523> in cluster <slac> Done

Job <4FGL_J0947.1-2541_daily_bin523> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 02:20:21 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:20:23 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:20:23 2021
Terminated at Wed Sep  1 02:36:15 2021
Results reported at Wed Sep  1 02:36:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0947.1-2541_daily_bin523 146.781 -25.6839 374889601 375148801 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 :                                   721.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             309.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            954 sec.

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

