/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 131 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0947.1-2541_daily_bin131
RA = 146.781, Dec = -25.6839
tmin = 273283201, tmax = 273542401
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='504637', job_status='RUN', time_executed='2021-09-01 02:18:41.337096', time_epoch_executed='1630487921.34' WHERE source_name='4FGL J0947.1-2541' and cadence='daily' and bin_id='131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504637

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504637/ft1_4FGL_J0947.1-2541_daily_bin131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504637/ft2_4FGL_J0947.1-2541_daily_bin131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504637/ft1_4FGL_J0947.1-2541_daily_bin131.fits outfile=/scratch/kocevski/504637/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin131.fits ra=146.781 dec=-25.6839 rad=12.0 tmin=273283201.0 tmax=273542401.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.77
user 1.50
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504637/ft1_filtered_4FGL_J0947.1-2541_daily_bin131.fits" evtable="EVENTS" scfile=/scratch/kocevski/504637/ft2_4FGL_J0947.1-2541_daily_bin131.fits sctable="SC_DATA" outfile=/scratch/kocevski/504637/ltcube_273283201_273542401_4FGL_J0947.1-2541_daily_bin131.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/504637/ft2_4FGL_J0947.1-2541_daily_bin131.fits
.....................!
real 12.77
user 12.26
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504637/ft1_filtered_4FGL_J0947.1-2541_daily_bin131.fits evtable="EVENTS" scfile=/scratch/kocevski/504637/ft2_4FGL_J0947.1-2541_daily_bin131.fits sctable="SC_DATA" expcube=/scratch/kocevski/504637/ltcube_273283201_273542401_4FGL_J0947.1-2541_daily_bin131.fits outfile=/scratch/kocevski/504637/expmap_273283201_273542401_4FGL_J0947.1-2541_daily_bin131.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/504637/ltcube_273283201_273542401_4FGL_J0947.1-2541_daily_bin131.fits
.....................!
real 192.73
user 186.28
sys 4.86

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/504637/ft1_filtered_4FGL_J0947.1-2541_daily_bin131.fits scfile=/scratch/kocevski/504637/ft2_4FGL_J0947.1-2541_daily_bin131.fits outfile=/scratch/kocevski/504637/cmap_273283201_273542401_4FGL_J0947.1-2541_daily_bin131.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504637/ft1_filtered_4FGL_J0947.1-2541_daily_bin131.fits scfile=/scratch/kocevski/504637/ft2_4FGL_J0947.1-2541_daily_bin131.fits outfile=/scratch/kocevski/504637/cmap_HighResolution_273283201_273542401_4FGL_J0947.1-2541_daily_bin131.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.59
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504637/ft1_filtered_4FGL_J0947.1-2541_daily_bin131.fits evtable="EVENTS" scfile=/scratch/kocevski/504637/ft2_4FGL_J0947.1-2541_daily_bin131.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504637/Model_4FGL_J0947.1-2541_daily_bin131.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/504637/ft1_filtered_4FGL_J0947.1-2541_daily_bin131.fits.....................!
real 92.24
user 88.76
sys 1.41

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11220E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .69041E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.182       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.9744       1.0000         .10000E-03   10000.    
     7 'norm      '    15.668       1.0000         .10000E-03   10000.    
     8 'norm      '    5.5476       1.0000         .10000E-03   10000.    
     9 'norm      '    .28531       1.0000         .10000E-03   10000.    
    10 'norm      '    4.9203       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14132E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2479       1.0000         .10000E-03   10000.    
    13 'norm      '    3.2947       1.0000         .10000E-03   10000.    
    14 'norm      '    .11117E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11780E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18246E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.6138       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12381E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4729       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87304       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=   8306.191     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     1994 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.4093       -.46419E-06** at limit **
   2  Prefactor     .10000E-03    12.841       -.16898E-06** at limit **
   3  Prefactor     30.220        30.040        .63420E-05    .54655E-03
   4  Prefactor     .10000E-03    10.409        .74848E-06** at limit **
   5  Prefactor     .10000E-03    8.2462       -.79821E-06** at limit **
   6  norm          1.9734        6.9286        .13515E-05   -.10442E-03
   7  norm          15.544        13.442        .13867E-06   -.80799E-05
   8  norm          5.5482        5.5537       -.16393E-05    .43665E-03
   9  norm          .28461        1.0034        .54198E-06   -.59969E-03
  10  norm          4.9356        9.6115       -.56508E-06   -.15557E-03
  11  Prefactor     .10000E-03    7.3903        .26497E-06** at limit **
  12  Prefactor     7.2423        7.2737       -.84159E-07    .10976E-04
  13  norm          3.2836        5.2422        .41645E-05   -.68835E-03
  14  norm          .10000E-03    3.3589       -.22328E-06** at limit **
  15  Prefactor     .10000E-03    5.3488       -.63688E-06** at limit **
  16  Prefactor     .10000E-03    6.6711        .10234E-05** at limit **
  17  norm          3.6039        3.4110        .94581E-07   -.92770E-04
  18  Prefactor     .10000E-03    4.4667        .13174E-06** at limit **
  19  Normalizat    1.4728        .21087       -.71532E-06   -.15287E-03
  20  Prefactor     .87317        .90788E-01   -.66402E-06   -.11069E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.2203
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.97341
  norm       = 15.5443
  norm       = 5.54821
  norm       = 0.284612
  norm       = 4.93561
  Prefactor  = 0.0001
  Prefactor  = 7.24228
  norm       = 3.28364
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.60391
  Prefactor  = 0.0001
  Normalizat = 1.47281
  Prefactor  = 0.873165
 **********
 **   18 **HESSE 
 **********

 FCN=   8306.191     FROM HESSE     STATUS=OK           291 CALLS     2285 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.4922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.852        .20987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.220        31.902        .72929E-04   -1.4608    
   4  Prefactor     .10000E-03    10.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.2875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.9734        6.9384        .29504E-03   -1.5427    
   7  norm          15.544        13.451        .10119E-03   -1.4919    
   8  norm          5.5482        5.5951        .85288E-03   -1.5237    
   9  norm          .28461        1.4067        .15765E-02   -1.5601    
  10  norm          4.9356        9.6144        .18132E-03   -1.5264    
  11  Prefactor     .10000E-03    7.4003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.2423        7.2772        .14899E-03   -1.5170    
  13  norm          3.2836        5.3724        .11153E-02   -1.5346    
  14  norm          .10000E-03    3.3841        .16314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.3685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.7022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.6039        3.4066        .15889E-03   -1.5328    
  18  Prefactor     .10000E-03    4.4694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4728        .23880        .32485E-03   -.78545    
  20  Prefactor     .87317        .10432        .17855E-03   -.97085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78397e-09
