/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 187 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 = 7481
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0947.1-2541_daily_bin84
RA = 146.781, Dec = -25.6839
tmin = 261100801, tmax = 261360001
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='504576', job_status='RUN', time_executed='2021-09-01 02:19:21.087718', time_epoch_executed='1630487961.09' WHERE source_name='4FGL J0947.1-2541' and cadence='daily' and bin_id='84'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504576

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504576/ft1_4FGL_J0947.1-2541_daily_bin84.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504576/ft2_4FGL_J0947.1-2541_daily_bin84.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504576/ft1_4FGL_J0947.1-2541_daily_bin84.fits outfile=/scratch/kocevski/504576/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin84.fits ra=146.781 dec=-25.6839 rad=12.0 tmin=261100801.0 tmax=261360001.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 1.55
user 1.31
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504576/ft1_filtered_4FGL_J0947.1-2541_daily_bin84.fits" evtable="EVENTS" scfile=/scratch/kocevski/504576/ft2_4FGL_J0947.1-2541_daily_bin84.fits sctable="SC_DATA" outfile=/scratch/kocevski/504576/ltcube_261100801_261360001_4FGL_J0947.1-2541_daily_bin84.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/504576/ft2_4FGL_J0947.1-2541_daily_bin84.fits
.....................!
real 12.42
user 12.07
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504576/ft1_filtered_4FGL_J0947.1-2541_daily_bin84.fits evtable="EVENTS" scfile=/scratch/kocevski/504576/ft2_4FGL_J0947.1-2541_daily_bin84.fits sctable="SC_DATA" expcube=/scratch/kocevski/504576/ltcube_261100801_261360001_4FGL_J0947.1-2541_daily_bin84.fits outfile=/scratch/kocevski/504576/expmap_261100801_261360001_4FGL_J0947.1-2541_daily_bin84.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/504576/ltcube_261100801_261360001_4FGL_J0947.1-2541_daily_bin84.fits
.....................!
real 190.61
user 186.10
sys 4.14

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/504576/ft1_filtered_4FGL_J0947.1-2541_daily_bin84.fits scfile=/scratch/kocevski/504576/ft2_4FGL_J0947.1-2541_daily_bin84.fits outfile=/scratch/kocevski/504576/cmap_261100801_261360001_4FGL_J0947.1-2541_daily_bin84.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504576/ft1_filtered_4FGL_J0947.1-2541_daily_bin84.fits scfile=/scratch/kocevski/504576/ft2_4FGL_J0947.1-2541_daily_bin84.fits outfile=/scratch/kocevski/504576/cmap_HighResolution_261100801_261360001_4FGL_J0947.1-2541_daily_bin84.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/504576/ft1_filtered_4FGL_J0947.1-2541_daily_bin84.fits evtable="EVENTS" scfile=/scratch/kocevski/504576/ft2_4FGL_J0947.1-2541_daily_bin84.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504576/Model_4FGL_J0947.1-2541_daily_bin84.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/504576/ft1_filtered_4FGL_J0947.1-2541_daily_bin84.fits.....................!
real 109.20
user 107.06
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1991       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2963       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .71295       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.5052       1.0000         .10000E-03   10000.    
     9 'norm      '    1.0683       1.0000         .10000E-03   10000.    
    10 'norm      '    9.6173       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.301       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11065E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2261       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3832       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .73854       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1391       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=   10857.85     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     2061 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1984        3.4657        .77138E-07   -.60816E-03
   2  Prefactor     .10000E-03    19.435       -.12839E-04** at limit **
   3  Prefactor     1.2942        47.995       -.29180E-05   -.86114E-05
   4  Prefactor     .54707        10.401       -.66596E-06    .97512E-04
   5  Prefactor     .10000E-03    3.0425       -.85241E-07** at limit **
   6  norm          .10000E-03    1.4321        .13336E-07** at limit **
   7  norm          .10000E-03    9.2211        .10861E-05** at limit **
   8  norm          4.5050        4.5701        .70040E-08    .22094E-03
   9  norm          1.0682        1.0995       -.49855E-07   -.91464E-04
  10  norm          9.6170        9.0309        .57298E-06    .93966E-06
  11  Prefactor     19.295        24.312       -.77989E-05   -.16724E-04
  12  Prefactor     .10000E-03    3.8169        .20888E-06** at limit **
  13  norm          .10000E-03    7.6397       -.62373E-06** at limit **
  14  norm          .10000E-03    4.1306       -.10810E-06** at limit **
  15  Prefactor     .10000E-03    5.4888        .39071E-06** at limit **
  16  Prefactor     .10000E-03    20.337        .12657E-04** at limit **
  17  norm          2.2250        2.8537       -.16186E-06   -.49763E-03
  18  Prefactor     2.3782        15.129        .73726E-06   -.21512E-03
  19  Normalizat    .73866        .18000        .19373E-05    .13933E-04
  20  Prefactor     1.1390        .81386E-01   -.19001E-06    .13516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.1984
  Prefactor  = 0.0001
  Prefactor  = 1.29424
  Prefactor  = 0.547065
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.50502
  norm       = 1.06821
  norm       = 9.617
  Prefactor  = 19.2946
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.22503
  Prefactor  = 2.37816
  Normalizat = 0.738662
  Prefactor  = 1.13903
 **********
 **   18 **HESSE 
 **********

 FCN=   10857.85     FROM HESSE     STATUS=OK           295 CALLS     2356 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1984        19.371        .20738E-02   -1.5489    
   2  Prefactor     .10000E-03    19.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2942        48.762        .38845E-03   -1.5480    
   4  Prefactor     .54707        142.44        .65195E-02   -1.5560    
   5  Prefactor     .10000E-03    3.0491        .17749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.4382        .12176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9.3089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.5050        4.5859        .94842E-03   -1.5283    
   9  norm          1.0682        1.0704        .10422E-03   -1.5501    
  10  norm          9.6170        9.0277        .12922E-03   -1.5088    
  11  Prefactor     19.295        24.399        .91166E-04   -1.4829    
  12  Prefactor     .10000E-03    3.8221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.9145        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.2228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.5083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2250        2.8369        .19186E-03   -1.5410    
  18  Prefactor     2.3782        16.620        .13267E-02   -1.5400    
  19  Normalizat    .73866        .19725        .39599E-03   -1.0239    
  20  Prefactor     1.1390        .91006E-01    .15464E-03   -.88229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14593e-09
