aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 183 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 = 7530
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J1047.8-6216_daily_bin1674
RA = 161.961, Dec = -62.2745
tmin = 673228801, tmax = 673488001
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='669881', job_status='RUN', time_executed='2022-05-06 02:51:31.235942', time_epoch_executed='1651830691.24' WHERE source_name='4FGL J1047.8-6216' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/669881

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/669881/ft1_4FGL_J1047.8-6216_daily_bin1674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/669881/ft2_4FGL_J1047.8-6216_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/669881/ft1_4FGL_J1047.8-6216_daily_bin1674.fits outfile=/scratch/kocevski/669881/ft1_filteredMKT_4FGL_J1047.8-6216_daily_bin1674.fits ra=161.961 dec=-62.2745 rad=12.0 tmin=673228801.0 tmax=673488001.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.80
user 2.55
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/669881/ft2_4FGL_J1047.8-6216_daily_bin1674.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/669881/ft2_4FGL_J1047.8-6216_daily_bin1674.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/669881/ft1_filteredMKT_4FGL_J1047.8-6216_daily_bin1674.fits evtable="EVENTS" outfile="/scratch/kocevski/669881/ft1_filtered_4FGL_J1047.8-6216_daily_bin1674.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.18

Number of photons that the gtmktime cut: 4575

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/669881/ft1_filtered_4FGL_J1047.8-6216_daily_bin1674.fits" evtable="EVENTS" scfile=/scratch/kocevski/669881/ft2_4FGL_J1047.8-6216_daily_bin1674.fits sctable="SC_DATA" outfile=/scratch/kocevski/669881/ltcube_673228801_673488001_4FGL_J1047.8-6216_daily_bin1674.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/669881/ft2_4FGL_J1047.8-6216_daily_bin1674.fits
.....................!
real 13.00
user 12.60
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/669881/ft1_filtered_4FGL_J1047.8-6216_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/669881/ft2_4FGL_J1047.8-6216_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/669881/ltcube_673228801_673488001_4FGL_J1047.8-6216_daily_bin1674.fits outfile=/scratch/kocevski/669881/expmap_673228801_673488001_4FGL_J1047.8-6216_daily_bin1674.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/669881/ltcube_673228801_673488001_4FGL_J1047.8-6216_daily_bin1674.fits
.....................!
real 191.47
user 185.43
sys 5.39

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
Extended source FGES J1036.3-5833 in ROI with RadialDisk spatial model.
Extended source FGES J1109.4-6115 in ROI with RadialDisk spatial model.
Extended source Westerlund 2 in ROI with RadialDisk spatial model.
Extended source FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Added 274 point sources and 7 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1047.8-6216 @ 161.961 -62.2745

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/669881/ft1_filtered_4FGL_J1047.8-6216_daily_bin1674.fits scfile=/scratch/kocevski/669881/ft2_4FGL_J1047.8-6216_daily_bin1674.fits outfile=/scratch/kocevski/669881/cmap_673228801_673488001_4FGL_J1047.8-6216_daily_bin1674.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=161.961 yref=-62.2745 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.58
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/669881/ft1_filtered_4FGL_J1047.8-6216_daily_bin1674.fits scfile=/scratch/kocevski/669881/ft2_4FGL_J1047.8-6216_daily_bin1674.fits outfile=/scratch/kocevski/669881/cmap_HighResolution_673228801_673488001_4FGL_J1047.8-6216_daily_bin1674.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=161.961 yref=-62.2745 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/669881/ft1_filtered_4FGL_J1047.8-6216_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/669881/ft2_4FGL_J1047.8-6216_daily_bin1674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/669881/Model_4FGL_J1047.8-6216_daily_bin1674.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 FGES J1036.3-5833
adding source FGES J1109.4-6115
adding source FGES J1213.3-6240
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1356-645
adding source Westerlund 2
Working on...
/scratch/kocevski/669881/ft1_filtered_4FGL_J1047.8-6216_daily_bin1674.fits.....................!
real 743.86
user 740.27
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/669881/ft1_filtered_4FGL_J1047.8-6216_daily_bin1674.fits', '/scratch/kocevski/669881/ft2_4FGL_J1047.8-6216_daily_bin1674.fits', expMap='/scratch/kocevski/669881/expmap_673228801_673488001_4FGL_J1047.8-6216_daily_bin1674.fits', expCube='/scratch/kocevski/669881/ltcube_673228801_673488001_4FGL_J1047.8-6216_daily_bin1674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/669881/Model_4FGL_J1047.8-6216_daily_bin1674.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1047.8-6216'

4FGL J1047.8-6216
   Spectrum: PowerLaw
