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


Performing analysis on: 4FGL_J0947.1-2541_daily_bin380
RA = 146.781, Dec = -25.6839
tmin = 337824001, tmax = 338083201
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='505115', job_status='RUN', time_executed='2021-09-01 02:17:41.538763', time_epoch_executed='1630487861.54' WHERE source_name='4FGL J0947.1-2541' and cadence='daily' and bin_id='380'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/505115

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/505115/ft1_4FGL_J0947.1-2541_daily_bin380.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/505115/ft2_4FGL_J0947.1-2541_daily_bin380.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/505115/ft1_4FGL_J0947.1-2541_daily_bin380.fits outfile=/scratch/kocevski/505115/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin380.fits ra=146.781 dec=-25.6839 rad=12.0 tmin=337824001.0 tmax=338083201.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.85
user 3.32
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/505115/ft2_4FGL_J0947.1-2541_daily_bin380.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/505115/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin380.fits evtable="EVENTS" outfile="/scratch/kocevski/505115/ft1_filtered_4FGL_J0947.1-2541_daily_bin380.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.83
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/505115/ft1_filtered_4FGL_J0947.1-2541_daily_bin380.fits" evtable="EVENTS" scfile=/scratch/kocevski/505115/ft2_4FGL_J0947.1-2541_daily_bin380.fits sctable="SC_DATA" outfile=/scratch/kocevski/505115/ltcube_337824001_338083201_4FGL_J0947.1-2541_daily_bin380.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/505115/ft2_4FGL_J0947.1-2541_daily_bin380.fits
.....................!
real 12.98
user 12.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/505115/ft1_filtered_4FGL_J0947.1-2541_daily_bin380.fits evtable="EVENTS" scfile=/scratch/kocevski/505115/ft2_4FGL_J0947.1-2541_daily_bin380.fits sctable="SC_DATA" expcube=/scratch/kocevski/505115/ltcube_337824001_338083201_4FGL_J0947.1-2541_daily_bin380.fits outfile=/scratch/kocevski/505115/expmap_337824001_338083201_4FGL_J0947.1-2541_daily_bin380.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/505115/ltcube_337824001_338083201_4FGL_J0947.1-2541_daily_bin380.fits
.....................!
real 193.08
user 186.16
sys 4.56

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/505115/ft1_filtered_4FGL_J0947.1-2541_daily_bin380.fits scfile=/scratch/kocevski/505115/ft2_4FGL_J0947.1-2541_daily_bin380.fits outfile=/scratch/kocevski/505115/cmap_337824001_338083201_4FGL_J0947.1-2541_daily_bin380.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.74
user 0.40
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/505115/ft1_filtered_4FGL_J0947.1-2541_daily_bin380.fits evtable="EVENTS" scfile=/scratch/kocevski/505115/ft2_4FGL_J0947.1-2541_daily_bin380.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/505115/Model_4FGL_J0947.1-2541_daily_bin380.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/505115/ft1_filtered_4FGL_J0947.1-2541_daily_bin380.fits.....................!
real 88.54
user 83.15
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.8593       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10242E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.5331       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6068       1.0000         .10000E-03   10000.    
    10 'norm      '    .10185E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.552       1.0000         .10000E-03   10000.    
    13 'norm      '    .15419E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5290       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0036       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.6790       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89665       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=   7383.827     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     1767 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    17.200       -.32970E-05** at limit **
   2  Prefactor     .10000E-03    23.285       -.95415E-05** at limit **
   3  Prefactor     9.7962        44.781       -.14103E-03    .48420E-04
   4  Prefactor     .10000E-03    15.855        .41852E-06** at limit **
   5  Prefactor     .10000E-03    8.4686        .13681E-05** at limit **
   6  norm          .10000E-03    5.8223        .42027E-06** at limit **
   7  norm          7.5079        17.159       -.74250E-05    .66532E-05
   8  norm          .10000E-03    3.2270        .56580E-07** at limit **
   9  norm          1.6067        1.5203       -.60045E-06   -.77042E-03
  10  norm          .10000E-03    13.391        .63882E-05** at limit **
  11  Prefactor     .10000E-03    36.428        .14505E-04** at limit **
  12  Prefactor     11.549        13.611       -.97891E-06   -.69319E-04
  13  norm          .10000E-03    14.238        .46444E-05** at limit **
  14  norm          1.5276        11.202       -.60929E-05   -.60899E-03
  15  Prefactor     5.0028        11.777       -.21975E-05   -.70496E-04
  16  Prefactor     .10000E-03    10.770       -.64322E-05** at limit **
  17  norm          .10000E-03    3.6913       -.23580E-06** at limit **
  18  Prefactor     .10000E-03    4.9266       -.39157E-07** at limit **
  19  Normalizat    1.6791        .23383        .44176E-05    .25901E-03
  20  Prefactor     .89662        .10131        .58043E-05   -.20837E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 9.7962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 7.50786
  norm       = 0.0001
  norm       = 1.60665
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.5494
  norm       = 0.0001
  norm       = 1.52763
  Prefactor  = 5.00279
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.6791
  Prefactor  = 0.896617
 **********
 **   18 **HESSE 
 **********

 FCN=   7383.827     FROM HESSE     STATUS=OK           283 CALLS     2050 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    17.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.7962        44.929        .12762E-03   -1.5082    
   4  Prefactor     .10000E-03    15.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.4803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.8736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.5079        17.193        .14612E-03   -1.5160    
   8  norm          .10000E-03    3.2280        .15076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6067        1.5051        .98750E-04   -1.5454    
  10  norm          .10000E-03    13.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    36.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.549        13.600        .11787E-03   -1.5028    
  13  norm          .10000E-03    14.678        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5276        11.297        .34523E-03   -1.5461    
  15  Prefactor     5.0028        11.769        .17978E-03   -1.5261    
  16  Prefactor     .10000E-03    10.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.8301        .32228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.9274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.6791        .26849        .33165E-03   -.72863    
  20  Prefactor     .89662        .11641        .18479E-03   -.96259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56698e-09
