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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin475
RA = 162.913, Dec = 21.1651
tmin = 362448001, tmax = 362707201
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='252016', job_status='RUN', time_executed='2021-09-02 18:29:20.799605', time_epoch_executed='1630632560.8' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/252016

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/252016/ft1_4FGL_J1051.6+2109_daily_bin475.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/252016/ft2_4FGL_J1051.6+2109_daily_bin475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/252016/ft1_4FGL_J1051.6+2109_daily_bin475.fits outfile=/scratch/kocevski/252016/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin475.fits ra=162.913 dec=21.1651 rad=12.0 tmin=362448001.0 tmax=362707201.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 5.64
user 5.31
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/252016/ft2_4FGL_J1051.6+2109_daily_bin475.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/252016/ft2_4FGL_J1051.6+2109_daily_bin475.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/252016/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin475.fits evtable="EVENTS" outfile="/scratch/kocevski/252016/ft1_filtered_4FGL_J1051.6+2109_daily_bin475.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.52
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/252016/ft1_filtered_4FGL_J1051.6+2109_daily_bin475.fits" evtable="EVENTS" scfile=/scratch/kocevski/252016/ft2_4FGL_J1051.6+2109_daily_bin475.fits sctable="SC_DATA" outfile=/scratch/kocevski/252016/ltcube_362448001_362707201_4FGL_J1051.6+2109_daily_bin475.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/252016/ft2_4FGL_J1051.6+2109_daily_bin475.fits
.....................!
real 13.55
user 13.08
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/252016/ft1_filtered_4FGL_J1051.6+2109_daily_bin475.fits evtable="EVENTS" scfile=/scratch/kocevski/252016/ft2_4FGL_J1051.6+2109_daily_bin475.fits sctable="SC_DATA" expcube=/scratch/kocevski/252016/ltcube_362448001_362707201_4FGL_J1051.6+2109_daily_bin475.fits outfile=/scratch/kocevski/252016/expmap_362448001_362707201_4FGL_J1051.6+2109_daily_bin475.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/252016/ltcube_362448001_362707201_4FGL_J1051.6+2109_daily_bin475.fits
.....................!
real 192.16
user 186.16
sys 5.19

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J1051.6+2109 @ 162.913 21.1651

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/252016/ft1_filtered_4FGL_J1051.6+2109_daily_bin475.fits scfile=/scratch/kocevski/252016/ft2_4FGL_J1051.6+2109_daily_bin475.fits outfile=/scratch/kocevski/252016/cmap_362448001_362707201_4FGL_J1051.6+2109_daily_bin475.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.913 yref=21.1651 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.51
user 0.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/252016/ft1_filtered_4FGL_J1051.6+2109_daily_bin475.fits scfile=/scratch/kocevski/252016/ft2_4FGL_J1051.6+2109_daily_bin475.fits outfile=/scratch/kocevski/252016/cmap_HighResolution_362448001_362707201_4FGL_J1051.6+2109_daily_bin475.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.913 yref=21.1651 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/252016/ft1_filtered_4FGL_J1051.6+2109_daily_bin475.fits evtable="EVENTS" scfile=/scratch/kocevski/252016/ft2_4FGL_J1051.6+2109_daily_bin475.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/252016/Model_4FGL_J1051.6+2109_daily_bin475.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/252016/ft1_filtered_4FGL_J1051.6+2109_daily_bin475.fits.....................!
real 52.28
user 50.90
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/252016/ft1_filtered_4FGL_J1051.6+2109_daily_bin475.fits', '/scratch/kocevski/252016/ft2_4FGL_J1051.6+2109_daily_bin475.fits', expMap='/scratch/kocevski/252016/expmap_362448001_362707201_4FGL_J1051.6+2109_daily_bin475.fits', expCube='/scratch/kocevski/252016/ltcube_362448001_362707201_4FGL_J1051.6+2109_daily_bin475.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/252016/Model_4FGL_J1051.6+2109_daily_bin475.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1051.6+2109'

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.594e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.771e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/252016/ft1_filtered_4FGL_J1051.6+2109_daily_bin475.fits
Spacecraft file(s): /scratch/kocevski/252016/ft2_4FGL_J1051.6+2109_daily_bin475.fits
Exposure map: /scratch/kocevski/252016/expmap_362448001_362707201_4FGL_J1051.6+2109_daily_bin475.fits
Exposure cube: /scratch/kocevski/252016/ltcube_362448001_362707201_4FGL_J1051.6+2109_daily_bin475.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/252016/Model_4FGL_J1051.6+2109_daily_bin475.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) = 5665.95669459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15975E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.601       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6048       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11280E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.545       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3854       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .47570E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.010       1.0000         .10000E-03   10000.    
    12 'norm      '    .72388       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.0633       1.0000         .10000E-03   10000.    
    16 'norm      '    11.298       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    115.02       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1645       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94618       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5665.955     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     2064 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.4745       -.43062E-06** at limit **
   2  Prefactor     43.610        35.227       -.10268E-05    .44006E-04
   3  Prefactor     .10000E-03    32.765        .13820E-06** at limit **
   4  Prefactor     1.6010        10.319       -.58664E-05    .18735E-03
   5  Prefactor     .10000E-03    2.2003        .87317E-06** at limit **
   6  Prefactor     .10000E-03    3.6867        .11998E-06** at limit **
   7  Prefactor     23.527        12.952        .56674E-06    .34859E-03
   8  Prefactor     7.4366        29.405       -.78468E-05   -.48798E-05
   9  Prefactor     .10000E-03    4.3183        .15476E-06** at limit **
  10  Prefactor     .10000E-03    77.611        .28573E-04** at limit **
  11  Prefactor     10.009        11.905        .75302E-06    .87277E-04
  12  norm          .72196        1.1841       -.84002E-06   -.14005E-02
  13  Prefactor     .10000E-03    2.0944        .77349E-07** at limit **
  14  Prefactor     .10000E-03    5.4012        .15531E-06** at limit **
  15  norm          8.0643        8.4475        .41780E-07    .94146E-04
  16  norm          11.302        15.473       -.61990E-06    .67923E-04
  17  Prefactor     .10000E-03    5.2273       -.38901E-07** at limit **
  18  Prefactor     115.02        69.944       -.21992E-06    .60567E-04
  19  Normalizat    1.1648        .20180        .18582E-05    .13639E-03
  20  Prefactor     .94609        .19216        .93799E-06    .49127E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 43.6101
  Prefactor  = 0.0001
  Prefactor  = 1.60104
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.5272
  Prefactor  = 7.43656
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 10.0093
  norm       = 0.72196
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.0643
  norm       = 11.3023
  Prefactor  = 0.0001
  Prefactor  = 115.018
  Normalizat = 1.16477
  Prefactor  = 0.946087
 **********
 **   18 **HESSE 
 **********

 FCN=   5665.955     FROM HESSE     STATUS=OK           289 CALLS     2353 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.133        .30893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     43.610        35.236        .30357E-03   -1.4386    
   3  Prefactor     .10000E-03    32.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6010        10.455        .33454E-03   -1.5455    
   5  Prefactor     .10000E-03    2.2847        .21795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7374        .14107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.527        12.984        .82550E-04   -1.4737    
   8  Prefactor     7.4366        29.607        .14758E-03   -1.5162    
   9  Prefactor     .10000E-03    4.3195        .15267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    76.428        .43351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.009        11.910        .12665E-03   -1.5075    
  12  norm          .72196        1.1091        .10269E-02   -1.5538    
  13  Prefactor     .10000E-03    2.1246        .10605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.4829        .17073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.0643        8.4361        .14120E-03   -1.5140    
  16  norm          11.302        15.514        .11919E-03   -1.5035    
  17  Prefactor     .10000E-03    5.2426        .16807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     115.02        70.026        .37514E-04   -1.3559    
  19  Normalizat    1.1648        .23558        .24252E-03   -.87698    
  20  Prefactor     .94609        .22820        .27234E-03   -.94549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66586e-09