Minuit parameter uncertainties:
  1  0.000108383
  2  7.8806e-06
  3  31.9199
  4  7.54739e-05
  5  5.17126e-05
  6  6.94126
  7  13.4536
  8  5.59563
  9  1.2653
  10  9.61744
  11  2.33676e-05
  12  7.27808
  13  5.37317
  14  1.07301e-05
  15  3.8265e-05
  16  7.93376e-05
  17  3.40676
  18  1.03177e-05
  19  0.238984
  20  0.104344
Done.

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

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  5.548e+00  5.596e+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:  8.732e-01  1.043e-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:  1.473e+00  2.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.76
Ra Dec: 146.781 -25.684
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 1.04e-08 +/- 1.05e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 1.41e-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) = 8305.62712187
delta logL = 0.564317231447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8305.56881961
delta logL = 0.622619494292

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6214       1.0000         .10000E-03   10000.    
     2 'alpha     '    .86641       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87297       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=   8305.569     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      206 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6214        3.7241        .53077E-02   -.52373E-03
   2  alpha         .86625        .57016        .50000       -.34064E-04
   3  Normalizat    1.4781        .20285        .73307E-01    .46238E-05
   4  Prefactor     .87295        .89144E-01    .44660E-01   -.41612E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.6214
  alpha      = 0.866251
  Normalizat = 1.47809
  Prefactor  = 0.872952
 **********
 **   18 **HESSE 
 **********

 FCN=   8305.569     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6214        4.7139        .17086E-03   -1.5327    
   2  alpha         .86625        .69379        .26708E-01   -.71220    
   3  Normalizat    1.4781        .23290        .32436E-03   -.78396    
   4  Prefactor     .87295        .10246        .17857E-03   -.97093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04192e-11
Minuit parameter uncertainties:
  1  4.71439
  2  0.710361
  3  0.233069
  4  0.102479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504637': 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) = 8305.56881949
delta logL = 0.622619610591

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  3.621e+00  4.714e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  8.663e-01  7.104e-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:  8.730e-01  1.025e-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:  1.478e+00  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.00
Ra Dec: 146.781 -25.684
Photon Index (Free Index): 0.87 +/- 0.71
Photon Flux (Free Index): 4.03e-09 +/- 4.37e-09
Energy Flux (Free Index): 5.13e-05 +/- 7.56e-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/504637/cmap_HighResolution_273283201_273542401_4FGL_J0947.1-2541_daily_bin131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.04e-08', energy_flux2='5.13e-05', photon_flux_error='1.05e-08', dlogl='6.23e-01', energy_flux='1.40e-05', photon_flux2='4.03e-09', job_status='DONE', time_completed='2021-09-01 02:29:38.295132', photon_index_error2='0.71', photon_index2='0.87', ts='5.76', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='7.56e-05', EG='1.47', time_epoch_completed='1630488578.3', return_code='0', job_id='504637', GAL2='0.87', EG2='1.48', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='4.37e-09', ts2='7.00', photon_index='1.75' WHERE bin_id='131' AND source_name='4FGL J0947.1-2541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:29:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 504637: <4FGL_J0947.1-2541_daily_bin131> in cluster <slac> Done

Job <4FGL_J0947.1-2541_daily_bin131> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 02:15:59 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:16:01 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:16:01 2021
Terminated at Wed Sep  1 02:29:39 2021
Results reported at Wed Sep  1 02:29:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0947.1-2541_daily_bin131 146.781 -25.6839 273283201 273542401 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 :                                   626.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            820 sec.

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

