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


Performing analysis on: 4FGL_J1051.4-3139_daily_bin808
RA = 162.85, Dec = -31.6507
tmin = 448761601, tmax = 449020801
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='245833', job_status='RUN', time_executed='2021-09-02 18:13:14.811239', time_epoch_executed='1630631594.81' WHERE source_name='4FGL J1051.4-3139' and cadence='daily' and bin_id='808'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/245833

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/245833/ft1_4FGL_J1051.4-3139_daily_bin808.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/245833/ft2_4FGL_J1051.4-3139_daily_bin808.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/245833/ft1_4FGL_J1051.4-3139_daily_bin808.fits outfile=/scratch/kocevski/245833/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin808.fits ra=162.85 dec=-31.6507 rad=12.0 tmin=448761601.0 tmax=449020801.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 5.79
user 5.54
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/245833/ft1_filtered_4FGL_J1051.4-3139_daily_bin808.fits" evtable="EVENTS" scfile=/scratch/kocevski/245833/ft2_4FGL_J1051.4-3139_daily_bin808.fits sctable="SC_DATA" outfile=/scratch/kocevski/245833/ltcube_448761601_449020801_4FGL_J1051.4-3139_daily_bin808.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/245833/ft2_4FGL_J1051.4-3139_daily_bin808.fits
.....................!
real 14.30
user 13.95
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/245833/ft1_filtered_4FGL_J1051.4-3139_daily_bin808.fits evtable="EVENTS" scfile=/scratch/kocevski/245833/ft2_4FGL_J1051.4-3139_daily_bin808.fits sctable="SC_DATA" expcube=/scratch/kocevski/245833/ltcube_448761601_449020801_4FGL_J1051.4-3139_daily_bin808.fits outfile=/scratch/kocevski/245833/expmap_448761601_449020801_4FGL_J1051.4-3139_daily_bin808.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/245833/ltcube_448761601_449020801_4FGL_J1051.4-3139_daily_bin808.fits
.....................!
real 191.28
user 186.56
sys 4.17

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/245833/ft1_filtered_4FGL_J1051.4-3139_daily_bin808.fits scfile=/scratch/kocevski/245833/ft2_4FGL_J1051.4-3139_daily_bin808.fits outfile=/scratch/kocevski/245833/cmap_448761601_449020801_4FGL_J1051.4-3139_daily_bin808.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/245833/ft1_filtered_4FGL_J1051.4-3139_daily_bin808.fits evtable="EVENTS" scfile=/scratch/kocevski/245833/ft2_4FGL_J1051.4-3139_daily_bin808.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/245833/Model_4FGL_J1051.4-3139_daily_bin808.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/245833/ft1_filtered_4FGL_J1051.4-3139_daily_bin808.fits.....................!
real 73.37
user 71.97
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.684       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .27974E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    14.478       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4752       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.3183       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3274       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .51687       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11120E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6735       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0280       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93742       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=   7329.224     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     1887 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.688        8.8439       -.18172E-06   -.24021E-03
   2  Prefactor     .10000E-03    9.3053        .27625E-05** at limit **
   3  Prefactor     .10000E-03    6.9399       -.55164E-06** at limit **
   4  norm          .10198E-03    5.2355        .25406E-05** at limit **
   5  norm          14.485        9.8464       -.20842E-05   -.10037E-02
   6  Prefactor     9.4661        11.901        .66670E-05    .19170E-03
   7  Prefactor     .10000E-03    6.8068       -.13478E-06** at limit **
   8  norm          3.3182        3.2556       -.45450E-06   -.62968E-03
   9  Prefactor     .10000E-03    6.9631       -.74678E-06** at limit **
  10  Prefactor     5.3278        3.5704       -.28471E-06   -.25047E-03
  11  Prefactor     .10000E-03    2.7063        .10916E-07** at limit **
  12  Prefactor     .50786        2.7082       -.73122E-06    .46991E-04
  13  Prefactor     .10000E-03    4.9158        .39375E-05** at limit **
  14  Prefactor     .10000E-03    147.40       -.11796E-03** at limit **
  15  Prefactor     4.6823        12.088       -.63019E-05    .66949E-03
  16  Prefactor     .10000E-03    12.099       -.26455E-05** at limit **
  17  Prefactor     .10000E-03    4.8975       -.36845E-05** at limit **
  18  Normalizat    1.0280        .21598        .16993E-05    .18002E-03
  19  Prefactor     .93740        .98056E-01   -.12050E-06    .41138E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.6875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000101981
  norm       = 14.4847
  Prefactor  = 9.4661
  Prefactor  = 0.0001
  norm       = 3.31818
  Prefactor  = 0.0001
  Prefactor  = 5.32779
  Prefactor  = 0.0001
  Prefactor  = 0.507858
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.68231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02803
  Prefactor  = 0.937405
 **********
 **   18 **HESSE 
 **********

 FCN=   7329.224     FROM HESSE     STATUS=OK           270 CALLS     2157 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.688        8.8336        .11247E-03   -1.4995    
   2  Prefactor     .10000E-03    9.3188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.9595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10198E-03    86.792        .35614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          14.485        9.4400        .10526E-03   -1.4947    
   6  Prefactor     9.4661        11.916        .13019E-03   -1.5093    
   7  Prefactor     .10000E-03    6.8218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.3182        3.2419        .14442E-03   -1.5344    
   9  Prefactor     .10000E-03    6.9876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.3278        3.5677        .12528E-03   -1.5246    
  11  Prefactor     .10000E-03    2.7158        .13751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .50786        15.071        .26352E-02   -1.5565    
  13  Prefactor     .10000E-03    4.9982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    145.81        .41382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6823        11.897        .18616E-03   -1.5275    
  16  Prefactor     .10000E-03    12.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.9465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0280        .25789        .33100E-03   -.92097    
  19  Prefactor     .93740        .11746        .16498E-03   -.94846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26824e-08
