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


Performing analysis on: 4FGL_J1051.4-3139_daily_bin635
RA = 162.85, Dec = -31.6507
tmin = 403920001, tmax = 404179201
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='244612', job_status='RUN', time_executed='2021-09-02 18:11:37.669818', time_epoch_executed='1630631497.67' WHERE source_name='4FGL J1051.4-3139' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/244612

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/244612/ft1_4FGL_J1051.4-3139_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/244612/ft2_4FGL_J1051.4-3139_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/244612/ft1_4FGL_J1051.4-3139_daily_bin635.fits outfile=/scratch/kocevski/244612/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin635.fits ra=162.85 dec=-31.6507 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.09
user 9.72
sys 0.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/244612/ft2_4FGL_J1051.4-3139_daily_bin635.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/244612/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin635.fits evtable="EVENTS" outfile="/scratch/kocevski/244612/ft1_filtered_4FGL_J1051.4-3139_daily_bin635.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/244612/ft1_filtered_4FGL_J1051.4-3139_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/244612/ft2_4FGL_J1051.4-3139_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/244612/ltcube_403920001_404179201_4FGL_J1051.4-3139_daily_bin635.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/244612/ft2_4FGL_J1051.4-3139_daily_bin635.fits
.....................!
real 10.09
user 9.75
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/244612/ft1_filtered_4FGL_J1051.4-3139_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/244612/ft2_4FGL_J1051.4-3139_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/244612/ltcube_403920001_404179201_4FGL_J1051.4-3139_daily_bin635.fits outfile=/scratch/kocevski/244612/expmap_403920001_404179201_4FGL_J1051.4-3139_daily_bin635.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/244612/ltcube_403920001_404179201_4FGL_J1051.4-3139_daily_bin635.fits
.....................!
real 191.43
user 186.14
sys 4.90

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/244612/ft1_filtered_4FGL_J1051.4-3139_daily_bin635.fits scfile=/scratch/kocevski/244612/ft2_4FGL_J1051.4-3139_daily_bin635.fits outfile=/scratch/kocevski/244612/cmap_403920001_404179201_4FGL_J1051.4-3139_daily_bin635.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.38
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/244612/ft1_filtered_4FGL_J1051.4-3139_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/244612/ft2_4FGL_J1051.4-3139_daily_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/244612/Model_4FGL_J1051.4-3139_daily_bin635.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/244612/ft1_filtered_4FGL_J1051.4-3139_daily_bin635.fits.......................!
real 21.04
user 19.73
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.576       1.0000         .10000E-03   10000.    
     4 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.558       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3853       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13180E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.790       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    206.49       1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.943       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.142       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .22814       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0412       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   979.4920     FROM MIGRAD    STATUS=CONVERGED     54 CALLS     1548 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    4.8113        .94212E-05** at limit **
   2  Prefactor     .10241E-03    12.228        .29722E-04** at limit **
   3  Prefactor     33.579        1.0997        .15633E-05   -.23696E-02
   4  norm          .10020E-03    7.9055       -.74923E-05** at limit **
   5  norm          .10001E-03    4.5015        .13319E-04** at limit **
   6  Prefactor     .10002E-03    21.804       -.12487E-03** at limit **
   7  Prefactor     .10049E-03    25.892        .16257E-03** at limit **
   8  norm          11.560        1.0163       -.90326E-06   -.43439E-03
   9  Prefactor     1.3800        1.2772       -.11209E-04    .56776E-03
  10  Prefactor     .10000E-03    8.3156       -.14900E-04** at limit **
  11  Prefactor     37.788        1.0449       -.96743E-06    .15178E-02
  12  Prefactor     .10000E-03    4.7532        .95952E-05** at limit **
  13  Prefactor     .10016E-03    8.4175       -.33735E-04** at limit **
  14  Prefactor     206.49        1.0034       -.11512E-06    .12220E-02
  15  Prefactor     29.942        1.0086       -.47360E-06    .75193E-03
  16  Prefactor     .10113E-03    27.495       -.15892E-03** at limit **
  17  Prefactor     38.137        1.2434       -.23722E-05    .42756E-02
  18  Normalizat    .22805        .55228        .39066E-04    .56586E-04
  19  Prefactor     1.0413        .28599       -.26322E-05    .19949E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100006
  Prefactor  = 0.000102406
  Prefactor  = 33.5791
  norm       = 0.000100202
  norm       = 0.000100013
  Prefactor  = 0.000100018
  Prefactor  = 0.000100485
  norm       = 11.5596
  Prefactor  = 1.38001
  Prefactor  = 0.0001
  Prefactor  = 37.7876
  Prefactor  = 0.0001
  Prefactor  = 0.00010016
  Prefactor  = 206.486
  Prefactor  = 29.9419
  Prefactor  = 0.000101134
  Prefactor  = 38.1375
  Normalizat = 0.228049
  Prefactor  = 1.04132
 **********
 **   18 **HESSE 
 **********

 FCN=   979.4920     FROM HESSE     STATUS=OK           300 CALLS     1848 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    9.1149        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10241E-03    40.501        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.579        47.072        .17289E-02   -1.4548    
   4  norm          .10020E-03    16.080        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    9.0561        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    52.830        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10049E-03    32.523        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.560        10.550        .29459E-02   -1.5028    
   9  Prefactor     1.3800        375.52        .92380E-02   -1.5473    
  10  Prefactor     .10000E-03    8.3037        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.788        32.905        .16299E-02   -1.4478    
  12  Prefactor     .10000E-03    4.7495        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10016E-03    15.691        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     206.49        197.71        .70321E-03   -1.2824    
  15  Prefactor     29.942        56.239        .18305E-02   -1.4613    
  16  Prefactor     .10113E-03    56.635        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.137        52.750        .16224E-02   -1.4472    
  18  Normalizat    .22805        1.0090        .13659       -1.2742    
  19  Prefactor     1.0413        .41518        .40454E-01   -.91364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16379e-07
