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


Performing analysis on: 4FGL_J1051.4-3139_daily_bin304
RA = 162.85, Dec = -31.6507
tmin = 318124801, tmax = 318384001
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='242702', job_status='RUN', time_executed='2021-09-02 18:02:23.657951', time_epoch_executed='1630630943.66' WHERE source_name='4FGL J1051.4-3139' and cadence='daily' and bin_id='304'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242702

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242702/ft1_4FGL_J1051.4-3139_daily_bin304.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242702/ft2_4FGL_J1051.4-3139_daily_bin304.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242702/ft1_4FGL_J1051.4-3139_daily_bin304.fits outfile=/scratch/kocevski/242702/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin304.fits ra=162.85 dec=-31.6507 rad=12.0 tmin=318124801.0 tmax=318384001.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.37
user 3.14
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242702/ft1_filtered_4FGL_J1051.4-3139_daily_bin304.fits" evtable="EVENTS" scfile=/scratch/kocevski/242702/ft2_4FGL_J1051.4-3139_daily_bin304.fits sctable="SC_DATA" outfile=/scratch/kocevski/242702/ltcube_318124801_318384001_4FGL_J1051.4-3139_daily_bin304.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/242702/ft2_4FGL_J1051.4-3139_daily_bin304.fits
.....................!
real 13.91
user 13.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242702/ft1_filtered_4FGL_J1051.4-3139_daily_bin304.fits evtable="EVENTS" scfile=/scratch/kocevski/242702/ft2_4FGL_J1051.4-3139_daily_bin304.fits sctable="SC_DATA" expcube=/scratch/kocevski/242702/ltcube_318124801_318384001_4FGL_J1051.4-3139_daily_bin304.fits outfile=/scratch/kocevski/242702/expmap_318124801_318384001_4FGL_J1051.4-3139_daily_bin304.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/242702/ltcube_318124801_318384001_4FGL_J1051.4-3139_daily_bin304.fits
.....................!
real 191.75
user 186.18
sys 5.18

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/242702/ft1_filtered_4FGL_J1051.4-3139_daily_bin304.fits scfile=/scratch/kocevski/242702/ft2_4FGL_J1051.4-3139_daily_bin304.fits outfile=/scratch/kocevski/242702/cmap_318124801_318384001_4FGL_J1051.4-3139_daily_bin304.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242702/ft1_filtered_4FGL_J1051.4-3139_daily_bin304.fits scfile=/scratch/kocevski/242702/ft2_4FGL_J1051.4-3139_daily_bin304.fits outfile=/scratch/kocevski/242702/cmap_HighResolution_318124801_318384001_4FGL_J1051.4-3139_daily_bin304.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/242702/ft1_filtered_4FGL_J1051.4-3139_daily_bin304.fits evtable="EVENTS" scfile=/scratch/kocevski/242702/ft2_4FGL_J1051.4-3139_daily_bin304.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/242702/Model_4FGL_J1051.4-3139_daily_bin304.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/242702/ft1_filtered_4FGL_J1051.4-3139_daily_bin304.fits.....................!
real 65.29
user 63.75
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.474       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    23.057       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.959       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8771       1.0000         .10000E-03   10000.    
     8 'norm      '    1.2485       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0434       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3990       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7382       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5765       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .43035       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2534       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=   6359.253     FROM MIGRAD    STATUS=CONVERGED    367 CALLS     2249 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.473        13.643        .16574E-05   -.50882E-04
   2  Prefactor     .10000E-03    20.230       -.13267E-05** at limit **
   3  Prefactor     .10000E-03    5.6269       -.83051E-07** at limit **
   4  norm          .10000E-03    28.903       -.18956E-05** at limit **
   5  norm          23.052        12.100       -.40287E-06   -.60093E-04
   6  Prefactor     18.963        21.499       -.57503E-06   -.89716E-04
   7  Prefactor     1.9089        64.553        .44096E-05    .54267E-05
   8  norm          1.2465        4.8032        .39583E-05   -.22540E-03
   9  Prefactor     3.0413        42.680       -.23638E-05   -.54241E-04
  10  Prefactor     .10000E-03    5.1021        .99995E-06** at limit **
  11  Prefactor     .10000E-03    9.5422        .52649E-06** at limit **
  12  Prefactor     2.3994        6.9372        .54282E-06   -.57228E-04
  13  Prefactor     7.7366        9.0241        .16551E-06    .36078E-05
  14  Prefactor     .10000E-03    22.861        .37880E-05** at limit **
  15  Prefactor     1.5746        12.066        .12153E-05   -.22556E-04
  16  Prefactor     .10000E-03    23.220        .41436E-05** at limit **
  17  Prefactor     .10000E-03    19.242       -.37708E-05** at limit **
  18  Normalizat    .43055        .32004       -.20740E-05   -.11501E-03
  19  Prefactor     1.2533        .14062       -.17481E-06   -.12548E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.4726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 23.0515
  Prefactor  = 18.9626
  Prefactor  = 1.90888
  norm       = 1.24649
  Prefactor  = 3.0413
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.39939
  Prefactor  = 7.73664
  Prefactor  = 0.0001
  Prefactor  = 1.57464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.430546
  Prefactor  = 1.25326
 **********
 **   18 **HESSE 
 **********

 FCN=   6359.253     FROM HESSE     STATUS=OK           270 CALLS     2519 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.473        13.690        .61901E-03   -1.5061    
   2  Prefactor     .10000E-03    20.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.6313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    29.700        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          23.052        11.972        .83418E-04   -1.4747    
   6  Prefactor     18.963        21.068        .91986E-04   -1.4837    
   7  Prefactor     1.9089        65.069        .30390E-03   -1.5432    
   8  norm          1.2465        4.8275        .28635E-03   -1.5485    
   9  Prefactor     3.0413        40.427        .23258E-03   -1.5359    
  10  Prefactor     .10000E-03    5.1401        .34796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.6240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3994        6.8441        .26437E-03   -1.5398    
  13  Prefactor     7.7366        8.9953        .14415E-03   -1.5152    
  14  Prefactor     .10000E-03    23.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5746        11.996        .33839E-03   -1.5457    
  16  Prefactor     .10000E-03    23.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .43055        .30703        .53377E-03   -1.1575    
  19  Prefactor     1.2533        .13932        .15596E-03   -.84708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10455e-10