Minuit parameter uncertainties:
  1  8.8345
  2  3.06334e-05
  3  1.66193e-05
  4  0.0262608
  5  9.44093
  6  11.9194
  7  2.13323e-06
  8  3.24203
  9  6.15396e-05
  10  3.56787
  11  1.31965e-07
  12  5.53411
  13  2.35169e-05
  14  0.000129258
  15  11.9026
  16  4.77442e-05
  17  3.62865e-05
  18  0.258202
  19  0.117493
Done.

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

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  1.320e-07  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.374e-01  1.175e-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.028e+00  2.582e-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: 6.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/245833/likelihoodResults_448761601_449020801_4FGL_J1051.4-3139_daily_bin808.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) = 7329.22533899
delta logL = -0.00175231372305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7329.22358666
delta logL = 1.52995198732e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7093       1.0000          .0000       10.000    
     3 'Normalizat'    1.0280       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93741       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=   7329.224     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      249 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.031        .13776E-01** at limit **
   2  Index         2.2233        5.8976        .50000        .51161E-06
   3  Normalizat    1.0280        .16439E-01    .33100E-03    .15652E-03
   4  Prefactor     .93740        .79136E-02    .16498E-03    .34213E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22326
  Normalizat = 1.02803
  Prefactor  = 0.937405
 **********
 **   18 **HESSE 
 **********

 FCN=   7329.224     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    290.78        .14252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2233        5.1672        .50000       -.58878    
   3  Normalizat    1.0280        .61384E-01    .13240E-04   -.92097    
   4  Prefactor     .93740        .29551E-01    .32996E-04   -.94846    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59065e-08
Minuit parameter uncertainties:
  1  0.0003715
  2  1541.11
  3  0.0613879
  4  0.0295517
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/245833': 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): 102
logL (Free Index) = 7329.22358541
delta logL = 1.2634027371e-06

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  3.715e-04  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.223e+00  1.541e+03  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.374e-01  2.955e-02  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.028e+00  6.139e-02  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/245833/cmap_HighResolution_448761601_449020801_4FGL_J1051.4-3139_daily_bin808.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-03', job_status='DONE', photon_flux_upper_limit='6.38e-08', time_completed='2021-09-02 18:24:33.542048', job_id='245833', GAL2='0.94', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630632273.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='808' AND source_name='4FGL J1051.4-3139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:24:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 245833: <4FGL_J1051.4-3139_daily_bin808> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.4-3139_daily_bin808 162.85 -31.6507 448761601 449020801 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 :                                   675.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            810 sec.

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

