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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1012
RA = 162.913, Dec = 21.1651
tmin = 501638401, tmax = 501897601
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='256512', job_status='RUN', time_executed='2021-09-02 18:43:10.858994', time_epoch_executed='1630633390.86' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256512

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256512/ft1_4FGL_J1051.6+2109_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256512/ft2_4FGL_J1051.6+2109_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256512/ft1_4FGL_J1051.6+2109_daily_bin1012.fits outfile=/scratch/kocevski/256512/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1012.fits ra=162.913 dec=21.1651 rad=12.0 tmin=501638401.0 tmax=501897601.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.60
user 3.33
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/256512/ft2_4FGL_J1051.6+2109_daily_bin1012.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/256512/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1012.fits evtable="EVENTS" outfile="/scratch/kocevski/256512/ft1_filtered_4FGL_J1051.6+2109_daily_bin1012.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.55
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256512/ft1_filtered_4FGL_J1051.6+2109_daily_bin1012.fits" evtable="EVENTS" scfile=/scratch/kocevski/256512/ft2_4FGL_J1051.6+2109_daily_bin1012.fits sctable="SC_DATA" outfile=/scratch/kocevski/256512/ltcube_501638401_501897601_4FGL_J1051.6+2109_daily_bin1012.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/256512/ft2_4FGL_J1051.6+2109_daily_bin1012.fits
.....................!
real 17.82
user 17.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256512/ft1_filtered_4FGL_J1051.6+2109_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/256512/ft2_4FGL_J1051.6+2109_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/256512/ltcube_501638401_501897601_4FGL_J1051.6+2109_daily_bin1012.fits outfile=/scratch/kocevski/256512/expmap_501638401_501897601_4FGL_J1051.6+2109_daily_bin1012.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/256512/ltcube_501638401_501897601_4FGL_J1051.6+2109_daily_bin1012.fits
.....................!
real 194.54
user 188.72
sys 5.12

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/256512/ft1_filtered_4FGL_J1051.6+2109_daily_bin1012.fits scfile=/scratch/kocevski/256512/ft2_4FGL_J1051.6+2109_daily_bin1012.fits outfile=/scratch/kocevski/256512/cmap_501638401_501897601_4FGL_J1051.6+2109_daily_bin1012.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256512/ft1_filtered_4FGL_J1051.6+2109_daily_bin1012.fits scfile=/scratch/kocevski/256512/ft2_4FGL_J1051.6+2109_daily_bin1012.fits outfile=/scratch/kocevski/256512/cmap_HighResolution_501638401_501897601_4FGL_J1051.6+2109_daily_bin1012.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.58
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/256512/ft1_filtered_4FGL_J1051.6+2109_daily_bin1012.fits', '/scratch/kocevski/256512/ft2_4FGL_J1051.6+2109_daily_bin1012.fits', expMap='/scratch/kocevski/256512/expmap_501638401_501897601_4FGL_J1051.6+2109_daily_bin1012.fits', expCube='/scratch/kocevski/256512/ltcube_501638401_501897601_4FGL_J1051.6+2109_daily_bin1012.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/256512/Model_4FGL_J1051.6+2109_daily_bin1012.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/256512/ft1_filtered_4FGL_J1051.6+2109_daily_bin1012.fits
Spacecraft file(s): /scratch/kocevski/256512/ft2_4FGL_J1051.6+2109_daily_bin1012.fits
Exposure map: /scratch/kocevski/256512/expmap_501638401_501897601_4FGL_J1051.6+2109_daily_bin1012.fits
Exposure cube: /scratch/kocevski/256512/ltcube_501638401_501897601_4FGL_J1051.6+2109_daily_bin1012.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/256512/Model_4FGL_J1051.6+2109_daily_bin1012.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) = 5739.28478406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.387       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.224       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.803       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4348       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9945       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .92661       1.0000         .10000E-03   10000.    
    15 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.5217       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.239       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0899       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .81692       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=   5739.169     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1748 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.386        7.7723        .49590E-07   -.75084E-05
   2  Prefactor     .10000E-03    16.850        .79684E-07** at limit **
   3  Prefactor     .10000E-03    37.179        .11644E-06** at limit **
   4  Prefactor     16.220        8.3371        .53452E-07   -.23430E-04
   5  Prefactor     .10000E-03    .89652        .19892E-07** at limit **
   6  Prefactor     .10000E-03    3.8206        .11282E-06** at limit **
   7  Prefactor     .10000E-03    6.2766        .14629E-06** at limit **
   8  Prefactor     16.788        24.006       -.14922E-06   -.80572E-04
   9  Prefactor     .10000E-03    6.4337        .63623E-07** at limit **
  10  Prefactor     .10000E-03    3.9537        .79985E-08** at limit **
  11  Prefactor     .10000E-03    4.4181        .15478E-07** at limit **
  12  norm          1.4343        1.2861        .67809E-07    .17931E-04
  13  Prefactor     1.9939        1.9234        .43580E-07   -.16434E-04
  14  Prefactor     .92479        9.1345        .42637E-05   -.27052E-04
  15  norm          .10000E-03    3.6412       -.16868E-06** at limit **
  16  norm          9.5171        10.208        .47663E-07   -.66117E-05
  17  Prefactor     .10000E-03    3.4683       -.12449E-06** at limit **
  18  Prefactor     43.215        37.572       -.37693E-06   -.13092E-03
  19  Normalizat    1.0904        .17074        .27848E-06   -.14833E-03
  20  Prefactor     .81642        .17531       -.10828E-05   -.81896E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.3864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.43433
  Prefactor  = 1.9939
  Prefactor  = 0.92479
  norm       = 0.0001
  norm       = 9.51706
  Prefactor  = 0.0001
  Prefactor  = 43.2152
  Normalizat = 1.09036
  Prefactor  = 0.816416
 **********
 **   18 **HESSE 
 **********

 FCN=   5739.169     FROM HESSE     STATUS=OK           289 CALLS     2037 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.386        7.7727        .10211E-03   -1.4923    
   2  Prefactor     .10000E-03    16.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    37.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.220        8.3799        .99436E-04   -1.4902    
   5  Prefactor     .10000E-03    .90945        .69935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8831        .14455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.4142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.788        23.997        .97706E-04   -1.4888    
   9  Prefactor     .10000E-03    6.5119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.9657        .14708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.4378        .15550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4343        1.2752        .77694E-04   -1.5468    
  13  Prefactor     1.9939        1.9185        .99479E-04   -1.5426    
  14  Prefactor     .92479        9.1756        .43007E-03   -1.5516    
  15  norm          .10000E-03    3.6486        .14116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.5171        10.232        .12987E-03   -1.5091    
  17  Prefactor     .10000E-03    3.4787        .13786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     43.215        37.558        .30483E-03   -1.4392    
  19  Normalizat    1.0904        .19616        .21702E-03   -.90062    
  20  Prefactor     .81642        .20022        .26301E-03   -.99126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.56794e-11
