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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin187
RA = 162.913, Dec = 21.1651
tmin = 287798401, tmax = 288057601
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='250489', job_status='RUN', time_executed='2021-09-02 18:27:25.278569', time_epoch_executed='1630632445.28' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='187'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250489

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250489/ft1_4FGL_J1051.6+2109_daily_bin187.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250489/ft2_4FGL_J1051.6+2109_daily_bin187.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250489/ft1_4FGL_J1051.6+2109_daily_bin187.fits outfile=/scratch/kocevski/250489/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin187.fits ra=162.913 dec=21.1651 rad=12.0 tmin=287798401.0 tmax=288057601.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.66
user 3.40
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250489/ft1_filtered_4FGL_J1051.6+2109_daily_bin187.fits" evtable="EVENTS" scfile=/scratch/kocevski/250489/ft2_4FGL_J1051.6+2109_daily_bin187.fits sctable="SC_DATA" outfile=/scratch/kocevski/250489/ltcube_287798401_288057601_4FGL_J1051.6+2109_daily_bin187.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/250489/ft2_4FGL_J1051.6+2109_daily_bin187.fits
.....................!
real 14.67
user 14.09
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250489/ft1_filtered_4FGL_J1051.6+2109_daily_bin187.fits evtable="EVENTS" scfile=/scratch/kocevski/250489/ft2_4FGL_J1051.6+2109_daily_bin187.fits sctable="SC_DATA" expcube=/scratch/kocevski/250489/ltcube_287798401_288057601_4FGL_J1051.6+2109_daily_bin187.fits outfile=/scratch/kocevski/250489/expmap_287798401_288057601_4FGL_J1051.6+2109_daily_bin187.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/250489/ltcube_287798401_288057601_4FGL_J1051.6+2109_daily_bin187.fits
.....................!
real 198.02
user 190.44
sys 4.12

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/250489/ft1_filtered_4FGL_J1051.6+2109_daily_bin187.fits scfile=/scratch/kocevski/250489/ft2_4FGL_J1051.6+2109_daily_bin187.fits outfile=/scratch/kocevski/250489/cmap_287798401_288057601_4FGL_J1051.6+2109_daily_bin187.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250489/ft1_filtered_4FGL_J1051.6+2109_daily_bin187.fits scfile=/scratch/kocevski/250489/ft2_4FGL_J1051.6+2109_daily_bin187.fits outfile=/scratch/kocevski/250489/cmap_HighResolution_287798401_288057601_4FGL_J1051.6+2109_daily_bin187.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=162.913 yref=21.1651 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.168       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12660E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .59606E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.053       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9137       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8811       1.0000         .10000E-03   10000.    
    15 'norm      '    .13666E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3972       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    179.42       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1819       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83707       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=   5435.152     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     2092 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.165        10.891       -.36016E-06    .15240E-04
   2  Prefactor     .10000E-03    23.573       -.27638E-07** at limit **
   3  Prefactor     .10000E-03    29.650        .12910E-06** at limit **
   4  Prefactor     .10000E-03    3.4354       -.12527E-07** at limit **
   5  Prefactor     .10000E-03    1.2265       -.12694E-06** at limit **
   6  Prefactor     .10000E-03    7.7201       -.31259E-06** at limit **
   7  Prefactor     .10000E-03    5.2167       -.30153E-07** at limit **
   8  Prefactor     .10000E-03    8.1292       -.12767E-07** at limit **
   9  Prefactor     27.046        14.414        .71899E-07    .48353E-04
  10  Prefactor     .10000E-03    5.1965        .95580E-08** at limit **
  11  Prefactor     .10000E-03    8.8406       -.15873E-07** at limit **
  12  norm          .10000E-03    .44418        .64413E-08** at limit **
  13  Prefactor     1.9125        3.1376       -.27907E-06   -.65911E-04
  14  Prefactor     5.8808        5.7580       -.22266E-08   -.81765E-05
  15  norm          .10002E-03    9.0138        .25989E-05** at limit **
  16  norm          1.3947        3.5030        .79890E-06   -.76603E-03
  17  Prefactor     .10000E-03    3.2805        .17120E-07** at limit **
  18  Prefactor     179.40        76.083       -.13539E-04   -.20150E-03
  19  Normalizat    1.1822        .18803        .15051E-05   -.15536E-03
  20  Prefactor     .83683        .18635       -.15946E-06   -.28864E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.1647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.0455
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.91246
  Prefactor  = 5.8808
  norm       = 0.000100023
  norm       = 1.39468
  Prefactor  = 0.0001
  Prefactor  = 179.397
  Normalizat = 1.1822
  Prefactor  = 0.836834
 **********
 **   18 **HESSE 
 **********

 FCN=   5435.152     FROM HESSE     STATUS=OK           297 CALLS     2389 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.165        10.913        .93966E-04   -1.4855    
   2  Prefactor     .10000E-03    23.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    29.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.4558        .13340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.9512        .15595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.086        .52396E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.2361        .16427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.1302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.046        14.361        .77022E-04   -1.4667    
  10  Prefactor     .10000E-03    5.2062        .16402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.8574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .44999        .47941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9125        3.1289        .15702E-03   -1.5431    
  14  Prefactor     5.8808        5.7544        .16560E-03   -1.5223    
  15  norm          .10002E-03    40.309        .42384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3947        22.259        .18363E-02   -1.5472    
  17  Prefactor     .10000E-03    3.2840        .13040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     179.40        76.589        .15067E-03   -1.3021    
  19  Normalizat    1.1822        .22283        .22830E-03   -.87155    
  20  Prefactor     .83683        .21801        .27478E-03   -.98385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66089e-09
