/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 213 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 = 7438
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0947.1-2541_daily_bin283
RA = 146.781, Dec = -25.6839
tmin = 312681601, tmax = 312940801
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='504969', job_status='RUN', time_executed='2021-09-01 02:20:14.911166', time_epoch_executed='1630488014.91' WHERE source_name='4FGL J0947.1-2541' and cadence='daily' and bin_id='283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504969

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504969/ft1_4FGL_J0947.1-2541_daily_bin283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504969/ft2_4FGL_J0947.1-2541_daily_bin283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504969/ft1_4FGL_J0947.1-2541_daily_bin283.fits outfile=/scratch/kocevski/504969/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin283.fits ra=146.781 dec=-25.6839 rad=12.0 tmin=312681601.0 tmax=312940801.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 2.76
user 2.51
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/504969/ft2_4FGL_J0947.1-2541_daily_bin283.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/504969/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin283.fits evtable="EVENTS" outfile="/scratch/kocevski/504969/ft1_filtered_4FGL_J0947.1-2541_daily_bin283.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.45
user 0.30
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504969/ft1_filtered_4FGL_J0947.1-2541_daily_bin283.fits" evtable="EVENTS" scfile=/scratch/kocevski/504969/ft2_4FGL_J0947.1-2541_daily_bin283.fits sctable="SC_DATA" outfile=/scratch/kocevski/504969/ltcube_312681601_312940801_4FGL_J0947.1-2541_daily_bin283.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/504969/ft2_4FGL_J0947.1-2541_daily_bin283.fits
.....................!
real 9.88
user 9.49
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504969/ft1_filtered_4FGL_J0947.1-2541_daily_bin283.fits evtable="EVENTS" scfile=/scratch/kocevski/504969/ft2_4FGL_J0947.1-2541_daily_bin283.fits sctable="SC_DATA" expcube=/scratch/kocevski/504969/ltcube_312681601_312940801_4FGL_J0947.1-2541_daily_bin283.fits outfile=/scratch/kocevski/504969/expmap_312681601_312940801_4FGL_J0947.1-2541_daily_bin283.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/504969/ltcube_312681601_312940801_4FGL_J0947.1-2541_daily_bin283.fits
.....................!
real 155.57
user 151.18
sys 3.81

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/504969/ft1_filtered_4FGL_J0947.1-2541_daily_bin283.fits scfile=/scratch/kocevski/504969/ft2_4FGL_J0947.1-2541_daily_bin283.fits outfile=/scratch/kocevski/504969/cmap_312681601_312940801_4FGL_J0947.1-2541_daily_bin283.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.51
user 0.34
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504969/ft1_filtered_4FGL_J0947.1-2541_daily_bin283.fits scfile=/scratch/kocevski/504969/ft2_4FGL_J0947.1-2541_daily_bin283.fits outfile=/scratch/kocevski/504969/cmap_HighResolution_312681601_312940801_4FGL_J0947.1-2541_daily_bin283.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.47
user 0.32
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8737       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12890E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27185E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.987       1.0000         .10000E-03   10000.    
     6 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .11971E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.291       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.5287       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.399       1.0000         .10000E-03   10000.    
    17 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7330       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0381       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1620       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10837.87     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     1799 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8752        5.6608         .0000        .30692E-02
   2  Prefactor     .10000E-03    78.403         .0000    ** at limit **
   3  Prefactor     .10006E-03    75.111         .0000    ** at limit **
   4  Prefactor     .10000E-03    60.462         .0000    ** at limit **
   5  Prefactor     21.980        16.933         .0000        .20287E-03
   6  norm          .10000E-03    4.7070         .0000    ** at limit **
   7  norm          .10000E-03    7.7119         .0000    ** at limit **
   8  norm          .10000E-03    2.1512         .0000    ** at limit **
   9  norm          .10000E-03    .42949         .0000    ** at limit **
  10  norm          .10000E-03    2.5612         .0000    ** at limit **
  11  Prefactor     20.292        18.495         .0000       -.38092E-04
  12  Prefactor     .10000E-03    6.4043         .0000    ** at limit **
  13  norm          .10000E-03    3.6377         .0000    ** at limit **
  14  norm          3.5281        7.6432         .0000        .77255E-02
  15  Prefactor     .10000E-03    6.9642         .0000    ** at limit **
  16  Prefactor     21.397        19.745         .0000       -.32709E-04
  17  norm          .10000E-03    1.5565         .0000    ** at limit **
  18  Prefactor     6.7327        10.187         .0000       -.31389E-03
  19  Normalizat    1.0382        .19215         .0000        .33240E-04
  20  Prefactor     1.1620        .85854E-01     .0000       -.72081E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.87519
  Prefactor  = 0.0001
  Prefactor  = 0.000100061
  Prefactor  = 0.000100002
  Prefactor  = 21.9802
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 20.2919
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.5281
  Prefactor  = 0.0001
  Prefactor  = 21.3972
  norm       = 0.0001
  Prefactor  = 6.73271
  Normalizat = 1.03821
  Prefactor  = 1.16196
 **********
 **   18 **HESSE 
 **********

 FCN=   10837.87     FROM HESSE     STATUS=OK           291 CALLS     2090 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8752        5.6528        .10251E-02   -1.5314    
   2  Prefactor     .10000E-03    81.086        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10006E-03    77.067        .42862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    60.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.980        16.959        .85423E-04   -1.4770    
   6  norm          .10000E-03    4.8141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.7648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.1523        .14912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .80296        .13193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    10.317        .32312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.292        18.504        .88916E-04   -1.4807    
  12  Prefactor     .10000E-03    6.4773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.6522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.5281        7.6133        .10760E-02   -1.5332    
  15  Prefactor     .10000E-03    6.9922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.397        19.734        .86585E-04   -1.4782    
  17  norm          .10000E-03    1.5680        .12669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.7327        10.181        .15464E-03   -1.5189    
  19  Normalizat    1.0382        .21365        .38002E-03   -.91761    
  20  Prefactor     1.1620        .96281E-01    .16617E-03   -.87510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12351e-09