Minuit parameter uncertainties:
  1  7.77324
  2  9.54184e-06
  3  4.23416e-05
  4  8.38047
  5  5.63723e-08
  6  3.42181e-06
  7  8.53047e-06
  8  24.0103
  9  3.0415e-06
  10  1.53615e-06
  11  2.06694e-06
  12  1.2752
  13  1.91853
  14  5.82684
  15  2.57887e-06
  16  10.2342
  17  9.66015e-06
  18  37.5782
  19  0.196291
  20  0.200394
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  8.530e-06  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:  8.164e-01  2.004e-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.090e+00  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 7.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/256512/likelihoodResults_501638401_501897601_4FGL_J1051.6+2109_daily_bin1012.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) = 5739.17001915
delta logL = -0.000743096559745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5739.1692761
delta logL = -4.38485585619e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7716       1.0000          .0000       10.000    
     3 'Normalizat'    1.0904       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81642       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.

 FCN=   5739.169     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      200 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    96.638        .90712E-02** at limit **
   2  Index         2.7720        8.4911        .50000       -.74012E-06
   3  Normalizat    1.0904        .16234        .38406E-01    .24764E-04
   4  Prefactor     .81642        .17267        .43931E-01    .19261E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.77203
  Normalizat = 1.09036
  Prefactor  = 0.816416
 **********
 **   18 **HESSE 
 **********

 FCN=   5739.169     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7720        6.3703        .50000       -.46184    
   3  Normalizat    1.0904        .18471        .21702E-03   -.90062    
   4  Prefactor     .81642        .19740        .26301E-03   -.99126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29601e-11
Minuit parameter uncertainties:
  1  5.06181e-05
  2  5.46636
  3  0.184818
  4  0.197574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256512': 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) = 5739.16927606
delta logL = 1.17324816529e-10

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  5.062e-05  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.772e+00  5.466e+00  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:  8.164e-01  1.976e-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.090e+00  1.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 162.913 21.165

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/256512/cmap_HighResolution_501638401_501897601_4FGL_J1051.6+2109_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.69e-03', job_status='DONE', photon_flux_upper_limit='7.19e-08', time_completed='2021-09-02 18:53:02.896091', job_id='256512', GAL2='0.82', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630633982.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.17e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='1012' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:53:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 256512: <4FGL_J1051.6+2109_daily_bin1012> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1012> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 18:41:38 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:42:57 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:42:57 2021
Terminated at Thu Sep  2 18:53:03 2021
Results reported at Thu Sep  2 18:53:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1012 162.913 21.1651 501638401 501897601 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 :                                   588.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   606 sec.
    Turnaround time :                            685 sec.

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

