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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1017
RA = 162.913, Dec = 21.1651
tmin = 502934401, tmax = 503193601
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='256520', job_status='RUN', time_executed='2021-09-02 18:45:13.403305', time_epoch_executed='1630633513.4' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256520

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256520/ft1_4FGL_J1051.6+2109_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256520/ft2_4FGL_J1051.6+2109_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256520/ft1_4FGL_J1051.6+2109_daily_bin1017.fits outfile=/scratch/kocevski/256520/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1017.fits ra=162.913 dec=21.1651 rad=12.0 tmin=502934401.0 tmax=503193601.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.64
user 3.38
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256520/ft1_filtered_4FGL_J1051.6+2109_daily_bin1017.fits" evtable="EVENTS" scfile=/scratch/kocevski/256520/ft2_4FGL_J1051.6+2109_daily_bin1017.fits sctable="SC_DATA" outfile=/scratch/kocevski/256520/ltcube_502934401_503193601_4FGL_J1051.6+2109_daily_bin1017.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/256520/ft2_4FGL_J1051.6+2109_daily_bin1017.fits
.....................!
real 17.23
user 16.83
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256520/ft1_filtered_4FGL_J1051.6+2109_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/256520/ft2_4FGL_J1051.6+2109_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/256520/ltcube_502934401_503193601_4FGL_J1051.6+2109_daily_bin1017.fits outfile=/scratch/kocevski/256520/expmap_502934401_503193601_4FGL_J1051.6+2109_daily_bin1017.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/256520/ltcube_502934401_503193601_4FGL_J1051.6+2109_daily_bin1017.fits
.....................!
real 192.02
user 187.34
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/256520/ft1_filtered_4FGL_J1051.6+2109_daily_bin1017.fits scfile=/scratch/kocevski/256520/ft2_4FGL_J1051.6+2109_daily_bin1017.fits outfile=/scratch/kocevski/256520/cmap_502934401_503193601_4FGL_J1051.6+2109_daily_bin1017.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.40
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    33.440       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.095       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.418       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4280       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16631E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.578       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4112       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.497       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8527       1.0000         .10000E-03   10000.    
    12 'norm      '    2.2942       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7066       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1717       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .68623E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3006       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .80688       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2907       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=   6008.741     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2075 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          33.440        11.832       -.14232E-06    .99942E-05
   2  Prefactor     32.094        34.669       -.12650E-05   -.90960E-05
   3  Prefactor     18.419        49.337        .25088E-05    .19526E-05
   4  Prefactor     2.4323        7.3811        .10008E-04   -.12343E-03
   5  Prefactor     .10000E-03    1.0940       -.11850E-05** at limit **
   6  Prefactor     10.578        6.8557        .80773E-06   -.10339E-03
   7  Prefactor     .10000E-03    2.0434       -.23604E-06** at limit **
   8  Prefactor     7.4118        20.487       -.44416E-06   -.18971E-04
   9  Prefactor     22.499        11.077        .48989E-06    .19110E-03
  10  Prefactor     .10000E-03    9.3131        .17017E-05** at limit **
  11  Prefactor     5.8525        9.0674        .18862E-05   -.36287E-04
  12  norm          2.2942        1.4943        .97766E-07   -.42241E-03
  13  Prefactor     1.7065        2.3222        .57476E-07   -.59667E-03
  14  Prefactor     2.1715        3.1578       -.51018E-06   -.16696E-03
  15  norm          .10000E-03    2.2037       -.13182E-06** at limit **
  16  norm          .10002E-03    7.7992        .17608E-05** at limit **
  17  Prefactor     3.3003        7.1448        .17010E-05   -.26661E-03
  18  Prefactor     .10000E-03    88.006       -.95465E-06** at limit **
  19  Normalizat    .80692        .18662       -.44438E-05    .87845E-04
  20  Prefactor     1.2906        .19129        .10769E-05   -.13069E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 33.4403
  Prefactor  = 32.0941
  Prefactor  = 18.4195
  Prefactor  = 2.43225
  Prefactor  = 0.0001
  Prefactor  = 10.5779
  Prefactor  = 0.0001
  Prefactor  = 7.41175
  Prefactor  = 22.4991
  Prefactor  = 0.0001
  Prefactor  = 5.85251
  norm       = 2.29417
  Prefactor  = 1.70652
  Prefactor  = 2.17155
  norm       = 0.0001
  norm       = 0.000100017
  Prefactor  = 3.3003
  Prefactor  = 0.0001
  Normalizat = 0.806925
  Prefactor  = 1.29064
 **********
 **   18 **HESSE 
 **********

 FCN=   6008.741     FROM HESSE     STATUS=OK           299 CALLS     2374 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          33.440        11.830        .69295E-04   -1.4551    
   2  Prefactor     32.094        34.690        .70728E-04   -1.4574    
   3  Prefactor     18.419        49.307        .93326E-04   -1.4849    
   4  Prefactor     2.4323        7.0133        .26263E-03   -1.5396    
   5  Prefactor     .10000E-03    8.0417        .15013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.578        6.8332        .12319E-03   -1.5057    
   7  Prefactor     .10000E-03    2.0479        .10822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.4118        20.481        .14732E-03   -1.5163    
   9  Prefactor     22.499        11.062        .84448E-04   -1.4759    
  10  Prefactor     .10000E-03    9.4508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.8525        9.0392        .16600E-03   -1.5224    
  12  norm          2.2942        1.4838        .72630E-04   -1.5405    
  13  Prefactor     1.7065        2.2991        .13089E-03   -1.5447    
  14  Prefactor     2.1715        3.1457        .16199E-03   -1.5413    
  15  norm          .10000E-03    2.2042        .11238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10002E-03    34.832        .41027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.3003        7.0645        .22285E-03   -1.5345    
  18  Prefactor     .10000E-03    88.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .80692        .20978        .26879E-03   -.99812    
  20  Prefactor     1.2906        .22278        .24280E-03   -.83586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11698e-09
