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


Performing analysis on: 4FGL_J0947.1-2541_daily_bin1005
RA = 146.781, Dec = -25.6839
tmin = 499824001, tmax = 500083201
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='509992', job_status='RUN', time_executed='2021-09-01 02:26:26.707844', time_epoch_executed='1630488386.71' WHERE source_name='4FGL J0947.1-2541' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/509992

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/509992/ft1_4FGL_J0947.1-2541_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/509992/ft2_4FGL_J0947.1-2541_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/509992/ft1_4FGL_J0947.1-2541_daily_bin1005.fits outfile=/scratch/kocevski/509992/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin1005.fits ra=146.781 dec=-25.6839 rad=12.0 tmin=499824001.0 tmax=500083201.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.23
user 4.91
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/509992/ft1_filtered_4FGL_J0947.1-2541_daily_bin1005.fits" evtable="EVENTS" scfile=/scratch/kocevski/509992/ft2_4FGL_J0947.1-2541_daily_bin1005.fits sctable="SC_DATA" outfile=/scratch/kocevski/509992/ltcube_499824001_500083201_4FGL_J0947.1-2541_daily_bin1005.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/509992/ft2_4FGL_J0947.1-2541_daily_bin1005.fits
.....................!
real 12.25
user 11.89
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/509992/ft1_filtered_4FGL_J0947.1-2541_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/509992/ft2_4FGL_J0947.1-2541_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/509992/ltcube_499824001_500083201_4FGL_J0947.1-2541_daily_bin1005.fits outfile=/scratch/kocevski/509992/expmap_499824001_500083201_4FGL_J0947.1-2541_daily_bin1005.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/509992/ltcube_499824001_500083201_4FGL_J0947.1-2541_daily_bin1005.fits
.....................!
real 191.99
user 186.46
sys 5.13

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/509992/ft1_filtered_4FGL_J0947.1-2541_daily_bin1005.fits scfile=/scratch/kocevski/509992/ft2_4FGL_J0947.1-2541_daily_bin1005.fits outfile=/scratch/kocevski/509992/cmap_499824001_500083201_4FGL_J0947.1-2541_daily_bin1005.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/509992/ft1_filtered_4FGL_J0947.1-2541_daily_bin1005.fits scfile=/scratch/kocevski/509992/ft2_4FGL_J0947.1-2541_daily_bin1005.fits outfile=/scratch/kocevski/509992/cmap_HighResolution_499824001_500083201_4FGL_J0947.1-2541_daily_bin1005.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.504       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11092E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .15371E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.4023       1.0000         .10000E-03   10000.    
     8 'norm      '    10.888       1.0000         .10000E-03   10000.    
     9 'norm      '    2.6301       1.0000         .10000E-03   10000.    
    10 'norm      '    11.263       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.325       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10222E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .47831E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.692       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0814       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95930       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=   10186.05     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     2045 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9658        .14634E-05** at limit **
   2  Prefactor     17.493        23.160       -.45535E-05   -.13962E-03
   3  Prefactor     .10000E-03    9.6683       -.69772E-06** at limit **
   4  Prefactor     .10000E-03    63.480       -.12322E-05** at limit **
   5  Prefactor     .10000E-03    3.2079        .37092E-06** at limit **
   6  norm          .10002E-03    3.0008       -.92241E-06** at limit **
   7  norm          7.4077        10.895       -.17306E-06   -.91529E-04
   8  norm          10.891        7.2214        .11892E-07    .61153E-04
   9  norm          2.6302        1.1236       -.27447E-07   -.26558E-03
  10  norm          11.265        9.4301       -.24963E-06   -.11784E-03
  11  Prefactor     22.332        20.295        .71858E-06    .29830E-06
  12  Prefactor     .10000E-03    25.645       -.60299E-05** at limit **
  13  norm          .10000E-03    13.431        .50033E-05** at limit **
  14  norm          .10000E-03    4.2650       -.43051E-06** at limit **
  15  Prefactor     .10033E-03    8.0731        .14396E-05** at limit **
  16  Prefactor     .10000E-03    22.067        .71302E-06** at limit **
  17  norm          12.687        4.6813        .13848E-05    .22984E-03
  18  Prefactor     .10000E-03    4.9707       -.73867E-06** at limit **
  19  Normalizat    1.0812        .18065       -.35090E-06   -.60823E-04
  20  Prefactor     .95937        .79844E-01    .84576E-07   -.32998E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.4931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100022
  norm       = 7.40765
  norm       = 10.8907
  norm       = 2.63019
  norm       = 11.2646
  Prefactor  = 22.332
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100327
  Prefactor  = 0.0001
  norm       = 12.6873
  Prefactor  = 0.0001
  Normalizat = 1.08116
  Prefactor  = 0.959365
 **********
 **   18 **HESSE 
 **********

 FCN=   10186.05     FROM HESSE     STATUS=OK           291 CALLS     2336 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.493        23.277        .95729E-04   -1.4871    
   3  Prefactor     .10000E-03    9.6849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    65.274        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.2141        .17656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10002E-03    12.251        .32980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.4077        10.913        .14741E-03   -1.5164    
   8  norm          10.891        7.2208        .12142E-03   -1.5048    
   9  norm          2.6302        1.1241        .67255E-04   -1.5384    
  10  norm          11.265        9.4312        .11937E-03   -1.5037    
  11  Prefactor     22.332        20.313        .84773E-04   -1.4762    
  12  Prefactor     .10000E-03    26.590        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    13.600        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.3116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10033E-03    38.582        .52393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.687        4.6487        .11244E-03   -1.4995    
  18  Prefactor     .10000E-03    4.9781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0812        .20603        .34423E-03   -.90359    
  20  Prefactor     .95937        .92075E-01    .16524E-03   -.94097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00749e-08
