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


Performing analysis on: 4FGL_J0947.1-2541_daily_bin165
RA = 146.781, Dec = -25.6839
tmin = 282096001, tmax = 282355201
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='504696', job_status='RUN', time_executed='2021-09-01 02:18:19.038231', time_epoch_executed='1630487899.04' WHERE source_name='4FGL J0947.1-2541' and cadence='daily' and bin_id='165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504696

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504696/ft1_4FGL_J0947.1-2541_daily_bin165.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504696/ft2_4FGL_J0947.1-2541_daily_bin165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504696/ft1_4FGL_J0947.1-2541_daily_bin165.fits outfile=/scratch/kocevski/504696/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin165.fits ra=146.781 dec=-25.6839 rad=12.0 tmin=282096001.0 tmax=282355201.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 3.48
user 3.25
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/504696/ft2_4FGL_J0947.1-2541_daily_bin165.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/504696/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin165.fits evtable="EVENTS" outfile="/scratch/kocevski/504696/ft1_filtered_4FGL_J0947.1-2541_daily_bin165.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.51
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504696/ft1_filtered_4FGL_J0947.1-2541_daily_bin165.fits" evtable="EVENTS" scfile=/scratch/kocevski/504696/ft2_4FGL_J0947.1-2541_daily_bin165.fits sctable="SC_DATA" outfile=/scratch/kocevski/504696/ltcube_282096001_282355201_4FGL_J0947.1-2541_daily_bin165.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/504696/ft2_4FGL_J0947.1-2541_daily_bin165.fits
.....................!
real 14.55
user 14.18
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504696/ft1_filtered_4FGL_J0947.1-2541_daily_bin165.fits evtable="EVENTS" scfile=/scratch/kocevski/504696/ft2_4FGL_J0947.1-2541_daily_bin165.fits sctable="SC_DATA" expcube=/scratch/kocevski/504696/ltcube_282096001_282355201_4FGL_J0947.1-2541_daily_bin165.fits outfile=/scratch/kocevski/504696/expmap_282096001_282355201_4FGL_J0947.1-2541_daily_bin165.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/504696/ltcube_282096001_282355201_4FGL_J0947.1-2541_daily_bin165.fits
.....................!
real 192.35
user 186.65
sys 5.18

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/504696/ft1_filtered_4FGL_J0947.1-2541_daily_bin165.fits scfile=/scratch/kocevski/504696/ft2_4FGL_J0947.1-2541_daily_bin165.fits outfile=/scratch/kocevski/504696/cmap_282096001_282355201_4FGL_J0947.1-2541_daily_bin165.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.64
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504696/ft1_filtered_4FGL_J0947.1-2541_daily_bin165.fits scfile=/scratch/kocevski/504696/ft2_4FGL_J0947.1-2541_daily_bin165.fits outfile=/scratch/kocevski/504696/cmap_HighResolution_282096001_282355201_4FGL_J0947.1-2541_daily_bin165.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504696/ft1_filtered_4FGL_J0947.1-2541_daily_bin165.fits evtable="EVENTS" scfile=/scratch/kocevski/504696/ft2_4FGL_J0947.1-2541_daily_bin165.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504696/Model_4FGL_J0947.1-2541_daily_bin165.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/504696/ft1_filtered_4FGL_J0947.1-2541_daily_bin165.fits.....................!
real 73.14
user 71.31
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11058E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    68.785       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.067       1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.967       1.0000         .10000E-03   10000.    
     6 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.119       1.0000         .10000E-03   10000.    
     8 'norm      '    9.3537       1.0000         .10000E-03   10000.    
     9 'norm      '    2.7042       1.0000         .10000E-03   10000.    
    10 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.473       1.0000         .10000E-03   10000.    
    14 'norm      '    3.3623       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7994       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.287       1.0000         .10000E-03   10000.    
    17 'norm      '    8.2075       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3979       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95414       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=   6334.534     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     1756 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.522        .30649E-06** at limit **
   2  Prefactor     .10000E-03    17.544        .40164E-05** at limit **
   3  Prefactor     68.781        45.381       -.30345E-05   -.37494E-04
   4  Prefactor     27.067        32.738        .68767E-06    .47728E-05
   5  Prefactor     40.961        22.348       -.15658E-05   -.38250E-04
   6  norm          .10000E-03    3.7864        .11205E-07** at limit **
   7  norm          12.121        18.378       -.45399E-06   -.58878E-05
   8  norm          9.3536        9.1752       -.93508E-08    .86796E-05
   9  norm          2.7036        1.7948       -.28659E-07   -.16358E-04
  10  norm          .10000E-03    11.597        .25829E-06** at limit **
  11  Prefactor     .10000E-03    17.078       -.41277E-05** at limit **
  12  Prefactor     .10000E-03    6.1060       -.22989E-08** at limit **
  13  norm          12.471        15.552       -.25071E-06   -.87398E-04
  14  norm          3.3614        6.7849        .63518E-06   -.53843E-03
  15  Prefactor     5.7950        17.526        .46746E-07   -.15356E-03
  16  Prefactor     13.285        27.796       -.21773E-05   -.76112E-05
  17  norm          8.2074        5.9332        .40564E-06    .27495E-04
  18  Prefactor     .10000E-03    9.9536       -.11891E-06** at limit **
  19  Normalizat    1.3984        .27464        .79088E-06   -.16226E-04
  20  Prefactor     .95397        .11365        .96971E-07   -.67262E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 68.781
  Prefactor  = 27.0674
  Prefactor  = 40.9612
  norm       = 0.0001
  norm       = 12.1209
  norm       = 9.35362
  norm       = 2.7036
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.4713
  norm       = 3.36138
  Prefactor  = 5.795
  Prefactor  = 13.285
  norm       = 8.20742
  Prefactor  = 0.0001
  Normalizat = 1.39845
  Prefactor  = 0.95397
 **********
 **   18 **HESSE 
 **********

 FCN=   6334.534     FROM HESSE     STATUS=OK           299 CALLS     2055 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    69.139        .51918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     68.781        45.384        .48397E-04   -1.4047    
   4  Prefactor     27.067        32.746        .77003E-04   -1.4667    
   5  Prefactor     40.961        22.432        .62628E-04   -1.4427    
   6  norm          .10000E-03    3.7982        .15123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.121        18.407        .11507E-03   -1.5012    
   8  norm          9.3536        9.1786        .13104E-03   -1.5096    
   9  norm          2.7036        1.7991        .82913E-04   -1.5379    
  10  norm          .10000E-03    11.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.1084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.471        16.377        .56710E-03   -1.5002    
  14  norm          3.3614        13.526        .11035E-02   -1.5341    
  15  Prefactor     5.7950        18.251        .83387E-03   -1.5226    
  16  Prefactor     13.285        27.808        .10989E-03   -1.4979    
  17  norm          8.2074        5.9415        .13994E-03   -1.5135    
  18  Prefactor     .10000E-03    9.9605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3984        .31822        .37039E-03   -.80674    
  20  Prefactor     .95397        .13095        .18512E-03   -.94280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56879e-09
