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


Performing analysis on: 4FGL_J1051.4-3139_daily_bin569
RA = 162.85, Dec = -31.6507
tmin = 386812801, tmax = 387072001
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='244511', job_status='RUN', time_executed='2021-09-02 18:10:20.663111', time_epoch_executed='1630631420.66' WHERE source_name='4FGL J1051.4-3139' and cadence='daily' and bin_id='569'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/244511

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/244511/ft1_4FGL_J1051.4-3139_daily_bin569.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/244511/ft2_4FGL_J1051.4-3139_daily_bin569.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/244511/ft1_4FGL_J1051.4-3139_daily_bin569.fits outfile=/scratch/kocevski/244511/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin569.fits ra=162.85 dec=-31.6507 rad=12.0 tmin=386812801.0 tmax=387072001.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.44
user 3.20
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/244511/ft1_filtered_4FGL_J1051.4-3139_daily_bin569.fits" evtable="EVENTS" scfile=/scratch/kocevski/244511/ft2_4FGL_J1051.4-3139_daily_bin569.fits sctable="SC_DATA" outfile=/scratch/kocevski/244511/ltcube_386812801_387072001_4FGL_J1051.4-3139_daily_bin569.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/244511/ft2_4FGL_J1051.4-3139_daily_bin569.fits
.....................!
real 16.73
user 16.28
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/244511/ft1_filtered_4FGL_J1051.4-3139_daily_bin569.fits evtable="EVENTS" scfile=/scratch/kocevski/244511/ft2_4FGL_J1051.4-3139_daily_bin569.fits sctable="SC_DATA" expcube=/scratch/kocevski/244511/ltcube_386812801_387072001_4FGL_J1051.4-3139_daily_bin569.fits outfile=/scratch/kocevski/244511/expmap_386812801_387072001_4FGL_J1051.4-3139_daily_bin569.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/244511/ltcube_386812801_387072001_4FGL_J1051.4-3139_daily_bin569.fits
.....................!
real 191.53
user 186.49
sys 4.11

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/244511/ft1_filtered_4FGL_J1051.4-3139_daily_bin569.fits scfile=/scratch/kocevski/244511/ft2_4FGL_J1051.4-3139_daily_bin569.fits outfile=/scratch/kocevski/244511/cmap_386812801_387072001_4FGL_J1051.4-3139_daily_bin569.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/244511/ft1_filtered_4FGL_J1051.4-3139_daily_bin569.fits scfile=/scratch/kocevski/244511/ft2_4FGL_J1051.4-3139_daily_bin569.fits outfile=/scratch/kocevski/244511/cmap_HighResolution_386812801_387072001_4FGL_J1051.4-3139_daily_bin569.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4104       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.444       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10203       1.0000         .10000E-03   10000.    
     4 'norm      '    13.730       1.0000         .10000E-03   10000.    
     5 'norm      '    4.8278       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4458       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8089       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13252E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.289       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.577       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.1708       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1010       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .99115       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=   7477.713     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     1895 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4106        9.6088       -.15436E-05   -.13969E-03
   2  Prefactor     32.446        24.226        .12037E-05   -.11900E-04
   3  Prefactor     .10017E-03    7.8956        .46397E-06** at limit **
   4  norm          13.735        13.011       -.39482E-05   -.86638E-04
   5  norm          4.8249        10.714        .84268E-06   -.13243E-03
   6  Prefactor     .10000E-03    10.677        .60520E-08** at limit **
   7  Prefactor     .10000E-03    20.787        .10566E-06** at limit **
   8  norm          .10000E-03    1.0505       -.40455E-08** at limit **
   9  Prefactor     .10000E-03    18.681       -.53070E-07** at limit **
  10  Prefactor     2.4456        2.8352       -.21442E-06   -.28581E-03
  11  Prefactor     .10000E-03    4.6420        .23268E-07** at limit **
  12  Prefactor     7.8092        6.8486        .31634E-05   -.13086E-03
  13  Prefactor     .10000E-03    5.1749        .70749E-07** at limit **
  14  Prefactor     .10001E-03    89.785        .12623E-04** at limit **
  15  Prefactor     20.273        16.272       -.82084E-05   -.93443E-04
  16  Prefactor     12.564        48.560       -.18951E-04    .45481E-05
  17  Prefactor     5.1646        14.614       -.55067E-05   -.46906E-04
  18  Normalizat    1.1008        .22917        .17731E-05   -.23698E-04
  19  Prefactor     .99130        .10451        .70336E-06   -.68270E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.4106
  Prefactor  = 32.4464
  Prefactor  = 0.000100171
  norm       = 13.7348
  norm       = 4.82486
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.44563
  Prefactor  = 0.0001
  Prefactor  = 7.8092
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 20.2731
  Prefactor  = 12.5637
  Prefactor  = 5.16465
  Normalizat = 1.10075
  Prefactor  = 0.9913
 **********
 **   18 **HESSE 
 **********

 FCN=   7477.713     FROM HESSE     STATUS=OK           278 CALLS     2173 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4106        9.6102        .17276E-03   -1.5243    
   2  Prefactor     32.446        24.219        .70348E-04   -1.4568    
   3  Prefactor     .10017E-03    8.5803        .86979E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.735        12.866        .10810E-03   -1.4967    
   5  norm          4.8249        10.581        .18309E-03   -1.5269    
   6  Prefactor     .10000E-03    10.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.455        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.0552        .86527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4456        2.8271        .15163E-03   -1.5395    
  11  Prefactor     .10000E-03    4.6770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.8092        6.8318        .14349E-03   -1.5149    
  13  Prefactor     .10000E-03    5.2038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    91.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.273        16.352        .88920E-04   -1.4807    
  16  Prefactor     12.564        48.425        .11295E-03   -1.4999    
  17  Prefactor     5.1646        14.638        .17679E-03   -1.5253    
  18  Normalizat    1.1008        .26994        .35379E-03   -.89728    
  19  Prefactor     .99130        .12375        .17368E-03   -.93020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33261e-10
