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


Performing analysis on: 4FGL_J1051.4-3139_daily_bin741
RA = 162.85, Dec = -31.6507
tmin = 431395201, tmax = 431654401
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='244767', job_status='RUN', time_executed='2021-09-02 18:08:51.379766', time_epoch_executed='1630631331.38' WHERE source_name='4FGL J1051.4-3139' and cadence='daily' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/244767

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/244767/ft1_4FGL_J1051.4-3139_daily_bin741.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/244767/ft2_4FGL_J1051.4-3139_daily_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/244767/ft1_4FGL_J1051.4-3139_daily_bin741.fits outfile=/scratch/kocevski/244767/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin741.fits ra=162.85 dec=-31.6507 rad=12.0 tmin=431395201.0 tmax=431654401.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 5.70
user 5.43
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/244767/ft2_4FGL_J1051.4-3139_daily_bin741.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/244767/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin741.fits evtable="EVENTS" outfile="/scratch/kocevski/244767/ft1_filtered_4FGL_J1051.4-3139_daily_bin741.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/244767/ft1_filtered_4FGL_J1051.4-3139_daily_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/244767/ft2_4FGL_J1051.4-3139_daily_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/244767/ltcube_431395201_431654401_4FGL_J1051.4-3139_daily_bin741.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/244767/ft2_4FGL_J1051.4-3139_daily_bin741.fits
.....................!
real 15.27
user 14.88
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/244767/ft1_filtered_4FGL_J1051.4-3139_daily_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/244767/ft2_4FGL_J1051.4-3139_daily_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/244767/ltcube_431395201_431654401_4FGL_J1051.4-3139_daily_bin741.fits outfile=/scratch/kocevski/244767/expmap_431395201_431654401_4FGL_J1051.4-3139_daily_bin741.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/244767/ltcube_431395201_431654401_4FGL_J1051.4-3139_daily_bin741.fits
.....................!
real 191.81
user 185.34
sys 5.50

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/244767/ft1_filtered_4FGL_J1051.4-3139_daily_bin741.fits scfile=/scratch/kocevski/244767/ft2_4FGL_J1051.4-3139_daily_bin741.fits outfile=/scratch/kocevski/244767/cmap_431395201_431654401_4FGL_J1051.4-3139_daily_bin741.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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/244767/ft1_filtered_4FGL_J1051.4-3139_daily_bin741.fits scfile=/scratch/kocevski/244767/ft2_4FGL_J1051.4-3139_daily_bin741.fits outfile=/scratch/kocevski/244767/cmap_HighResolution_431395201_431654401_4FGL_J1051.4-3139_daily_bin741.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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/244767/ft1_filtered_4FGL_J1051.4-3139_daily_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/244767/ft2_4FGL_J1051.4-3139_daily_bin741.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/244767/Model_4FGL_J1051.4-3139_daily_bin741.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/244767/ft1_filtered_4FGL_J1051.4-3139_daily_bin741.fits.....................!
real 84.64
user 83.15
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/244767/ft1_filtered_4FGL_J1051.4-3139_daily_bin741.fits', '/scratch/kocevski/244767/ft2_4FGL_J1051.4-3139_daily_bin741.fits', expMap='/scratch/kocevski/244767/expmap_431395201_431654401_4FGL_J1051.4-3139_daily_bin741.fits', expCube='/scratch/kocevski/244767/ltcube_431395201_431654401_4FGL_J1051.4-3139_daily_bin741.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/244767/Model_4FGL_J1051.4-3139_daily_bin741.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/244767/ft1_filtered_4FGL_J1051.4-3139_daily_bin741.fits
Spacecraft file(s): /scratch/kocevski/244767/ft2_4FGL_J1051.4-3139_daily_bin741.fits
Exposure map: /scratch/kocevski/244767/expmap_431395201_431654401_4FGL_J1051.4-3139_daily_bin741.fits
Exposure cube: /scratch/kocevski/244767/ltcube_431395201_431654401_4FGL_J1051.4-3139_daily_bin741.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/244767/Model_4FGL_J1051.4-3139_daily_bin741.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) = 8362.15645395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.421       1.0000         .10000E-03   10000.    
     5 'norm      '    2.1233       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1756       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.7728       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4360       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7789       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5541       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3239       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8059       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1088       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89106       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=   8361.089     FROM MIGRAD    STATUS=CONVERGED    377 CALLS     1616 TOTAL
                     EDM=   .23E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.6860        .16810E-07** at limit **
   2  Prefactor     .10000E-03    15.011        .10183E-05** at limit **
   3  Prefactor     .10000E-03    18.165       -.18724E-05** at limit **
   4  norm          12.421        7.3450        .79921E-08    .15419E-04
   5  norm          2.1237        6.3516        .62192E-07   -.31684E-04
   6  Prefactor     1.1747        2.7084       -.25355E-07   -.60595E-04
   7  Prefactor     .10000E-03    3.3299        .31951E-08** at limit **
   8  norm          3.7729        2.5065       -.63596E-07   -.55179E-05
   9  Prefactor     2.4377        8.1455        .36507E-07    .14407E-05
  10  Prefactor     1.7790        3.2908        .52347E-07    .20349E-05
  11  Prefactor     .10000E-03    3.4038        .12722E-06** at limit **
  12  Prefactor     2.5542        4.5059       -.30129E-06   -.10009E-04
  13  Prefactor     6.3239        7.1966       -.52112E-10    .19489E-05
  14  Prefactor     .10000E-03    15.452        .16536E-05** at limit **
  15  Prefactor     .10000E-03    8.6667        .25627E-05** at limit **
  16  Prefactor     .10000E-03    9.6073       -.34630E-05** at limit **
  17  Prefactor     6.8059        10.570       -.38917E-07    .33833E-05
  18  Normalizat    1.1088        .19327       -.18297E-06   -.19731E-04
  19  Prefactor     .89106        .91584E-01    .35980E-07   -.47219E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.4207
  norm       = 2.12366
  Prefactor  = 1.17468
  Prefactor  = 0.0001
  norm       = 3.77288
  Prefactor  = 2.4377
  Prefactor  = 1.77896
  Prefactor  = 0.0001
  Prefactor  = 2.55418
  Prefactor  = 6.32388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.8059
  Normalizat = 1.10882
  Prefactor  = 0.891062
 **********
 **   18 **HESSE 
 **********

 FCN=   8361.089     FROM HESSE     STATUS=OK           270 CALLS     1886 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.7564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.421        7.3501        .11366E-03   -1.5003    
   5  norm          2.1237        7.0204        .14150E-02   -1.5417    
   6  Prefactor     1.1747        8.4331        .21122E-02   -1.5491    
   7  Prefactor     .10000E-03    3.3322        .16291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.7729        2.4974        .11211E-03   -1.5319    
   9  Prefactor     2.4377        8.1508        .26216E-03   -1.5396    
  10  Prefactor     1.7790        3.2665        .21058E-03   -1.5441    
  11  Prefactor     .10000E-03    3.4303        .16468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5542        4.5154        .24383E-03   -1.5388    
  13  Prefactor     6.3239        7.1953        .15962E-03   -1.5205    
  14  Prefactor     .10000E-03    15.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.8440        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.6650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.8059        10.574        .15380E-03   -1.5186    
  18  Normalizat    1.1088        .23191        .31198E-03   -.89469    
  19  Prefactor     .89106        .11007        .16706E-03   -.96454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76987e-09