368    Prefactor:  1.204e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
369        Index:  2.545e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.222e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/669881/ft1_filtered_4FGL_J1047.8-6216_daily_bin1674.fits
Spacecraft file(s): /scratch/kocevski/669881/ft2_4FGL_J1047.8-6216_daily_bin1674.fits
Exposure map: /scratch/kocevski/669881/expmap_673228801_673488001_4FGL_J1047.8-6216_daily_bin1674.fits
Exposure cube: /scratch/kocevski/669881/ltcube_673228801_673488001_4FGL_J1047.8-6216_daily_bin1674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/669881/Model_4FGL_J1047.8-6216_daily_bin1674.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) = 41594.0793172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5348       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .12154E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0848       1.0000         .10000E-03   10000.    
     6 'norm      '    4.0931       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2334       1.0000         .10000E-03   10000.    
     9 'norm      '    3.8698       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12043E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.7381       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.6599       1.0000         .10000E-01   10.000    
    15 'norm      '    2.4459       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .92060       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1012E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   41593.96     FROM MIGRAD    STATUS=CONVERGED    347 CALLS     1356 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5317        35.829         .0000        .22643E-03
   2  Prefactor     .10000E-03    9.3648         .0000    ** at limit **
   3  Prefactor     .10000E-03    38.531         .0000    ** at limit **
   4  norm          .10000E-03    6.8246         .0000    ** at limit **
   5  Prefactor     1.0791        10.469         .0000        .13687E-02
   6  norm          4.0931        1.6519         .0000        .16456E-02
   7  Prefactor     .10000E-03    59.997         .0000    ** at limit **
   8  Prefactor     5.2355        2.6502         .0000        .44358E-01
   9  norm          3.8698        3.1874         .0000        .15407E-01
  10  Prefactor     .10021E-03    9.5492         .0000    ** at limit **
  11  Prefactor     .10000E-03    17.502         .0000    ** at limit **
  12  norm          3.7381        4.5971         .0000        .59335E-03
  13  Prefactor     .10000E-03    11.562         .0000    ** at limit **
  14  Normalizat    1.6600        .27297         .0000        .91555E-05
  15  norm          2.4461        1.0422         .0000        .39693E-02
  16  Prefactor     .92059        .27254E-01     .0000       -.29735E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.53172
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.07906
  norm       = 4.0931
  Prefactor  = 0.000100003
  Prefactor  = 5.23547
  norm       = 3.86977
  Prefactor  = 0.00010021
  Prefactor  = 0.000100001
  norm       = 3.73807
  Prefactor  = 0.0001
  Normalizat = 1.65998
  norm       = 2.44605
  Prefactor  = 0.920588  **********
 **   18 **HESSE 
 **********

 FCN=   41593.96     FROM HESSE     STATUS=OK           223 CALLS     1579 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5317        35.697        .15699E-03   -1.5197    
   2  Prefactor     .10000E-03    9.3986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    38.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.4448        .15308       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0791        10.579        .46112E-03   -1.5500    
   6  norm          4.0931        1.6329        .15054E-03   -1.5303    
   7  Prefactor     .10000E-03    61.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.2355        2.6221        .87855E-03   -1.5250    
   9  norm          3.8698        3.1842        .10256E-02   -1.5315    
  10  Prefactor     .10021E-03    8.8449        .17354       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.7381        4.5883        .20884E-03   -1.5321    
  13  Prefactor     .10000E-03    11.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.6600        .27487        .10109E-02   -.73377    
  15  norm          2.4461        1.0297        .11830E-03   -1.5395    
  16  Prefactor     .92059        .28136E-01    .13040E-03   -.95425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32484e-09
Minuit parameter uncertainties:
  1  30.5672
  2  7.06259e-05
  3  0.000361681
  4  0.00010136
  5  6.75866
  6  1.63294
  7  0.000818396
  8  2.6222
  9  3.18436
  10  0.00272859
  11  0.00022586
  12  4.58874
  13  5.2132e-05
  14  0.275125
  15  1.02971
  16  0.0281369DDone.

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

Extracting fit parameters...

4FGL J1047.8-6216
   Spectrum: PowerLaw