Minuit parameter uncertainties:
  1  11.8304
  2  34.712
  3  49.4161
  4  7.01566
  5  4.0355e-06
  6  6.8337
  7  1.05286e-05
  8  20.5004
  9  11.0627
  10  2.61102e-05
  11  9.04133
  12  1.48378
  13  2.29923
  14  3.1459
  15  1.31259e-06
  16  0.00154223
  17  7.06627
  18  0.000225797
  19  0.20999
  20  0.222945
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  1.053e-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.291e+00  2.229e-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:  8.069e-01  2.100e-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: 5.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/256520/likelihoodResults_502934401_503193601_4FGL_J1051.6+2109_daily_bin1017.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) = 6008.74299524
delta logL = -0.0022847419059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6008.74071044
delta logL = 5.83922883379e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7625       1.0000          .0000       10.000    
     3 'Normalizat'    .80693       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2907       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=   6008.741     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      250 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.333        .10858E-01** at limit **
   2  Index         2.1212        5.1302        .50000       -.11007E-06
   3  Normalizat    .80692        .22542E-01    .26879E-03    .54350E-04
   4  Prefactor     1.2906        .25224E-01    .24280E-03    .78194E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12118
  Normalizat = 0.806922
  Prefactor  = 1.29064
 **********
 **   18 **HESSE 
 **********

 FCN=   6008.741     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    448.66        .11618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1212        5.9832        .50000       -.61354    
   3  Normalizat    .80692        .90954E-01    .10752E-04   -.99812    
   4  Prefactor     1.2906        .10178        .48560E-04   -.83586    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.38912e-10
Minuit parameter uncertainties:
  1  0.000132249
  2  1467
  3  0.0909711
  4  0.1018
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256520': 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) = 6008.74070729
delta logL = 3.20886556437e-06

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  1.322e-04  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.121e+00  1.467e+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:  1.291e+00  1.018e-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:  8.069e-01  9.097e-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/256520/cmap_HighResolution_502934401_503193601_4FGL_J1051.6+2109_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.25e-03', job_status='DONE', photon_flux_upper_limit='5.38e-08', time_completed='2021-09-02 18:55:39.358563', job_id='256520', GAL2='1.29', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630634139.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='3.21e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='1017' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:55:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 256520: <4FGL_J1051.6+2109_daily_bin1017> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1017> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 18:41:39 2021
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:43:02 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:43:02 2021
Terminated at Thu Sep  2 18:55:40 2021
Results reported at Thu Sep  2 18:55:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1017 162.913 21.1651 502934401 503193601 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 :                                   620.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            841 sec.

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

