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


Performing analysis on: 4FGL_J0947.1-2541_daily_bin372
RA = 146.781, Dec = -25.6839
tmin = 335750401, tmax = 336009601
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='505104', job_status='RUN', time_executed='2021-09-01 02:19:16.976990', time_epoch_executed='1630487956.98' WHERE source_name='4FGL J0947.1-2541' and cadence='daily' and bin_id='372'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/505104

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/505104/ft1_4FGL_J0947.1-2541_daily_bin372.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/505104/ft2_4FGL_J0947.1-2541_daily_bin372.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/505104/ft1_4FGL_J0947.1-2541_daily_bin372.fits outfile=/scratch/kocevski/505104/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin372.fits ra=146.781 dec=-25.6839 rad=12.0 tmin=335750401.0 tmax=336009601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.87
user 6.57
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/505104/ft1_filtered_4FGL_J0947.1-2541_daily_bin372.fits" evtable="EVENTS" scfile=/scratch/kocevski/505104/ft2_4FGL_J0947.1-2541_daily_bin372.fits sctable="SC_DATA" outfile=/scratch/kocevski/505104/ltcube_335750401_336009601_4FGL_J0947.1-2541_daily_bin372.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/505104/ft2_4FGL_J0947.1-2541_daily_bin372.fits
.....................!
real 12.52
user 12.02
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/505104/ft1_filtered_4FGL_J0947.1-2541_daily_bin372.fits evtable="EVENTS" scfile=/scratch/kocevski/505104/ft2_4FGL_J0947.1-2541_daily_bin372.fits sctable="SC_DATA" expcube=/scratch/kocevski/505104/ltcube_335750401_336009601_4FGL_J0947.1-2541_daily_bin372.fits outfile=/scratch/kocevski/505104/expmap_335750401_336009601_4FGL_J0947.1-2541_daily_bin372.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/505104/ltcube_335750401_336009601_4FGL_J0947.1-2541_daily_bin372.fits
.....................!
real 191.31
user 185.71
sys 4.62

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/505104/ft1_filtered_4FGL_J0947.1-2541_daily_bin372.fits scfile=/scratch/kocevski/505104/ft2_4FGL_J0947.1-2541_daily_bin372.fits outfile=/scratch/kocevski/505104/cmap_335750401_336009601_4FGL_J0947.1-2541_daily_bin372.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/505104/ft1_filtered_4FGL_J0947.1-2541_daily_bin372.fits scfile=/scratch/kocevski/505104/ft2_4FGL_J0947.1-2541_daily_bin372.fits outfile=/scratch/kocevski/505104/cmap_HighResolution_335750401_336009601_4FGL_J0947.1-2541_daily_bin372.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/505104/ft1_filtered_4FGL_J0947.1-2541_daily_bin372.fits evtable="EVENTS" scfile=/scratch/kocevski/505104/ft2_4FGL_J0947.1-2541_daily_bin372.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/505104/Model_4FGL_J0947.1-2541_daily_bin372.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/505104/ft1_filtered_4FGL_J0947.1-2541_daily_bin372.fits.....................!
real 97.93
user 95.80
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .84029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .39976       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12324E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.887       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.909       1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.6893       1.0000         .10000E-03   10000.    
     8 'norm      '    3.3758       1.0000         .10000E-03   10000.    
     9 'norm      '    .13055       1.0000         .10000E-03   10000.    
    10 'norm      '    11.705       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.5013       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6170       1.0000         .10000E-03   10000.    
    13 'norm      '    6.5465       1.0000         .10000E-03   10000.    
    14 'norm      '    9.0382       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12640E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18060E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10403E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11407E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3272       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98647       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=   9457.276     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     1828 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1349       -.20734E-06** at limit **
   2  Prefactor     .28192        19.185       -.12726E-05    .14560E-03
   3  Prefactor     .10000E-03    12.194       -.21764E-06** at limit **
   4  Prefactor     12.910        19.183       -.49975E-05   -.43504E-03
   5  Prefactor     21.905        13.323       -.15159E-06   -.27267E-04
   6  norm          .10000E-03    2.7348       -.13870E-07** at limit **
   7  norm          7.6404        16.384       -.86399E-06   -.78811E-04
   8  norm          3.3941        4.7761        .20641E-05   -.16443E-02
   9  norm          .13168        .57783       -.19197E-06    .40057E-03
  10  norm          11.676        8.4020       -.10339E-05   -.45127E-03
  11  Prefactor     6.4821        16.141        .20441E-05   -.32495E-03
  12  Prefactor     5.6564        9.5299       -.16941E-05   -.30902E-03
  13  norm          6.5077        6.6268       -.41221E-06   -.95836E-04
  14  norm          9.0434        7.6983        .13568E-05    .50131E-03
  15  Prefactor     .10000E-03    7.8310        .29483E-06** at limit **
  16  Prefactor     .10000E-03    8.0735       -.42577E-06** at limit **
  17  norm          .10000E-03    2.2386       -.21248E-06** at limit **
  18  Prefactor     .10000E-03    5.3661        .16281E-06** at limit **
  19  Normalizat    1.3273        .19985       -.11447E-06    .26001E-03
  20  Prefactor     .98658        .87819E-01    .18204E-06    .37969E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.281924
  Prefactor  = 0.0001
  Prefactor  = 12.9096
  Prefactor  = 21.9046
  norm       = 0.0001
  norm       = 7.64038
  norm       = 3.39412
  norm       = 0.131685
  norm       = 11.6761
  Prefactor  = 6.48214
  Prefactor  = 5.65639
  norm       = 6.50765
  norm       = 9.0434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.32727
  Prefactor  = 0.986576
 **********
 **   18 **HESSE 
 **********

 FCN=   9457.276     FROM HESSE     STATUS=OK           305 CALLS     2133 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.894        .42381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .28192        21.233        .13502       -1.5602    
   3  Prefactor     .10000E-03    12.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.910        19.923        .11158E-03   -1.4989    
   5  Prefactor     21.905        13.350        .85573E-04   -1.4772    
   6  norm          .10000E-03    2.7584        .15701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.6404        16.478        .14461E-03   -1.5155    
   8  norm          3.3941        5.7609        .11011E-02   -1.5339    
   9  norm          .13168        2.6321        .13848E-02   -1.5635    
  10  norm          11.676        8.4678        .11709E-03   -1.5024    
  11  Prefactor     6.4821        16.609        .78699E-03   -1.5199    
  12  Prefactor     5.6564        9.5886        .16950E-03   -1.5232    
  13  norm          6.5077        6.6196        .15685E-03   -1.5198    
  14  norm          9.0434        7.7671        .13332E-03   -1.5106    
  15  Prefactor     .10000E-03    7.8854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.0995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.2864        .14212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.3716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3273        .23133        .33692E-03   -.82756    
  20  Prefactor     .98658        .10149        .17238E-03   -.93178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49422e-09
