/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 15 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1051.6+2109_daily_bin373
RA = 162.913, Dec = 21.1651
tmin = 336009601, tmax = 336268801
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='251864', job_status='RUN', time_executed='2021-09-02 18:29:17.194941', time_epoch_executed='1630632557.19' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251864

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251864/ft1_4FGL_J1051.6+2109_daily_bin373.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251864/ft2_4FGL_J1051.6+2109_daily_bin373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251864/ft1_4FGL_J1051.6+2109_daily_bin373.fits outfile=/scratch/kocevski/251864/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin373.fits ra=162.913 dec=21.1651 rad=12.0 tmin=336009601.0 tmax=336268801.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.28
user 3.06
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251864/ft1_filtered_4FGL_J1051.6+2109_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/251864/ft2_4FGL_J1051.6+2109_daily_bin373.fits sctable="SC_DATA" expcube=/scratch/kocevski/251864/ltcube_336009601_336268801_4FGL_J1051.6+2109_daily_bin373.fits outfile=/scratch/kocevski/251864/expmap_336009601_336268801_4FGL_J1051.6+2109_daily_bin373.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/251864/ltcube_336009601_336268801_4FGL_J1051.6+2109_daily_bin373.fits
.....................!
real 191.07
user 185.62
sys 4.62

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/251864/ft1_filtered_4FGL_J1051.6+2109_daily_bin373.fits scfile=/scratch/kocevski/251864/ft2_4FGL_J1051.6+2109_daily_bin373.fits outfile=/scratch/kocevski/251864/cmap_336009601_336268801_4FGL_J1051.6+2109_daily_bin373.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251864/ft1_filtered_4FGL_J1051.6+2109_daily_bin373.fits scfile=/scratch/kocevski/251864/ft2_4FGL_J1051.6+2109_daily_bin373.fits outfile=/scratch/kocevski/251864/cmap_HighResolution_336009601_336268801_4FGL_J1051.6+2109_daily_bin373.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36957       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 '    9.0054       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6777       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.924       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.493       1.0000         .10000E-03   10000.    
    12 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    25.961       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1272       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1817       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=   5621.994     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     1765 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37765        6.1352        .59977E-01    .63971E-03
   2  Prefactor     .10000E-03    27.602        .90712E-02** at limit **
   3  Prefactor     .10000E-03    18.586        .90712E-02** at limit **
   4  Prefactor     9.0055        6.5984        .33390E-02   -.28357E-03
   5  Prefactor     .10000E-03    1.1953        .90712E-02** at limit **
   6  Prefactor     .10000E-03    5.5250        .90712E-02** at limit **
   7  Prefactor     5.6784        8.5337        .42145E-02    .30483E-02
   8  Prefactor     .10000E-03    10.467        .90712E-02** at limit **
   9  Prefactor     10.925        9.8608        .30304E-02   -.55137E-04
  10  Prefactor     .10000E-03    3.2877        .90712E-02** at limit **
  11  Prefactor     16.492        17.800        .24656E-02   -.85645E-04
  12  norm          .10000E-03    .67258        .34548E-01** at limit **
  13  Prefactor     .10000E-03    .88075        .90712E-02** at limit **
  14  Prefactor     .10000E-03    4.0503        .90712E-02** at limit **
  15  norm          25.960        14.432        .19655E-02   -.13246E-03
  16  norm          .10000E-03    3.6614        .90712E-02** at limit **
  17  Prefactor     .10000E-03    2.6587        .90712E-02** at limit **
  18  Prefactor     .10000E-03    79.640        .90712E-02** at limit **
  19  Normalizat    1.1272        .18829        .56241E-01   -.28942E-03
  20  Prefactor     1.1817        .19757        .58849E-01   -.32814E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.377649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.00549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.67841
  Prefactor  = 0.0001
  Prefactor  = 10.9245
  Prefactor  = 0.0001
  Prefactor  = 16.4918
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.9605
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.12722
  Prefactor  = 1.18175
 **********
 **   18 **HESSE 
 **********

 FCN=   5621.994     FROM HESSE     STATUS=OK           285 CALLS     2050 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37765        24.251        .35700E-02   -1.5585    
   2  Prefactor     .10000E-03    27.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.0055        6.6036        .13356E-03   -1.5108    
   5  Prefactor     .10000E-03    1.2317        .15993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.5756        .17203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.6784        8.4930        .84289E-03   -1.5231    
   8  Prefactor     .10000E-03    10.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.925        9.8449        .12122E-03   -1.5047    
  10  Prefactor     .10000E-03    3.2924        .13277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.492        17.789        .98622E-04   -1.4896    
  12  norm          .10000E-03    1.1619        .11859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .89044        .68700E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.0920        .14735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          25.960        14.412        .78622E-04   -1.4688    
  16  norm          .10000E-03    3.6692        .14011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.6603        .11940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    80.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1272        .22656        .24870E-03   -.88883    
  20  Prefactor     1.1817        .23872        .26025E-03   -.86895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.8728e-10