Minuit parameter uncertainties:
  1  10.9147
  2  1.53873e-05
  3  1.31772e-05
  4  5.57448e-06
  5  5.13816e-05
  6  0.000329221
  7  7.25233e-06
  8  1.96414e-06
  9  14.3633
  10  1.5762e-06
  11  6.35162e-06
  12  5.93579e-08
  13  3.12913
  14  5.75494
  15  0.00191038
  16  11.1479
  17  4.23083e-06
  18  76.6318
  19  0.22301
  20  0.218236
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  7.252e-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.368e-01  2.182e-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.182e+00  2.230e-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: 9.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250489/likelihoodResults_287798401_288057601_4FGL_J1051.6+2109_daily_bin187.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) = 5435.15272135
delta logL = -0.000909417721232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5435.15181222
delta logL = -2.91813194053e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7518       1.0000          .0000       10.000    
     3 'Normalizat'    1.1821       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83695       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=   5435.152     FROM MIGRAD    STATUS=FAILED        98 CALLS      251 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.587        .16675E-01** at limit **
   2  Index         2.2257        6.8355        .50000       -.26198E-05
   3  Normalizat    1.1822        .11300E-01    .22830E-03   -.35898E-03
   4  Prefactor     .83683        .11714E-01    .27478E-03   -.29560E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5435.152     FROM SIMPLEX   STATUS=UNCHANGED    149 CALLS      400 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.587        .42878E-03** at limit **
   2  Index         2.2257        6.8355        .13713E-04   -.26198E-05
   3  Normalizat    1.1822        .11300E-01    .11003E-06   -.35898E-03
   4  Prefactor     .83683        .11714E-01    .61227E-07   -.29560E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5435.152     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      431 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    398.52        .18606E-02** at limit **
   2  Index         2.2263        8.8220        .50000        .34311E-07
   3  Normalizat    1.1822        .37634E-01    .45659E-04   -.35785E-03
   4  Prefactor     .83683        .39015E-01    .54956E-04   -.29508E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22629
  Normalizat = 1.18221
  Prefactor  = 0.836832
 **********
 **   18 **HESSE 
 **********

 FCN=   5435.152     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      460 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1310.2        .37212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2263        5.9924        .50000       -.58805    
   3  Normalizat    1.1822        .10353        .91319E-05   -.87155    
   4  Prefactor     .83683        .10732        .10991E-04   -.98385    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.50677e-09
Minuit parameter uncertainties:
  1  0.000684536
  2  1571.11
  3  0.103545
  4  0.107344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250489': 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): 102
logL (Free Index) = 5435.15180973
delta logL = 2.19346566155e-06

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  6.845e-04  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.226e+00  1.571e+03  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.368e-01  1.073e-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.182e+00  1.035e-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/250489/cmap_HighResolution_287798401_288057601_4FGL_J1051.6+2109_daily_bin187.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.39e-03', job_status='DONE', photon_flux_upper_limit='9.35e-08', time_completed='2021-09-02 18:37:32.779557', job_id='250489', GAL2='0.84', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630633052.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.19e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='187' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:37:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 250489: <4FGL_J1051.6+2109_daily_bin187> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin187 162.913 21.1651 287798401 288057601 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 :                                   599.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   639 sec.
    Turnaround time :                            964 sec.

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