Minuit parameter uncertainties:
  1  9.63955
  2  1.19306e-05
  3  15.9017
  4  17.6963
  5  1.96936e-06
  6  5.2891e-07
  7  8.01368e-06
  8  4.5863
  9  1.07042
  10  9.02895
  11  24.4114
  12  1.15088e-05
  13  6.99145e-05
  14  6.60342e-06
  15  5.00145e-06
  16  9.40593e-05
  17  2.83709
  18  12.5786
  19  0.197443
  20  0.0910182
Done.

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

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  4.505e+00  4.586e+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.139e+00  9.102e-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.387e-01  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.09
Ra Dec: 146.781 -25.684
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 8.42e-09 +/- 8.57e-09
Energy Flux (Fixed Index): 1.14e-05 +/- 1.16e-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) = 10857.6941243
delta logL = 0.159786668895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10857.6940366
delta logL = 0.159874359066

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4786       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3308       1.0000          .0000       5.0000    
     3 'Normalizat'    .74106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1390       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=   10857.69     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      200 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4472        6.9294        .47565E-02   -.21707E-03
   2  alpha         1.3246        .89427        .49139       -.21851E-04
   3  Normalizat    .74112        .16933        .89258E-01    .50018E-04
   4  Prefactor     1.1390        .80481E-01    .36264E-01   -.12704E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.44718
  alpha      = 1.32459
  Normalizat = 0.741118
  Prefactor  = 1.13898
 **********
 **   18 **HESSE 
 **********

 FCN=   10857.69     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4472        4.7366        .19026E-03   -1.5286    
   2  alpha         1.3246        .71513        .27799E-01   -.48947    
   3  Normalizat    .74112        .18592        .39538E-03   -1.0229    
   4  Prefactor     1.1390        .89109E-01    .15464E-03   -.88230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90378e-12
Minuit parameter uncertainties:
  1  4.73701
  2  0.728284
  3  0.186078
  4  0.0891205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504576': 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) = 10857.6939924
delta logL = 0.159918559373

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  4.447e+00  4.737e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  1.325e+00  7.283e-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  8.912e-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.411e-01  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.41
Ra Dec: 146.781 -25.684
Photon Index (Free Index): 1.32 +/- 0.73
Photon Flux (Free Index): 5.10e-09 +/- 6.60e-09
Energy Flux (Free Index): 2.13e-05 +/- 3.31e-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/504576/cmap_HighResolution_261100801_261360001_4FGL_J0947.1-2541_daily_bin84.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.42e-09', energy_flux2='2.13e-05', photon_flux_error='8.57e-09', dlogl='1.60e-01', energy_flux='1.14e-05', photon_flux2='5.10e-09', job_status='DONE', time_completed='2021-09-01 02:31:57.052182', photon_index_error2='0.73', photon_index2='1.32', ts='4.09', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='3.31e-05', EG='0.74', time_epoch_completed='1630488717.05', return_code='0', job_id='504576', GAL2='1.14', EG2='0.74', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='6.60e-09', ts2='4.41', photon_index='1.75' WHERE bin_id='84' AND source_name='4FGL J0947.1-2541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:31:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 504576: <4FGL_J0947.1-2541_daily_bin84> in cluster <slac> Done

Job <4FGL_J0947.1-2541_daily_bin84> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 02:15:55 2021
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:15:56 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:15:56 2021
Terminated at Wed Sep  1 02:31:58 2021
Results reported at Wed Sep  1 02:31:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0947.1-2541_daily_bin84 146.781 -25.6839 261100801 261360001 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 :                                   732.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