Minuit parameter uncertainties:
  1  13.6937
  2  5.69799e-05
  3  2.72373e-06
  4  9.61944e-05
  5  11.9735
  6  21.0765
  7  22.3156
  8  4.82901
  9  22.1946
  10  0.00010776
  11  3.10728e-05
  12  6.84636
  13  8.99691
  14  0.000187124
  15  8.69436
  16  0.000215433
  17  0.000113655
  18  0.308246
  19  0.139361
Done.

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

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  3.107e-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:  1.253e+00  1.394e-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:  4.305e-01  3.082e-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.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/242702/likelihoodResults_318124801_318384001_4FGL_J1051.4-3139_daily_bin304.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) = 6359.25335734
delta logL = -0.000495211618727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6359.25286402
delta logL = -1.89140882867e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11589E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7026       1.0000          .0000       10.000    
     3 'Normalizat'    .43014       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2534       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=   6359.253     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      241 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10063E-03    151.43        .18142E-02** at limit **
   2  Index         2.6589        8.6705        .50000        .82698E-05
   3  Normalizat    .43055        .24434E-01    .53379E-03    .11584E-03
   4  Prefactor     1.2533        .11820E-01    .15596E-03    .32714E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010063
  Index      = 2.65887
  Normalizat = 0.43055
  Prefactor  = 1.25326
 **********
 **   18 **HESSE 
 **********

 FCN=   6359.253     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10063E-03    627.17        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6589        5.5395        .50000       -.48728    
   3  Normalizat    .43055        .53313E-01    .21352E-04   -1.1575    
   4  Prefactor     1.2533        .25793E-01    .31192E-04   -.84708    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11777e-08
Minuit parameter uncertainties:
  1  0.0401763
  2  1063.26
  3  0.0533197
  4  0.0257928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242702': 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) = 6359.25286203
delta logL = 9.83482095762e-08

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.006e-04  4.018e-02  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.659e+00  1.063e+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:  1.253e+00  2.579e-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:  4.306e-01  5.332e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/242702/cmap_HighResolution_318124801_318384001_4FGL_J1051.4-3139_daily_bin304.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.55e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-09-02 18:12:58.704919', job_id='242702', GAL2='1.25', fit_tolerance='1e-08', EG2='0.43', EG='0.43', time_epoch_completed='1630631578.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='9.83e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='304' AND source_name='4FGL J1051.4-3139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:12:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 242702: <4FGL_J1051.4-3139_daily_bin304> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.4-3139_daily_bin304 162.85 -31.6507 318124801 318384001 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 :                                   633.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            709 sec.

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