368    Prefactor:  5.235e+00  2.622e+00  1.000e-04  1.000e+04 ( 1.000e-12)
369        Index:  2.545e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.222e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1000    Prefactor:  9.206e-01  2.814e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1001        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1002        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
985   Normalization:  1.660e+00  2.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.49
Ra Dec: 161.961 -62.275
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.98e-07 +/- 9.92e-08
Energy Flux (Fixed Index): 5.48e-05 +/- 2.75e-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) = 41593.9190208
delta logL = 0.0433157531006

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 41593.9101998
delta logL = 0.0521367573892

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4482       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6752       1.0000          .0000       10.000    
     3 'Normalizat'    1.6513       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92076       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1012E+06   .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=   41593.91     FROM MIGRAD    STATUS=FAILED       102 CALLS      307 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4481        4.2478        .19093E-03   -.26962E-03
   2  Index         2.6753        .52451        .81715E-02    .28100E-02
   3  Normalizat    1.6513        .26339        .10127E-02   -.51731E-04
   4  Prefactor     .92077        .26759E-01    .13038E-03   -.66899E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   41593.91     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      382 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4481        4.2478        .75711E-04   -1.5286    
   2  Index         2.6753        .52451        .44217E-03   -.48357    
   3  Normalizat    1.6513        .26339        .34624E-03   -.73610    
   4  Prefactor     .92077        .26759E-01    .44881E-04   -.95419    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   41593.91     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      419 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4481        3.4686        .76370E-05   -.13100E-03
   2  Index         2.6753        .42846        .16343E-02    .20313E-04
   3  Normalizat    1.6513        .26283        .40507E-04   -.22453E-05
   4  Prefactor     .92077        .26729E-01    .52151E-05   -.13952E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44808
  Index      = 2.67527
  Normalizat = 1.65133
  Prefactor  = 0.920766
 **********
 **   18 **HESSE 
 **********

 FCN=   41593.91     FROM HESSE     STATUS=OK            23 CALLS      442 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4481        3.3572        .15274E-05   -1.5286    
   2  Index         2.6753        .41475        .65372E-04   -.48357    
   3  Normalizat    1.6513        .26281        .81015E-05   -.73610    
   4  Prefactor     .92077        .26732E-01    .10430E-05   -.95419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12421e-11
Minuit parameter uncertainties:
  1  3.35731
  2  0.415363
  3  0.263034
  4  0.0267323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/669881': 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) = 41593.9101998
delta logL = 0.0521367650072

Extracting fit parameters...

4FGL J1047.8-6216
   Spectrum: PowerLaw
368    Prefactor:  4.448e+00  3.357e+00  1.000e-04  1.000e+04 ( 1.000e-12)
369        Index:  2.675e+00  4.154e-01  0.000e+00  1.000e+01 (-1.000e+00)
370        Scale:  1.222e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1000    Prefactor:  9.208e-01  2.673e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1001        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1002        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
985   Normalization:  1.651e+00  2.630e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.62
Ra Dec: 161.961 -62.275
Photon Index (Free Index): 2.68 +/- 0.42
Photon Flux (Free Index): 2.15e-07 +/- 1.12e-07
Energy Flux (Free Index): 5.28e-05 +/- 2.62e-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/669881/cmap_HighResolution_673228801_673488001_4FGL_J1047.8-6216_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.98e-07', energy_flux2='5.28e-05', photon_flux_error='9.92e-08', dlogl='5.21e-02', energy_flux='5.48e-05', photon_flux2='2.15e-07', job_status='DONE', time_completed='2022-05-06 03:43:32.515927', photon_index_error2='0.42', photon_index2='2.68', ts='5.49', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='2.62e-05', EG='1.66', time_epoch_completed='1651833812.52', return_code='0', job_id='669881', GAL2='0.92', EG2='1.65', return_code2='0', energy_flux_error='2.75e-05', photon_flux_error2='1.12e-07', ts2='5.62', photon_index='2.55' WHERE bin_id='1674' AND source_name='4FGL J1047.8-6216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 03:43:32 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 669842: <4FGL_J1047.8-6216_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1047.8-6216_daily_bin1674> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri May  6 00:07:03 2022
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:48:04 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:48:04 2022
Terminated at Fri May  6 03:41:10 2022
Results reported at Fri May  6 03:41:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1047.8-6216_daily_bin1674 161.961 -62.2745 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1047.8-6216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3113.00 sec.
    Max Memory :                                 1266 MB
    Average Memory :                             451.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3188 sec.
    Turnaround time :                            12847 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 669881: <4FGL_J1047.8-6216_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1047.8-6216_daily_bin1674> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri May  6 00:07:05 2022
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:48:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:48:17 2022
Terminated at Fri May  6 03:43:33 2022
Results reported at Fri May  6 03:43:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1047.8-6216_daily_bin1674 161.961 -62.2745 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1047.8-6216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3117.00 sec.
    Max Memory :                                 1265 MB
    Average Memory :                             425.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3316 sec.
    Turnaround time :                            12988 sec.

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

