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


Performing analysis on: 4FGL_J0947.1-2541_daily_bin754
RA = 146.781, Dec = -25.6839
tmin = 434764801, tmax = 435024001
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='507329', job_status='RUN', time_executed='2021-09-01 02:24:17.229137', time_epoch_executed='1630488257.23' WHERE source_name='4FGL J0947.1-2541' and cadence='daily' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507329

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507329/ft1_4FGL_J0947.1-2541_daily_bin754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507329/ft2_4FGL_J0947.1-2541_daily_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507329/ft1_4FGL_J0947.1-2541_daily_bin754.fits outfile=/scratch/kocevski/507329/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin754.fits ra=146.781 dec=-25.6839 rad=12.0 tmin=434764801.0 tmax=435024001.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 5.82
user 5.55
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/507329/ft2_4FGL_J0947.1-2541_daily_bin754.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/507329/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin754.fits evtable="EVENTS" outfile="/scratch/kocevski/507329/ft1_filtered_4FGL_J0947.1-2541_daily_bin754.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/507329/ft1_filtered_4FGL_J0947.1-2541_daily_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/507329/ft2_4FGL_J0947.1-2541_daily_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/507329/ltcube_434764801_435024001_4FGL_J0947.1-2541_daily_bin754.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/507329/ft2_4FGL_J0947.1-2541_daily_bin754.fits
.....................!
real 12.54
user 12.17
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507329/ft1_filtered_4FGL_J0947.1-2541_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/507329/ft2_4FGL_J0947.1-2541_daily_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/507329/ltcube_434764801_435024001_4FGL_J0947.1-2541_daily_bin754.fits outfile=/scratch/kocevski/507329/expmap_434764801_435024001_4FGL_J0947.1-2541_daily_bin754.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/507329/ltcube_434764801_435024001_4FGL_J0947.1-2541_daily_bin754.fits
.....................!
real 191.19
user 185.57
sys 5.24

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/507329/ft1_filtered_4FGL_J0947.1-2541_daily_bin754.fits scfile=/scratch/kocevski/507329/ft2_4FGL_J0947.1-2541_daily_bin754.fits outfile=/scratch/kocevski/507329/cmap_434764801_435024001_4FGL_J0947.1-2541_daily_bin754.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/507329/ft1_filtered_4FGL_J0947.1-2541_daily_bin754.fits scfile=/scratch/kocevski/507329/ft2_4FGL_J0947.1-2541_daily_bin754.fits outfile=/scratch/kocevski/507329/cmap_HighResolution_434764801_435024001_4FGL_J0947.1-2541_daily_bin754.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/507329/ft1_filtered_4FGL_J0947.1-2541_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/507329/ft2_4FGL_J0947.1-2541_daily_bin754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/507329/Model_4FGL_J0947.1-2541_daily_bin754.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/507329/ft1_filtered_4FGL_J0947.1-2541_daily_bin754.fits.....................!
real 71.05
user 69.48
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11994E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11175E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    59.440       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.9973       1.0000         .10000E-03   10000.    
     7 'norm      '    29.687       1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0537       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    16.815       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.839       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10977E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16819E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3394       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89678       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=   6424.260     FROM MIGRAD    STATUS=CONVERGED    416 CALLS     2021 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.050        .17559E-05** at limit **
   2  Prefactor     .10000E-03    13.977       -.75567E-06** at limit **
   3  Prefactor     59.512        37.377       -.44724E-05    .13537E-04
   4  Prefactor     .10000E-03    26.895       -.11530E-05** at limit **
   5  Prefactor     .10000E-03    6.3461        .12035E-06** at limit **
   6  norm          5.0003        7.4805        .41525E-06    .19063E-04
   7  norm          29.699        20.445        .12478E-06    .30072E-05
   8  norm          .10000E-03    6.7515       -.43990E-06** at limit **
   9  norm          .10000E-03    .70657       -.11534E-06** at limit **
  10  norm          2.0564        17.365        .68068E-05   -.68586E-05
  11  Prefactor     .10000E-03    14.453        .58037E-06** at limit **
  12  Prefactor     .10000E-03    5.2151        .65095E-07** at limit **
  13  norm          .10000E-03    4.2378        .49675E-07** at limit **
  14  norm          16.816        9.6433       -.16718E-06   -.15179E-04
  15  Prefactor     11.757        19.874       -.15713E-05   -.59183E-04
  16  Prefactor     .10000E-03    7.7030        .20312E-06** at limit **
  17  norm          .10000E-03    3.1084        .56947E-06** at limit **
  18  Prefactor     .10000E-03    89.522        .24447E-05** at limit **
  19  Normalizat    1.3392        .24023        .13202E-06   -.39161E-04
  20  Prefactor     .89682        .10330        .15429E-06   -.41195E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.5121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.00026
  norm       = 29.6994
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.05643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.8158
  Prefactor  = 11.7574
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.33923
  Prefactor  = 0.896817
 **********
 **   18 **HESSE 
 **********

 FCN=   6424.260     FROM HESSE     STATUS=OK           289 CALLS     2310 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     59.512        37.302        .26020E-03   -1.4164    
   4  Prefactor     .10000E-03    26.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.3529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.0003        7.4744        .17989E-03   -1.5261    
   7  norm          29.699        20.476        .73534E-04   -1.4617    
   8  norm          .10000E-03    6.7704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .73603        .13145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0564        17.412        .14421E-02   -1.5421    
  11  Prefactor     .10000E-03    14.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.2181        .17877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.2491        .16111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.816        9.6468        .97673E-04   -1.4888    
  15  Prefactor     11.757        19.629        .11642E-03   -1.5022    
  16  Prefactor     .10000E-03    7.7070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.0525        .26895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    91.874        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3392        .27584        .33876E-03   -.82403    
  20  Prefactor     .89682        .11917        .17593E-03   -.96252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45036e-10