Minuit parameter uncertainties:
  1  0.0004451
  2  5.07584e-05
  3  45.4069
  4  32.7676
  5  22.4361
  6  2.51665e-06
  7  18.4155
  8  9.17996
  9  1.79909
  10  2.14839e-06
  11  4.93772e-05
  12  2.46343e-07
  13  16.3825
  14  13.4909
  15  18.269
  16  27.8353
  17  5.94196
  18  3.01467e-06
  19  0.318668
  20  0.130989
Done.

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

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  9.354e+00  9.180e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  1.751e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
270         beta:  8.622e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
271           Eb:  2.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  9.540e-01  1.310e-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.398e+00  3.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.82
Ra Dec: 146.781 -25.684
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 1.75e-08 +/- 1.72e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 2.32e-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) = 6333.99550757
delta logL = 0.538356096599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6333.94025536
delta logL = 0.593608304408

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2013       1.0000         .10000E-03   10000.    
     2 'alpha     '    .93260       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95407       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=   6333.940     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      205 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2013        6.2716        .40302E-02    .16077E-02
   2  alpha         .93265        .54162        .48667       -.24805E-04
   3  Normalizat    1.4068        .26321        .83449E-01    .94414E-05
   4  Prefactor     .95408        .11188        .45691E-01    .25035E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.20127
  alpha      = 0.932652
  Normalizat = 1.40685
  Prefactor  = 0.954085
 **********
 **   18 **HESSE 
 **********

 FCN=   6333.940     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2013        8.3439        .16121E-03   -1.5210    
   2  alpha         .93265        .71019        .21589E-02   -.67762    
   3  Normalizat    1.4068        .30223        .36943E-03   -.80431    
   4  Prefactor     .95408        .12872        .18510E-03   -.94276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45198e-09
Minuit parameter uncertainties:
  1  8.34541
  2  0.726948
  3  0.30261
  4  0.12876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504696': 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) = 6333.94025532
delta logL = 0.593608339635

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  6.201e+00  8.345e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  9.327e-01  7.269e-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:  9.541e-01  1.288e-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.407e+00  3.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.00
Ra Dec: 146.781 -25.684
Photon Index (Free Index): 0.93 +/- 0.73
Photon Flux (Free Index): 6.67e-09 +/- 7.80e-09
Energy Flux (Free Index): 7.37e-05 +/- 1.03e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/504696/cmap_HighResolution_282096001_282355201_4FGL_J0947.1-2541_daily_bin165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.75e-08', energy_flux2='7.37e-05', photon_flux_error='1.72e-08', dlogl='5.94e-01', energy_flux='2.36e-05', photon_flux2='6.67e-09', job_status='DONE', time_completed='2021-09-01 02:27:27.647482', photon_index_error2='0.73', photon_index2='0.93', ts='9.82', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.03e-04', EG='1.40', time_epoch_completed='1630488447.65', return_code='0', job_id='504696', GAL2='0.95', EG2='1.41', return_code2='0', energy_flux_error='2.32e-05', photon_flux_error2='7.80e-09', ts2='11.00', photon_index='1.75' WHERE bin_id='165' AND source_name='4FGL J0947.1-2541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:27:27 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0947.1-2541_daily_bin165 146.781 -25.6839 282096001 282355201 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 :                                   540.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             257.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            685 sec.

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

