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


Performing analysis on: 4FGL_J1051.4-3139_daily_bin951
RA = 162.85, Dec = -31.6507
tmin = 485827201, tmax = 486086401
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='246042', job_status='RUN', time_executed='2021-09-02 18:12:28.783331', time_epoch_executed='1630631548.78' WHERE source_name='4FGL J1051.4-3139' and cadence='daily' and bin_id='951'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/246042

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/246042/ft1_4FGL_J1051.4-3139_daily_bin951.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/246042/ft2_4FGL_J1051.4-3139_daily_bin951.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/246042/ft1_4FGL_J1051.4-3139_daily_bin951.fits outfile=/scratch/kocevski/246042/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin951.fits ra=162.85 dec=-31.6507 rad=12.0 tmin=485827201.0 tmax=486086401.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.73
user 3.51
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/246042/ft1_filtered_4FGL_J1051.4-3139_daily_bin951.fits" evtable="EVENTS" scfile=/scratch/kocevski/246042/ft2_4FGL_J1051.4-3139_daily_bin951.fits sctable="SC_DATA" outfile=/scratch/kocevski/246042/ltcube_485827201_486086401_4FGL_J1051.4-3139_daily_bin951.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/246042/ft2_4FGL_J1051.4-3139_daily_bin951.fits
.....................!
real 16.60
user 16.19
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/246042/ft1_filtered_4FGL_J1051.4-3139_daily_bin951.fits evtable="EVENTS" scfile=/scratch/kocevski/246042/ft2_4FGL_J1051.4-3139_daily_bin951.fits sctable="SC_DATA" expcube=/scratch/kocevski/246042/ltcube_485827201_486086401_4FGL_J1051.4-3139_daily_bin951.fits outfile=/scratch/kocevski/246042/expmap_485827201_486086401_4FGL_J1051.4-3139_daily_bin951.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/246042/ltcube_485827201_486086401_4FGL_J1051.4-3139_daily_bin951.fits
.....................!
real 191.78
user 186.12
sys 5.09

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/246042/ft1_filtered_4FGL_J1051.4-3139_daily_bin951.fits scfile=/scratch/kocevski/246042/ft2_4FGL_J1051.4-3139_daily_bin951.fits outfile=/scratch/kocevski/246042/cmap_485827201_486086401_4FGL_J1051.4-3139_daily_bin951.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/246042/ft1_filtered_4FGL_J1051.4-3139_daily_bin951.fits scfile=/scratch/kocevski/246042/ft2_4FGL_J1051.4-3139_daily_bin951.fits outfile=/scratch/kocevski/246042/cmap_HighResolution_485827201_486086401_4FGL_J1051.4-3139_daily_bin951.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/246042/ft1_filtered_4FGL_J1051.4-3139_daily_bin951.fits evtable="EVENTS" scfile=/scratch/kocevski/246042/ft2_4FGL_J1051.4-3139_daily_bin951.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/246042/Model_4FGL_J1051.4-3139_daily_bin951.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/246042/ft1_filtered_4FGL_J1051.4-3139_daily_bin951.fits.....................!
real 106.06
user 104.49
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0615       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3728       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6557       1.0000         .10000E-03   10000.    
     4 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.8106       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3337       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.3778       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3736       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7022       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.974       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .84298E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .99074       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1075       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=   11321.55     FROM MIGRAD    STATUS=CONVERGED    376 CALLS     1631 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0655        6.6817        .27878E-06    .63494E-04
   2  Prefactor     1.3463        31.237       -.40307E-05   -.13102E-04
   3  Prefactor     1.6600        7.3695        .13770E-05    .12909E-03
   4  norm          .10000E-03    4.4037        .26824E-06** at limit **
   5  norm          2.8087        5.2198        .45615E-05   -.71609E-04
   6  Prefactor     5.3404        5.9077        .11315E-06    .63433E-04
   7  Prefactor     .10000E-03    6.6691        .93471E-07** at limit **
   8  norm          2.3773        2.0272        .51248E-07    .31975E-03
   9  Prefactor     .10000E-03    3.6638        .21959E-06** at limit **
  10  Prefactor     .10000E-03    1.5414       -.27200E-06** at limit **
  11  Prefactor     7.3790        6.6760        .57747E-06    .30677E-03
  12  Prefactor     1.7025        2.6685        .17445E-06    .69985E-05
  13  Prefactor     .10000E-03    1.7505       -.37449E-07** at limit **
  14  Prefactor     10.990        13.991        .22917E-06    .41061E-05
  15  Prefactor     .10000E-03    3.6948        .80011E-07** at limit **
  16  Prefactor     .10000E-03    64.448        .39353E-05** at limit **
  17  Prefactor     .10000E-03    3.9979       -.37996E-06** at limit **
  18  Normalizat    .99075        .18441       -.17509E-06    .16359E-03
  19  Prefactor     1.1075        .89037E-01   -.27149E-06    .21864E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.06552
  Prefactor  = 1.34631
  Prefactor  = 1.65999
  norm       = 0.0001
  norm       = 2.80872
  Prefactor  = 5.34039
  Prefactor  = 0.0001
  norm       = 2.37725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.37903
  Prefactor  = 1.70246
  Prefactor  = 0.0001
  Prefactor  = 10.9896
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.990755
  Prefactor  = 1.1075
 **********
 **   18 **HESSE 
 **********

 FCN=   11321.55     FROM HESSE     STATUS=OK           270 CALLS     1901 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0655        6.6697        .23185E-03   -1.5358    
   2  Prefactor     1.3463        31.401        .37198E-03   -1.5476    
   3  Prefactor     1.6600        7.3433        .32799E-03   -1.5450    
   4  norm          .10000E-03    4.4638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8087        5.2246        .12132E-02   -1.5373    
   6  Prefactor     5.3404        5.9087        .17402E-03   -1.5246    
   7  Prefactor     .10000E-03    6.6964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3773        2.0153        .13451E-03   -1.5400    
   9  Prefactor     .10000E-03    3.6733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.3303        .25067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.3790        6.6483        .14770E-03   -1.5165    
  12  Prefactor     1.7025        2.6471        .20997E-03   -1.5447    
  13  Prefactor     .10000E-03    1.7552        .13748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.990        13.988        .12094E-03   -1.5045    
  15  Prefactor     .10000E-03    3.7211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    65.040        .20871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.0154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .99075        .21458        .35590E-03   -.93341    
  19  Prefactor     1.1075        .10435        .16686E-03   -.89227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84196e-10
