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


Performing analysis on: 4FGL_J0947.1-2541_daily_bin851
RA = 146.781, Dec = -25.6839
tmin = 459907201, tmax = 460166401
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='509791', job_status='RUN', time_executed='2021-09-01 02:29:37.708574', time_epoch_executed='1630488577.71' WHERE source_name='4FGL J0947.1-2541' and cadence='daily' and bin_id='851'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/509791

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/509791/ft1_4FGL_J0947.1-2541_daily_bin851.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/509791/ft2_4FGL_J0947.1-2541_daily_bin851.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/509791/ft1_4FGL_J0947.1-2541_daily_bin851.fits outfile=/scratch/kocevski/509791/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin851.fits ra=146.781 dec=-25.6839 rad=12.0 tmin=459907201.0 tmax=460166401.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.41
user 3.21
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/509791/ft2_4FGL_J0947.1-2541_daily_bin851.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/509791/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin851.fits evtable="EVENTS" outfile="/scratch/kocevski/509791/ft1_filtered_4FGL_J0947.1-2541_daily_bin851.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.52
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/509791/ft1_filtered_4FGL_J0947.1-2541_daily_bin851.fits" evtable="EVENTS" scfile=/scratch/kocevski/509791/ft2_4FGL_J0947.1-2541_daily_bin851.fits sctable="SC_DATA" outfile=/scratch/kocevski/509791/ltcube_459907201_460166401_4FGL_J0947.1-2541_daily_bin851.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/509791/ft2_4FGL_J0947.1-2541_daily_bin851.fits
.....................!
real 11.85
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/509791/ft1_filtered_4FGL_J0947.1-2541_daily_bin851.fits evtable="EVENTS" scfile=/scratch/kocevski/509791/ft2_4FGL_J0947.1-2541_daily_bin851.fits sctable="SC_DATA" expcube=/scratch/kocevski/509791/ltcube_459907201_460166401_4FGL_J0947.1-2541_daily_bin851.fits outfile=/scratch/kocevski/509791/expmap_459907201_460166401_4FGL_J0947.1-2541_daily_bin851.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/509791/ltcube_459907201_460166401_4FGL_J0947.1-2541_daily_bin851.fits
.....................!
real 190.64
user 185.00
sys 5.23

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/509791/ft1_filtered_4FGL_J0947.1-2541_daily_bin851.fits scfile=/scratch/kocevski/509791/ft2_4FGL_J0947.1-2541_daily_bin851.fits outfile=/scratch/kocevski/509791/cmap_459907201_460166401_4FGL_J0947.1-2541_daily_bin851.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.70
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/509791/ft1_filtered_4FGL_J0947.1-2541_daily_bin851.fits scfile=/scratch/kocevski/509791/ft2_4FGL_J0947.1-2541_daily_bin851.fits outfile=/scratch/kocevski/509791/cmap_HighResolution_459907201_460166401_4FGL_J0947.1-2541_daily_bin851.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/509791/ft1_filtered_4FGL_J0947.1-2541_daily_bin851.fits evtable="EVENTS" scfile=/scratch/kocevski/509791/ft2_4FGL_J0947.1-2541_daily_bin851.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/509791/Model_4FGL_J0947.1-2541_daily_bin851.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/509791/ft1_filtered_4FGL_J0947.1-2541_daily_bin851.fits.....................!
real 98.85
user 94.87
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.7712       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.528       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10658E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.8198       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    19.729       1.0000         .10000E-03   10000.    
     9 'norm      '    .35545       1.0000         .10000E-03   10000.    
    10 'norm      '    30.917       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.1585       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10254E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .57392       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1077       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90993       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=   9561.530     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2064 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.6923        .42273E-06** at limit **
   2  Prefactor     8.7660        27.360       -.15095E-06   -.35270E-04
   3  Prefactor     17.520        22.697        .38324E-06    .33537E-04
   4  Prefactor     .10000E-03    122.38       -.21167E-06** at limit **
   5  Prefactor     .10000E-03    6.8085       -.10681E-05** at limit **
   6  norm          4.8205        4.9842        .53358E-06    .28448E-03
   7  norm          .10000E-03    4.1793        .15724E-07** at limit **
   8  norm          19.729        9.3392       -.38888E-07   -.49324E-04
   9  norm          .35528        .77085        .32438E-06   -.41509E-03
  10  norm          30.916        11.058        .11506E-06    .88408E-04
  11  Prefactor     8.1549        16.744        .36552E-06    .35784E-04
  12  Prefactor     .10000E-03    11.117       -.32250E-07** at limit **
  13  norm          .10000E-03    6.7144       -.82208E-06** at limit **
  14  norm          .10000E-03    7.1221        .10050E-05** at limit **
  15  Prefactor     .10000E-03    33.522       -.25189E-06** at limit **
  16  Prefactor     .10000E-03    5.4430       -.96526E-07** at limit **
  17  norm          .57443        2.2660        .17793E-05   -.33422E-03
  18  Prefactor     .10000E-03    6.6168        .68877E-06** at limit **
  19  Normalizat    1.1077        .18120       -.61306E-06   -.80480E-04
  20  Prefactor     .90991        .78537E-01   -.58589E-07   -.14497E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.76598
  Prefactor  = 17.5201
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.8205
  norm       = 0.0001
  norm       = 19.7292
  norm       = 0.355282
  norm       = 30.9163
  Prefactor  = 8.15493
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.574426
  Prefactor  = 0.0001
  Normalizat = 1.10773
  Prefactor  = 0.909907
 **********
 **   18 **HESSE 
 **********

 FCN=   9561.530     FROM HESSE     STATUS=OK           289 CALLS     2353 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.7858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.7660        27.438        .13534E-03   -1.5116    
   3  Prefactor     17.520        22.697        .95665E-04   -1.4871    
   4  Prefactor     .10000E-03    126.10        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.0911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.8205        5.0167        .18324E-03   -1.5269    
   7  norm          .10000E-03    4.1871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.729        9.3417        .90172E-04   -1.4819    
   9  norm          .35528        .78156        .12089E-03   -1.5589    
  10  norm          30.916        11.063        .72060E-04   -1.4595    
  11  Prefactor     8.1549        16.768        .14036E-03   -1.5137    
  12  Prefactor     .10000E-03    11.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.9746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.4854        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    34.952        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.4498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .57443        2.3623        .29572E-03   -1.5556    
  18  Prefactor     .10000E-03    6.7543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1077        .20569        .33351E-03   -.89504    
  20  Prefactor     .90991        .90154E-01    .16344E-03   -.95796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.92435e-10
