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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1018
RA = 162.913, Dec = 21.1651
tmin = 503193601, tmax = 503452801
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='256521', job_status='RUN', time_executed='2021-09-02 18:43:15.613236', time_epoch_executed='1630633395.61' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1018'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256521

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256521/ft1_4FGL_J1051.6+2109_daily_bin1018.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256521/ft2_4FGL_J1051.6+2109_daily_bin1018.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256521/ft1_4FGL_J1051.6+2109_daily_bin1018.fits outfile=/scratch/kocevski/256521/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1018.fits ra=162.913 dec=21.1651 rad=12.0 tmin=503193601.0 tmax=503452801.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.11
user 4.88
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256521/ft1_filtered_4FGL_J1051.6+2109_daily_bin1018.fits" evtable="EVENTS" scfile=/scratch/kocevski/256521/ft2_4FGL_J1051.6+2109_daily_bin1018.fits sctable="SC_DATA" outfile=/scratch/kocevski/256521/ltcube_503193601_503452801_4FGL_J1051.6+2109_daily_bin1018.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/256521/ft2_4FGL_J1051.6+2109_daily_bin1018.fits
.....................!
real 15.74
user 15.38
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256521/ft1_filtered_4FGL_J1051.6+2109_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/256521/ft2_4FGL_J1051.6+2109_daily_bin1018.fits sctable="SC_DATA" expcube=/scratch/kocevski/256521/ltcube_503193601_503452801_4FGL_J1051.6+2109_daily_bin1018.fits outfile=/scratch/kocevski/256521/expmap_503193601_503452801_4FGL_J1051.6+2109_daily_bin1018.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/256521/ltcube_503193601_503452801_4FGL_J1051.6+2109_daily_bin1018.fits
.....................!
real 192.02
user 187.52
sys 3.97

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/256521/ft1_filtered_4FGL_J1051.6+2109_daily_bin1018.fits scfile=/scratch/kocevski/256521/ft2_4FGL_J1051.6+2109_daily_bin1018.fits outfile=/scratch/kocevski/256521/cmap_503193601_503452801_4FGL_J1051.6+2109_daily_bin1018.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256521/ft1_filtered_4FGL_J1051.6+2109_daily_bin1018.fits scfile=/scratch/kocevski/256521/ft2_4FGL_J1051.6+2109_daily_bin1018.fits outfile=/scratch/kocevski/256521/cmap_HighResolution_503193601_503452801_4FGL_J1051.6+2109_daily_bin1018.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.56
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9217       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1378       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1015       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4328       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.197       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7660       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11134E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .59066       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3779       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.7294       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .66917       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3815       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=   5851.283     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     1783 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9211        7.6249       -.83110E-07   -.12422E-04
   2  Prefactor     .10000E-03    7.7283        .55295E-08** at limit **
   3  Prefactor     .10000E-03    16.540        .12120E-04** at limit **
   4  Prefactor     2.1375        2.0946        .92940E-08   -.95341E-03
   5  Prefactor     .10000E-03    .70175       -.30627E-07** at limit **
   6  Prefactor     7.1011        6.9785        .11755E-06   -.21923E-03
   7  Prefactor     5.4349        7.7066        .12553E-06   -.26840E-03
   8  Prefactor     .10000E-03    17.184       -.45456E-05** at limit **
   9  Prefactor     14.198        9.9368        .30668E-06    .50046E-04
  10  Prefactor     6.7637        9.8639       -.56421E-06   -.26839E-04
  11  Prefactor     .10001E-03    9.6391        .52049E-06** at limit **
  12  norm          .59067        1.0977       -.40267E-07   -.11912E-03
  13  Prefactor     2.3785        3.5140        .13716E-06    .29918E-04
  14  Prefactor     .10007E-03    6.5514       -.27540E-05** at limit **
  15  norm          .10000E-03    3.7264       -.41417E-07** at limit **
  16  norm          3.7293        8.6350       -.68819E-06   -.43059E-05
  17  Prefactor     .10000E-03    9.4759       -.65205E-07** at limit **
  18  Prefactor     .10000E-03    69.130       -.25666E-05** at limit **
  19  Normalizat    .66919        .16880        .66780E-07    .24880E-03
  20  Prefactor     1.3815        .17733        .15232E-06    .26794E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.92112
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 2.13752
  Prefactor  = 0.0001
  Prefactor  = 7.10106
  Prefactor  = 5.43494
  Prefactor  = 0.0001
  Prefactor  = 14.1984
  Prefactor  = 6.76366
  Prefactor  = 0.000100006
  norm       = 0.590671
  Prefactor  = 2.37845
  Prefactor  = 0.000100066
  norm       = 0.0001
  norm       = 3.72929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.669191
  Prefactor  = 1.38152
 **********
 **   18 **HESSE 
 **********

 FCN=   5851.283     FROM HESSE     STATUS=OK           297 CALLS     2080 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9211        7.6192        .13419E-03   -1.5111    
   2  Prefactor     .10000E-03    7.7294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1375        5.3707        .13356E-02   -1.5416    
   5  Prefactor     .10000E-03    .70916        .62538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.1011        7.1031        .75266E-03   -1.5175    
   7  Prefactor     5.4349        7.6789        .86199E-03   -1.5242    
   8  Prefactor     .10000E-03    17.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.198        9.9036        .10630E-03   -1.4954    
  10  Prefactor     6.7637        9.7748        .15426E-03   -1.5188    
  11  Prefactor     .10001E-03    37.465        .43657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .59067        .94093        .10344E-02   -1.5554    
  13  Prefactor     2.3785        3.4864        .15038E-03   -1.5400    
  14  Prefactor     .10007E-03    17.272        .34797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.7369        .14421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.7293        8.6456        .20909E-03   -1.5322    
  17  Prefactor     .10000E-03    9.5640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    69.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .66919        .19664        .27509E-03   -1.0512    
  20  Prefactor     1.3815        .20693        .22296E-03   -.80914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.56847e-09
