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


Performing analysis on: 4FGL_J1051.4-3139_daily_bin504
RA = 162.85, Dec = -31.6507
tmin = 369964801, tmax = 370224001
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='242989', job_status='RUN', time_executed='2021-09-02 18:05:42.596155', time_epoch_executed='1630631142.6' WHERE source_name='4FGL J1051.4-3139' and cadence='daily' and bin_id='504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242989

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242989/ft1_4FGL_J1051.4-3139_daily_bin504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242989/ft2_4FGL_J1051.4-3139_daily_bin504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242989/ft1_4FGL_J1051.4-3139_daily_bin504.fits outfile=/scratch/kocevski/242989/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin504.fits ra=162.85 dec=-31.6507 rad=12.0 tmin=369964801.0 tmax=370224001.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 8.12
user 7.43
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242989/ft1_filtered_4FGL_J1051.4-3139_daily_bin504.fits" evtable="EVENTS" scfile=/scratch/kocevski/242989/ft2_4FGL_J1051.4-3139_daily_bin504.fits sctable="SC_DATA" outfile=/scratch/kocevski/242989/ltcube_369964801_370224001_4FGL_J1051.4-3139_daily_bin504.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/242989/ft2_4FGL_J1051.4-3139_daily_bin504.fits
.....................!
real 15.82
user 15.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242989/ft1_filtered_4FGL_J1051.4-3139_daily_bin504.fits evtable="EVENTS" scfile=/scratch/kocevski/242989/ft2_4FGL_J1051.4-3139_daily_bin504.fits sctable="SC_DATA" expcube=/scratch/kocevski/242989/ltcube_369964801_370224001_4FGL_J1051.4-3139_daily_bin504.fits outfile=/scratch/kocevski/242989/expmap_369964801_370224001_4FGL_J1051.4-3139_daily_bin504.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/242989/ltcube_369964801_370224001_4FGL_J1051.4-3139_daily_bin504.fits
.....................!
real 194.69
user 190.10
sys 4.08

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/242989/ft1_filtered_4FGL_J1051.4-3139_daily_bin504.fits scfile=/scratch/kocevski/242989/ft2_4FGL_J1051.4-3139_daily_bin504.fits outfile=/scratch/kocevski/242989/cmap_369964801_370224001_4FGL_J1051.4-3139_daily_bin504.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=162.85 yref=-31.6507 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242989/ft1_filtered_4FGL_J1051.4-3139_daily_bin504.fits scfile=/scratch/kocevski/242989/ft2_4FGL_J1051.4-3139_daily_bin504.fits outfile=/scratch/kocevski/242989/cmap_HighResolution_369964801_370224001_4FGL_J1051.4-3139_daily_bin504.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/242989/ft1_filtered_4FGL_J1051.4-3139_daily_bin504.fits evtable="EVENTS" scfile=/scratch/kocevski/242989/ft2_4FGL_J1051.4-3139_daily_bin504.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/242989/Model_4FGL_J1051.4-3139_daily_bin504.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/242989/ft1_filtered_4FGL_J1051.4-3139_daily_bin504.fits.....................!
real 51.41
user 50.11
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.967       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.783       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.138       1.0000         .10000E-03   10000.    
     4 'norm      '    14.285       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5822       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.483       1.0000         .10000E-03   10000.    
     7 'Prefactor '    63.250       1.0000         .10000E-03   10000.    
     8 'norm      '    .23112E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.158       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7705       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3372       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    48.315       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .80461       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0509       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=   4614.593     FROM MIGRAD    STATUS=CONVERGED    377 CALLS     1893 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.963        18.630       -.13482E-05    .14282E-04
   2  Prefactor     25.783        29.304        .62205E-07   -.57055E-04
   3  Prefactor     22.141        27.686       -.23243E-06   -.27242E-04
   4  norm          14.291        14.572        .47600E-06   -.24901E-03
   5  norm          1.5793        24.361        .15439E-04   -.16939E-03
   6  Prefactor     22.492        22.389        .17146E-05   -.39781E-03
   7  Prefactor     63.323        36.404       -.65106E-05   -.99303E-03
   8  norm          .10001E-03    5.3519        .53829E-05** at limit **
   9  Prefactor     14.157        19.141        .44966E-06   -.18398E-03
  10  Prefactor     .10000E-03    3.4642       -.12646E-06** at limit **
  11  Prefactor     6.7692        18.029        .44714E-05   -.21911E-03
  12  Prefactor     2.3378        6.1467       -.12422E-06   -.90553E-04
  13  Prefactor     .10000E-03    4.3308       -.45105E-07** at limit **
  14  Prefactor     .10000E-03    17.520       -.19106E-05** at limit **
  15  Prefactor     .10000E-03    16.967        .15985E-05** at limit **
  16  Prefactor     48.352        76.254       -.46384E-05    .41552E-04
  17  Prefactor     .10000E-03    9.9381        .34534E-06** at limit **
  18  Normalizat    .80453        .32688       -.10678E-05   -.28490E-03
  19  Prefactor     1.0510        .14193       -.10323E-06   -.57427E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 22.9631
  Prefactor  = 25.783
  Prefactor  = 22.1406
  norm       = 14.2908
  norm       = 1.57933
  Prefactor  = 22.4915
  Prefactor  = 63.3227
  norm       = 0.000100007
  Prefactor  = 14.1571
  Prefactor  = 0.0001
  Prefactor  = 6.76923
  Prefactor  = 2.33784
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.3524
  Prefactor  = 0.0001
  Normalizat = 0.804532
  Prefactor  = 1.05096
 **********
 **   18 **HESSE 
 **********

 FCN=   4614.593     FROM HESSE     STATUS=OK           264 CALLS     2157 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.963        18.598        .83582E-04   -1.4749    
   2  Prefactor     25.783        29.305        .78893E-04   -1.4692    
   3  Prefactor     22.141        27.674        .85130E-04   -1.4767    
   4  norm          14.291        14.591        .10597E-03   -1.4952    
   5  norm          1.5793        25.035        .16880E-02   -1.5457    
   6  Prefactor     22.492        22.195        .84475E-04   -1.4759    
   7  Prefactor     63.323        37.080        .50457E-04   -1.4115    
   8  norm          .10001E-03    11.289        .26872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.157        19.115        .10645E-03   -1.4955    
  10  Prefactor     .10000E-03    3.4816        .12325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.7692        18.026        .15420E-03   -1.5188    
  12  Prefactor     2.3378        6.1246        .25998E-03   -1.5402    
  13  Prefactor     .10000E-03    4.3402        .13806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     48.352        75.928        .57689E-04   -1.4316    
  17  Prefactor     .10000E-03    9.9586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .80453        .37203        .41461E-03   -.99901    
  19  Prefactor     1.0510        .16330        .17090E-03   -.91050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62938e-09
