/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 8 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 = 7467
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0947.1-2541_daily_bin71
RA = 146.781, Dec = -25.6839
tmin = 257731201, tmax = 257990401
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='504554', job_status='RUN', time_executed='2021-09-01 02:16:22.124924', time_epoch_executed='1630487782.12' WHERE source_name='4FGL J0947.1-2541' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504554

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504554/ft1_4FGL_J0947.1-2541_daily_bin71.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504554/ft2_4FGL_J0947.1-2541_daily_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504554/ft1_4FGL_J0947.1-2541_daily_bin71.fits outfile=/scratch/kocevski/504554/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin71.fits ra=146.781 dec=-25.6839 rad=12.0 tmin=257731201.0 tmax=257990401.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 1.44
user 1.21
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/504554/ft2_4FGL_J0947.1-2541_daily_bin71.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/504554/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin71.fits evtable="EVENTS" outfile="/scratch/kocevski/504554/ft1_filtered_4FGL_J0947.1-2541_daily_bin71.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.33
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504554/ft1_filtered_4FGL_J0947.1-2541_daily_bin71.fits" evtable="EVENTS" scfile=/scratch/kocevski/504554/ft2_4FGL_J0947.1-2541_daily_bin71.fits sctable="SC_DATA" outfile=/scratch/kocevski/504554/ltcube_257731201_257990401_4FGL_J0947.1-2541_daily_bin71.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/504554/ft2_4FGL_J0947.1-2541_daily_bin71.fits
.....................!
real 12.15
user 11.82
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504554/ft1_filtered_4FGL_J0947.1-2541_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/504554/ft2_4FGL_J0947.1-2541_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/504554/ltcube_257731201_257990401_4FGL_J0947.1-2541_daily_bin71.fits outfile=/scratch/kocevski/504554/expmap_257731201_257990401_4FGL_J0947.1-2541_daily_bin71.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/504554/ltcube_257731201_257990401_4FGL_J0947.1-2541_daily_bin71.fits
.....................!
real 189.60
user 185.28
sys 3.98

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/504554/ft1_filtered_4FGL_J0947.1-2541_daily_bin71.fits scfile=/scratch/kocevski/504554/ft2_4FGL_J0947.1-2541_daily_bin71.fits outfile=/scratch/kocevski/504554/cmap_257731201_257990401_4FGL_J0947.1-2541_daily_bin71.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.57
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504554/ft1_filtered_4FGL_J0947.1-2541_daily_bin71.fits scfile=/scratch/kocevski/504554/ft2_4FGL_J0947.1-2541_daily_bin71.fits outfile=/scratch/kocevski/504554/cmap_HighResolution_257731201_257990401_4FGL_J0947.1-2541_daily_bin71.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.56
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504554/ft1_filtered_4FGL_J0947.1-2541_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/504554/ft2_4FGL_J0947.1-2541_daily_bin71.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504554/Model_4FGL_J0947.1-2541_daily_bin71.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/504554/ft1_filtered_4FGL_J0947.1-2541_daily_bin71.fits.....................!
real 94.35
user 92.19
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2746       1.0000         .10000E-03   10000.    
     2 'Prefactor '    53.474       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21192E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.894       1.0000         .10000E-03   10000.    
     6 'norm      '    4.1842       1.0000         .10000E-03   10000.    
     7 'norm      '    6.8857       1.0000         .10000E-03   10000.    
     8 'norm      '    4.4385       1.0000         .10000E-03   10000.    
     9 'norm      '    2.1565       1.0000         .10000E-03   10000.    
    10 'norm      '    10.909       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9649       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .12986E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6488       1.0000         .10000E-03   10000.    
    17 'norm      '    2.1374       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0805       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .64545       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0543       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=   9444.279     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     2062 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2657        7.8025       -.12655E-05   -.11262E-03
   2  Prefactor     53.478        36.874        .30928E-05    .11041E-04
   3  Prefactor     .10000E-03    106.58       -.11729E-04** at limit **
   4  Prefactor     .10000E-03    7.7178        .58475E-07** at limit **
   5  Prefactor     12.904        15.482       -.78199E-05   -.33126E-04
   6  norm          4.1801        5.1185        .11158E-05   -.32267E-03
   7  norm          6.8844        10.894        .17472E-05   -.60481E-04
   8  norm          4.4406        13.102       -.25972E-05   -.11219E-03
   9  norm          2.1575        1.5633       -.27170E-06   -.94883E-03
  10  norm          10.912        9.3243       -.18510E-05   -.10122E-03
  11  Prefactor     5.9699        17.838       -.29415E-05   -.47706E-04
  12  Prefactor     .10000E-03    13.448       -.37772E-06** at limit **
  13  norm          .10000E-03    4.5014        .15063E-06** at limit **
  14  norm          .10000E-03    3.3405        .34077E-06** at limit **
  15  Prefactor     .10000E-03    5.7272       -.19502E-07** at limit **
  16  Prefactor     6.6559        15.600       -.79227E-05   -.70047E-04
  17  norm          2.1375        2.7983        .52953E-06   -.34432E-03
  18  Prefactor     7.0820        7.6128        .33667E-07    .44390E-04
  19  Normalizat    .64517        .19840        .39151E-05   -.85352E-05
  20  Prefactor     1.0543        .85295E-01   -.24329E-06    .26599E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.26566
  Prefactor  = 53.4781
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9043
  norm       = 4.18006
  norm       = 6.88436
  norm       = 4.44057
  norm       = 2.15751
  norm       = 10.9117
  Prefactor  = 5.96989
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.65587
  norm       = 2.1375
  Prefactor  = 7.08197
  Normalizat = 0.645173
  Prefactor  = 1.05428
 **********
 **   18 **HESSE 
 **********

 FCN=   9444.279     FROM HESSE     STATUS=OK           299 CALLS     2361 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2657        7.8166        .19487E-03   -1.5295    
   2  Prefactor     53.478        36.812        .54849E-04   -1.4244    
   3  Prefactor     .10000E-03    111.06        .40352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.7206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.904        15.540        .11155E-03   -1.4989    
   6  norm          4.1801        5.0773        .19702E-03   -1.5299    
   7  norm          6.8844        10.872        .15289E-03   -1.5183    
   8  norm          4.4406        13.135        .19114E-03   -1.5286    
   9  norm          2.1575        1.5610        .94197E-04   -1.5414    
  10  norm          10.912        9.3426        .12130E-03   -1.5047    
  11  Prefactor     5.9699        17.855        .16441E-03   -1.5219    
  12  Prefactor     .10000E-03    13.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.5421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.7535        .34262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.7557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.6559        15.528        .15562E-03   -1.5192    
  17  norm          2.1375        2.7631        .17209E-03   -1.5416    
  18  Prefactor     7.0820        7.6140        .15076E-03   -1.5176    
  19  Normalizat    .64517        .21574        .41005E-03   -1.0610    
  20  Prefactor     1.0543        .94925E-01    .15371E-03   -.90941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21967e-10