Minuit parameter uncertainties:
  1  1.32764e-06
  2  8.62438e-07
  3  1.52673e-05
  4  7.35059
  5  7.02316
  6  6.2958
  7  5.01534e-07
  8  2.49748
  9  8.15453
  10  3.26681
  11  3.12292e-07
  12  4.51595
  13  7.19625
  14  5.34333e-06
  15  3.05339e-05
  16  5.85095e-07
  17  10.5774
  18  0.23212
  19  0.110094
Done.

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

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  3.123e-07  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:  8.911e-01  1.101e-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:  1.109e+00  2.321e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.850 -31.651
Photon Flux Upper Limit: 6.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/244767/likelihoodResults_431395201_431654401_4FGL_J1051.4-3139_daily_bin741.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) = 8361.09030919
delta logL = -0.00138924600105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8361.0889199
delta logL = 4.09581843996e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7061       1.0000          .0000       10.000    
     3 'Normalizat'    1.1088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89106       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.

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

 FCN=   8361.089     FROM MIGRAD    STATUS=FAILED        87 CALLS      242 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10113E-03    124.35        .16532E-02** at limit **
   2  Index         2.6198        6.1042        .50000        .18492E-04
   3  Normalizat    1.1088        .30038E-01    .31198E-03   -.45332E-04
   4  Prefactor     .89106        .14678E-01    .16706E-03   -.43144E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8361.089     FROM SIMPLEX   STATUS=UNCHANGED    143 CALLS      385 TOTAL
                     EDM=   .84E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10113E-03    124.35        .27954E-03** at limit **
   2  Index         2.6198        6.1042        .89220E-04    .18492E-04
   3  Normalizat    1.1088        .30038E-01    .15884E-05   -.45332E-04
   4  Prefactor     .89106        .14678E-01    .57852E-06   -.43144E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8361.089     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      426 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    669.51        .33063E-03** at limit **
   2  Index         2.3987        6.2639        .50000       -.43474E-07
   3  Normalizat    1.1088        .98228E-01    .12479E-04    .18548E-03
   4  Prefactor     .89106        .47998E-01    .66825E-05    .37360E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.39873
  Normalizat = 1.10882
  Prefactor  = 0.891063
 **********
 **   18 **HESSE 
 **********

 FCN=   8361.089     FROM HESSE     STATUS=OK            29 CALLS      455 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1378        .66126E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3987        8.7486        .50000       -.54715    
   3  Normalizat    1.1088        .22341        .24958E-05   -.89469    
   4  Prefactor     .89106        .10919        .13365E-05   -.96454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12483e-11
Minuit parameter uncertainties:
  1  2.53507e-07
  2  125.977
  3  0.223605
  4  0.109217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/244767': 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) = 8361.08891899
delta logL = 9.48655724642e-07

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  2.535e-07  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.399e+00  1.260e+02  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:  8.911e-01  1.092e-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:  1.109e+00  2.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 162.850 -31.651

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/244767/cmap_HighResolution_431395201_431654401_4FGL_J1051.4-3139_daily_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-03', job_status='DONE', photon_flux_upper_limit='6.46e-08', time_completed='2021-09-02 18:20:57.245076', job_id='244767', GAL2='0.89', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630632057.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='9.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='741' AND source_name='4FGL J1051.4-3139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:20:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 244767: <4FGL_J1051.4-3139_daily_bin741> in cluster <slac> Done

Job <4FGL_J1051.4-3139_daily_bin741> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 18:06:55 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:08:33 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:08:33 2021
Terminated at Thu Sep  2 18:20:58 2021
Results reported at Thu Sep  2 18:20:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.4-3139_daily_bin741 162.85 -31.6507 431395201 431654401 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 :                                   722.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             347.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            843 sec.

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