Minuit parameter uncertainties:
  1  0.000920885
  2  8.60856e-05
  3  42.0105
  4  3.76569e-05
  5  5.56992e-05
  6  0.000165126
  7  17.2043
  8  3.51692e-06
  9  1.50515
  10  0.000139479
  11  0.000410005
  12  13.6041
  13  0.00010051
  14  8.31046
  15  11.7748
  16  3.34497e-05
  17  4.21396e-05
  18  5.30527e-06
  19  0.268722
  20  0.116446
Done.

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

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.000e-04  3.517e-06  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:  8.966e-01  1.164e-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.679e+00  2.687e-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: 3.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/505115/likelihoodResults_337824001_338083201_4FGL_J0947.1-2541_daily_bin380.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) = 7383.82815165
delta logL = -0.00144541060854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7383.82670623
delta logL = 3.7443896872e-09

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.7483       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6791       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89662       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=   7382.467     FROM MIGRAD    STATUS=CONVERGED    149 CALLS      298 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33493E-01    .63018        .21732E-02    .95298E-03
   2  alpha         5.0000        2.5028        .50000    ** at limit **
   3  Normalizat    1.4833        .18290        .33165E-02    .77635E-04
   4  Prefactor     .94479        .70019E-01    .18479E-03    .29054E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0334928
  alpha      = 5
  Normalizat = 1.48332
  Prefactor  = 0.944789
 **********
 **   18 **HESSE 
 **********

 FCN=   7382.467     FROM HESSE     STATUS=OK            27 CALLS      325 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33493E-01    .22939E-01    .97136E-05   -1.5671    
   2  alpha         5.0000        .68259        .38421E-01   -17.279    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.4833        .29005        .13266E-03   -.78248    
   4  Prefactor     .94479        .11811        .36957E-04   -.94593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95963e-11
Minuit parameter uncertainties:
  1  0.0229391
  2  4.07576e-07
  3  0.290376
  4  0.11814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/505115': 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) = 7382.46695423
delta logL = 1.35975200326

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  3.349e-02  2.294e-02  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  5.000e+00  4.076e-07  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.448e-01  1.181e-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.483e+00  2.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.13
Ra Dec: 146.781 -25.684
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.66e-07 +/- 1.13e-07
Energy Flux (Free Index): 2.29e-05 +/- 1.57e-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/505115/cmap_HighResolution_337824001_338083201_4FGL_J0947.1-2541_daily_bin380.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-05', comment='SUCCESS', energy_flux2='2.29e-05', dlogl='1.36e+00', photon_flux2='1.66e-07', job_status='DONE', time_completed='2021-09-01 02:28:41.564934', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='3.45e-08', energy_flux_error2='1.57e-05', EG='1.68', time_epoch_completed='1630488521.56', return_code='0', job_id='505115', GAL2='0.94', EG2='1.48', return_code2='0', photon_flux_error2='1.13e-07', ts2='3.13', photon_index='1.75' WHERE bin_id='380' AND source_name='4FGL J0947.1-2541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:28:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 505115: <4FGL_J0947.1-2541_daily_bin380> in cluster <slac> Done

Job <4FGL_J0947.1-2541_daily_bin380> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 02:16:34 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:16:37 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:16:37 2021
Terminated at Wed Sep  1 02:28:42 2021
Results reported at Wed Sep  1 02:28:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0947.1-2541_daily_bin380 146.781 -25.6839 337824001 338083201 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 :                                   639.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            728 sec.

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

