/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 136 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 = 7487
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1051.4-3139_daily_bin595
RA = 162.85, Dec = -31.6507
tmin = 393552001, tmax = 393811201
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='244550', job_status='RUN', time_executed='2021-09-02 18:10:07.576446', time_epoch_executed='1630631407.58' WHERE source_name='4FGL J1051.4-3139' and cadence='daily' and bin_id='595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/244550

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/244550/ft1_4FGL_J1051.4-3139_daily_bin595.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/244550/ft2_4FGL_J1051.4-3139_daily_bin595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/244550/ft1_4FGL_J1051.4-3139_daily_bin595.fits outfile=/scratch/kocevski/244550/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin595.fits ra=162.85 dec=-31.6507 rad=12.0 tmin=393552001.0 tmax=393811201.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.49
user 3.26
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/244550/ft2_4FGL_J1051.4-3139_daily_bin595.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/244550/ft2_4FGL_J1051.4-3139_daily_bin595.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/244550/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin595.fits evtable="EVENTS" outfile="/scratch/kocevski/244550/ft1_filtered_4FGL_J1051.4-3139_daily_bin595.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.52
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/244550/ft1_filtered_4FGL_J1051.4-3139_daily_bin595.fits" evtable="EVENTS" scfile=/scratch/kocevski/244550/ft2_4FGL_J1051.4-3139_daily_bin595.fits sctable="SC_DATA" outfile=/scratch/kocevski/244550/ltcube_393552001_393811201_4FGL_J1051.4-3139_daily_bin595.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/244550/ft2_4FGL_J1051.4-3139_daily_bin595.fits
.....................!
real 14.06
user 13.66
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/244550/ft1_filtered_4FGL_J1051.4-3139_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/244550/ft2_4FGL_J1051.4-3139_daily_bin595.fits sctable="SC_DATA" expcube=/scratch/kocevski/244550/ltcube_393552001_393811201_4FGL_J1051.4-3139_daily_bin595.fits outfile=/scratch/kocevski/244550/expmap_393552001_393811201_4FGL_J1051.4-3139_daily_bin595.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/244550/ltcube_393552001_393811201_4FGL_J1051.4-3139_daily_bin595.fits
.....................!
real 191.07
user 185.43
sys 5.13

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 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J1051.4-3139 @ 162.85 -31.6507

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/244550/ft1_filtered_4FGL_J1051.4-3139_daily_bin595.fits scfile=/scratch/kocevski/244550/ft2_4FGL_J1051.4-3139_daily_bin595.fits outfile=/scratch/kocevski/244550/cmap_393552001_393811201_4FGL_J1051.4-3139_daily_bin595.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=162.85 yref=-31.6507 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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/244550/ft1_filtered_4FGL_J1051.4-3139_daily_bin595.fits scfile=/scratch/kocevski/244550/ft2_4FGL_J1051.4-3139_daily_bin595.fits outfile=/scratch/kocevski/244550/cmap_HighResolution_393552001_393811201_4FGL_J1051.4-3139_daily_bin595.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=162.85 yref=-31.6507 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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/244550/ft1_filtered_4FGL_J1051.4-3139_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/244550/ft2_4FGL_J1051.4-3139_daily_bin595.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/244550/Model_4FGL_J1051.4-3139_daily_bin595.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/244550/ft1_filtered_4FGL_J1051.4-3139_daily_bin595.fits.....................!
real 84.57
user 83.12
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/244550/ft1_filtered_4FGL_J1051.4-3139_daily_bin595.fits', '/scratch/kocevski/244550/ft2_4FGL_J1051.4-3139_daily_bin595.fits', expMap='/scratch/kocevski/244550/expmap_393552001_393811201_4FGL_J1051.4-3139_daily_bin595.fits', expCube='/scratch/kocevski/244550/ltcube_393552001_393811201_4FGL_J1051.4-3139_daily_bin595.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/244550/Model_4FGL_J1051.4-3139_daily_bin595.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1051.4-3139'

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.422e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.716e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  5.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/244550/ft1_filtered_4FGL_J1051.4-3139_daily_bin595.fits
Spacecraft file(s): /scratch/kocevski/244550/ft2_4FGL_J1051.4-3139_daily_bin595.fits
Exposure map: /scratch/kocevski/244550/expmap_393552001_393811201_4FGL_J1051.4-3139_daily_bin595.fits
Exposure cube: /scratch/kocevski/244550/ltcube_393552001_393811201_4FGL_J1051.4-3139_daily_bin595.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/244550/Model_4FGL_J1051.4-3139_daily_bin595.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) = 8810.39277383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9078       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.432       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.666       1.0000         .10000E-03   10000.    
     4 'norm      '    43.348       1.0000         .10000E-03   10000.    
     5 'norm      '    .12994E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.110       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .70539       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.491       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9454       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10343E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.121       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .64705       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1028       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8810.355     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     1930 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9074        9.5314       -.12945E-05   -.33748E-03
   2  Prefactor     19.400        25.052        .40143E-05    .34278E-03
   3  Prefactor     14.667        12.662       -.76621E-06   -.20205E-03
   4  norm          43.357        13.685       -.13198E-07    .30886E-04
   5  norm          .10000E-03    3.6872        .65165E-07** at limit **
   6  Prefactor     19.108        14.393       -.29729E-07   -.63802E-05
   7  Prefactor     .10000E-03    7.4875       -.93075E-07** at limit **
   8  norm          .10000E-03    .92437       -.30275E-07** at limit **
   9  Prefactor     .10000E-03    11.295       -.15810E-07** at limit **
  10  Prefactor     .70432        2.6441        .10662E-05   -.53160E-03
  11  Prefactor     19.491        10.488       -.33374E-06   -.21086E-03
  12  Prefactor     5.9449        3.9757        .87187E-06   -.16483E-02
  13  Prefactor     .10036E-03    3.7161       -.92299E-07** at limit **
  14  Prefactor     .10000E-03    56.501        .13851E-06** at limit **
  15  Prefactor     .10000E-03    4.0322        .69074E-09** at limit **
  16  Prefactor     .10000E-03    14.596        .47042E-08** at limit **
  17  Prefactor     18.120        13.433        .24417E-06    .33566E-04
  18  Normalizat    .64709        .21340       -.12889E-05   -.51149E-04
  19  Prefactor     1.1028        .99860E-01    .88326E-07   -.12305E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.90736
  Prefactor  = 19.4005
  Prefactor  = 14.6669
  norm       = 43.3572
  norm       = 0.0001
  Prefactor  = 19.1079
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.704321
  Prefactor  = 19.4915
  Prefactor  = 5.94486
  Prefactor  = 0.000100363
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1196
  Normalizat = 0.647094
  Prefactor  = 1.10281
 **********
 **   18 **HESSE 
 **********

 FCN=   8810.355     FROM HESSE     STATUS=OK           278 CALLS     2208 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9074        9.7527        .16522E-03   -1.5222    
   2  Prefactor     19.400        26.349        .90860E-04   -1.4827    
   3  Prefactor     14.667        12.742        .10459E-03   -1.4942    
   4  norm          43.357        13.326        .60890E-04   -1.4390    
   5  norm          .10000E-03    34.510        .33816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.108        14.389        .91621E-04   -1.4833    
   7  Prefactor     .10000E-03    7.5252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .92878        .88083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .70432        2.7211        .28863E-03   -1.5540    
  11  Prefactor     19.491        10.430        .90721E-04   -1.4825    
  12  Prefactor     5.9449        4.4682        .82080E-03   -1.5220    
  13  Prefactor     .10036E-03    4.3223        .60050E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    57.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.0462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.120        13.433        .94087E-04   -1.4856    
  18  Normalizat    .64709        .23399        .42421E-03   -1.0602    
  19  Prefactor     1.1028        .11104        .16263E-03   -.89377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84122e-09
