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


Performing analysis on: 4FGL_J0947.1-2541_daily_bin12
RA = 146.781, Dec = -25.6839
tmin = 242438401, tmax = 242697601
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='504417', job_status='RUN', time_executed='2021-09-01 02:16:02.237780', time_epoch_executed='1630487762.24' WHERE source_name='4FGL J0947.1-2541' and cadence='daily' and bin_id='12'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504417

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504417/ft1_4FGL_J0947.1-2541_daily_bin12.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504417/ft2_4FGL_J0947.1-2541_daily_bin12.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504417/ft1_4FGL_J0947.1-2541_daily_bin12.fits outfile=/scratch/kocevski/504417/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin12.fits ra=146.781 dec=-25.6839 rad=12.0 tmin=242438401.0 tmax=242697601.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.45
user 1.27
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/504417/ft2_4FGL_J0947.1-2541_daily_bin12.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/504417/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin12.fits evtable="EVENTS" outfile="/scratch/kocevski/504417/ft1_filtered_4FGL_J0947.1-2541_daily_bin12.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/504417/ft1_filtered_4FGL_J0947.1-2541_daily_bin12.fits" evtable="EVENTS" scfile=/scratch/kocevski/504417/ft2_4FGL_J0947.1-2541_daily_bin12.fits sctable="SC_DATA" outfile=/scratch/kocevski/504417/ltcube_242438401_242697601_4FGL_J0947.1-2541_daily_bin12.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/504417/ft2_4FGL_J0947.1-2541_daily_bin12.fits
.....................!
real 12.83
user 12.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504417/ft1_filtered_4FGL_J0947.1-2541_daily_bin12.fits evtable="EVENTS" scfile=/scratch/kocevski/504417/ft2_4FGL_J0947.1-2541_daily_bin12.fits sctable="SC_DATA" expcube=/scratch/kocevski/504417/ltcube_242438401_242697601_4FGL_J0947.1-2541_daily_bin12.fits outfile=/scratch/kocevski/504417/expmap_242438401_242697601_4FGL_J0947.1-2541_daily_bin12.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/504417/ltcube_242438401_242697601_4FGL_J0947.1-2541_daily_bin12.fits
.....................!
real 190.99
user 185.88
sys 4.69

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/504417/ft1_filtered_4FGL_J0947.1-2541_daily_bin12.fits scfile=/scratch/kocevski/504417/ft2_4FGL_J0947.1-2541_daily_bin12.fits outfile=/scratch/kocevski/504417/cmap_242438401_242697601_4FGL_J0947.1-2541_daily_bin12.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504417/ft1_filtered_4FGL_J0947.1-2541_daily_bin12.fits scfile=/scratch/kocevski/504417/ft2_4FGL_J0947.1-2541_daily_bin12.fits outfile=/scratch/kocevski/504417/cmap_HighResolution_242438401_242697601_4FGL_J0947.1-2541_daily_bin12.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.64
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504417/ft1_filtered_4FGL_J0947.1-2541_daily_bin12.fits evtable="EVENTS" scfile=/scratch/kocevski/504417/ft2_4FGL_J0947.1-2541_daily_bin12.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504417/Model_4FGL_J0947.1-2541_daily_bin12.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/504417/ft1_filtered_4FGL_J0947.1-2541_daily_bin12.fits.....................!
real 101.02
user 99.27
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8631       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.6171       1.0000         .10000E-03   10000.    
     7 'norm      '    .72218       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.2109       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3941       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14808E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.1725       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.704       1.0000         .10000E-03   10000.    
    17 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .77470       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0750       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=   9830.585     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1732 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3473       -.29452E-05** at limit **
   2  Prefactor     .10000E-03    10.591        .25128E-05** at limit **
   3  Prefactor     .10000E-03    8.2904       -.55426E-05** at limit **
   4  Prefactor     9.8586        18.166       -.34909E-05   -.21370E-04
   5  Prefactor     .10000E-03    7.1388        .29150E-05** at limit **
   6  norm          4.6164        5.4353       -.43461E-07   -.10045E-02
   7  norm          .70816        7.8501       -.80665E-06    .17949E-03
   8  norm          .10000E-03    5.9758        .40676E-05** at limit **
   9  norm          1.2109        1.1022        .12892E-06   -.92617E-04
  10  norm          2.3938        4.4425        .43667E-06   -.97434E-03
  11  Prefactor     .10000E-03    36.245        .46033E-06** at limit **
  12  Prefactor     .10000E-03    5.4288       -.20255E-05** at limit **
  13  norm          .10000E-03    4.3512        .90655E-06** at limit **
  14  norm          6.1760        7.8278       -.57063E-06   -.48063E-04
  15  Prefactor     .10000E-03    3.3347       -.75160E-06** at limit **
  16  Prefactor     11.705        16.397        .72167E-06   -.68498E-06
  17  norm          .10000E-03    1.3246        .65745E-07** at limit **
  18  Prefactor     .10000E-03    3.2503        .17638E-06** at limit **
  19  Normalizat    .77464        .17629        .25023E-06    .25370E-04
  20  Prefactor     1.0750        .82384E-01    .13472E-06    .14784E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.85862
  Prefactor  = 0.0001
  norm       = 4.61641
  norm       = 0.708156
  norm       = 0.0001
  norm       = 1.21092
  norm       = 2.39381
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.17596
  Prefactor  = 0.0001
  Prefactor  = 11.7053
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.77464
  Prefactor  = 1.07501
 **********
 **   18 **HESSE 
 **********

 FCN=   9830.585     FROM HESSE     STATUS=OK           291 CALLS     2023 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.3158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.8586        18.192        .12759E-03   -1.5080    
   5  Prefactor     .10000E-03    7.1966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.6164        6.2983        .93657E-03   -1.5278    
   7  norm          .70816        73.970        .52606E-02   -1.5540    
   8  norm          .10000E-03    6.0542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2109        1.0807        .93914E-04   -1.5488    
  10  norm          2.3938        7.6191        .13234E-02   -1.5399    
  11  Prefactor     .10000E-03    37.470        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.4574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.3709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.1760        7.8137        .16159E-03   -1.5211    
  15  Prefactor     .10000E-03    3.3429        .17685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.705        16.363        .11710E-03   -1.5024    
  17  norm          .10000E-03    1.3308        .11119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.2530        .17457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .77464        .19780        .37510E-03   -1.0102    
  20  Prefactor     1.0750        .94586E-01    .15342E-03   -.90269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61349e-09