Minuit parameter uncertainties:
  1  0.00017972
  2  35.2526
  3  2.07599e-05
  4  8.18465
  5  2.43379e-05
  6  2.2649e-05
  7  12.9859
  8  29.6655
  9  2.30947e-05
  10  0.00110512
  11  11.9133
  12  1.1091
  13  1.26718e-05
  14  5.39462e-05
  15  8.43739
  16  15.5197
  17  2.97815e-05
  18  70.0769
  19  0.235793
  20  0.228428
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  2.353e+01  1.299e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.771e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.461e-01  2.284e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.165e+00  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.21
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 1.19e-07 +/- 6.57e-08
Energy Flux (Fixed Index): 2.72e-05 +/- 1.50e-05

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) = 5665.18704279
delta logL = 0.768404466383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5665.18026573
delta logL = 0.775181528086

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.724       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5600       1.0000          .0000       10.000    
     3 'Normalizat'    1.1134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98874       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+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.

 FCN=   5665.180     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      280 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.717        14.831        .56148E-03   -.12738E-03
   2  Index         3.5604        .90897        .49356E-02    .39586E-03
   3  Normalizat    1.1136        .22985        .24703E-03   -.49455E-03
   4  Prefactor     .98864        .23143        .26722E-03   -.40802E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.7167
  Index      = 3.56038
  Normalizat = 1.11356
  Prefactor  = 0.988643
 **********
 **   18 **HESSE 
 **********

 FCN=   5665.180     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.717        12.356        .22459E-04   -1.4995    
   2  Index         3.5604        .75821        .98711E-03   -.29206    
   3  Normalizat    1.1136        .23016        .49405E-04   -.89318    
   4  Prefactor     .98864        .23141        .53444E-04   -.93109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86183e-10
Minuit parameter uncertainties:
  1  12.3582
  2  0.761419
  3  0.230364
  4  0.231638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/252016': 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) = 5665.18026499
delta logL = 0.775182265383

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.272e+01  1.236e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.560e+00  7.614e-01  0.000e+00  1.000e+01 (-1.000e+00)
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.886e-01  2.316e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.114e+00  2.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.00
Ra Dec: 162.913 21.165
Photon Index (Free Index): 3.56 +/- 0.76
Photon Flux (Free Index): 1.61e-07 +/- 7.61e-08
Energy Flux (Free Index): 2.63e-05 +/- 1.26e-05

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/252016/cmap_HighResolution_362448001_362707201_4FGL_J1051.6+2109_daily_bin475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.19e-07', energy_flux2='2.63e-05', photon_flux_error='6.57e-08', dlogl='7.75e-01', energy_flux='2.72e-05', photon_flux2='1.61e-07', job_status='DONE', time_completed='2021-09-02 18:39:32.564052', photon_index_error2='0.76', photon_index2='3.56', ts='5.21', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.26e-05', EG='1.16', time_epoch_completed='1630633172.56', return_code='0', job_id='252016', GAL2='0.99', EG2='1.11', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='7.61e-08', ts2='7.00', photon_index='2.77' WHERE bin_id='475' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:39:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 252016: <4FGL_J1051.6+2109_daily_bin475> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin475> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  2 18:26:48 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:28:41 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:28:41 2021
Terminated at Thu Sep  2 18:39:33 2021
Results reported at Thu Sep  2 18:39:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin475 162.913 21.1651 362448001 362707201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1051.6+2109 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   551.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            765 sec.

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

