/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 147 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 = 7362
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1124
RA = 162.913, Dec = 21.1651
tmin = 530668801, tmax = 530928001
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='256679', job_status='RUN', time_executed='2021-09-02 18:47:06.720563', time_epoch_executed='1630633626.72' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256679

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256679/ft1_4FGL_J1051.6+2109_daily_bin1124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256679/ft2_4FGL_J1051.6+2109_daily_bin1124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256679/ft1_4FGL_J1051.6+2109_daily_bin1124.fits outfile=/scratch/kocevski/256679/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1124.fits ra=162.913 dec=21.1651 rad=12.0 tmin=530668801.0 tmax=530928001.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.69
user 3.38
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/256679/ft2_4FGL_J1051.6+2109_daily_bin1124.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/256679/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1124.fits evtable="EVENTS" outfile="/scratch/kocevski/256679/ft1_filtered_4FGL_J1051.6+2109_daily_bin1124.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.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256679/ft1_filtered_4FGL_J1051.6+2109_daily_bin1124.fits" evtable="EVENTS" scfile=/scratch/kocevski/256679/ft2_4FGL_J1051.6+2109_daily_bin1124.fits sctable="SC_DATA" outfile=/scratch/kocevski/256679/ltcube_530668801_530928001_4FGL_J1051.6+2109_daily_bin1124.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/256679/ft2_4FGL_J1051.6+2109_daily_bin1124.fits
.....................!
real 18.46
user 16.43
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256679/ft1_filtered_4FGL_J1051.6+2109_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/256679/ft2_4FGL_J1051.6+2109_daily_bin1124.fits sctable="SC_DATA" expcube=/scratch/kocevski/256679/ltcube_530668801_530928001_4FGL_J1051.6+2109_daily_bin1124.fits outfile=/scratch/kocevski/256679/expmap_530668801_530928001_4FGL_J1051.6+2109_daily_bin1124.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/256679/ltcube_530668801_530928001_4FGL_J1051.6+2109_daily_bin1124.fits
.....................!
real 193.37
user 186.39
sys 5.91

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/256679/ft1_filtered_4FGL_J1051.6+2109_daily_bin1124.fits scfile=/scratch/kocevski/256679/ft2_4FGL_J1051.6+2109_daily_bin1124.fits outfile=/scratch/kocevski/256679/cmap_530668801_530928001_4FGL_J1051.6+2109_daily_bin1124.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.59
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256679/ft1_filtered_4FGL_J1051.6+2109_daily_bin1124.fits scfile=/scratch/kocevski/256679/ft2_4FGL_J1051.6+2109_daily_bin1124.fits outfile=/scratch/kocevski/256679/cmap_HighResolution_530668801_530928001_4FGL_J1051.6+2109_daily_bin1124.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25584E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.193       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.009       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.007       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .71365       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.598       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9434       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .23622E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.706       1.0000         .10000E-03   10000.    
    16 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.721       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .93744       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1279       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=   5247.949     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     2022 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    6.6668       -.23679E-06** at limit **
   2  Prefactor     59.190        52.750       -.35229E-05    .38762E-04
   3  Prefactor     20.908        57.344       -.20688E-03    .49420E-04
   4  Prefactor     11.006        7.7510       -.88322E-06    .12713E-03
   5  Prefactor     .71368        1.3572       -.47783E-06   -.14534E-02
   6  Prefactor     23.594        10.235       -.35450E-05    .24280E-03
   7  Prefactor     .10000E-03    3.4355       -.24729E-05** at limit **
   8  Prefactor     .10000E-03    14.704        .20132E-05** at limit **
   9  Prefactor     .10000E-03    3.1483        .57010E-06** at limit **
  10  Prefactor     5.9465        11.774        .37499E-05    .32617E-04
  11  Prefactor     .10000E-03    8.0203       -.30412E-05** at limit **
  12  norm          .28251E-01    .65419       -.29397E-06    .94385E-05
  13  Prefactor     .10000E-03    2.3344       -.76042E-06** at limit **
  14  Prefactor     .10000E-03    3.5936        .15567E-05** at limit **
  15  norm          16.702        13.187       -.56590E-05    .78178E-04
  16  norm          .10000E-03    8.2835        .88587E-06** at limit **
  17  Prefactor     .10000E-03    5.2113        .11330E-06** at limit **
  18  Prefactor     25.718        54.757       -.55808E-05    .25909E-04
  19  Normalizat    .93768        .18608        .13846E-04   -.99408E-04
  20  Prefactor     1.1276        .19216       -.27037E-06    .54352E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100023
  Prefactor  = 59.1899
  Prefactor  = 20.9084
  Prefactor  = 11.0055
  Prefactor  = 0.713682
  Prefactor  = 23.5938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.94648
  Prefactor  = 0.0001
  norm       = 0.0282515
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 16.7021
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 25.7182
  Normalizat = 0.937683
  Prefactor  = 1.12758
 **********
 **   18 **HESSE 
 **********

 FCN=   5247.949     FROM HESSE     STATUS=OK           293 CALLS     2315 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    18.546        .35980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     59.190        52.806        .52147E-04   -1.4168    
   3  Prefactor     20.908        57.451        .87386E-04   -1.4793    
   4  Prefactor     11.006        7.7463        .12076E-03   -1.5044    
   5  Prefactor     .71368        1.1019        .11217E-02   -1.5539    
   6  Prefactor     23.594        10.246        .82458E-04   -1.4736    
   7  Prefactor     .10000E-03    3.4564        .13111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1541        .12553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.9465        11.688        .16471E-03   -1.5220    
  11  Prefactor     .10000E-03    8.0689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .28251E-01    14.854        .11135E-02   -1.5674    
  13  Prefactor     .10000E-03    2.4059        .21425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.6082        .13409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.702        13.197        .97990E-04   -1.4890    
  16  norm          .10000E-03    8.3451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2233        .16150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.718        54.795        .78987E-04   -1.4693    
  19  Normalizat    .93768        .21688        .24772E-03   -.95148    
  20  Prefactor     1.1276        .22364        .24739E-03   -.88590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67787e-09
