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


Performing analysis on: 4FGL_J1051.4-3139_daily_bin1015
RA = 162.85, Dec = -31.6507
tmin = 502416001, tmax = 502675201
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='246138', job_status='RUN', time_executed='2021-09-02 18:13:33.277199', time_epoch_executed='1630631613.28' WHERE source_name='4FGL J1051.4-3139' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/246138

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/246138/ft1_4FGL_J1051.4-3139_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/246138/ft2_4FGL_J1051.4-3139_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/246138/ft1_4FGL_J1051.4-3139_daily_bin1015.fits outfile=/scratch/kocevski/246138/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin1015.fits ra=162.85 dec=-31.6507 rad=12.0 tmin=502416001.0 tmax=502675201.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.56
user 3.29
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/246138/ft1_filtered_4FGL_J1051.4-3139_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/246138/ft2_4FGL_J1051.4-3139_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/246138/ltcube_502416001_502675201_4FGL_J1051.4-3139_daily_bin1015.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/246138/ft2_4FGL_J1051.4-3139_daily_bin1015.fits
.....................!
real 16.53
user 16.12
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/246138/ft1_filtered_4FGL_J1051.4-3139_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/246138/ft2_4FGL_J1051.4-3139_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/246138/ltcube_502416001_502675201_4FGL_J1051.4-3139_daily_bin1015.fits outfile=/scratch/kocevski/246138/expmap_502416001_502675201_4FGL_J1051.4-3139_daily_bin1015.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/246138/ltcube_502416001_502675201_4FGL_J1051.4-3139_daily_bin1015.fits
.....................!
real 190.79
user 185.62
sys 4.68

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/246138/ft1_filtered_4FGL_J1051.4-3139_daily_bin1015.fits scfile=/scratch/kocevski/246138/ft2_4FGL_J1051.4-3139_daily_bin1015.fits outfile=/scratch/kocevski/246138/cmap_502416001_502675201_4FGL_J1051.4-3139_daily_bin1015.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/246138/ft1_filtered_4FGL_J1051.4-3139_daily_bin1015.fits scfile=/scratch/kocevski/246138/ft2_4FGL_J1051.4-3139_daily_bin1015.fits outfile=/scratch/kocevski/246138/cmap_HighResolution_502416001_502675201_4FGL_J1051.4-3139_daily_bin1015.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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/246138/ft1_filtered_4FGL_J1051.4-3139_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/246138/ft2_4FGL_J1051.4-3139_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/246138/Model_4FGL_J1051.4-3139_daily_bin1015.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/246138/ft1_filtered_4FGL_J1051.4-3139_daily_bin1015.fits.....................!
real 70.13
user 68.51
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.915       1.0000         .10000E-03   10000.    
     4 'norm      '    92.444       1.0000         .10000E-03   10000.    
     5 'norm      '    .15968E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.773       1.0000         .10000E-03   10000.    
     8 'norm      '    1.2111       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4996       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0728       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.040       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11152       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .53280E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.058       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.9156       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .70096       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0719       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=   6643.760     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     2306 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.4367        .18142E-02** at limit **
   2  Prefactor     .10000E-03    99.877        .18142E-02** at limit **
   3  Prefactor     19.908        15.617        .89752E-04    .17769E-03
   4  norm          92.489        21.439        .41797E-04    .93502E-03
   5  norm          .10016E-03    14.348        .61620E-01** at limit **
   6  Prefactor     .10000E-03    10.526        .18142E-02** at limit **
   7  Prefactor     15.810        38.274        .10085E-03   -.11724E-04
   8  norm          1.2095        11.121        .30112E-03   -.49308E-04
   9  Prefactor     7.4884        18.139        .14645E-03    .14439E-04
  10  Prefactor     2.0674        5.7588        .13060E-02   -.44890E-03
  11  Prefactor     13.042        12.419        .11093E-03    .19883E-03
  12  Prefactor     .19903        41.001        .34880E-02   -.54208E-03
  13  Prefactor     .10091E-03    12.482        .65828E-01** at limit **
  14  Prefactor     .10000E-03    51.639        .18142E-02** at limit **
  15  Prefactor     13.058        13.289        .11085E-03   -.28779E-03
  16  Prefactor     .10000E-03    15.985        .18142E-02** at limit **
  17  Prefactor     9.9223        14.629        .12725E-03   -.39220E-04
  18  Normalizat    .70037        .29850        .42888E-03    .13686E-03
  19  Prefactor     1.0721        .13209        .16646E-03    .68878E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 19.9079
  norm       = 92.4886
  norm       = 0.000100162
  Prefactor  = 0.000100001
  Prefactor  = 15.8103
  norm       = 1.20954
  Prefactor  = 7.48836
  Prefactor  = 2.06738
  Prefactor  = 13.0424
  Prefactor  = 0.199028
  Prefactor  = 0.00010091
  Prefactor  = 0.0001
  Prefactor  = 13.0581
  Prefactor  = 0.0001
  Prefactor  = 9.9223
  Normalizat = 0.700372
  Prefactor  = 1.07206
 **********
 **   18 **HESSE 
 **********

 FCN=   6643.760     FROM HESSE     STATUS=OK           272 CALLS     2578 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.4384        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    99.939        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.908        15.616        .17950E-04   -1.4815    
   4  norm          92.489        21.400        .83594E-05   -1.3782    
   5  norm          .10016E-03    11.275        .72051E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.527        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.810        37.888        .40340E-05   -1.4913    
   8  norm          1.2095        10.919        .12045E-04   -1.5488    
   9  Prefactor     7.4884        18.116        .58579E-05   -1.5161    
  10  Prefactor     2.0674        5.7203        .52239E-04   -1.5420    
  11  Prefactor     13.042        12.396        .44370E-05   -1.4986    
  12  Prefactor     .19903        41.050        .13952E-03   -1.5619    
  13  Prefactor     .10091E-03    10.526        .73767E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    51.648        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.058        13.288        .44339E-05   -1.4985    
  16  Prefactor     .10000E-03    15.986        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.9223        14.624        .50902E-05   -1.5078    
  18  Normalizat    .70037        .29658        .17155E-04   -1.0388    
  19  Prefactor     1.0721        .13202        .33292E-04   -.90365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47803e-09
