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


Performing analysis on: 4FGL_J0947.1-2541_daily_bin1002
RA = 146.781, Dec = -25.6839
tmin = 499046401, tmax = 499305601
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='509988', job_status='RUN', time_executed='2021-09-01 02:28:50.470590', time_epoch_executed='1630488530.47' WHERE source_name='4FGL J0947.1-2541' and cadence='daily' and bin_id='1002'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/509988

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/509988/ft1_4FGL_J0947.1-2541_daily_bin1002.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/509988/ft2_4FGL_J0947.1-2541_daily_bin1002.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/509988/ft1_4FGL_J0947.1-2541_daily_bin1002.fits outfile=/scratch/kocevski/509988/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin1002.fits ra=146.781 dec=-25.6839 rad=12.0 tmin=499046401.0 tmax=499305601.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 4.42
user 4.07
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/509988/ft2_4FGL_J0947.1-2541_daily_bin1002.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/509988/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin1002.fits evtable="EVENTS" outfile="/scratch/kocevski/509988/ft1_filtered_4FGL_J0947.1-2541_daily_bin1002.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/509988/ft1_filtered_4FGL_J0947.1-2541_daily_bin1002.fits" evtable="EVENTS" scfile=/scratch/kocevski/509988/ft2_4FGL_J0947.1-2541_daily_bin1002.fits sctable="SC_DATA" outfile=/scratch/kocevski/509988/ltcube_499046401_499305601_4FGL_J0947.1-2541_daily_bin1002.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/509988/ft2_4FGL_J0947.1-2541_daily_bin1002.fits
.....................!
real 12.85
user 12.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/509988/ft1_filtered_4FGL_J0947.1-2541_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/509988/ft2_4FGL_J0947.1-2541_daily_bin1002.fits sctable="SC_DATA" expcube=/scratch/kocevski/509988/ltcube_499046401_499305601_4FGL_J0947.1-2541_daily_bin1002.fits outfile=/scratch/kocevski/509988/expmap_499046401_499305601_4FGL_J0947.1-2541_daily_bin1002.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/509988/ltcube_499046401_499305601_4FGL_J0947.1-2541_daily_bin1002.fits
.....................!
real 189.93
user 184.76
sys 4.67

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/509988/ft1_filtered_4FGL_J0947.1-2541_daily_bin1002.fits scfile=/scratch/kocevski/509988/ft2_4FGL_J0947.1-2541_daily_bin1002.fits outfile=/scratch/kocevski/509988/cmap_499046401_499305601_4FGL_J0947.1-2541_daily_bin1002.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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/509988/ft1_filtered_4FGL_J0947.1-2541_daily_bin1002.fits scfile=/scratch/kocevski/509988/ft2_4FGL_J0947.1-2541_daily_bin1002.fits outfile=/scratch/kocevski/509988/cmap_HighResolution_499046401_499305601_4FGL_J0947.1-2541_daily_bin1002.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.71
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/509988/ft1_filtered_4FGL_J0947.1-2541_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/509988/ft2_4FGL_J0947.1-2541_daily_bin1002.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/509988/Model_4FGL_J0947.1-2541_daily_bin1002.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/509988/ft1_filtered_4FGL_J0947.1-2541_daily_bin1002.fits.....................!
real 87.20
user 85.36
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17108E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11287E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    51.947       1.0000         .10000E-03   10000.    
     8 'norm      '    6.3205       1.0000         .10000E-03   10000.    
     9 'norm      '    4.2951       1.0000         .10000E-03   10000.    
    10 'norm      '    .16205       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    22.807       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1015       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.678       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6521       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99120       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1386       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=   8039.647     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     2064 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.517        .87494E-06** at limit **
   2  Prefactor     .10000E-03    7.3196       -.59817E-07** at limit **
   3  Prefactor     .10000E-03    116.34       -.33051E-04** at limit **
   4  Prefactor     .10000E-03    91.380        .38846E-04** at limit **
   5  Prefactor     .10000E-03    11.219        .10866E-05** at limit **
   6  norm          .10000E-03    3.2733       -.13199E-06** at limit **
   7  norm          51.949        24.887        .35274E-06    .39200E-04
   8  norm          6.3210        9.5594       -.27035E-06   -.82635E-04
   9  norm          4.2954        1.9010       -.73852E-07   -.19342E-03
  10  norm          .12772        5.7182       -.43497E-06    .42311E-03
  11  Prefactor     .10000E-03    11.315       -.10348E-05** at limit **
  12  Prefactor     .10000E-03    6.3743        .23834E-06** at limit **
  13  norm          22.783        15.652       -.66643E-05   -.29042E-03
  14  norm          1.1223        24.662        .60702E-05   -.39067E-03
  15  Prefactor     16.691        17.887        .63025E-06   -.18732E-04
  16  Prefactor     .10000E-03    16.161       -.75874E-06** at limit **
  17  norm          .10000E-03    1.9045        .68198E-07** at limit **
  18  Prefactor     4.6327        24.030       -.35136E-06   -.51206E-04
  19  Normalizat    .99120        .24283        .13197E-05   -.24888E-04
  20  Prefactor     1.1385        .10713        .19014E-06    .13934E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 51.9495
  norm       = 6.32104
  norm       = 4.29544
  norm       = 0.127723
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.7832
  norm       = 1.12231
  Prefactor  = 16.6911
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.63269
  Normalizat = 0.991203
  Prefactor  = 1.13848
 **********
 **   18 **HESSE 
 **********

 FCN=   8039.647     FROM HESSE     STATUS=OK           299 CALLS     2363 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.3206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    117.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    91.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.3415        .31392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          51.949        24.948        .55646E-04   -1.4265    
   8  norm          6.3210        9.5562        .15966E-03   -1.5205    
   9  norm          4.2954        1.9073        .77328E-04   -1.5293    
  10  norm          .12772        9.3577        .68271E-01   -1.5637    
  11  Prefactor     .10000E-03    11.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.3879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          22.783        14.308        .83875E-04   -1.4753    
  14  norm          1.1223        21.380        .45250E-03   -1.5496    
  15  Prefactor     16.691        17.703        .98073E-04   -1.4891    
  16  Prefactor     .10000E-03    16.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.9198        .12080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6327        23.532        .18659E-03   -1.5277    
  19  Normalizat    .99120        .27322        .40419E-03   -.93326    
  20  Prefactor     1.1385        .12176        .17145E-03   -.88246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27386e-09