Minuit parameter uncertainties:
  1  0.00130927
  2  52.8478
  3  57.6037
  4  7.74705
  5  1.10194
  6  10.247
  7  3.42382e-05
  8  9.613e-06
  9  1.7061e-05
  10  11.6928
  11  8.07908e-05
  12  1.29364
  13  0.000122322
  14  4.23767e-05
  15  13.1994
  16  0.00015557
  17  5.09147e-05
  18  54.9029
  19  0.217079
  20  0.223824
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  3.424e-05  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.128e+00  2.238e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  9.377e-01  2.171e-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: 6.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/256679/likelihoodResults_530668801_530928001_4FGL_J1051.6+2109_daily_bin1124.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) = 5247.95038472
delta logL = -0.00137578278736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5247.94900884
delta logL = 9.22718754737e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7561       1.0000          .0000       10.000    
     3 'Normalizat'    .93771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1276       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=   5247.949     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      253 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.474        .13233E-01** at limit **
   2  Index         2.3175        6.1587        .50000        .55979E-07
   3  Normalizat    .93769        .10814E-01    .24772E-03   -.11377E-03
   4  Prefactor     1.1276        .11780E-01    .24739E-03   -.63325E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.31749
  Normalizat = 0.937691
  Prefactor  = 1.12757
 **********
 **   18 **HESSE 
 **********

 FCN=   5247.949     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    209.51        .14145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3175        5.2677        .50000       -.56629    
   3  Normalizat    .93769        .34825E-01    .99088E-05   -.95148    
   4  Prefactor     1.1276        .37935E-01    .98957E-05   -.88590    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.7172e-10
Minuit parameter uncertainties:
  1  1.71823e-05
  2  821.351
  3  0.0348256
  4  0.037936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256679': 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) = 5247.94900687
delta logL = 2.0674924599e-06

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  1.718e-05  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.317e+00  8.214e+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:  1.128e+00  3.794e-02  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  9.377e-01  3.483e-02  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/256679/cmap_HighResolution_530668801_530928001_4FGL_J1051.6+2109_daily_bin1124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.50e-03', job_status='DONE', photon_flux_upper_limit='6.95e-08', time_completed='2021-09-02 18:57:59.880792', job_id='256679', GAL2='1.13', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630634279.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='2.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='1124' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:57:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 256679: <4FGL_J1051.6+2109_daily_bin1124> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1124> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 18:41:49 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:44:14 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:44:14 2021
Terminated at Thu Sep  2 18:58:00 2021
Results reported at Thu Sep  2 18:58:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1124 162.913 21.1651 530668801 530928001 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 :                                   584.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            971 sec.

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