Minuit parameter uncertainties:
  1  6.05437
  2  0.000229711
  3  5.50098e-05
  4  6.60415
  5  8.00739e-06
  6  6.37677e-06
  7  8.49481
  8  6.48451e-05
  9  9.84638
  10  4.1927e-06
  11  17.7951
  12  7.35257e-06
  13  2.62632e-06
  14  6.25409e-06
  15  14.4139
  16  1.05068e-05
  17  1.18223e-05
  18  0.000715574
  19  0.226757
  20  0.238936
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  5.678e+00  8.495e+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.182e+00  2.389e-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.127e+00  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.76
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251864/likelihoodResults_336009601_336268801_4FGL_J1051.6+2109_daily_bin373.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) = 5621.41639119
delta logL = 0.577194357282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5621.40802355
delta logL = 0.585561999441

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4499       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8232       1.0000          .0000       10.000    
     3 'Normalizat'    1.1485       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1634       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=   5621.408     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      219 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4514        8.4160        .15945E-05   -.26682E-03
   2  Index         1.8218        .71193        .18185E-04    .21772E-04
   3  Normalizat    1.1485        .18386       -.39869E-06   -.98063E-04
   4  Prefactor     1.1637        .19682        .81948E-07   -.83750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.45143
  Index      = 1.82185
  Normalizat = 1.14852
  Prefactor  = 1.16368
 **********
 **   18 **HESSE 
 **********

 FCN=   5621.408     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4514        8.2377        .15803E-03   -1.5200    
   2  Index         1.8218        .69659        .90083E-02   -.68883    
   3  Normalizat    1.1485        .22073        .24672E-03   -.88209    
   4  Prefactor     1.1637        .23636        .26179E-03   -.87456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64732e-11
Minuit parameter uncertainties:
  1  8.23913
  2  0.700424
  3  0.220909
  4  0.236576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251864': 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) = 5621.40801838
delta logL = 0.585567175244

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  6.451e+00  8.239e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  1.822e+00  7.004e-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:  1.164e+00  2.366e-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.149e+00  2.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.94
Ra Dec: 162.913 21.165
Photon Index (Free Index): 1.82 +/- 0.70
Photon Flux (Free Index): 1.50e-08 +/- 2.18e-08
Energy Flux (Free Index): 1.69e-05 +/- 2.69e-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/251864/cmap_HighResolution_336009601_336268801_4FGL_J1051.6+2109_daily_bin373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', energy_flux2='1.69e-05', dlogl='5.86e-01', photon_flux2='1.50e-08', job_status='DONE', time_completed='2021-09-02 18:39:22.914428', photon_index_error2='0.70', photon_index2='1.82', ts='0.76', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='2.69e-05', EG='1.13', time_epoch_completed='1630633162.91', return_code='0', job_id='251864', GAL2='1.16', EG2='1.15', return_code2='0', photon_flux_error2='2.18e-08', ts2='1.94', photon_index='2.77' WHERE bin_id='373' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:39:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 251864: <4FGL_J1051.6+2109_daily_bin373> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin373> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  2 18:26:36 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:28:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 18:28:11 2021
Terminated at Thu Sep  2 18:39:24 2021
Results reported at Thu Sep  2 18:39:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin373 162.913 21.1651 336009601 336268801 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 :                                   565.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            768 sec.

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