Minuit parameter uncertainties:
  1  5.52827e-06
  2  4.69384e-06
  3  1.68178e-05
  4  18.2022
  5  3.67044e-06
  6  6.2992
  7  14.4925
  8  1.47811e-05
  9  1.08073
  10  7.62219
  11  3.5433e-05
  12  4.0697e-06
  13  4.55732e-06
  14  7.81503
  15  3.13889e-06
  16  16.3689
  17  2.84108e-06
  18  4.11049e-07
  19  0.19798
  20  0.0946003
Done.

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

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.000e-04  1.478e-05  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.075e+00  9.460e-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.746e-01  1.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/504417/likelihoodResults_242438401_242697601_4FGL_J0947.1-2541_daily_bin12.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) = 9830.58585811
delta logL = -0.000787287741332

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9830.3722463
delta logL = 0.212824522339

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30409       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4790       1.0000          .0000       5.0000    
     3 'Normalizat'    .74487       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0809       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=   9830.372     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      273 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30337        6.9358        .10443E-01    .32050E-02
   2  alpha         3.4796        3.8296        .33351        .90359E-04
   3  Normalizat    .74491        .28891E-01    .86251E-01    .44508E-04
   4  Prefactor     1.0809        .13733E-01    .38362E-01   -.90517E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.30337
  alpha      = 3.47958
  Normalizat = 0.744911
  Prefactor  = 1.0809
 **********
 **   18 **HESSE 
 **********

 FCN=   9830.372     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      306 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30337        38.037        .84846E-04   -1.5598    
   2  alpha         3.4796        2.7324        .18349E-01    .40262    
   3  Normalizat    .74491        .19581        .38200E-03   -1.0215    
   4  Prefactor     1.0809        .83796E-01    .15303E-03   -.90080    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.21888e-06
Minuit parameter uncertainties:
  1  6.7972
  2  9.56876
  3  0.195997
  4  0.0838058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504417': 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) = 9830.372246
delta logL = 0.212824822131

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  3.034e-01  6.797e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  3.480e+00  9.569e+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:  1.081e+00  8.381e-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.449e-01  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 146.781 -25.684

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/504417/cmap_HighResolution_242438401_242697601_4FGL_J0947.1-2541_daily_bin12.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-05', job_status='DONE', photon_flux_upper_limit='2.99e-08', time_completed='2021-09-01 02:28:23.940782', job_id='504417', GAL2='1.08', fit_tolerance='1e-08', EG2='0.74', EG='0.77', time_epoch_completed='1630488503.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.13e-01', ts2='0.45', photon_index_error='0.00', photon_index='1.75' WHERE bin_id='12' AND source_name='4FGL J0947.1-2541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:28:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 504417: <4FGL_J0947.1-2541_daily_bin12> in cluster <slac> Done

Job <4FGL_J0947.1-2541_daily_bin12> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 02:15:47 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:15:50 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:50 2021
Terminated at Wed Sep  1 02:28:24 2021
Results reported at Wed Sep  1 02:28:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0947.1-2541_daily_bin12 146.781 -25.6839 242438401 242697601 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 :                                   737.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            757 sec.

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

