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


Performing analysis on: 4FGL_J0947.1-2541_daily_bin757
RA = 146.781, Dec = -25.6839
tmin = 435542401, tmax = 435801601
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='507333', job_status='RUN', time_executed='2021-09-01 02:22:37.014727', time_epoch_executed='1630488157.01' WHERE source_name='4FGL J0947.1-2541' and cadence='daily' and bin_id='757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507333

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507333/ft1_4FGL_J0947.1-2541_daily_bin757.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507333/ft2_4FGL_J0947.1-2541_daily_bin757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507333/ft1_4FGL_J0947.1-2541_daily_bin757.fits outfile=/scratch/kocevski/507333/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin757.fits ra=146.781 dec=-25.6839 rad=12.0 tmin=435542401.0 tmax=435801601.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.53
user 5.22
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/507333/ft2_4FGL_J0947.1-2541_daily_bin757.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/507333/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin757.fits evtable="EVENTS" outfile="/scratch/kocevski/507333/ft1_filtered_4FGL_J0947.1-2541_daily_bin757.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.55
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/507333/ft1_filtered_4FGL_J0947.1-2541_daily_bin757.fits" evtable="EVENTS" scfile=/scratch/kocevski/507333/ft2_4FGL_J0947.1-2541_daily_bin757.fits sctable="SC_DATA" outfile=/scratch/kocevski/507333/ltcube_435542401_435801601_4FGL_J0947.1-2541_daily_bin757.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/507333/ft2_4FGL_J0947.1-2541_daily_bin757.fits
.....................!
real 12.22
user 11.85
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507333/ft1_filtered_4FGL_J0947.1-2541_daily_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/507333/ft2_4FGL_J0947.1-2541_daily_bin757.fits sctable="SC_DATA" expcube=/scratch/kocevski/507333/ltcube_435542401_435801601_4FGL_J0947.1-2541_daily_bin757.fits outfile=/scratch/kocevski/507333/expmap_435542401_435801601_4FGL_J0947.1-2541_daily_bin757.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/507333/ltcube_435542401_435801601_4FGL_J0947.1-2541_daily_bin757.fits
.....................!
real 189.72
user 185.48
sys 3.91

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/507333/ft1_filtered_4FGL_J0947.1-2541_daily_bin757.fits scfile=/scratch/kocevski/507333/ft2_4FGL_J0947.1-2541_daily_bin757.fits outfile=/scratch/kocevski/507333/cmap_435542401_435801601_4FGL_J0947.1-2541_daily_bin757.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/507333/ft1_filtered_4FGL_J0947.1-2541_daily_bin757.fits scfile=/scratch/kocevski/507333/ft2_4FGL_J0947.1-2541_daily_bin757.fits outfile=/scratch/kocevski/507333/cmap_HighResolution_435542401_435801601_4FGL_J0947.1-2541_daily_bin757.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.41
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/507333/ft1_filtered_4FGL_J0947.1-2541_daily_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/507333/ft2_4FGL_J0947.1-2541_daily_bin757.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/507333/Model_4FGL_J0947.1-2541_daily_bin757.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/507333/ft1_filtered_4FGL_J0947.1-2541_daily_bin757.fits.....................!
real 93.67
user 92.45
sys 1.06

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9147       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.9309       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.526       1.0000         .10000E-03   10000.    
     9 'norm      '    .54106       1.0000         .10000E-03   10000.    
    10 'norm      '    8.8193       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1734       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.7551       1.0000         .10000E-03   10000.    
    14 'norm      '    5.0762       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10138E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1436       1.0000         .10000E-03   10000.    
    17 'norm      '    7.3073       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89111       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96538       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=   8707.636     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     1780 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7413       -.34777E-07** at limit **
   2  Prefactor     2.8767        27.602        .20838E-05    .11086E-03
   3  Prefactor     .10000E-03    31.797       -.30225E-06** at limit **
   4  Prefactor     .10000E-03    48.361       -.19023E-06** at limit **
   5  Prefactor     .10000E-03    8.2622        .67721E-07** at limit **
   6  norm          3.9308        5.9392        .44576E-06    .78721E-05
   7  norm          .10000E-03    10.751       -.49156E-07** at limit **
   8  norm          10.526        9.7761       -.97497E-08   -.71220E-04
   9  norm          .54103        1.1897        .56857E-06   -.96424E-04
  10  norm          8.8177        8.9130        .20871E-06    .88465E-04
  11  Prefactor     2.1477        16.471        .17514E-05    .11502E-03
  12  Prefactor     .10000E-03    6.6563        .16419E-06** at limit **
  13  norm          9.7561        9.0897       -.47088E-08    .10021E-03
  14  norm          5.0766        8.5875        .25026E-06   -.46979E-04
  15  Prefactor     .10251E-03    10.794       -.21240E-05** at limit **
  16  Prefactor     4.1376        14.157       -.10348E-05    .23086E-04
  17  norm          7.3062        4.3767        .13073E-05    .27285E-03
  18  Prefactor     .10000E-03    6.4271       -.26634E-07** at limit **
  19  Normalizat    .89121        .19328       -.89457E-06    .13887E-03
  20  Prefactor     .96535        .83657E-01    .62178E-07    .15991E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.87667
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.93083
  norm       = 0.0001
  norm       = 10.5261
  norm       = 0.541026
  norm       = 8.81775
  Prefactor  = 2.14773
  Prefactor  = 0.0001
  norm       = 9.75607
  norm       = 5.07662
  Prefactor  = 0.000102505
  Prefactor  = 4.13759
  norm       = 7.30623
  Prefactor  = 0.0001
  Normalizat = 0.891205
  Prefactor  = 0.965353
 **********
 **   18 **HESSE 
 **********

 FCN=   8707.636     FROM HESSE     STATUS=OK           303 CALLS     2083 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8767        28.220        .23797E-03   -1.5369    
   3  Prefactor     .10000E-03    32.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    48.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.3148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9308        5.9176        .20347E-03   -1.5311    
   7  norm          .10000E-03    10.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.526        9.7784        .12350E-03   -1.5059    
   9  norm          .54103        1.1898        .14004E-03   -1.5561    
  10  norm          8.8177        8.9031        .13497E-03   -1.5114    
  11  Prefactor     2.1477        16.599        .27930E-03   -1.5415    
  12  Prefactor     .10000E-03    6.7031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.7561        9.0364        .12830E-03   -1.5083    
  14  norm          5.0766        8.5342        .17846E-03   -1.5257    
  15  Prefactor     .10251E-03    14.259        .80461E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.1376        14.098        .19802E-03   -1.5301    
  17  norm          7.3062        4.4818        .70401E-03   -1.5167    
  18  Prefactor     .10000E-03    6.4439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .89121        .21438        .35149E-03   -.96770    
  20  Prefactor     .96535        .94293E-01    .15566E-03   -.93893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84445e-10
