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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin54
RA = 162.913, Dec = 21.1651
tmin = 253324801, tmax = 253584001
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='250285', job_status='RUN', time_executed='2021-09-02 18:27:38.532749', time_epoch_executed='1630632458.53' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250285

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250285/ft1_4FGL_J1051.6+2109_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250285/ft2_4FGL_J1051.6+2109_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250285/ft1_4FGL_J1051.6+2109_daily_bin54.fits outfile=/scratch/kocevski/250285/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin54.fits ra=162.913 dec=21.1651 rad=12.0 tmin=253324801.0 tmax=253584001.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 1.57
user 1.26
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250285/ft2_4FGL_J1051.6+2109_daily_bin54.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/250285/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin54.fits evtable="EVENTS" outfile="/scratch/kocevski/250285/ft1_filtered_4FGL_J1051.6+2109_daily_bin54.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250285/ft1_filtered_4FGL_J1051.6+2109_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/250285/ft2_4FGL_J1051.6+2109_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/250285/ltcube_253324801_253584001_4FGL_J1051.6+2109_daily_bin54.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/250285/ft2_4FGL_J1051.6+2109_daily_bin54.fits
.....................!
real 16.88
user 16.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250285/ft1_filtered_4FGL_J1051.6+2109_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/250285/ft2_4FGL_J1051.6+2109_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/250285/ltcube_253324801_253584001_4FGL_J1051.6+2109_daily_bin54.fits outfile=/scratch/kocevski/250285/expmap_253324801_253584001_4FGL_J1051.6+2109_daily_bin54.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/250285/ltcube_253324801_253584001_4FGL_J1051.6+2109_daily_bin54.fits
.....................!
real 192.64
user 186.25
sys 5.10

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/250285/ft1_filtered_4FGL_J1051.6+2109_daily_bin54.fits scfile=/scratch/kocevski/250285/ft2_4FGL_J1051.6+2109_daily_bin54.fits outfile=/scratch/kocevski/250285/cmap_253324801_253584001_4FGL_J1051.6+2109_daily_bin54.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250285/ft1_filtered_4FGL_J1051.6+2109_daily_bin54.fits scfile=/scratch/kocevski/250285/ft2_4FGL_J1051.6+2109_daily_bin54.fits outfile=/scratch/kocevski/250285/cmap_HighResolution_253324801_253584001_4FGL_J1051.6+2109_daily_bin54.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .80815       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4577       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2777       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.035       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.320       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18145       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .22364E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4462       1.0000         .10000E-03   10000.    
    18 'Prefactor '    64.661       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .98386       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0670       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=   5925.105     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     2069 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.9951        .20346E-06** at limit **
   2  Prefactor     .10000E-03    9.3170        .16553E-06** at limit **
   3  Prefactor     .10000E-03    25.427       -.82958E-06** at limit **
   4  Prefactor     .81131        4.0539       -.55447E-06   -.91264E-04
   5  Prefactor     1.4576        1.6044       -.32885E-07   -.29609E-03
   6  Prefactor     .10000E-03    2.1302        .84485E-07** at limit **
   7  Prefactor     4.2759        7.4006        .72662E-08   -.42451E-03
   8  Prefactor     .10000E-03    7.0974        .13310E-06** at limit **
   9  Prefactor     11.035        11.057       -.74051E-07   -.14236E-03
  10  Prefactor     .10000E-03    3.5756        .66467E-07** at limit **
  11  Prefactor     15.318        18.130       -.64757E-07   -.55299E-04
  12  norm          .10000E-03    .79377        .43755E-06** at limit **
  13  Prefactor     .17997        1.6945       -.28727E-06   -.19784E-03
  14  Prefactor     .10000E-03    3.8237       -.21960E-07** at limit **
  15  norm          .10000E-03    34.531       -.21684E-04** at limit **
  16  norm          .10000E-03    6.5111        .99087E-07** at limit **
  17  Prefactor     1.4454        3.5602        .23662E-05   -.50357E-03
  18  Prefactor     64.649        46.209        .13430E-05    .75551E-04
  19  Normalizat    .98401        .17017        .12889E-05    .30867E-03
  20  Prefactor     1.0667        .17735       -.16689E-05    .33077E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.811309
  Prefactor  = 1.45756
  Prefactor  = 0.0001
  Prefactor  = 4.27586
  Prefactor  = 0.0001
  Prefactor  = 11.0345
  Prefactor  = 0.0001
  Prefactor  = 15.3185
  norm       = 0.000100001
  Prefactor  = 0.179975
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.44542
  Prefactor  = 64.6488
  Normalizat = 0.984009
  Prefactor  = 1.06674
 **********
 **   18 **HESSE 
 **********

 FCN=   5925.105     FROM HESSE     STATUS=OK           295 CALLS     2364 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.1271        .33600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.3210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .81131        11.674        .27921E-02   -1.5528    
   5  Prefactor     1.4576        1.5853        .96696E-04   -1.5467    
   6  Prefactor     .10000E-03    2.1396        .10970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.2759        7.5084        .97398E-03   -1.5294    
   8  Prefactor     .10000E-03    7.0999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.035        11.025        .60302E-03   -1.5043    
  10  Prefactor     .10000E-03    3.5891        .14210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.318        18.100        .10233E-03   -1.4925    
  12  norm          .10000E-03    1.5884        .13178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .17997        4.2173        .19235E-02   -1.5623    
  14  Prefactor     .10000E-03    3.8626        .14697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    35.142        .37414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.5796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.4454        13.844        .17923E-02   -1.5468    
  18  Prefactor     64.649        46.239        .49907E-04   -1.4098    
  19  Normalizat    .98401        .19676        .23199E-03   -.93568    
  20  Prefactor     1.0667        .20643        .24211E-03   -.90537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3533e-08