Minuit parameter uncertainties:
  1  9.2573e-05
  2  3.75072e-06
  3  37.3167
  4  7.66876e-06
  5  5.85107e-06
  6  7.47581
  7  20.4806
  8  3.73959e-06
  9  2.03655e-06
  10  11.9722
  11  1.20893e-05
  12  2.00363e-06
  13  3.2034e-06
  14  9.6477
  15  19.6399
  16  1.94442e-06
  17  0.000112234
  18  0.000649949
  19  0.27614
  20  0.119206
Done.

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

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.000e-04  3.740e-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.968e-01  1.192e-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.339e+00  2.761e-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: 5.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/507329/likelihoodResults_434764801_435024001_4FGL_J0947.1-2541_daily_bin754.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) = 6424.26081805
delta logL = -0.000703343644091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6424.26011552
delta logL = -8.1206781033e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10661E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7789       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3393       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89674       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=   6424.260     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      198 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    25.884        .90712E-02** at limit **
   2  alpha         1.8091        3.1834        .43556       -.20876E-04
   3  Normalizat    1.3392        .23262        .76545E-01    .39927E-04
   4  Prefactor     .89682        .10185        .44963E-01    .68736E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 1.80915
  Normalizat = 1.33923
  Prefactor  = 0.896817
 **********
 **   18 **HESSE 
 **********

 FCN=   6424.260     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.6554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8091        3.3618        .50000       -.27998    
   3  Normalizat    1.3392        .26697        .33876E-03   -.82403    
   4  Prefactor     .89682        .11705        .17593E-03   -.96252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74758e-10
Minuit parameter uncertainties:
  1  0.000296183
  2  2.47106
  3  0.267244
  4  0.117085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507329': 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) = 6424.26011421
delta logL = 4.96585016663e-07

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.000e-04  2.962e-04  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  1.809e+00  2.471e+00  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:  8.968e-01  1.171e-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.339e+00  2.672e-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/507329/cmap_HighResolution_434764801_435024001_4FGL_J0947.1-2541_daily_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.28e-05', job_status='DONE', photon_flux_upper_limit='5.39e-08', time_completed='2021-09-01 02:34:36.560080', job_id='507329', GAL2='0.90', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1630488876.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='4.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.75' WHERE bin_id='754' AND source_name='4FGL J0947.1-2541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:34:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 507329: <4FGL_J0947.1-2541_daily_bin754> in cluster <slac> Done

Job <4FGL_J0947.1-2541_daily_bin754> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 02:20:45 2021
Job was executed on host(s) <bullet0251>, 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:34:37 2021
Results reported at Wed Sep  1 02:34:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0947.1-2541_daily_bin754 146.781 -25.6839 434764801 435024001 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 :                                   616.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            832 sec.

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

