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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1138
RA = 162.913, Dec = 21.1651
tmin = 534297601, tmax = 534556801
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='256697', job_status='RUN', time_executed='2021-09-02 18:47:35.904710', time_epoch_executed='1630633655.9' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256697

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256697/ft1_4FGL_J1051.6+2109_daily_bin1138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256697/ft2_4FGL_J1051.6+2109_daily_bin1138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256697/ft1_4FGL_J1051.6+2109_daily_bin1138.fits outfile=/scratch/kocevski/256697/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1138.fits ra=162.913 dec=21.1651 rad=12.0 tmin=534297601.0 tmax=534556801.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 2.94
user 2.70
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256697/ft1_filtered_4FGL_J1051.6+2109_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/256697/ft2_4FGL_J1051.6+2109_daily_bin1138.fits sctable="SC_DATA" expcube=/scratch/kocevski/256697/ltcube_534297601_534556801_4FGL_J1051.6+2109_daily_bin1138.fits outfile=/scratch/kocevski/256697/expmap_534297601_534556801_4FGL_J1051.6+2109_daily_bin1138.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/256697/ltcube_534297601_534556801_4FGL_J1051.6+2109_daily_bin1138.fits
.....................!
real 156.66
user 152.25
sys 3.83

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/256697/ft1_filtered_4FGL_J1051.6+2109_daily_bin1138.fits scfile=/scratch/kocevski/256697/ft2_4FGL_J1051.6+2109_daily_bin1138.fits outfile=/scratch/kocevski/256697/cmap_534297601_534556801_4FGL_J1051.6+2109_daily_bin1138.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.52
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256697/ft1_filtered_4FGL_J1051.6+2109_daily_bin1138.fits scfile=/scratch/kocevski/256697/ft2_4FGL_J1051.6+2109_daily_bin1138.fits outfile=/scratch/kocevski/256697/cmap_HighResolution_534297601_534556801_4FGL_J1051.6+2109_daily_bin1138.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.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11462E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.247       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5531       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3618       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9781       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.147       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.5661       1.0000         .10000E-03   10000.    
    12 'norm      '    .32039       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.7970       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.9791       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1252       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1027       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=   5765.100     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     1832 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.2521        .15103E-06** at limit **
   2  Prefactor     12.244        30.605       -.55309E-05    .41027E-05
   3  Prefactor     7.5382        95.099       -.45265E-04    .88635E-06
   4  Prefactor     .10000E-03    4.6522       -.24738E-06** at limit **
   5  Prefactor     .10000E-03    .75422       -.51897E-06** at limit **
   6  Prefactor     1.3611        1.2516        .13948E-06   -.97683E-03
   7  Prefactor     .10000E-03    3.6578       -.52558E-06** at limit **
   8  Prefactor     6.9752        20.423       -.38997E-05    .18380E-05
   9  Prefactor     14.146        9.0732       -.15595E-06    .62322E-04
  10  Prefactor     .10000E-03    4.8001       -.12823E-06** at limit **
  11  Prefactor     7.5656        7.4305       -.72378E-07    .21558E-04
  12  norm          .32030        1.2636       -.19291E-06   -.25427E-03
  13  Prefactor     .10000E-03    1.7473        .19151E-06** at limit **
  14  Prefactor     .10000E-03    4.3372       -.68492E-07** at limit **
  15  norm          .10000E-03    9.3018       -.47918E-06** at limit **
  16  norm          5.7895        11.220        .35156E-06   -.16186E-05
  17  Prefactor     7.9784        7.9719       -.19766E-06    .44288E-05
  18  Prefactor     .10000E-03    32.922        .14731E-05** at limit **
  19  Normalizat    1.1251        .18415        .17158E-05    .11385E-03
  20  Prefactor     1.1028        .19397        .23865E-06    .14467E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 12.244
  Prefactor  = 7.53822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.36107
  Prefactor  = 0.0001
  Prefactor  = 6.97524
  Prefactor  = 14.1462
  Prefactor  = 0.0001
  Prefactor  = 7.56556
  norm       = 0.320296
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.78946
  Prefactor  = 7.97844
  Prefactor  = 0.0001
  Normalizat = 1.12512
  Prefactor  = 1.10284
 **********
 **   18 **HESSE 
 **********

 FCN=   5765.100     FROM HESSE     STATUS=OK           297 CALLS     2129 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.4692        .33976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.244        30.617        .11447E-03   -1.5008    
   3  Prefactor     7.5382        95.477        .14592E-03   -1.5159    
   4  Prefactor     .10000E-03    14.253        .31295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .76224        .64342E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.3611        6.2100        .17811E-02   -1.5475    
   7  Prefactor     .10000E-03    3.6831        .14171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.9752        20.426        .15187E-03   -1.5180    
   9  Prefactor     14.146        9.0628        .10649E-03   -1.4956    
  10  Prefactor     .10000E-03    4.8178        .16245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.5656        7.4326        .14580E-03   -1.5158    
  12  norm          .32030        2.1094        .15340E-02   -1.5595    
  13  Prefactor     .10000E-03    1.8227        .19576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.3770        .15439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.4114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.7895        11.210        .16681E-03   -1.5227    
  17  Prefactor     7.9784        7.9684        .14194E-03   -1.5143    
  18  Prefactor     .10000E-03    33.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1251        .21617        .23118E-03   -.88949    
  20  Prefactor     1.1028        .22983        .25580E-03   -.89376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1665e-08
