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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin232
RA = 162.913, Dec = 21.1651
tmin = 299462401, tmax = 299721601
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='251658', job_status='RUN', time_executed='2021-09-02 18:29:18.714976', time_epoch_executed='1630632558.72' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='232'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251658

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251658/ft1_4FGL_J1051.6+2109_daily_bin232.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251658/ft2_4FGL_J1051.6+2109_daily_bin232.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251658/ft1_4FGL_J1051.6+2109_daily_bin232.fits outfile=/scratch/kocevski/251658/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin232.fits ra=162.913 dec=21.1651 rad=12.0 tmin=299462401.0 tmax=299721601.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.23
user 3.02
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251658/ft1_filtered_4FGL_J1051.6+2109_daily_bin232.fits" evtable="EVENTS" scfile=/scratch/kocevski/251658/ft2_4FGL_J1051.6+2109_daily_bin232.fits sctable="SC_DATA" outfile=/scratch/kocevski/251658/ltcube_299462401_299721601_4FGL_J1051.6+2109_daily_bin232.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/251658/ft2_4FGL_J1051.6+2109_daily_bin232.fits
.....................!
real 14.76
user 14.35
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251658/ft1_filtered_4FGL_J1051.6+2109_daily_bin232.fits evtable="EVENTS" scfile=/scratch/kocevski/251658/ft2_4FGL_J1051.6+2109_daily_bin232.fits sctable="SC_DATA" expcube=/scratch/kocevski/251658/ltcube_299462401_299721601_4FGL_J1051.6+2109_daily_bin232.fits outfile=/scratch/kocevski/251658/expmap_299462401_299721601_4FGL_J1051.6+2109_daily_bin232.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/251658/ltcube_299462401_299721601_4FGL_J1051.6+2109_daily_bin232.fits
.....................!
real 191.26
user 186.01
sys 4.37

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/251658/ft1_filtered_4FGL_J1051.6+2109_daily_bin232.fits scfile=/scratch/kocevski/251658/ft2_4FGL_J1051.6+2109_daily_bin232.fits outfile=/scratch/kocevski/251658/cmap_299462401_299721601_4FGL_J1051.6+2109_daily_bin232.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.56
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.006       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 '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2908       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2984       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0781       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0993       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.780       1.0000         .10000E-03   10000.    
    12 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9227       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.957       1.0000         .10000E-03   10000.    
    15 'norm      '    9.8768       1.0000         .10000E-03   10000.    
    16 'norm      '    .19789E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15513E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3082       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .82208       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=   5412.831     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2099 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.007        9.1767        .50750E-06   -.23440E-04
   2  Prefactor     .10000E-03    18.044       -.74063E-07** at limit **
   3  Prefactor     .10000E-03    27.353        .13814E-05** at limit **
   4  Prefactor     .10000E-03    6.9255        .54655E-07** at limit **
   5  Prefactor     3.2910        2.4725        .80150E-07   -.28870E-03
   6  Prefactor     6.2990        6.2381       -.81461E-07   -.13363E-03
   7  Prefactor     .10000E-03    8.4963       -.22460E-07** at limit **
   8  Prefactor     .10000E-03    7.5291       -.45722E-08** at limit **
   9  Prefactor     5.0765        10.722       -.88617E-06   -.11329E-03
  10  Prefactor     6.0993        7.1742        .21055E-07   -.44208E-05
  11  Prefactor     24.778        21.123        .16604E-05   -.13300E-04
  12  norm          .10000E-03    .64245       -.21949E-06** at limit **
  13  Prefactor     3.9224        3.2140        .11680E-06   -.28175E-03
  14  Prefactor     14.957        7.9626        .42425E-06    .68375E-08
  15  norm          9.8596        16.019        .96397E-05    .76911E-05
  16  norm          .10002E-03    6.8078       -.10492E-06** at limit **
  17  Prefactor     .10000E-03    5.4402       -.17119E-07** at limit **
  18  Prefactor     .10002E-03    236.35       -.66070E-05** at limit **
  19  Normalizat    1.3082        .19222       -.12183E-05    .92174E-04
  20  Prefactor     .82197        .19304       -.10378E-05   -.23980E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 15.0068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.29101
  Prefactor  = 6.29899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.07646
  Prefactor  = 6.09933
  Prefactor  = 24.7777
  norm       = 0.0001
  Prefactor  = 3.92241
  Prefactor  = 14.9569
  norm       = 9.85961
  norm       = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Normalizat = 1.30822
  Prefactor  = 0.821965
 **********
 **   18 **HESSE 
 **********

 FCN=   5412.831     FROM HESSE     STATUS=OK           295 CALLS     2394 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.007        9.1695        .10339E-03   -1.4933    
   2  Prefactor     .10000E-03    18.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.0779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2910        2.4656        .95534E-04   -1.5345    
   6  Prefactor     6.2990        6.2284        .15994E-03   -1.5206    
   7  Prefactor     .10000E-03    8.5508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.5300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.0765        10.683        .17843E-03   -1.5257    
  10  Prefactor     6.0993        7.1680        .16257E-03   -1.5214    
  11  Prefactor     24.778        21.096        .80471E-04   -1.4712    
  12  norm          .10000E-03    .95918        .11397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.9224        3.2098        .11269E-03   -1.5312    
  14  Prefactor     14.957        7.9619        .10356E-03   -1.4934    
  15  norm          9.8596        15.896        .12750E-03   -1.5080    
  16  norm          .10002E-03    35.232        .36845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.4750        .16757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    241.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3082        .22528        .22625E-03   -.83321    
  20  Prefactor     .82197        .22750        .29248E-03   -.98924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28552e-10
