/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 58 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 = 7490
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0947.1-2541_daily_bin532
RA = 146.781, Dec = -25.6839
tmin = 377222401, tmax = 377481601
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='506773', job_status='RUN', time_executed='2021-09-01 02:21:56.816630', time_epoch_executed='1630488116.82' WHERE source_name='4FGL J0947.1-2541' and cadence='daily' and bin_id='532'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506773

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506773/ft1_4FGL_J0947.1-2541_daily_bin532.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506773/ft2_4FGL_J0947.1-2541_daily_bin532.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506773/ft1_4FGL_J0947.1-2541_daily_bin532.fits outfile=/scratch/kocevski/506773/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin532.fits ra=146.781 dec=-25.6839 rad=12.0 tmin=377222401.0 tmax=377481601.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.46
user 3.22
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506773/ft1_filtered_4FGL_J0947.1-2541_daily_bin532.fits" evtable="EVENTS" scfile=/scratch/kocevski/506773/ft2_4FGL_J0947.1-2541_daily_bin532.fits sctable="SC_DATA" outfile=/scratch/kocevski/506773/ltcube_377222401_377481601_4FGL_J0947.1-2541_daily_bin532.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/506773/ft2_4FGL_J0947.1-2541_daily_bin532.fits
.....................!
real 12.79
user 12.26
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506773/ft1_filtered_4FGL_J0947.1-2541_daily_bin532.fits evtable="EVENTS" scfile=/scratch/kocevski/506773/ft2_4FGL_J0947.1-2541_daily_bin532.fits sctable="SC_DATA" expcube=/scratch/kocevski/506773/ltcube_377222401_377481601_4FGL_J0947.1-2541_daily_bin532.fits outfile=/scratch/kocevski/506773/expmap_377222401_377481601_4FGL_J0947.1-2541_daily_bin532.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/506773/ltcube_377222401_377481601_4FGL_J0947.1-2541_daily_bin532.fits
.....................!
real 190.74
user 185.70
sys 4.55

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/506773/ft1_filtered_4FGL_J0947.1-2541_daily_bin532.fits scfile=/scratch/kocevski/506773/ft2_4FGL_J0947.1-2541_daily_bin532.fits outfile=/scratch/kocevski/506773/cmap_377222401_377481601_4FGL_J0947.1-2541_daily_bin532.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506773/ft1_filtered_4FGL_J0947.1-2541_daily_bin532.fits scfile=/scratch/kocevski/506773/ft2_4FGL_J0947.1-2541_daily_bin532.fits outfile=/scratch/kocevski/506773/cmap_HighResolution_377222401_377481601_4FGL_J0947.1-2541_daily_bin532.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/506773/ft1_filtered_4FGL_J0947.1-2541_daily_bin532.fits evtable="EVENTS" scfile=/scratch/kocevski/506773/ft2_4FGL_J0947.1-2541_daily_bin532.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/506773/Model_4FGL_J0947.1-2541_daily_bin532.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/506773/ft1_filtered_4FGL_J0947.1-2541_daily_bin532.fits.....................!
real 112.57
user 111.06
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.103       1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.214       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.4737       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4333       1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.578       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.274       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.7126       1.0000         .10000E-03   10000.    
    14 'norm      '    8.9307       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2740       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .65983       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3993       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91175       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=   10895.52     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     1993 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3199       -.22264E-07** at limit **
   2  Prefactor     10.103        28.683        .24774E-06    .43975E-06
   3  Prefactor     27.210        22.709       -.15159E-05   -.31282E-03
   4  Prefactor     .10000E-03    5.9193       -.53812E-07** at limit **
   5  Prefactor     .10000E-03    4.6586        .42538E-06** at limit **
   6  norm          4.4740        3.8555        .94010E-06   -.85321E-03
   7  norm          .10000E-03    5.3991       -.46520E-06** at limit **
   8  norm          3.4334        4.5987        .80630E-08   -.15953E-04
   9  norm          .10000E-03    .49456        .30369E-07** at limit **
  10  norm          11.579        8.3901        .27018E-07   -.23815E-04
  11  Prefactor     17.267        19.033       -.25083E-05   -.43717E-03
  12  Prefactor     .10000E-03    6.4487        .76381E-06** at limit **
  13  norm          5.7164        10.046        .14923E-05    .19880E-03
  14  norm          8.9280        8.0185       -.61614E-06   -.26120E-03
  15  Prefactor     6.2761        11.631       -.83943E-07    .62222E-04
  16  Prefactor     .10000E-03    8.2535       -.39174E-06** at limit **
  17  norm          .66030        3.2924        .25373E-05   -.56558E-03
  18  Prefactor     .10000E-03    5.4959       -.42751E-06** at limit **
  19  Normalizat    1.3992        .18292       -.14156E-06   -.83739E-04
  20  Prefactor     .91181        .79010E-01   -.47393E-07   -.95216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.1032
  Prefactor  = 27.2101
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.47402
  norm       = 0.0001
  norm       = 3.43338
  norm       = 0.0001
  norm       = 11.5786
  Prefactor  = 17.2675
  Prefactor  = 0.0001
  norm       = 5.71636
  norm       = 8.928
  Prefactor  = 6.27614
  Prefactor  = 0.0001
  norm       = 0.660296
  Prefactor  = 0.0001
  Normalizat = 1.39917
  Prefactor  = 0.911805
 **********
 **   18 **HESSE 
 **********

 FCN=   10895.52     FROM HESSE     STATUS=OK           289 CALLS     2282 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.103        28.752        .12606E-03   -1.5072    
   3  Prefactor     27.210        23.126        .76794E-04   -1.4664    
   4  Prefactor     .10000E-03    5.9211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.4740        3.9513        .94401E-03   -1.5285    
   7  norm          .10000E-03    5.4322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4334        4.5919        .21829E-03   -1.5337    
   9  norm          .10000E-03    .51422        .14306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.579        8.3872        .11773E-03   -1.5027    
  11  Prefactor     17.267        20.014        .96367E-04   -1.4877    
  12  Prefactor     .10000E-03    6.5120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.7164        10.155        .16806E-03   -1.5230    
  14  norm          8.9280        8.0508        .13412E-03   -1.5110    
  15  Prefactor     6.2761        11.626        .16026E-03   -1.5207    
  16  Prefactor     .10000E-03    8.2870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .66030        3.6274        .37181E-03   -1.5545    
  18  Prefactor     .10000E-03    5.5214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3992        .21060        .32609E-03   -.80653    
  20  Prefactor     .91181        .91024E-01    .17495E-03   -.95730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64073e-09
