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


Performing analysis on: 4FGL_J1051.4-3139_daily_bin664
RA = 162.85, Dec = -31.6507
tmin = 411436801, tmax = 411696001
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='244658', job_status='RUN', time_executed='2021-09-02 18:08:27.476836', time_epoch_executed='1630631307.48' WHERE source_name='4FGL J1051.4-3139' and cadence='daily' and bin_id='664'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/244658

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/244658/ft1_4FGL_J1051.4-3139_daily_bin664.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/244658/ft2_4FGL_J1051.4-3139_daily_bin664.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/244658/ft1_4FGL_J1051.4-3139_daily_bin664.fits outfile=/scratch/kocevski/244658/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin664.fits ra=162.85 dec=-31.6507 rad=12.0 tmin=411436801.0 tmax=411696001.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 6.78
user 6.51
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/244658/ft1_filtered_4FGL_J1051.4-3139_daily_bin664.fits" evtable="EVENTS" scfile=/scratch/kocevski/244658/ft2_4FGL_J1051.4-3139_daily_bin664.fits sctable="SC_DATA" outfile=/scratch/kocevski/244658/ltcube_411436801_411696001_4FGL_J1051.4-3139_daily_bin664.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/244658/ft2_4FGL_J1051.4-3139_daily_bin664.fits
.....................!
real 14.53
user 14.16
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/244658/ft1_filtered_4FGL_J1051.4-3139_daily_bin664.fits evtable="EVENTS" scfile=/scratch/kocevski/244658/ft2_4FGL_J1051.4-3139_daily_bin664.fits sctable="SC_DATA" expcube=/scratch/kocevski/244658/ltcube_411436801_411696001_4FGL_J1051.4-3139_daily_bin664.fits outfile=/scratch/kocevski/244658/expmap_411436801_411696001_4FGL_J1051.4-3139_daily_bin664.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/244658/ltcube_411436801_411696001_4FGL_J1051.4-3139_daily_bin664.fits
.....................!
real 191.31
user 186.01
sys 4.90

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/244658/ft1_filtered_4FGL_J1051.4-3139_daily_bin664.fits scfile=/scratch/kocevski/244658/ft2_4FGL_J1051.4-3139_daily_bin664.fits outfile=/scratch/kocevski/244658/cmap_411436801_411696001_4FGL_J1051.4-3139_daily_bin664.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/244658/ft1_filtered_4FGL_J1051.4-3139_daily_bin664.fits scfile=/scratch/kocevski/244658/ft2_4FGL_J1051.4-3139_daily_bin664.fits outfile=/scratch/kocevski/244658/cmap_HighResolution_411436801_411696001_4FGL_J1051.4-3139_daily_bin664.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/244658/ft1_filtered_4FGL_J1051.4-3139_daily_bin664.fits evtable="EVENTS" scfile=/scratch/kocevski/244658/ft2_4FGL_J1051.4-3139_daily_bin664.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/244658/Model_4FGL_J1051.4-3139_daily_bin664.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/244658/ft1_filtered_4FGL_J1051.4-3139_daily_bin664.fits.....................!
real 55.36
user 53.80
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3654       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.620       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    18.232       1.0000         .10000E-03   10000.    
     5 'norm      '    18.885       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.0778       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.261       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .77236E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0574       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3237       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0330       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=   4834.274     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     1876 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.3670        12.791       -.18800E-05    .36722E-03
   2  Prefactor     15.630        50.307       -.19728E-05   -.28875E-04
   3  Prefactor     .10000E-03    9.9932        .20457E-06** at limit **
   4  norm          18.233        18.040        .29525E-06    .69267E-04
   5  norm          18.885        15.687        .17165E-06    .82882E-04
   6  Prefactor     .10000E-03    13.598       -.12364E-05** at limit **
   7  Prefactor     .10000E-03    32.436        .37727E-05** at limit **
   8  norm          7.0670        6.9614        .59885E-06    .22455E-03
   9  Prefactor     20.267        25.997       -.90935E-07    .78266E-04
  10  Prefactor     .10001E-03    57.633        .17695E-04** at limit **
  11  Prefactor     8.0287        16.527        .20921E-05    .31030E-03
  12  Prefactor     .10000E-03    4.1905       -.23036E-07** at limit **
  13  Prefactor     .10000E-03    5.7310       -.29790E-07** at limit **
  14  Prefactor     .10000E-03    15.509        .15929E-05** at limit **
  15  Prefactor     .10000E-03    4.6837       -.25944E-07** at limit **
  16  Prefactor     .10000E-03    123.66        .37384E-05** at limit **
  17  Prefactor     .10000E-03    23.764       -.29500E-05** at limit **
  18  Normalizat    1.3233        .33315        .58319E-06    .14754E-03
  19  Prefactor     1.0331        .14414        .42886E-06    .55789E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.36698
  Prefactor  = 15.6304
  Prefactor  = 0.0001
  norm       = 18.2329
  norm       = 18.8845
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 7.067
  Prefactor  = 20.2669
  Prefactor  = 0.00010001
  Prefactor  = 8.02867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100003
  Normalizat = 1.32333
  Prefactor  = 1.0331
 **********
 **   18 **HESSE 
 **********

 FCN=   4834.274     FROM HESSE     STATUS=OK           268 CALLS     2144 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.3670        12.853        .65478E-03   -1.5096    
   2  Prefactor     15.630        50.526        .10134E-03   -1.4917    
   3  Prefactor     .10000E-03    10.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          18.233        18.009        .93801E-04   -1.4854    
   5  norm          18.885        15.673        .92165E-04   -1.4839    
   6  Prefactor     .10000E-03    13.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.0670        6.7573        .15079E-03   -1.5176    
   9  Prefactor     20.267        26.069        .88982E-04   -1.4807    
  10  Prefactor     .10001E-03    55.831        .34615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.0287        15.920        .14125E-03   -1.5141    
  12  Prefactor     .10000E-03    4.2256        .13897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.7450        .16255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.6860        .14696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    124.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3233        .39118        .36634E-03   -.82873    
  19  Prefactor     1.0331        .17032        .18718E-03   -.91634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4333e-09