Minuit parameter uncertainties:
  1  9.17037
  2  1.35793e-05
  3  1.53705e-05
  4  2.05831e-05
  5  2.4657
  6  6.22906
  7  9.06597e-06
  8  2.06511e-06
  9  10.6865
  10  7.16902
  11  21.1023
  12  2.14615e-05
  13  3.20996
  14  7.9625
  15  15.9025
  16  0.00158718
  17  2.07575e-06
  18  0.0042031
  19  0.225447
  20  0.227765
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  8.220e-01  2.278e-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.308e+00  2.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/251658/likelihoodResults_299462401_299721601_4FGL_J1051.6+2109_daily_bin232.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5412.8319498
delta logL = -0.000557450687666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5412.83139261
delta logL = -2.58095496974e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7645       1.0000          .0000       10.000    
     3 'Normalizat'    1.3081       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82210       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5412.831     FROM MIGRAD    STATUS=FAILED        97 CALLS      254 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1227.6        .18142E-02** at limit **
   2  Index         2.5045        8.4214        .50000       -.36032E-06
   3  Normalizat    1.3082        .71834E-01    .22625E-03   -.85875E-04
   4  Prefactor     .82197        .75848E-01    .29248E-03   -.62503E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5412.831     FROM SIMPLEX   STATUS=UNCHANGED    180 CALLS      434 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1227.6        .43408E-03** at limit **
   2  Index         2.5045        8.4214        .25308E-05   -.36032E-06
   3  Normalizat    1.3082        .71834E-01    .38880E-07   -.85875E-04
   4  Prefactor     .82197        .75848E-01    .33307E-07   -.62503E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5412.831     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      468 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.319        .36285E-03** at limit **
   2  Index         2.5080        6.0917        .50000       -.24452E-06
   3  Normalizat    1.3082        .21469        .45250E-04   -.84418E-04
   4  Prefactor     .82197        .22659        .11699E-04   -.61414E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.508
  Normalizat = 1.30822
  Prefactor  = 0.821966
 **********
 **   18 **HESSE 
 **********

 FCN=   5412.831     FROM HESSE     STATUS=OK            29 CALLS      497 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9590        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5080        6.4062        .50000       -.52175    
   3  Normalizat    1.3082        .21473        .90499E-05   -.83321    
   4  Prefactor     .82197        .22662        .23399E-05   -.98924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52874e-10
Minuit parameter uncertainties:
  1  0.000140569
  2  175.05
  3  0.214877
  4  0.226875
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251658': 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) = 5412.83139213
delta logL = 2.17631168198e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  8.220e-01  2.269e-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.308e+00  2.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/251658/cmap_HighResolution_299462401_299721601_4FGL_J1051.6+2109_daily_bin232.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.13e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-02 18:40:03.880260', job_id='251658', GAL2='0.82', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630633203.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='232' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:40:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 251658: <4FGL_J1051.6+2109_daily_bin232> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin232 162.913 21.1651 299462401 299721601 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 :                                   602.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            821 sec.

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