Minuit parameter uncertainties:
  1  2.37189e-06
  2  28.7909
  3  23.1341
  4  5.85874e-06
  5  3.36778e-05
  6  3.9515
  7  4.35747e-05
  8  4.59236
  9  6.18795e-08
  10  8.38808
  11  20.0218
  12  6.9726e-05
  13  10.158
  14  8.05175
  15  11.6303
  16  5.07919e-05
  17  3.09533
  18  4.76874e-05
  19  0.210726
  20  0.0910396
Done.

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

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  3.433e+00  4.592e+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.118e-01  9.104e-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.399e+00  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.20
Ra Dec: 146.781 -25.684
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 6.42e-09 +/- 8.58e-09
Energy Flux (Fixed Index): 8.67e-06 +/- 1.16e-05

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

Saving results to:
/scratch/kocevski/506773/likelihoodResults_377222401_377481601_4FGL_J0947.1-2541_daily_bin532.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) = 10895.4933374
delta logL = 0.0277859786329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10895.491567
delta logL = 0.0295563723303

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1660       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0134       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3963       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91220       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=   10895.49     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      235 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1662        4.6870        .22778E-03   -.21362E-04
   2  alpha         2.0134        1.0946        .27113E-01   -.10731E-04
   3  Normalizat    1.3963        .20243        .32637E-03    .95584E-04
   4  Prefactor     .91220        .90273E-01    .17491E-03    .19925E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.16616
  alpha      = 2.01342
  Normalizat = 1.3963
  Prefactor  = 0.912195
 **********
 **   18 **HESSE 
 **********

 FCN=   10895.49     FROM HESSE     STATUS=OK            25 CALLS      260 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1662        4.5246        .91112E-05   -1.5352    
   2  alpha         2.0134        1.0597        .10845E-02   -.19588    
   3  Normalizat    1.3963        .20242        .13055E-04   -.80736    
   4  Prefactor     .91220        .90317E-01    .34983E-04   -.95716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.40592e-11
Minuit parameter uncertainties:
  1  4.52506
  2  1.09585
  3  0.202539
  4  0.0903321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506773': 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) = 10895.491567
delta logL = 0.0295563770851

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  3.166e+00  4.525e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  2.013e+00  1.096e+00  0.000e+00  5.000e+00 ( 1.000e+00)
270         beta:  8.622e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
271           Eb:  2.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  9.122e-01  9.033e-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.396e+00  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 146.781 -25.684
Photon Index (Free Index): 2.01 +/- 1.10
Photon Flux (Free Index): 9.25e-09 +/- 1.80e-08
Energy Flux (Free Index): 6.91e-06 +/- 1.04e-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/506773/cmap_HighResolution_377222401_377481601_4FGL_J0947.1-2541_daily_bin532.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-05', comment='SUCCESS', photon_flux='6.42e-09', energy_flux2='6.91e-06', photon_flux_error='8.58e-09', dlogl='2.96e-02', energy_flux='8.67e-06', photon_flux2='9.25e-09', job_status='DONE', time_completed='2021-09-01 02:35:58.234360', photon_index_error2='1.10', photon_index2='2.01', ts='1.20', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='3.63e-08', energy_flux_error2='1.04e-05', EG='1.40', time_epoch_completed='1630488958.23', return_code='0', job_id='506773', GAL2='0.91', EG2='1.40', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='1.80e-08', ts2='1.26', photon_index='1.75' WHERE bin_id='532' AND source_name='4FGL J0947.1-2541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:35:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 506773: <4FGL_J0947.1-2541_daily_bin532> in cluster <slac> Done

Job <4FGL_J0947.1-2541_daily_bin532> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 02:20:22 2021
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:20:25 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:20:25 2021
Terminated at Wed Sep  1 02:35:59 2021
Results reported at Wed Sep  1 02:35:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0947.1-2541_daily_bin532 146.781 -25.6839 377222401 377481601 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 :                                   836.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            937 sec.

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

