/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 2 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 = 7387
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1051.4-3139_daily_bin356
RA = 162.85, Dec = -31.6507
tmin = 331603201, tmax = 331862401
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='242777', job_status='RUN', time_executed='2021-09-02 18:02:32.275729', time_epoch_executed='1630630952.28' WHERE source_name='4FGL J1051.4-3139' and cadence='daily' and bin_id='356'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242777

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242777/ft1_4FGL_J1051.4-3139_daily_bin356.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242777/ft2_4FGL_J1051.4-3139_daily_bin356.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242777/ft1_4FGL_J1051.4-3139_daily_bin356.fits outfile=/scratch/kocevski/242777/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin356.fits ra=162.85 dec=-31.6507 rad=12.0 tmin=331603201.0 tmax=331862401.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.30
user 3.07
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/242777/ft2_4FGL_J1051.4-3139_daily_bin356.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/242777/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin356.fits evtable="EVENTS" outfile="/scratch/kocevski/242777/ft1_filtered_4FGL_J1051.4-3139_daily_bin356.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.59
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242777/ft1_filtered_4FGL_J1051.4-3139_daily_bin356.fits" evtable="EVENTS" scfile=/scratch/kocevski/242777/ft2_4FGL_J1051.4-3139_daily_bin356.fits sctable="SC_DATA" outfile=/scratch/kocevski/242777/ltcube_331603201_331862401_4FGL_J1051.4-3139_daily_bin356.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/242777/ft2_4FGL_J1051.4-3139_daily_bin356.fits
.....................!
real 14.41
user 14.02
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242777/ft1_filtered_4FGL_J1051.4-3139_daily_bin356.fits evtable="EVENTS" scfile=/scratch/kocevski/242777/ft2_4FGL_J1051.4-3139_daily_bin356.fits sctable="SC_DATA" expcube=/scratch/kocevski/242777/ltcube_331603201_331862401_4FGL_J1051.4-3139_daily_bin356.fits outfile=/scratch/kocevski/242777/expmap_331603201_331862401_4FGL_J1051.4-3139_daily_bin356.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/242777/ltcube_331603201_331862401_4FGL_J1051.4-3139_daily_bin356.fits
.....................!
real 192.12
user 186.75
sys 4.62

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/242777/ft1_filtered_4FGL_J1051.4-3139_daily_bin356.fits scfile=/scratch/kocevski/242777/ft2_4FGL_J1051.4-3139_daily_bin356.fits outfile=/scratch/kocevski/242777/cmap_331603201_331862401_4FGL_J1051.4-3139_daily_bin356.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242777/ft1_filtered_4FGL_J1051.4-3139_daily_bin356.fits scfile=/scratch/kocevski/242777/ft2_4FGL_J1051.4-3139_daily_bin356.fits outfile=/scratch/kocevski/242777/cmap_HighResolution_331603201_331862401_4FGL_J1051.4-3139_daily_bin356.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.58
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/242777/ft1_filtered_4FGL_J1051.4-3139_daily_bin356.fits evtable="EVENTS" scfile=/scratch/kocevski/242777/ft2_4FGL_J1051.4-3139_daily_bin356.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/242777/Model_4FGL_J1051.4-3139_daily_bin356.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/242777/ft1_filtered_4FGL_J1051.4-3139_daily_bin356.fits.....................!
real 80.72
user 79.12
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    53.960       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    32.276       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.302       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .16582E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2120       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.817       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6845       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2077       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.113       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0162       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0596       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=   7576.426     FROM MIGRAD    STATUS=CONVERGED    376 CALLS     1908 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.105       -.18261E-05** at limit **
   2  Prefactor     53.963        32.082        .10194E-05   -.98568E-05
   3  Prefactor     .10000E-03    5.0098       -.12961E-06** at limit **
   4  norm          .10000E-03    8.0005        .22905E-05** at limit **
   5  norm          32.279        10.900       -.24920E-05   -.70681E-04
   6  Prefactor     17.314        16.742       -.14502E-04   -.42866E-04
   7  Prefactor     .10000E-03    11.393        .17375E-05** at limit **
   8  norm          .10000E-03    4.0327        .57041E-06** at limit **
   9  Prefactor     .10000E-03    6.0036        .65337E-06** at limit **
  10  Prefactor     6.2170        4.8592        .56286E-06   -.24158E-03
  11  Prefactor     11.816        13.716        .31477E-05   -.25379E-04
  12  Prefactor     3.6840        5.8691       -.53620E-06   -.40557E-03
  13  Prefactor     1.2076        13.887       -.59293E-05   -.63952E-03
  14  Prefactor     21.102        41.320       -.12418E-04    .17238E-04
  15  Prefactor     .10000E-03    7.8638       -.23877E-05** at limit **
  16  Prefactor     .10000E-03    129.82       -.10183E-04** at limit **
  17  Prefactor     .10000E-03    4.0526       -.16654E-06** at limit **
  18  Normalizat    1.0163        .25613        .53005E-05   -.59309E-05
  19  Prefactor     1.0596        .11190       -.70100E-07    .32473E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 53.9633
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 32.279
  Prefactor  = 17.3136
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.21704
  Prefactor  = 11.8156
  Prefactor  = 3.68399
  Prefactor  = 1.20763
  Prefactor  = 21.1019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01628
  Prefactor  = 1.05962
 **********
 **   18 **HESSE 
 **********

 FCN=   7576.426     FROM HESSE     STATUS=OK           266 CALLS     2174 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     53.963        32.108        .54603E-04   -1.4237    
   3  Prefactor     .10000E-03    5.0158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    8.0858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          32.279        10.899        .70530E-04   -1.4571    
   6  Prefactor     17.314        16.651        .96287E-04   -1.4876    
   7  Prefactor     .10000E-03    11.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.1988        .34069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.2170        4.8326        .15524E-03   -1.5209    
  11  Prefactor     11.816        13.712        .11654E-03   -1.5020    
  12  Prefactor     3.6840        5.8804        .21041E-03   -1.5324    
  13  Prefactor     1.2076        14.867        .41208E-03   -1.5488    
  14  Prefactor     21.102        41.271        .87170E-04   -1.4789    
  15  Prefactor     .10000E-03    7.8706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    131.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.0566        .17113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0163        .29762        .38368E-03   -.92487    
  19  Prefactor     1.0596        .13080        .17553E-03   -.90768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13574e-09