Minuit parameter uncertainties:
  1  7.83615e-06
  2  30.6567
  3  53.7612
  4  4.53001e-05
  5  6.56498e-07
  6  5.81535
  7  4.27998e-06
  8  20.4466
  9  9.06372
  10  4.41161e-06
  11  7.43354
  12  1.64375
  13  8.00427e-06
  14  8.9065e-06
  15  1.66382e-05
  16  11.214
  17  7.96946
  18  3.51747e-05
  19  0.216341
  20  0.230037
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  4.280e-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:  1.103e+00  2.300e-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.125e+00  2.163e-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.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/256697/likelihoodResults_534297601_534556801_4FGL_J1051.6+2109_daily_bin1138.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) = 5765.10081408
delta logL = -0.00129110691978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5765.0995228
delta logL = 1.67356120073e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7458       1.0000          .0000       10.000    
     3 'Normalizat'    1.1251       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1028       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=   5765.100     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      260 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.333        .14551E-01** at limit **
   2  Index         2.1836        8.4824        .50000       -.17161E-05
   3  Normalizat    1.1251        .91075E-02    .23118E-03    .10686E-03
   4  Prefactor     1.1028        .10028E-01    .25580E-03    .90531E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.18359
  Normalizat = 1.12512
  Prefactor  = 1.10284
 **********
 **   18 **HESSE 
 **********

 FCN=   5765.100     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      287 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    190.17        .16936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1836        6.7034        .50000       -.59835    
   3  Normalizat    1.1251        .27307E-01    .92472E-05   -.88949    
   4  Prefactor     1.1028        .30068E-01    .10232E-04   -.89376    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.72997e-08
Minuit parameter uncertainties:
  1  3.6246e-05
  2  568.112
  3  0.0273078
  4  0.0300683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256697': 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) = 5765.09951877
delta logL = 4.1950497689e-06

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  3.625e-05  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.184e+00  5.681e+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.103e+00  3.007e-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:  1.125e+00  2.731e-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/256697/cmap_HighResolution_534297601_534556801_4FGL_J1051.6+2109_daily_bin1138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.34e-03', job_status='DONE', photon_flux_upper_limit='6.76e-08', time_completed='2021-09-02 18:57:36.683881', job_id='256697', GAL2='1.10', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630634256.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='4.20e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='1138' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:57:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 256697: <4FGL_J1051.6+2109_daily_bin1138> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1138 162.913 21.1651 534297601 534556801 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 :                                   490.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            945 sec.

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