Minuit parameter uncertainties:
  1  6.67131
  2  13.0112
  3  6.98398
  4  1.56614e-05
  5  5.22549
  6  5.90938
  7  4.33578e-06
  8  2.01535
  9  1.99167e-06
  10  2.27146e-05
  11  6.64891
  12  2.64733
  13  2.2262e-06
  14  13.9919
  15  4.35775e-06
  16  0.000491496
  17  9.55855e-06
  18  0.214763
  19  0.104372
Done.

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

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  7.379e+00  6.649e+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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.107e+00  1.044e-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:  9.908e-01  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.35
Ra Dec: 162.850 -31.651
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 3.75e-08 +/- 3.37e-08
Energy Flux (Fixed Index): 8.91e-06 +/- 8.03e-06

TS (Fixed Index): 2.35
Ra Dec: 162.850 -31.651
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/246042/likelihoodResults_485827201_486086401_4FGL_J1051.4-3139_daily_bin951.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) = 11321.1555042
delta logL = 0.396357839138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11321.0275666
delta logL = 0.524295504811

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1629       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5996       1.0000          .0000       10.000    
     3 'Normalizat'    1.0291       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0985       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=   11321.03     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      222 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1645        3.4367        .56974E-02   -.27897E-03
   2  Index         1.5998        .40364        .28765       -.10527E-03
   3  Normalizat    1.0289        .17814        .79056E-01   -.23621E-04
   4  Prefactor     1.0985        .88156E-01    .37644E-01   -.11752E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.16453
  Index      = 1.59982
  Normalizat = 1.02891
  Prefactor  = 1.09849
 **********
 **   18 **HESSE 
 **********

 FCN=   11321.03     FROM HESSE     STATUS=OK            31 CALLS      253 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1645        5.4799        .19638E-03   -1.5352    
   2  Index         1.5998        .84929        .11217E-01   -.74781    
   3  Normalizat    1.0289        .20893        .34992E-03   -.92068    
   4  Prefactor     1.0985        .10353        .16746E-03   -.89515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69584e-11
Minuit parameter uncertainties:
  1  5.48072
  2  0.857074
  3  0.209095
  4  0.10355
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/246042': 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) = 11321.0275653
delta logL = 0.524296777858

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  3.165e+00  5.481e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  1.600e+00  8.571e-01  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.098e+00  1.035e-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.029e+00  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.38
Ra Dec: 162.850 -31.651
Photon Index (Free Index): 1.60 +/- 0.86
Photon Flux (Free Index): 7.21e-09 +/- 1.29e-08
Energy Flux (Free Index): 1.63e-05 +/- 2.87e-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/246042/cmap_HighResolution_485827201_486086401_4FGL_J1051.4-3139_daily_bin951.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.86e-03', comment='SUCCESS', photon_flux='3.75e-08', energy_flux2='1.63e-05', photon_flux_error='3.37e-08', dlogl='5.24e-01', energy_flux='8.91e-06', photon_flux2='7.21e-09', job_status='DONE', time_completed='2021-09-02 18:26:23.500739', photon_index_error2='0.86', photon_index2='1.60', ts='2.35', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='2.87e-05', EG='0.99', time_epoch_completed='1630632383.5', return_code='0', job_id='246042', GAL2='1.10', EG2='1.03', return_code2='0', energy_flux_error='8.03e-06', photon_flux_error2='1.29e-08', ts2='3.38', photon_index='2.72' WHERE bin_id='951' AND source_name='4FGL J1051.4-3139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:26:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 246042: <4FGL_J1051.4-3139_daily_bin951> in cluster <slac> Done

Job <4FGL_J1051.4-3139_daily_bin951> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 18:11:18 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:12:17 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:12:17 2021
Terminated at Thu Sep  2 18:26:24 2021
Results reported at Thu Sep  2 18:26:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.4-3139_daily_bin951 162.85 -31.6507 485827201 486086401 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 :                                   830.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             355.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            906 sec.

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