Minuit parameter uncertainties:
  1  3.88381e-05
  2  23.2888
  3  1.44778e-05
  4  3.01371e-05
  5  8.19255e-06
  6  0.00102847
  7  10.916
  8  7.22134
  9  1.12412
  10  9.43248
  11  20.3193
  12  0.00020552
  13  8.49733e-05
  14  1.85478e-05
  15  0.00710344
  16  0.000180743
  17  4.64879
  18  2.4957e-05
  19  0.206186
  20  0.09209
Done.

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

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.089e+01  7.221e+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.594e-01  9.209e-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.081e+00  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.90
Ra Dec: 146.781 -25.684
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 2.04e-08 +/- 1.35e-08
Energy Flux (Fixed Index): 2.75e-05 +/- 1.82e-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) = 10185.8991
delta logL = 0.146506152787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10185.8962602
delta logL = 0.149346001006

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3960       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0887       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96133       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10185.90     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      308 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.3917        7.5159        .13074E-03    .20017E-03
   2  alpha         2.0880        .63487        .15452E-01    .39513E-04
   3  Normalizat    1.0687        .20066        .34597E-03   -.10187E-04
   4  Prefactor     .96141        .90968E-01    .16506E-03   -.22895E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.39173
  alpha      = 2.08796
  Normalizat = 1.06868
  Prefactor  = 0.961415
 **********
 **   18 **HESSE 
 **********

 FCN=   10185.90     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.3917        7.1432        .52297E-05   -1.5095    
   2  alpha         2.0880        .60364        .61806E-03   -.16557    
   3  Normalizat    1.0687        .20045        .13839E-04   -.90764    
   4  Prefactor     .96141        .90987E-01    .33012E-04   -.94027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65987e-11
Minuit parameter uncertainties:
  1  7.14384
  2  0.60984
  3  0.200593
  4  0.0910011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/509992': 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) = 10185.8962573
delta logL = 0.149348904812

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  9.392e+00  7.144e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  2.088e+00  6.098e-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.614e-01  9.100e-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.069e+00  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.19
Ra Dec: 146.781 -25.684
Photon Index (Free Index): 2.09 +/- 0.61
Photon Flux (Free Index): 3.16e-08 +/- 3.01e-08
Energy Flux (Free Index): 2.04e-05 +/- 1.51e-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/509992/cmap_HighResolution_499824001_500083201_4FGL_J0947.1-2541_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.04e-08', energy_flux2='2.04e-05', photon_flux_error='1.35e-08', dlogl='1.49e-01', energy_flux='2.75e-05', photon_flux2='3.16e-08', job_status='DONE', time_completed='2021-09-01 02:38:55.564374', photon_index_error2='0.61', photon_index2='2.09', ts='9.90', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='1.08', time_epoch_completed='1630489135.56', return_code='0', job_id='509992', GAL2='0.96', EG2='1.07', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='3.01e-08', ts2='10.19', photon_index='1.75' WHERE bin_id='1005' AND source_name='4FGL J0947.1-2541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:38:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 509992: <4FGL_J0947.1-2541_daily_bin1005> in cluster <slac> Done

Job <4FGL_J0947.1-2541_daily_bin1005> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 02:26:02 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:26:03 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:26:03 2021
Terminated at Wed Sep  1 02:38:56 2021
Results reported at Wed Sep  1 02:38:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0947.1-2541_daily_bin1005 146.781 -25.6839 499824001 500083201 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 :                                   738.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             305.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            774 sec.

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