Minuit parameter uncertainties:
  1  5.1807e-05
  2  27.4774
  3  22.7083
  4  1.68083e-05
  5  0.000137792
  6  5.01712
  7  1.71213e-06
  8  9.3424
  9  0.781586
  10  11.0638
  11  16.7779
  12  1.02064e-05
  13  0.000117444
  14  0.000121156
  15  6.64274e-05
  16  1.00534e-05
  17  2.32972
  18  9.26534e-05
  19  0.205837
  20  0.0901686
Done.

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

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.973e+01  9.342e+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.099e-01  9.017e-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.108e+00  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.51
Ra Dec: 146.781 -25.684
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 3.69e-08 +/- 1.75e-08
Energy Flux (Fixed Index): 4.98e-05 +/- 2.36e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9560.75273969
delta logL = 0.777441832062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9560.73859383
delta logL = 0.79158769169

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.770       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2195       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1230       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90895       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=   9560.739     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      216 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.770        9.6147        .23753E-02    .52985E-02
   2  alpha         1.2195        .33999        .36663       -.35733E-04
   3  Normalizat    1.1230        .17373        .74936E-01   -.19468E-04
   4  Prefactor     .90895        .78227E-01    .45119E-01   -.93654E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.7698
  alpha      = 1.21951
  Normalizat = 1.123
  Prefactor  = 0.908954
 **********
 **   18 **HESSE 
 **********

 FCN=   9560.739     FROM HESSE     STATUS=OK            29 CALLS      245 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.770        11.294        .95012E-04   -1.4865    
   2  alpha         1.2195        .43164        .14911E-01   -.53774    
   3  Normalizat    1.1230        .19881        .33164E-03   -.89017    
   4  Prefactor     .90895        .89855E-01    .16361E-03   -.95829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01235e-08
Minuit parameter uncertainties:
  1  11.2958
  2  0.434599
  3  0.198947
  4  0.0898697
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/509791': 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) = 9560.73859382
delta logL = 0.791587702048

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.777e+01  1.130e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  1.220e+00  4.346e-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:  9.090e-01  8.987e-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.123e+00  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.08
Ra Dec: 146.781 -25.684
Photon Index (Free Index): 1.22 +/- 0.43
Photon Flux (Free Index): 1.92e-08 +/- 1.44e-08
Energy Flux (Free Index): 1.06e-04 +/- 8.56e-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/509791/cmap_HighResolution_459907201_460166401_4FGL_J0947.1-2541_daily_bin851.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.69e-08', energy_flux2='1.06e-04', photon_flux_error='1.75e-08', dlogl='7.92e-01', energy_flux='4.98e-05', photon_flux2='1.92e-08', job_status='DONE', time_completed='2021-09-01 02:41:12.431714', photon_index_error2='0.43', photon_index2='1.22', ts='19.51', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='8.56e-05', EG='1.11', time_epoch_completed='1630489272.43', return_code='0', job_id='509791', GAL2='0.91', EG2='1.12', return_code2='0', energy_flux_error='2.36e-05', photon_flux_error2='1.44e-08', ts2='21.08', photon_index='1.75' WHERE bin_id='851' AND source_name='4FGL J0947.1-2541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:41:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 509791: <4FGL_J0947.1-2541_daily_bin851> in cluster <slac> Done

Job <4FGL_J0947.1-2541_daily_bin851> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 02:25:43 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:25:44 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:25:44 2021
Terminated at Wed Sep  1 02:41:13 2021
Results reported at Wed Sep  1 02:41:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0947.1-2541_daily_bin851 146.781 -25.6839 459907201 460166401 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 :                                   690.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            930 sec.

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

