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


Performing analysis on: 4FGL_J1051.4-3139_daily_bin392
RA = 162.85, Dec = -31.6507
tmin = 340934401, tmax = 341193601
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='242830', job_status='RUN', time_executed='2021-09-02 18:04:57.571315', time_epoch_executed='1630631097.57' WHERE source_name='4FGL J1051.4-3139' and cadence='daily' and bin_id='392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242830

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242830/ft1_4FGL_J1051.4-3139_daily_bin392.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242830/ft2_4FGL_J1051.4-3139_daily_bin392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242830/ft1_4FGL_J1051.4-3139_daily_bin392.fits outfile=/scratch/kocevski/242830/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin392.fits ra=162.85 dec=-31.6507 rad=12.0 tmin=340934401.0 tmax=341193601.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.41
user 3.16
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242830/ft1_filtered_4FGL_J1051.4-3139_daily_bin392.fits" evtable="EVENTS" scfile=/scratch/kocevski/242830/ft2_4FGL_J1051.4-3139_daily_bin392.fits sctable="SC_DATA" outfile=/scratch/kocevski/242830/ltcube_340934401_341193601_4FGL_J1051.4-3139_daily_bin392.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/242830/ft2_4FGL_J1051.4-3139_daily_bin392.fits
.....................!
real 14.91
user 14.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242830/ft1_filtered_4FGL_J1051.4-3139_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/242830/ft2_4FGL_J1051.4-3139_daily_bin392.fits sctable="SC_DATA" expcube=/scratch/kocevski/242830/ltcube_340934401_341193601_4FGL_J1051.4-3139_daily_bin392.fits outfile=/scratch/kocevski/242830/expmap_340934401_341193601_4FGL_J1051.4-3139_daily_bin392.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/242830/ltcube_340934401_341193601_4FGL_J1051.4-3139_daily_bin392.fits
.....................!
real 191.37
user 186.79
sys 4.14

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/242830/ft1_filtered_4FGL_J1051.4-3139_daily_bin392.fits scfile=/scratch/kocevski/242830/ft2_4FGL_J1051.4-3139_daily_bin392.fits outfile=/scratch/kocevski/242830/cmap_340934401_341193601_4FGL_J1051.4-3139_daily_bin392.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.57
user 0.42
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242830/ft1_filtered_4FGL_J1051.4-3139_daily_bin392.fits scfile=/scratch/kocevski/242830/ft2_4FGL_J1051.4-3139_daily_bin392.fits outfile=/scratch/kocevski/242830/cmap_HighResolution_340934401_341193601_4FGL_J1051.4-3139_daily_bin392.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/242830/ft1_filtered_4FGL_J1051.4-3139_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/242830/ft2_4FGL_J1051.4-3139_daily_bin392.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/242830/Model_4FGL_J1051.4-3139_daily_bin392.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/242830/ft1_filtered_4FGL_J1051.4-3139_daily_bin392.fits.....................!
real 80.09
user 77.75
sys 1.51

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.162       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9960       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.195       1.0000         .10000E-03   10000.    
     4 'norm      '    .11347E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .15795       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.060       1.0000         .10000E-03   10000.    
     8 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.6480       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7147       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    135.22       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.335       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0029       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2623       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88486       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=   7949.728     FROM MIGRAD    STATUS=CONVERGED    392 CALLS     1904 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.169        9.6470        .52927E-05    .85102E-05
   2  Prefactor     6.0606        37.206        .50299E-04    .29222E-05
   3  Prefactor     30.194        17.627        .21791E-05    .10294E-04
   4  norm          .10000E-03    12.817       -.17444E-05** at limit **
   5  norm          .42530E-01    4.2654       -.12956E-05   -.14785E-03
   6  Prefactor     .10000E-03    7.5355        .68307E-05** at limit **
   7  Prefactor     14.068        14.890       -.16710E-05   -.53764E-05
   8  norm          .10000E-03    2.3600        .16362E-06** at limit **
   9  Prefactor     9.6389        16.428        .85930E-06   -.15595E-03
  10  Prefactor     4.7137        5.1358       -.49851E-06   -.56711E-03
  11  Prefactor     .10000E-03    4.5501        .28184E-06** at limit **
  12  Prefactor     .10000E-03    1.3921        .14829E-06** at limit **
  13  Prefactor     .10000E-03    2.8797       -.26253E-07** at limit **
  14  Prefactor     135.21        53.004       -.38501E-05    .54420E-04
  15  Prefactor     .10000E-03    7.5148       -.68893E-05** at limit **
  16  Prefactor     25.354        46.523        .13715E-04   -.11718E-04
  17  Prefactor     3.9995        11.946        .33413E-05   -.13227E-03
  18  Normalizat    1.2623        .22859       -.45289E-05    .10238E-03
  19  Prefactor     .88500        .10124       -.75586E-06    .69996E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 13.1694
  Prefactor  = 6.06056
  Prefactor  = 30.1937
  norm       = 0.000100004
  norm       = 0.0425301
  Prefactor  = 0.0001
  Prefactor  = 14.0677
  norm       = 0.0001
  Prefactor  = 9.63892
  Prefactor  = 4.71368
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 135.213
  Prefactor  = 0.0001
  Prefactor  = 25.354
  Prefactor  = 3.99955
  Normalizat = 1.26229
  Prefactor  = 0.884997
 **********
 **   18 **HESSE 
 **********

 FCN=   7949.728     FROM HESSE     STATUS=OK           280 CALLS     2184 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.169        9.6493        .11041E-03   -1.4982    
   2  Prefactor     6.0606        37.104        .16398E-03   -1.5216    
   3  Prefactor     30.194        17.616        .72914E-04   -1.4608    
   4  norm          .10000E-03    13.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .42530E-01    10.059        .55670E-01   -1.5667    
   6  Prefactor     .10000E-03    7.5686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.068        14.840        .10682E-03   -1.4958    
   8  norm          .10000E-03    2.4139        .26679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.6389        16.473        .12901E-03   -1.5087    
  10  Prefactor     4.7137        5.1278        .18532E-03   -1.5274    
  11  Prefactor     .10000E-03    4.5724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.3958        .10272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8871        .14775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     135.21        53.026        .17317E-03   -1.3377    
  15  Prefactor     .10000E-03    7.5421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.354        46.502        .79586E-04   -1.4700    
  17  Prefactor     3.9995        11.911        .20157E-03   -1.5308    
  18  Normalizat    1.2623        .27282        .33394E-03   -.84699    
  19  Prefactor     .88500        .12132        .18120E-03   -.96667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.31046e-10