Minuit parameter uncertainties:
  1  1.99227e-05
  2  0.000680389
  3  15.6191
  4  21.4019
  5  0.00270143
  6  0.000174865
  7  37.9457
  8  7.26989
  9  18.1296
  10  5.72184
  11  12.3983
  12  5.7192
  13  0.00619085
  14  8.43507e-05
  15  13.2906
  16  1.03919e-05
  17  14.6294
  18  0.297262
  19  0.132062
Done.

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

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.304e+01  1.240e+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.072e+00  1.321e-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:  7.004e-01  2.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.99
Ra Dec: 162.850 -31.651
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 6.62e-08 +/- 6.29e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 1.50e-05

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

Saving results to:
/scratch/kocevski/246138/likelihoodResults_502416001_502675201_4FGL_J1051.4-3139_daily_bin1015.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) = 6643.22846776
delta logL = 0.531178751917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6643.20761269
delta logL = 0.552033820782

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.200       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0187       1.0000          .0000       10.000    
     3 'Normalizat'    .73523       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0605       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=   6643.208     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      241 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.204        14.716        .10273E-03   -.27754E-03
   2  Index         2.0188        .60052        .85274E-02   -.17667E-03
   3  Normalizat    .73514        .27330        .41942E-03   -.37257E-03
   4  Prefactor     1.0605        .12919        .16722E-03   -.77758E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2038
  Index      = 2.01884
  Normalizat = 0.735143
  Prefactor  = 1.06051
 **********
 **   18 **HESSE 
 **********

 FCN=   6643.208     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.204        14.908        .20546E-04   -1.4928    
   2  Index         2.0188        .60840        .17055E-02   -.63880    
   3  Normalizat    .73514        .27349        .16777E-04   -1.0252    
   4  Prefactor     1.0605        .12925        .33443E-04   -.90739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29157e-10
Minuit parameter uncertainties:
  1  14.9112
  2  0.61075
  3  0.274003
  4  0.129291
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/246138': 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) = 6643.2076126
delta logL = 0.552033909211

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.520e+01  1.491e+01  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.019e+00  6.108e-01  0.000e+00  1.000e+01 (-1.000e+00)
296        Scale:  5.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.061e+00  1.293e-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:  7.351e-01  2.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.08
Ra Dec: 162.850 -31.651
Photon Index (Free Index): 2.02 +/- 0.61
Photon Flux (Free Index): 4.13e-08 +/- 5.00e-08
Energy Flux (Free Index): 2.72e-05 +/- 2.99e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/246138/cmap_HighResolution_502416001_502675201_4FGL_J1051.4-3139_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.55e-02', comment='SUCCESS', photon_flux='6.62e-08', energy_flux2='2.72e-05', photon_flux_error='6.29e-08', dlogl='5.52e-01', energy_flux='1.57e-05', photon_flux2='4.13e-08', job_status='DONE', time_completed='2021-09-02 18:24:46.874976', photon_index_error2='0.61', photon_index2='2.02', ts='1.99', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.96e-07', energy_flux_error2='2.99e-05', EG='0.70', time_epoch_completed='1630632286.88', return_code='0', job_id='246138', GAL2='1.06', EG2='0.74', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='5.00e-08', ts2='3.08', photon_index='2.72' WHERE bin_id='1015' AND source_name='4FGL J1051.4-3139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:24:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 246138: <4FGL_J1051.4-3139_daily_bin1015> in cluster <slac> Done

Job <4FGL_J1051.4-3139_daily_bin1015> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 18:11:24 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:12:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 18:12:32 2021
Terminated at Thu Sep  2 18:24:47 2021
Results reported at Thu Sep  2 18:24:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.4-3139_daily_bin1015 162.85 -31.6507 502416001 502675201 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 :                                   667.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            803 sec.

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

