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


Performing analysis on: 4FGL_J1051.4-3139_daily_bin147
RA = 162.85, Dec = -31.6507
tmin = 277430401, tmax = 277689601
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='241781', job_status='RUN', time_executed='2021-09-02 18:03:19.381385', time_epoch_executed='1630630999.38' WHERE source_name='4FGL J1051.4-3139' and cadence='daily' and bin_id='147'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/241781

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/241781/ft1_4FGL_J1051.4-3139_daily_bin147.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/241781/ft2_4FGL_J1051.4-3139_daily_bin147.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/241781/ft1_4FGL_J1051.4-3139_daily_bin147.fits outfile=/scratch/kocevski/241781/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin147.fits ra=162.85 dec=-31.6507 rad=12.0 tmin=277430401.0 tmax=277689601.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.64
user 3.38
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/241781/ft2_4FGL_J1051.4-3139_daily_bin147.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/241781/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin147.fits evtable="EVENTS" outfile="/scratch/kocevski/241781/ft1_filtered_4FGL_J1051.4-3139_daily_bin147.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.64
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/241781/ft1_filtered_4FGL_J1051.4-3139_daily_bin147.fits" evtable="EVENTS" scfile=/scratch/kocevski/241781/ft2_4FGL_J1051.4-3139_daily_bin147.fits sctable="SC_DATA" outfile=/scratch/kocevski/241781/ltcube_277430401_277689601_4FGL_J1051.4-3139_daily_bin147.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/241781/ft2_4FGL_J1051.4-3139_daily_bin147.fits
.....................!
real 16.99
user 16.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/241781/ft1_filtered_4FGL_J1051.4-3139_daily_bin147.fits evtable="EVENTS" scfile=/scratch/kocevski/241781/ft2_4FGL_J1051.4-3139_daily_bin147.fits sctable="SC_DATA" expcube=/scratch/kocevski/241781/ltcube_277430401_277689601_4FGL_J1051.4-3139_daily_bin147.fits outfile=/scratch/kocevski/241781/expmap_277430401_277689601_4FGL_J1051.4-3139_daily_bin147.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/241781/ltcube_277430401_277689601_4FGL_J1051.4-3139_daily_bin147.fits
.....................!
real 191.79
user 186.69
sys 4.07

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/241781/ft1_filtered_4FGL_J1051.4-3139_daily_bin147.fits scfile=/scratch/kocevski/241781/ft2_4FGL_J1051.4-3139_daily_bin147.fits outfile=/scratch/kocevski/241781/cmap_277430401_277689601_4FGL_J1051.4-3139_daily_bin147.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/241781/ft1_filtered_4FGL_J1051.4-3139_daily_bin147.fits scfile=/scratch/kocevski/241781/ft2_4FGL_J1051.4-3139_daily_bin147.fits outfile=/scratch/kocevski/241781/cmap_HighResolution_277430401_277689601_4FGL_J1051.4-3139_daily_bin147.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/241781/ft1_filtered_4FGL_J1051.4-3139_daily_bin147.fits evtable="EVENTS" scfile=/scratch/kocevski/241781/ft2_4FGL_J1051.4-3139_daily_bin147.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/241781/Model_4FGL_J1051.4-3139_daily_bin147.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/241781/ft1_filtered_4FGL_J1051.4-3139_daily_bin147.fits.....................!
real 67.43
user 66.06
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    62.121       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10919E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.9203       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4021       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9462       1.0000         .10000E-03   10000.    
     8 'norm      '    .38528E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3408       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .57157E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8321       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    126.36       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15134E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.9218       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.7165       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .81943       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=   6133.787     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     1951 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9157        .90032E-07** at limit **
   2  Prefactor     62.106        45.326       -.31218E-06   -.91221E-04
   3  Prefactor     .10000E-03    22.182       -.11935E-06** at limit **
   4  norm          .10000E-03    7.5163        .41326E-07** at limit **
   5  norm          2.9223        8.7576        .71205E-06    .16158E-03
   6  Prefactor     4.3916        17.143       -.75341E-06   -.10228E-03
   7  Prefactor     8.9655        24.542       -.11648E-05   -.12934E-03
   8  norm          .10011E-03    13.442        .67029E-05** at limit **
   9  Prefactor     5.3495        14.427        .52433E-06    .76232E-04
  10  Prefactor     .10001E-03    8.0717       -.40703E-05** at limit **
  11  Prefactor     .10000E-03    13.075        .39352E-06** at limit **
  12  Prefactor     5.8343        7.3293       -.14278E-06    .74291E-04
  13  Prefactor     .10000E-03    11.888        .80108E-06** at limit **
  14  Prefactor     126.29        68.661        .24904E-06   -.53955E-04
  15  Prefactor     .10000E-03    7.6070       -.10890E-05** at limit **
  16  Prefactor     .10000E-03    351.00        .26135E-05** at limit **
  17  Prefactor     9.9198        14.064       -.16918E-06   -.98650E-04
  18  Normalizat    1.7167        .31077        .63440E-05   -.59651E-04
  19  Prefactor     .81945        .12698       -.43366E-05   -.10165E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 62.1059
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.92232
  Prefactor  = 4.39163
  Prefactor  = 8.96555
  norm       = 0.000100109
  Prefactor  = 5.34953
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 5.83428
  Prefactor  = 0.000100001
  Prefactor  = 126.289
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 9.91983
  Normalizat = 1.71669
  Prefactor  = 0.819448
 **********
 **   18 **HESSE 
 **********

 FCN=   6133.787     FROM HESSE     STATUS=OK           268 CALLS     2219 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9214        .15137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     62.106        45.369        .50911E-04   -1.4130    
   3  Prefactor     .10000E-03    22.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.5544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9223        8.7695        .23773E-03   -1.5366    
   6  Prefactor     4.3916        17.015        .19195E-03   -1.5289    
   7  Prefactor     8.9655        25.065        .13400E-03   -1.5109    
   8  norm          .10011E-03    24.456        .25442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.3495        14.417        .17390E-03   -1.5245    
  10  Prefactor     .10001E-03    44.113        .27768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.8343        7.3476        .16630E-03   -1.5225    
  13  Prefactor     .10000E-03    12.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     126.29        68.665        .17906E-03   -1.3456    
  15  Prefactor     .10000E-03    7.7439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    360.45        .40928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.9198        14.065        .12721E-03   -1.5078    
  18  Normalizat    1.7167        .35480        .32744E-03   -.71859    
  19  Prefactor     .81945        .14749        .19789E-03   -.99015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.66189e-09