Minuit parameter uncertainties:
  1  0.000483077
  2  0.0197576
  3  47.1244
  4  0.0036047
  5  0.00068328
  6  0.00195418
  7  0.00795132
  8  10.5516
  9  45.8202
  10  4.93917e-05
  11  32.9213
  12  4.27228e-05
  13  0.00316907
  14  198.348
  15  56.3385
  16  0.0160458
  17  52.8141
  18  0.966305
  19  0.416468
Done.

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

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  3.779e+01  3.292e+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.041e+00  4.165e-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:  2.280e-01  9.663e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.93
Ra Dec: 162.850 -31.651
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 1.92e-07 +/- 1.67e-07
Energy Flux (Fixed Index): 4.56e-05 +/- 3.97e-05

TS (Fixed Index): 2.93
Ra Dec: 162.850 -31.651
Photon Flux Upper Limit: 5.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.42e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/244612/likelihoodResults_403920001_404179201_4FGL_J1051.4-3139_daily_bin635.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): 0
logL (Free Index) = 978.694644263
delta logL = 0.797329920681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 978.65839729
delta logL = 0.833576894053

Fit tolerance = 1e-08

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

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

 FCN=   978.6584     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      288 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9293        11.936        .42510E-04   -.19770E-02
   2  Index         4.7268        1.7635        .27844E-03   -.31142E-03
   3  Normalizat    .50183E-01    6.0606        .11049E-01    .34092E-04
   4  Prefactor     1.1048        .34126        .14171E-03    .19785E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.9293
  Index      = 4.72684
  Normalizat = 0.0501827
  Prefactor  = 1.10477
 **********
 **   18 **HESSE 
 **********

 FCN=   978.6584     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9293        11.527        .85020E-05   -1.5264    
   2  Index         4.7268        1.7025        .11137E-04   -.54659E-01
   3  Normalizat    .50183E-01    2.0537        .44197E-03   -1.4439    
   4  Prefactor     1.1048        .29505        .28341E-04   -.89314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5099e-09
Minuit parameter uncertainties:
  1  11.5324
  2  1.7373
  3  0.5977
  4  0.295485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/244612': 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) = 978.658373431
delta logL = 0.833600752935

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  4.929e+00  1.153e+01  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  4.727e+00  1.737e+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.105e+00  2.955e-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:  5.018e-02  5.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.01
Ra Dec: 162.850 -31.651
Photon Index (Free Index): 4.73 +/- 1.74
Photon Flux (Free Index): 3.16e-07 +/- 2.13e-07
Energy Flux (Free Index): 4.31e-05 +/- 2.85e-05

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/244612/cmap_HighResolution_403920001_404179201_4FGL_J1051.4-3139_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-02', comment='SUCCESS', photon_flux='1.92e-07', energy_flux2='4.31e-05', photon_flux_error='1.67e-07', dlogl='8.34e-01', energy_flux='4.56e-05', photon_flux2='3.16e-07', job_status='DONE', time_completed='2021-09-02 18:18:11.122813', photon_index_error2='1.74', photon_index2='4.73', ts='2.93', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='5.61e-07', energy_flux_error2='2.85e-05', EG='0.23', time_epoch_completed='1630631891.12', return_code='0', job_id='244612', GAL2='1.10', EG2='0.05', return_code2='0', energy_flux_error='3.97e-05', photon_flux_error2='2.13e-07', ts2='5.01', photon_index='2.72' WHERE bin_id='635' AND source_name='4FGL J1051.4-3139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:18:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 244612: <4FGL_J1051.4-3139_daily_bin635> in cluster <slac> Done

Job <4FGL_J1051.4-3139_daily_bin635> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 18:06:41 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:07:59 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:59 2021
Terminated at Thu Sep  2 18:18:11 2021
Results reported at Thu Sep  2 18:18:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.4-3139_daily_bin635 162.85 -31.6507 403920001 404179201 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 :                                   392.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             219.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            690 sec.

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

