/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 32 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 = 7421
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1051.6+2109_daily_bin406
RA = 162.913, Dec = 21.1651
tmin = 344563201, tmax = 344822401
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='251913', job_status='RUN', time_executed='2021-09-02 18:29:20.134561', time_epoch_executed='1630632560.13' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='406'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251913

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251913/ft1_4FGL_J1051.6+2109_daily_bin406.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251913/ft2_4FGL_J1051.6+2109_daily_bin406.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251913/ft1_4FGL_J1051.6+2109_daily_bin406.fits outfile=/scratch/kocevski/251913/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin406.fits ra=162.913 dec=21.1651 rad=12.0 tmin=344563201.0 tmax=344822401.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.43
user 3.20
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251913/ft1_filtered_4FGL_J1051.6+2109_daily_bin406.fits" evtable="EVENTS" scfile=/scratch/kocevski/251913/ft2_4FGL_J1051.6+2109_daily_bin406.fits sctable="SC_DATA" outfile=/scratch/kocevski/251913/ltcube_344563201_344822401_4FGL_J1051.6+2109_daily_bin406.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/251913/ft2_4FGL_J1051.6+2109_daily_bin406.fits
.....................!
real 15.39
user 14.88
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251913/ft1_filtered_4FGL_J1051.6+2109_daily_bin406.fits evtable="EVENTS" scfile=/scratch/kocevski/251913/ft2_4FGL_J1051.6+2109_daily_bin406.fits sctable="SC_DATA" expcube=/scratch/kocevski/251913/ltcube_344563201_344822401_4FGL_J1051.6+2109_daily_bin406.fits outfile=/scratch/kocevski/251913/expmap_344563201_344822401_4FGL_J1051.6+2109_daily_bin406.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/251913/ltcube_344563201_344822401_4FGL_J1051.6+2109_daily_bin406.fits
.....................!
real 190.60
user 185.43
sys 4.66

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/251913/ft1_filtered_4FGL_J1051.6+2109_daily_bin406.fits scfile=/scratch/kocevski/251913/ft2_4FGL_J1051.6+2109_daily_bin406.fits outfile=/scratch/kocevski/251913/cmap_344563201_344822401_4FGL_J1051.6+2109_daily_bin406.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/251913/ft1_filtered_4FGL_J1051.6+2109_daily_bin406.fits scfile=/scratch/kocevski/251913/ft2_4FGL_J1051.6+2109_daily_bin406.fits outfile=/scratch/kocevski/251913/cmap_HighResolution_344563201_344822401_4FGL_J1051.6+2109_daily_bin406.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/251913/ft1_filtered_4FGL_J1051.6+2109_daily_bin406.fits evtable="EVENTS" scfile=/scratch/kocevski/251913/ft2_4FGL_J1051.6+2109_daily_bin406.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/251913/Model_4FGL_J1051.6+2109_daily_bin406.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/251913/ft1_filtered_4FGL_J1051.6+2109_daily_bin406.fits.....................!
real 61.37
user 59.95
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4403       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6926       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.642       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1206       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.413       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8720       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0424       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.380       1.0000         .10000E-03   10000.    
    16 'norm      '    15.787       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.906       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .56975       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.5057       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=   6878.842     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     2034 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4408        7.0354       -.13379E-06   -.15289E-03
   2  Prefactor     4.6946        43.795        .40234E-05   -.21863E-04
   3  Prefactor     .10000E-03    37.300        .40910E-07** at limit **
   4  Prefactor     11.640        7.8363       -.64176E-06   -.19732E-03
   5  Prefactor     .10000E-03    1.1554       -.23211E-08** at limit **
   6  Prefactor     .10003E-03    3.2988        .10655E-05** at limit **
   7  Prefactor     5.1284        13.999        .12265E-04    .91325E-04
   8  Prefactor     .10000E-03    8.7570       -.90807E-06** at limit **
   9  Prefactor     19.399        18.715       -.97189E-05   -.49370E-04
  10  Prefactor     .10000E-03    16.492        .55816E-05** at limit **
  11  Prefactor     .10000E-03    14.167       -.77373E-05** at limit **
  12  norm          2.8721        1.4931       -.35363E-07   -.61478E-03
  13  Prefactor     3.0393        3.3916       -.22053E-06   -.98528E-03
  14  Prefactor     .10000E-03    2.1476        .34208E-07** at limit **
  15  norm          14.380        10.912       -.52423E-06   -.70472E-03
  16  norm          15.787        11.661        .23721E-06   -.43699E-04
  17  Prefactor     .10000E-03    6.6253       -.63513E-07** at limit **
  18  Prefactor     27.905        44.659       -.69141E-06   -.70381E-05
  19  Normalizat    .56994        .17776       -.97820E-06   -.17827E-03
  20  Prefactor     1.5055        .18093        .55866E-06   -.24773E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.4408
  Prefactor  = 4.69456
  Prefactor  = 0.0001
  Prefactor  = 11.6401
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  Prefactor  = 5.12842
  Prefactor  = 0.0001
  Prefactor  = 19.3989
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.8721
  Prefactor  = 3.03933
  Prefactor  = 0.0001
  norm       = 14.3804
  norm       = 15.7871
  Prefactor  = 0.0001
  Prefactor  = 27.9052
  Normalizat = 0.569944
  Prefactor  = 1.50547
 **********
 **   18 **HESSE 
 **********

 FCN=   6878.842     FROM HESSE     STATUS=OK           295 CALLS     2329 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4408        7.0330        .15815E-03   -1.5200    
   2  Prefactor     4.6946        43.619        .18577E-03   -1.5275    
   3  Prefactor     .10000E-03    37.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.640        7.8348        .11741E-03   -1.5025    
   5  Prefactor     .10000E-03    1.1715        .86834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10003E-03    11.042        .28859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.1284        13.771        .17767E-03   -1.5255    
   8  Prefactor     .10000E-03    8.7585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.399        18.360        .90905E-04   -1.4827    
  10  Prefactor     .10000E-03    16.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8721        1.4868        .69195E-04   -1.5369    
  13  Prefactor     3.0393        3.3861        .14945E-03   -1.5359    
  14  Prefactor     .10000E-03    2.1523        .11869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.380        10.983        .52811E-03   -1.4949    
  16  norm          15.787        11.668        .10080E-03   -1.4913    
  17  Prefactor     .10000E-03    6.6751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.905        44.658        .75839E-04   -1.4651    
  19  Normalizat    .56994        .20344        .31699E-03   -1.0928    
  20  Prefactor     1.5055        .21035        .22630E-03   -.77387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20635e-09