Minuit parameter uncertainties:
  1  9.61296
  2  24.226
  3  0.00242481
  4  12.8681
  5  10.5853
  6  3.69979e-05
  7  3.34992e-05
  8  1.65241e-06
  9  0.000115556
  10  2.82721
  11  6.76549e-06
  12  6.83244
  13  1.17667e-07
  14  0.00147102
  15  16.3555
  16  48.5773
  17  14.6485
  18  0.270282
  19  0.123782
Done.

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

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  6.765e-06  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:  9.913e-01  1.238e-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.101e+00  2.703e-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: 8.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/244511/likelihoodResults_386812801_387072001_4FGL_J1051.4-3139_daily_bin569.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) = 7477.71431174
delta logL = -0.00101888261634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7477.71329285
delta logL = 7.54880602472e-09

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.7115       1.0000          .0000       10.000    
     3 'Normalizat'    1.1008       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99130       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=   7477.713     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1046.6        .90712E-02** at limit **
   2  Index         2.7070        6.2995        .50000        .87465E-05
   3  Normalizat    1.1008        .17675        .79920E-01    .10452E-03
   4  Prefactor     .99130        .81134E-01    .46158E-01    .13468E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.70703
  Normalizat = 1.10076
  Prefactor  = 0.9913
 **********
 **   18 **HESSE 
 **********

 FCN=   7477.713     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7070        6.3535        .50000       -.47641    
   3  Normalizat    1.1008        .25788        .35379E-03   -.89728    
   4  Prefactor     .99130        .12181        .17368E-03   -.93020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.93385e-11
Minuit parameter uncertainties:
  1  3.70112e-05
  2  4.87891
  3  0.258174
  4  0.121842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/244511': 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) = 7477.71329284
delta logL = 1.72003637999e-08

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  3.701e-05  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.707e+00  4.879e+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:  9.913e-01  1.218e-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.101e+00  2.582e-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/244511/cmap_HighResolution_386812801_387072001_4FGL_J1051.4-3139_daily_bin569.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.54e-03', job_status='DONE', photon_flux_upper_limit='8.30e-08', time_completed='2021-09-02 18:21:34.662171', job_id='244511', GAL2='0.99', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630632094.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.72e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='569' AND source_name='4FGL J1051.4-3139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:21:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 244511: <4FGL_J1051.4-3139_daily_bin569> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.4-3139_daily_bin569 162.85 -31.6507 386812801 387072001 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 :                                   672.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            902 sec.

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