Minuit parameter uncertainties:
  1  18.6027
  2  29.3213
  3  27.6899
  4  14.5943
  5  12.5819
  6  22.203
  7  37.0936
  8  0.000577719
  9  19.1228
  10  9.56803e-06
  11  18.04
  12  6.12623
  13  2.04583e-06
  14  7.88318e-05
  15  0.000120804
  16  76.0804
  17  3.04646e-05
  18  0.373215
  19  0.163375
Done.

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

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  6.769e+00  1.804e+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.051e+00  1.634e-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:  8.045e-01  3.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/242989/likelihoodResults_369964801_370224001_4FGL_J1051.4-3139_daily_bin504.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) = 4613.5935684
delta logL = 0.999241611496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4613.57565164
delta logL = 1.01715837234

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4195       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7342       1.0000          .0000       10.000    
     3 'Normalizat'    .66510       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0914       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=   4613.576     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      281 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4201        67.002        .75438E-04    .23858E-02
   2  Index         4.7343        7.3635        .58155E-02    .28985E-03
   3  Normalizat    .66516        .35935        .45173E-03    .27299E-03
   4  Prefactor     1.0914        .16170        .16789E-03    .50329E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.4201
  Index      = 4.73426
  Normalizat = 0.665162
  Prefactor  = 1.09137
 **********
 **   18 **HESSE 
 **********

 FCN=   4613.576     FROM HESSE     STATUS=OK            23 CALLS      304 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4201        5.8317        .30175E-05   -1.5397    
   2  Index         4.7343        1.6392        .23262E-03   -.53174E-01
   3  Normalizat    .66516        .35820        .18069E-04   -1.0528    
   4  Prefactor     1.0914        .16365        .33578E-04   -.89743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.28695e-10
Minuit parameter uncertainties:
  1  5.83308
  2  1.67018
  3  0.359465
  4  0.16373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242989': 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) = 4613.57565135
delta logL = 1.01715866569

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  2.420e+00  5.833e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  4.734e+00  1.670e+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.091e+00  1.637e-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:  6.652e-01  3.595e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.44
Ra Dec: 162.850 -31.651
Photon Index (Free Index): 4.73 +/- 1.67
Photon Flux (Free Index): 1.57e-07 +/- 1.21e-07
Energy Flux (Free Index): 2.14e-05 +/- 1.68e-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/242989/cmap_HighResolution_369964801_370224001_4FGL_J1051.4-3139_daily_bin504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.82e-02', comment='SUCCESS', energy_flux2='2.14e-05', dlogl='1.02e+00', photon_flux2='1.57e-07', job_status='DONE', time_completed='2021-09-02 18:15:04.362815', photon_index_error2='1.67', photon_index2='4.73', ts='0.17', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='2.30e-07', energy_flux_error2='1.68e-05', EG='0.80', time_epoch_completed='1630631704.36', return_code='0', job_id='242989', GAL2='1.09', EG2='0.67', return_code2='0', photon_flux_error2='1.21e-07', ts2='2.44', photon_index='2.72' WHERE bin_id='504' AND source_name='4FGL J1051.4-3139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:15:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 242989: <4FGL_J1051.4-3139_daily_bin504> in cluster <slac> Done

Job <4FGL_J1051.4-3139_daily_bin504> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 18:01:28 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:03:00 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:03:00 2021
Terminated at Thu Sep  2 18:15:05 2021
Results reported at Thu Sep  2 18:15:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.4-3139_daily_bin504 162.85 -31.6507 369964801 370224001 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 :                                   558.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             234.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            817 sec.

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