Minuit parameter uncertainties:
  1  7.03393
  2  28.6471
  3  2.15786e-06
  4  7.83545
  5  3.6239e-06
  6  0.00107487
  7  13.7791
  8  9.25032e-07
  9  18.365
  10  3.1282e-05
  11  0.000182883
  12  1.48684
  13  3.38626
  14  8.49681e-07
  15  10.9841
  16  11.6698
  17  2.70852e-06
  18  44.7112
  19  0.20371
  20  0.210471
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.505e+00  2.105e-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:  5.699e-01  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/251913/likelihoodResults_344563201_344822401_4FGL_J1051.6+2109_daily_bin406.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) = 6878.60362933
delta logL = 0.238106137645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6878.59445595
delta logL = 0.247279517691

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0123       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7631       1.0000          .0000       10.000    
     3 'Normalizat'    .54052       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5273       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=   6878.594     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      284 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0130        17.483        .16199E-03    .12774E-02
   2  Index         3.7630        3.0857        .99834E-02    .19999E-03
   3  Normalizat    .54047        .19593        .32495E-03    .60943E-03
   4  Prefactor     1.5273        .21128        .22493E-03    .64600E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.01303
  Index      = 3.76305
  Normalizat = 0.54047
  Prefactor  = 1.52732
 **********
 **   18 **HESSE 
 **********

 FCN=   6878.594     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0130        7.5290        .64798E-05   -1.5361    
   2  Index         3.7630        1.6946        .39934E-03   -.24999    
   3  Normalizat    .54047        .19620        .12998E-04   -1.1057    
   4  Prefactor     1.5273        .21118        .44986E-04   -.76777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27597e-09
Minuit parameter uncertainties:
  1  7.53139
  2  1.73124
  3  0.196455
  4  0.211304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251913': 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) = 6878.5944559
delta logL = 0.247279567128

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  3.013e+00  7.531e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.763e+00  1.731e+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.527e+00  2.113e-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:  5.405e-01  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
Ra Dec: 162.913 21.165

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/251913/cmap_HighResolution_344563201_344822401_4FGL_J1051.6+2109_daily_bin406.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', job_status='DONE', photon_flux_upper_limit='1.31e-07', time_completed='2021-09-02 18:40:58.290975', job_id='251913', GAL2='1.53', fit_tolerance='1e-08', EG2='0.54', EG='0.57', time_epoch_completed='1630633258.29', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='1.51', dlogl='2.47e-01', ts2='0.83', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='406' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:40:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 251913: <4FGL_J1051.6+2109_daily_bin406> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin406 162.913 21.1651 344563201 344822401 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 :                                   647.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            860 sec.

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