Minuit parameter uncertainties:
  1  6.4798e-06
  2  32.1184
  3  5.26151e-07
  4  4.56399e-05
  5  10.8994
  6  16.6559
  7  1.73772e-05
  8  9.54309e-05
  9  9.42063e-05
  10  4.8329
  11  13.7156
  12  5.88127
  13  8.47651
  14  41.3271
  15  4.32203e-05
  16  0.000164206
  17  4.74826e-06
  18  0.298104
  19  0.130842
Done.

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

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.182e+01  1.372e+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.060e+00  1.308e-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.016e+00  2.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/242777/likelihoodResults_331603201_331862401_4FGL_J1051.4-3139_daily_bin356.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) = 7576.28969827
delta logL = 0.136774673347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7576.28334528
delta logL = 0.143127662344

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9242       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3001       1.0000          .0000       10.000    
     3 'Normalizat'    .98757       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0694       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=   7576.283     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      261 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9163        175.93        .35610E-02    .24715E-03
   2  Index         3.3019        6.6374        .21499        .10536E-03
   3  Normalizat    .98768        .73139E-01    .87751E-01   -.40194E-04
   4  Prefactor     1.0695        .34139E-01    .38885E-01   -.14560E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.91635
  Index      = 3.30193
  Normalizat = 0.987679
  Prefactor  = 1.06947
 **********
 **   18 **HESSE 
 **********

 FCN=   7576.283     FROM HESSE     STATUS=OK            31 CALLS      292 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9163        17.552        .14244E-03   -1.5145    
   2  Index         3.3019        1.6429        .93325E-02   -.34651    
   3  Normalizat    .98768        .28683        .38855E-03   -.93444    
   4  Prefactor     1.0695        .13156        .17481E-03   -.90448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18869e-11
Minuit parameter uncertainties:
  1  17.5636
  2  1.67825
  3  0.287279
  4  0.1316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242777': 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) = 7576.28334234
delta logL = 0.143130606158

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  7.916e+00  1.756e+01  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  3.302e+00  1.678e+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.069e+00  1.316e-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.877e-01  2.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 162.850 -31.651
Photon Index (Free Index): 3.30 +/- 1.68
Photon Flux (Free Index): 7.86e-08 +/- 7.73e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.54e-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/242777/cmap_HighResolution_331603201_331862401_4FGL_J1051.4-3139_daily_bin356.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-02', comment='SUCCESS', energy_flux2='1.39e-05', dlogl='1.43e-01', photon_flux2='7.86e-08', job_status='DONE', time_completed='2021-09-02 18:13:57.075216', photon_index_error2='1.68', photon_index2='3.30', ts='0.96', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.93e-07', energy_flux_error2='1.54e-05', EG='1.02', time_epoch_completed='1630631637.08', return_code='0', job_id='242777', GAL2='1.07', EG2='0.99', return_code2='0', photon_flux_error2='7.73e-08', ts2='1.30', photon_index='2.72' WHERE bin_id='356' AND source_name='4FGL J1051.4-3139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:13:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 242777: <4FGL_J1051.4-3139_daily_bin356> in cluster <slac> Done

Job <4FGL_J1051.4-3139_daily_bin356> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 18:01:15 2021
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:02:22 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:02:22 2021
Terminated at Thu Sep  2 18:13:59 2021
Results reported at Thu Sep  2 18:13:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.4-3139_daily_bin356 162.85 -31.6507 331603201 331862401 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 :                                   680.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            764 sec.

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