Minuit parameter uncertainties:
  1  12.8565
  2  50.6646
  3  4.55733e-05
  4  18.0142
  5  15.6762
  6  0.000157666
  7  0.000762402
  8  6.75804
  9  26.0836
  10  0.00148594
  11  15.9283
  12  1.53297e-05
  13  1.64418e-05
  14  0.000223424
  15  7.03152e-06
  16  0.00127739
  17  0.000537301
  18  0.392058
  19  0.170412
Done.

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

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  8.029e+00  1.593e+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.033e+00  1.704e-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.323e+00  3.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/244658/likelihoodResults_411436801_411696001_4FGL_J1051.4-3139_daily_bin664.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) = 4834.17250892
delta logL = 0.101855217375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4834.16476125
delta logL = 0.109602885109

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0250       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6930       1.0000          .0000       10.000    
     3 'Normalizat'    1.2884       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0448       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4834.165     FROM MIGRAD    STATUS=FAILED        96 CALLS      286 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0319        428.73        .98608E-03   -.61762E-04
   2  Index         3.6919        6.7613        .11641E-01    .25090E-03
   3  Normalizat    1.2888        .37042        .37047E-03   -.10894E-04
   4  Prefactor     1.0447        .17724        .18624E-03    .37007E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4834.165     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      372 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0319        428.73        .23305E-03   -.61762E-04
   2  Index         3.6919        6.7613        .20937E-02    .25090E-03
   3  Normalizat    1.2888        .37042        .28236E-03   -.10894E-04
   4  Prefactor     1.0447        .17724        .16251E-03    .37007E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4834.165     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      403 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0320        13.535        .39443E-04   -.57646E-06
   2  Index         3.6919        2.4784        .23281E-02   -.16373E-04
   3  Normalizat    1.2888        .38117        .14819E-04   -.93596E-05
   4  Prefactor     1.0447        .17162        .37249E-04    .32029E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.03202
  Index      = 3.69191
  Normalizat = 1.28876
  Prefactor  = 1.04472
 **********
 **   18 **HESSE 
 **********

 FCN=   4834.165     FROM HESSE     STATUS=OK            23 CALLS      426 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0320        12.498        .15777E-05   -1.5306    
   2  Index         3.6919        2.3043        .93126E-04   -.26470    
   3  Normalizat    1.2888        .38065        .29637E-05   -.83902    
   4  Prefactor     1.0447        .17137        .74498E-05   -.91253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9533e-10
Minuit parameter uncertainties:
  1  12.5056
  2  2.40224
  3  0.381477
  4  0.17146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/244658': 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) = 4834.16476052
delta logL = 0.109603609077

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  4.032e+00  1.251e+01  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  3.692e+00  2.402e+00  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.045e+00  1.715e-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.289e+00  3.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
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/244658/cmap_HighResolution_411436801_411696001_4FGL_J1051.4-3139_daily_bin664.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.76e-02', job_status='DONE', photon_flux_upper_limit='2.23e-07', time_completed='2021-09-02 18:18:00.057985', job_id='244658', GAL2='1.04', fit_tolerance='1e-08', EG2='1.29', EG='1.32', time_epoch_completed='1630631880.06', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.10e-01', ts2='0.54', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='664' AND source_name='4FGL J1051.4-3139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:18:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 244658: <4FGL_J1051.4-3139_daily_bin664> in cluster <slac> Done

Job <4FGL_J1051.4-3139_daily_bin664> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 18:06:44 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:08:11 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:08:11 2021
Terminated at Thu Sep  2 18:18:01 2021
Results reported at Thu Sep  2 18:18:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.4-3139_daily_bin664 162.85 -31.6507 411436801 411696001 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 :                                   568.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   589 sec.
    Turnaround time :                            677 sec.

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