Minuit parameter uncertainties:
  1  7.81851
  2  36.828
  3  0.000195564
  4  1.50499e-05
  5  15.5451
  6  5.0778
  7  10.875
  8  13.1435
  9  1.56107
  10  9.34381
  11  17.8709
  12  3.55459e-05
  13  8.28862e-06
  14  9.08901e-06
  15  2.03429e-06
  16  15.5371
  17  2.76325
  18  7.61504
  19  0.216018
  20  0.0949402
Done.

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

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  4.441e+00  1.314e+01  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.054e+00  9.494e-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:  6.452e-01  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/504554/likelihoodResults_257731201_257990401_4FGL_J0947.1-2541_daily_bin71.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) = 9442.39113469
delta logL = 1.88784561266

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9442.3773085
delta logL = 1.90167180517

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6346       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9933       1.0000          .0000       5.0000    
     3 'Normalizat'    .56469       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0657       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=   9442.377     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      229 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6272        31.766        .52977E-02    .61350E-03
   2  alpha         2.9941        1.8458        .20274        .13428E-03
   3  Normalizat    .56468        .62781E-01    .98334E-01    .56747E-04
   4  Prefactor     1.0657        .28212E-01    .39065E-01   -.16689E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.62719
  alpha      = 2.99409
  Normalizat = 0.564676
  Prefactor  = 1.06575
 **********
 **   18 **HESSE 
 **********

 FCN=   9442.377     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6272        7.9453        .10070E-03   -1.5327    
   2  alpha         2.9941        .90078        .75995E-02    .19895    
   3  Normalizat    .56468        .19924        .43583E-03   -1.0951    
   4  Prefactor     1.0657        .92626E-01    .15276E-03   -.90569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32805e-08
Minuit parameter uncertainties:
  1  7.94765
  2  0.92241
  3  0.199494
  4  0.0926395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504554': 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) = 9442.37730736
delta logL = 1.90167294003

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  3.627e+00  7.948e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  2.994e+00  9.224e-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.066e+00  9.264e-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:  5.647e-01  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.07
Ra Dec: 146.781 -25.684
Photon Index (Free Index): 2.99 +/- 0.92
Photon Flux (Free Index): 9.15e-08 +/- 5.46e-08
Energy Flux (Free Index): 2.12e-05 +/- 1.53e-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/504554/cmap_HighResolution_257731201_257990401_4FGL_J0947.1-2541_daily_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.75e-05', comment='SUCCESS', energy_flux2='2.12e-05', dlogl='1.90e+00', photon_flux2='9.15e-08', job_status='DONE', time_completed='2021-09-01 02:28:48.365465', photon_index_error2='0.92', photon_index2='2.99', ts='0.13', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='6.48e-08', energy_flux_error2='1.53e-05', EG='0.65', time_epoch_completed='1630488528.37', return_code='0', job_id='504554', GAL2='1.07', EG2='0.56', return_code2='0', photon_flux_error2='5.46e-08', ts2='4.07', photon_index='1.75' WHERE bin_id='71' AND source_name='4FGL J0947.1-2541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:28:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 504554: <4FGL_J0947.1-2541_daily_bin71> in cluster <slac> Done

Job <4FGL_J0947.1-2541_daily_bin71> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 02:15:53 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:15:55 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:15:55 2021
Terminated at Wed Sep  1 02:28:48 2021
Results reported at Wed Sep  1 02:28:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0947.1-2541_daily_bin71 146.781 -25.6839 257731201 257990401 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 :                                   742.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            775 sec.

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