Minuit parameter uncertainties:
  1  1.28312e-05
  2  45.3941
  3  4.79737e-05
  4  2.51443e-07
  5  8.77337
  6  17.0335
  7  25.0941
  8  0.00326468
  9  14.4262
  10  0.00112007
  11  9.34769e-05
  12  7.34877
  13  0.000210566
  14  68.708
  15  0.000226495
  16  0.00222677
  17  14.0699
  18  0.355329
  19  0.147559
Done.

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

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  9.348e-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.194e-01  1.476e-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.717e+00  3.553e-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: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/241781/likelihoodResults_277430401_277689601_4FGL_J1051.4-3139_daily_bin147.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) = 6133.78770748
delta logL = -0.000361503040949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6133.78734593
delta logL = 4.50645529781e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7376       1.0000          .0000       10.000    
     3 'Normalizat'    1.7166       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81948       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6133.584     FROM MIGRAD    STATUS=FAILED       175 CALLS      329 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29849E-03    .27500E-01    .60893E-03** at limit **
   2  Index        10.0000        5.4295        .50000    ** at limit **
   3  Normalizat    1.6581        .86874E-01    .32743E-03   -.28319E-03
   4  Prefactor     .83762        .36918E-01    .19790E-03   -.11317E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6133.584     FROM SIMPLEX   STATUS=UNCHANGED    151 CALLS      480 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29849E-03    .27500E-01    .73313E-08** at limit **
   2  Index        10.0000        5.4295        .16789E-01** at limit **
   3  Normalizat    1.6581        .86874E-01    .17689E-07   -.28319E-03
   4  Prefactor     .83762        .36918E-01    .22967E-08   -.11317E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6133.584     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      518 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29848E-03    .56946E-03    .25237E-04** at limit **
   2  Index        10.0000        6.9626        .50000    ** at limit **
   3  Normalizat    1.6581        .34794        .65487E-04   -.35616E-03
   4  Prefactor     .83762        .15027        .79158E-05   -.16114E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000298481
  Index      = 10
  Normalizat = 1.65812
  Prefactor  = 0.83762
 **********
 **   18 **HESSE 
 **********

 FCN=   6133.584     FROM HESSE     STATUS=OK            31 CALLS      549 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29848E-03    .54997E-03    .50474E-05   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.8559        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.6581        .34894        .13097E-04   -.73427    
   4  Prefactor     .83762        .15066        .15832E-05   -.98356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.29024e-10
Minuit parameter uncertainties:
  1  0.000549975
  2  0.000162947
  3  0.349457
  4  0.150733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/241781': 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) = 6133.58396363
delta logL = 0.20338234332

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  2.985e-04  5.500e-04  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  1.000e+01  1.629e-04  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.376e-01  1.507e-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.658e+00  3.495e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/241781/cmap_HighResolution_277430401_277689601_4FGL_J1051.4-3139_daily_bin147.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', job_status='DONE', photon_flux_upper_limit='1.53e-07', time_completed='2021-09-02 18:13:57.341593', job_id='241781', GAL2='0.84', fit_tolerance='1e-08', EG2='1.66', EG='1.72', time_epoch_completed='1630631637.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.03e-01', ts2='0.43', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='147' AND source_name='4FGL J1051.4-3139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:13:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 241781: <4FGL_J1051.4-3139_daily_bin147> in cluster <slac> Done

Job <4FGL_J1051.4-3139_daily_bin147> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 17:57:45 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:00:43 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:00:43 2021
Terminated at Thu Sep  2 18:13:57 2021
Results reported at Thu Sep  2 18:13:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.4-3139_daily_bin147 162.85 -31.6507 277430401 277689601 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 :                                   631.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            972 sec.

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