Minuit parameter uncertainties:
  1  0.000504065
  2  4.89421
  3  2.466e-05
  4  19.9334
  5  13.3518
  6  2.70517e-06
  7  16.4877
  8  5.76186
  9  1.17708
  10  8.46863
  11  16.6206
  12  9.59122
  13  6.6203
  14  7.76797
  15  1.65656e-05
  16  3.82657e-05
  17  1.12825e-05
  18  8.67328e-06
  19  0.231516
  20  0.101512
Done.

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

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  3.394e+00  5.762e+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:  9.866e-01  1.015e-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.327e+00  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/505104/likelihoodResults_335750401_336009601_4FGL_J0947.1-2541_daily_bin372.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) = 9457.27584637
delta logL = 0.000257859534031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9457.2758285
delta logL = 0.000275728363704

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3950       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7266       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3274       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98656       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=   9457.276     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      193 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4210        341.59        .54895E-02    .24554E-03
   2  alpha         1.7260        4.0041        .43968        .25812E-04
   3  Normalizat    1.3274        .10453        .76125E-01    .82813E-04
   4  Prefactor     .98655        .36256E-01    .46099E-01    .14783E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.42095
  alpha      = 1.72599
  Normalizat = 1.32745
  Prefactor  = 0.986551
 **********
 **   18 **HESSE 
 **********

 FCN=   9457.276     FROM HESSE     STATUS=OK            31 CALLS      224 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4210        5.9874        .21958E-03   -1.5338    
   2  alpha         1.7260        1.0161        .31475E-01   -.31478    
   3  Normalizat    1.3274        .21933        .33690E-03   -.82751    
   4  Prefactor     .98655        .99151E-01    .17238E-03   -.93179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86389e-11
Minuit parameter uncertainties:
  1  5.9885
  2  1.04992
  3  0.219489
  4  0.0991688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/505104': 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) = 9457.27581871
delta logL = 0.000285522835838

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  3.421e+00  5.988e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  1.726e+00  1.050e+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:  9.866e-01  9.917e-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:  1.327e+00  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/505104/cmap_HighResolution_335750401_336009601_4FGL_J0947.1-2541_daily_bin372.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.58e-05', job_status='DONE', photon_flux_upper_limit='4.13e-08', time_completed='2021-09-01 02:33:04.855319', job_id='505104', GAL2='0.99', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630488784.86', return_code2='0', ts='0.55', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.86e-04', ts2='0.55', photon_index_error='0.00', photon_index='1.75' WHERE bin_id='372' AND source_name='4FGL J0947.1-2541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:33:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 505104: <4FGL_J0947.1-2541_daily_bin372> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0947.1-2541_daily_bin372 146.781 -25.6839 335750401 336009601 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 :                                   795.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            992 sec.

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