Minuit parameter uncertainties:
  1  7.62005
  2  2.2392e-07
  3  0.000410264
  4  5.37186
  5  6.18094e-07
  6  7.10396
  7  7.6803
  8  0.000152392
  9  9.90476
  10  9.77707
  11  0.000967463
  12  0.940955
  13  3.48675
  14  0.00212974
  15  4.48619e-07
  16  8.64845
  17  4.17687e-05
  18  0.000160456
  19  0.196848
  20  0.207058
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  5.435e+00  7.680e+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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.382e+00  2.071e-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:  6.692e-01  1.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.73
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/256521/likelihoodResults_503193601_503452801_4FGL_J1051.6+2109_daily_bin1018.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) = 5851.28299438
delta logL = 0.000253787489783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5851.28290963
delta logL = 0.000338534196089

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5104       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7368       1.0000          .0000       10.000    
     3 'Normalizat'    .67011       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3809       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=   5851.283     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      284 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5170        8.2915        .85580E-03   -.14238E-03
   2  Index         2.7374        1.3268        .14115E-01   -.29877E-04
   3  Normalizat    .67002        .18637        .27493E-03   -.20643E-03
   4  Prefactor     1.3809        .20654        .22300E-03   -.11678E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.517
  Index      = 2.73736
  Normalizat = 0.670016
  Prefactor  = 1.38088
 **********
 **   18 **HESSE 
 **********

 FCN=   5851.283     FROM HESSE     STATUS=OK            27 CALLS      311 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5170        7.9404        .34232E-04   -1.5238    
   2  Index         2.7374        1.2706        .56459E-03   -.46960    
   3  Normalizat    .67002        .18639        .10997E-04   -1.0509    
   4  Prefactor     1.3809        .20652        .44600E-04   -.80933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36373e-10
Minuit parameter uncertainties:
  1  7.94193
  2  1.2885
  3  0.186565
  4  0.206646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256521': 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) = 5851.28290831
delta logL = 0.000339857941071

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  5.517e+00  7.942e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.737e+00  1.289e+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:  1.381e+00  2.066e-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:  6.700e-01  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.73
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/256521/cmap_HighResolution_503193601_503452801_4FGL_J1051.6+2109_daily_bin1018.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.76e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-02 18:53:17.635165', job_id='256521', GAL2='1.38', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1630633997.64', return_code2='0', ts='0.73', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='3.40e-04', ts2='0.74', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='1018' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:53:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 256521: <4FGL_J1051.6+2109_daily_bin1018> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1018 162.913 21.1651 503193601 503452801 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 :                                   595.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   614 sec.
    Turnaround time :                            699 sec.

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