Minuit parameter uncertainties:
  1  1.78161e-06
  2  18.0306
  3  7.81336e-05
  4  5.00244e-05
  5  3.4152e-06
  6  5.9185
  7  3.72336e-06
  8  9.77988
  9  1.18985
  10  8.90441
  11  11.9457
  12  6.20184e-06
  13  9.0377
  14  8.53623
  15  0.0119563
  16  14.1091
  17  4.48201
  18  6.22015e-06
  19  0.214581
  20  0.0943091
Done.

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

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.053e+01  9.780e+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.654e-01  9.431e-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:  8.912e-01  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.29
Ra Dec: 146.781 -25.684
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 1.97e-08 +/- 1.83e-08
Energy Flux (Fixed Index): 2.66e-05 +/- 2.47e-05

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

Saving results to:
/scratch/kocevski/507333/likelihoodResults_435542401_435801601_4FGL_J0947.1-2541_daily_bin757.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) = 8705.92764931
delta logL = 1.70842290174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8705.87846716
delta logL = 1.75760505344

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6270       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3681       1.0000          .0000       5.0000    
     3 'Normalizat'    .76599       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99796       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=   8705.878     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      277 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6176        10.668        .82905E-02   -.92679E-04
   2  alpha         3.3706        1.6944        .16953        .69980E-04
   3  Normalizat    .76569        .64490E-01    .84914E-01   -.80991E-04
   4  Prefactor     .99804        .28785E-01    .34693E-01   -.99428E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.61765
  alpha      = 3.37059
  Normalizat = 0.765691
  Prefactor  = 0.998037
 **********
 **   18 **HESSE 
 **********

 FCN=   8705.878     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      310 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6176        18.848        .55612E-04   -1.5454    
   2  alpha         3.3706        3.8675        .68692E-02    .35569    
   3  Normalizat    .76569        .20644        .37604E-03   -1.0135    
   4  Prefactor     .99804        .93149E-01    .15330E-03   -.92795    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.55608e-10
Minuit parameter uncertainties:
  1  11.0475
  2  2.80604
  3  0.206653
  4  0.093164
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507333': 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): 102
logL (Free Index) = 8705.87846436
delta logL = 1.75760785626

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.618e+00  1.105e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  3.371e+00  2.806e+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.980e-01  9.316e-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:  7.657e-01  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.13
Ra Dec: 146.781 -25.684
Photon Index (Free Index): 3.37 +/- 2.81
Photon Flux (Free Index): 1.04e-07 +/- 5.94e-08
Energy Flux (Free Index): 2.01e-05 +/- 1.87e-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/507333/cmap_HighResolution_435542401_435801601_4FGL_J0947.1-2541_daily_bin757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.83e-05', comment='SUCCESS', photon_flux='1.97e-08', energy_flux2='2.01e-05', photon_flux_error='1.83e-08', dlogl='1.76e+00', energy_flux='2.66e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-01 02:34:44.857712', photon_index_error2='2.81', photon_index2='3.37', ts='2.29', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='6.54e-08', energy_flux_error2='1.87e-05', EG='0.89', time_epoch_completed='1630488884.86', return_code='0', job_id='507333', GAL2='1.00', EG2='0.77', return_code2='102', energy_flux_error='2.47e-05', photon_flux_error2='5.94e-08', ts2='6.13', photon_index='1.75' WHERE bin_id='757' AND source_name='4FGL J0947.1-2541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:34:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 507333: <4FGL_J0947.1-2541_daily_bin757> in cluster <slac> Done

Job <4FGL_J0947.1-2541_daily_bin757> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 02:20:46 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:21:10 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:21:10 2021
Terminated at Wed Sep  1 02:34:45 2021
Results reported at Wed Sep  1 02:34:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0947.1-2541_daily_bin757 146.781 -25.6839 435542401 435801601 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 :                                   723.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            839 sec.

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