Minuit parameter uncertainties:
  1  1.75118e-05
  2  7.26855e-06
  3  0.000207509
  4  6.15622
  5  1.58533
  6  9.98794e-06
  7  7.51005
  8  2.76122e-07
  9  11.0271
  10  8.24957e-06
  11  18.1067
  12  6.35501e-05
  13  1.74207
  14  4.40054e-06
  15  0.000202582
  16  8.0757e-05
  17  8.94885
  18  46.2648
  19  0.196904
  20  0.206585
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  4.276e+00  7.510e+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.067e+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:  9.840e-01  1.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/250285/likelihoodResults_253324801_253584001_4FGL_J1051.6+2109_daily_bin54.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) = 5925.03510373
delta logL = 0.0695903457145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5925.03235126
delta logL = 0.0723428101364

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5925.032     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      281 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0151        7.6629        .17954E-03   -.50657E-06
   2  Index         2.3044        1.0809        .12269E-01   -.72036E-05
   3  Normalizat    .99233        .19063        .23113E-03   -.71174E-04
   4  Prefactor     1.0600        .20591        .24274E-03    .36953E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.01514
  Index      = 2.30436
  Normalizat = 0.992327
  Prefactor  = 1.06002
 **********
 **   18 **HESSE 
 **********

 FCN=   5925.032     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0151        7.6864        .71815E-05   -1.5260    
   2  Index         2.3044        1.0843        .49076E-03   -.56940    
   3  Normalizat    .99233        .19082        .92452E-05   -.93288    
   4  Prefactor     1.0600        .20609        .97094E-05   -.90755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6729e-11
Minuit parameter uncertainties:
  1  7.6879
  2  1.09665
  3  0.19095
  4  0.206241
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250285': 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) = 5925.03235098
delta logL = 0.0723430892849

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  5.015e+00  7.688e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.304e+00  1.097e+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.060e+00  2.062e-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:  9.923e-01  1.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
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/250285/cmap_HighResolution_253324801_253584001_4FGL_J1051.6+2109_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.77e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-02 18:37:49.281997', job_id='250285', GAL2='1.06', fit_tolerance='1e-08', EG2='0.99', EG='0.98', time_epoch_completed='1630633069.28', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='7.23e-02', ts2='0.71', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='54' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:37:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 250285: <4FGL_J1051.6+2109_daily_bin54> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin54> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 18:21:17 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:25:07 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:25:07 2021
Terminated at Thu Sep  2 18:37:50 2021
Results reported at Thu Sep  2 18:37:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin54 162.913 21.1651 253324801 253584001 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 :                                   608.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            993 sec.

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