Minuit parameter uncertainties:
  1  9.75531
  2  26.3644
  3  12.7448
  4  13.3272
  5  5.48229e-05
  6  14.3916
  7  7.9316e-06
  8  1.05312e-06
  9  9.93502e-07
  10  2.7216
  11  10.4309
  12  4.46847
  13  0.00250465
  14  5.94763e-05
  15  1.68973e-06
  16  1.5911e-06
  17  13.4348
  18  0.234351
  19  0.111063
Done.

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

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.949e+01  1.043e+01  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.716e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  5.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.103e+00  1.111e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  6.471e-01  2.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.41
Ra Dec: 162.850 -31.651
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 9.90e-08 +/- 5.29e-08
Energy Flux (Fixed Index): 2.35e-05 +/- 1.26e-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) = 8810.31012602
delta logL = 0.045105492527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8810.30418785
delta logL = 0.0510436680051

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.455       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0485       1.0000          .0000       10.000    
     3 'Normalizat'    .62167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1121       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8810.304     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      273 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.445        130.20        .25470E-02    .15106E-03
   2  Index         3.0495        6.5089        .15893        .16694E-03
   3  Normalizat    .62146        .10009        .97537E-01    .78207E-04
   4  Prefactor     1.1122        .39072E-01    .37145E-01    .14150E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.4445
  Index      = 3.04947
  Normalizat = 0.621458
  Prefactor  = 1.11218
 **********
 **   18 **HESSE 
 **********

 FCN=   8810.304     FROM HESSE     STATUS=OK            31 CALLS      304 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.445        30.410        .10188E-03   -1.4922    
   2  Index         3.0495        1.9950        .81061E-02   -.40075    
   3  Normalizat    .62146        .25954        .43225E-03   -1.0708    
   4  Prefactor     1.1122        .12143        .16205E-03   -.89078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30154e-10
Minuit parameter uncertainties:
  1  30.4401
  2  2.06336
  3  0.260046
  4  0.121461
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/244550': 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) = 8810.30418719
delta logL = 0.0510443246894

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.544e+01  3.044e+01  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  3.049e+00  2.063e+00  0.000e+00  1.000e+01 (-1.000e+00)
296        Scale:  5.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.112e+00  1.215e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  6.215e-01  2.600e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.60
Ra Dec: 162.850 -31.651
Photon Index (Free Index): 3.05 +/- 2.06
Photon Flux (Free Index): 1.14e-07 +/- 8.00e-08
Energy Flux (Free Index): 2.22e-05 +/- 1.53e-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/244550/cmap_HighResolution_393552001_393811201_4FGL_J1051.4-3139_daily_bin595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.90e-08', energy_flux2='2.22e-05', photon_flux_error='5.29e-08', dlogl='5.10e-02', energy_flux='2.35e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-02 18:21:16.998464', photon_index_error2='2.06', photon_index2='3.05', ts='5.41', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.53e-05', EG='0.65', time_epoch_completed='1630632077.0', return_code='0', job_id='244550', GAL2='1.11', EG2='0.62', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='8.00e-08', ts2='5.60', photon_index='2.72' WHERE bin_id='595' AND source_name='4FGL J1051.4-3139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:21:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 244550: <4FGL_J1051.4-3139_daily_bin595> in cluster <slac> Done

Job <4FGL_J1051.4-3139_daily_bin595> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 18:06:36 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:07:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 18:07:42 2021
Terminated at Thu Sep  2 18:21:17 2021
Results reported at Thu Sep  2 18:21:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.4-3139_daily_bin595 162.85 -31.6507 393552001 393811201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1051.4-3139 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   665.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            881 sec.

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