Minuit parameter uncertainties:
  1  5.65358
  2  0.000290332
  3  0.00433319
  4  0.000642193
  5  16.9623
  6  1.45292e-06
  7  5.04625e-06
  8  7.41974e-08
  9  1.08687e-07
  10  1.12557e-05
  11  18.5097
  12  5.15485e-06
  13  2.86312e-07
  14  7.61541
  15  6.92271e-06
  16  19.7403
  17  1.6027e-07
  18  10.1841
  19  0.21383
  20  0.0962955
Done.

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

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.000e-04  7.420e-08  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.162e+00  9.630e-02  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.038e+00  2.138e-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.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504969/likelihoodResults_312681601_312940801_4FGL_J0947.1-2541_daily_bin283.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): 102
logL (Free Index) = 10837.8702258
delta logL = -0.00215894419125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10837.8680668
delta logL = 6.46741682431e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7424       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1620       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10837.87     FROM MIGRAD    STATUS=FAILED        91 CALLS      236 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    473.62        .14955E-02** at limit **
   2  alpha         1.5086        3.1800        .17536       -.93877E-07
   3  Normalizat    1.0382        .12523        .38002E-03    .14539E-04
   4  Prefactor     1.1620        .57959E-01    .16617E-03    .41459E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10837.87     FROM SIMPLEX   STATUS=UNCHANGED    192 CALLS      428 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    473.62        .27231E-03** at limit **
   2  alpha         1.5086        3.1800        .29828E-06   -.93877E-07
   3  Normalizat    1.0382        .12523        .47844E-07    .14539E-04
   4  Prefactor     1.1620        .57959E-01    .10821E-07    .41459E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10837.87     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      456 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2482        .29910E-03** at limit **
   2  alpha         1.5106        4.2402        .70143E-02    .66128E-07
   3  Normalizat    1.0382        .20708        .15201E-04    .14659E-04
   4  Prefactor     1.1620        .95876E-01    .66470E-05    .41733E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.5106
  Normalizat = 1.03821
  Prefactor  = 1.16196
 **********
 **   18 **HESSE 
 **********

 FCN=   10837.87     FROM HESSE     STATUS=OK            23 CALLS      479 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2479        .59820E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5106        4.2101        .14029E-02   -.40689    
   3  Normalizat    1.0382        .20739        .30401E-05   -.91761    
   4  Prefactor     1.1620        .96008E-01    .13294E-05   -.87510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86123e-11
Minuit parameter uncertainties:
  1  1.6426e-05
  2  168.024
  3  0.20755
  4  0.0960223
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504969': 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) = 10837.8680659
delta logL = 9.8711643659e-07

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.000e-04  1.643e-05  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  1.511e+00  1.680e+02  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.162e+00  9.602e-02  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.038e+00  2.076e-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/504969/cmap_HighResolution_312681601_312940801_4FGL_J0947.1-2541_daily_bin283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.10e-05', job_status='DONE', photon_flux_upper_limit='2.30e-08', time_completed='2021-09-01 02:31:55.035290', job_id='504969', GAL2='1.16', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630488715.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='9.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.75' WHERE bin_id='283' AND source_name='4FGL J0947.1-2541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:31:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 504969: <4FGL_J0947.1-2541_daily_bin283> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0947.1-2541_daily_bin283 146.781 -25.6839 312681601 312940801 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 :                                   678.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             274.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