Minuit parameter uncertainties:
  1  1.5294e-05
  2  2.01718e-06
  3  0.00046182
  4  0.000592747
  5  2.06516e-05
  6  3.94929e-05
  7  24.9534
  8  9.55846
  9  1.90729
  10  2.18599
  11  3.80601e-05
  12  4.30234e-05
  13  14.3103
  14  9.80053
  15  17.7083
  16  4.39225e-05
  17  3.51801e-06
  18  20.8952
  19  0.273606
  20  0.121793
Done.

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

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  6.321e+00  9.558e+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:  1.138e+00  1.218e-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:  9.912e-01  2.736e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/509988/likelihoodResults_499046401_499305601_4FGL_J0947.1-2541_daily_bin1002.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) = 8039.53400391
delta logL = 0.112549420262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8039.5277166
delta logL = 0.118836729576

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3744       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1183       1.0000          .0000       5.0000    
     3 'Normalizat'    .98584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1387       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=   8039.528     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      245 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3741        8.7516        .17335E-03    .15123E-03
   2  alpha         2.1182        .78433        .15172E-01    .27545E-04
   3  Normalizat    .98584        .26087        .40517E-03   -.71830E-04
   4  Prefactor     1.1387        .11855        .17141E-03   -.19976E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.37405
  alpha      = 2.11824
  Normalizat = 0.985837
  Prefactor  = 1.13867
 **********
 **   18 **HESSE 
 **********

 FCN=   8039.528     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3741        8.3293        .69340E-05   -1.5244    
   2  alpha         2.1182        .74776        .60689E-03   -.15330    
   3  Normalizat    .98584        .26093        .16207E-04   -.93506    
   4  Prefactor     1.1387        .11860        .34283E-04   -.88240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33785e-11
Minuit parameter uncertainties:
  1  8.33112
  2  0.75967
  3  0.261271
  4  0.118624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/509988': 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) = 8039.52771658
delta logL = 0.118836746012

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  5.374e+00  8.331e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  2.118e+00  7.597e-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.139e+00  1.186e-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:  9.858e-01  2.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.59
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/509988/cmap_HighResolution_499046401_499305601_4FGL_J0947.1-2541_daily_bin1002.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.07e-05', job_status='DONE', photon_flux_upper_limit='5.97e-08', time_completed='2021-09-01 02:40:39.129986', job_id='509988', GAL2='1.14', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630489239.13', return_code2='0', ts='0.59', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.19e-01', ts2='0.83', photon_index_error='0.00', photon_index='1.75' WHERE bin_id='1002' AND source_name='4FGL J0947.1-2541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:40:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 509988: <4FGL_J0947.1-2541_daily_bin1002> in cluster <slac> Done

Job <4FGL_J0947.1-2541_daily_bin1002> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 02:26:01 2021
Job was executed on host(s) <bullet0120>, 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:40:41 2021
Results reported at Wed Sep  1 02:40:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0947.1-2541_daily_bin1002 146.781 -25.6839 499046401 499305601 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 :                                   701.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            880 sec.

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