Minuit parameter uncertainties:
  1  9.65048
  2  30.0188
  3  17.6187
  4  0.000441748
  5  1.30685
  6  7.20298e-06
  7  14.8443
  8  2.15222e-05
  9  16.4806
  10  5.12826
  11  3.26893e-05
  12  6.76968e-06
  13  6.475e-06
  14  53.045
  15  7.9994e-05
  16  46.5681
  17  11.9179
  18  0.273134
  19  0.121362
Done.

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

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  3.269e-05  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:  8.850e-01  1.214e-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.262e+00  2.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.850 -31.651
Photon Flux Upper Limit: 8.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/242830/likelihoodResults_340934401_341193601_4FGL_J1051.4-3139_daily_bin392.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) = 7949.7295261
delta logL = -0.00104272528097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7949.72848338
delta logL = -7.16045178706e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7106       1.0000          .0000       10.000    
     3 'Normalizat'    1.2623       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88501       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=   7949.728     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      250 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    367.67        .18142E-02** at limit **
   2  Index         2.5209        5.8658        .50000       -.13233E-07
   3  Normalizat    1.2623        .55823E-01    .33394E-03    .10206E-03
   4  Prefactor     .88500        .26038E-01    .18120E-03    .19726E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.52092
  Normalizat = 1.26229
  Prefactor  = 0.884998
 **********
 **   18 **HESSE 
 **********

 FCN=   7949.728     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1112.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5209        8.2819        .50000       -.51878    
   3  Normalizat    1.2623        .23513        .13358E-04   -.84699    
   4  Prefactor     .88500        .10970        .36239E-04   -.96667    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.61471e-09
Minuit parameter uncertainties:
  1  0.000704391
  2  2449.02
  3  0.235328
  4  0.109727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242830': 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) = 7949.72848314
delta logL = 2.37469066633e-07

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  7.044e-04  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.521e+00  2.449e+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:  8.850e-01  1.097e-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.262e+00  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 162.850 -31.651

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/242830/cmap_HighResolution_340934401_341193601_4FGL_J1051.4-3139_daily_bin392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.76e-03', job_status='DONE', photon_flux_upper_limit='8.58e-08', time_completed='2021-09-02 18:16:38.968197', job_id='242830', GAL2='0.88', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630631798.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='392' AND source_name='4FGL J1051.4-3139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:16:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 242830: <4FGL_J1051.4-3139_daily_bin392> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.4-3139_daily_bin392 162.85 -31.6507 340934401 341193601 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 :                                   698.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            921 sec.

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

