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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1232
RA = 162.913, Dec = 21.1651
tmin = 558662401, tmax = 558921601
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='256797', job_status='RUN', time_executed='2021-09-02 18:46:16.921153', time_epoch_executed='1630633576.92' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1232'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256797

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256797/ft1_4FGL_J1051.6+2109_daily_bin1232.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256797/ft2_4FGL_J1051.6+2109_daily_bin1232.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256797/ft1_4FGL_J1051.6+2109_daily_bin1232.fits outfile=/scratch/kocevski/256797/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1232.fits ra=162.913 dec=21.1651 rad=12.0 tmin=558662401.0 tmax=558921601.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 4.14
user 2.74
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256797/ft1_filtered_4FGL_J1051.6+2109_daily_bin1232.fits" evtable="EVENTS" scfile=/scratch/kocevski/256797/ft2_4FGL_J1051.6+2109_daily_bin1232.fits sctable="SC_DATA" outfile=/scratch/kocevski/256797/ltcube_558662401_558921601_4FGL_J1051.6+2109_daily_bin1232.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/256797/ft2_4FGL_J1051.6+2109_daily_bin1232.fits
.....................!
real 16.27
user 15.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256797/ft1_filtered_4FGL_J1051.6+2109_daily_bin1232.fits evtable="EVENTS" scfile=/scratch/kocevski/256797/ft2_4FGL_J1051.6+2109_daily_bin1232.fits sctable="SC_DATA" expcube=/scratch/kocevski/256797/ltcube_558662401_558921601_4FGL_J1051.6+2109_daily_bin1232.fits outfile=/scratch/kocevski/256797/expmap_558662401_558921601_4FGL_J1051.6+2109_daily_bin1232.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/256797/ltcube_558662401_558921601_4FGL_J1051.6+2109_daily_bin1232.fits
.....................!
real 160.56
user 153.74
sys 4.36

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/256797/ft1_filtered_4FGL_J1051.6+2109_daily_bin1232.fits scfile=/scratch/kocevski/256797/ft2_4FGL_J1051.6+2109_daily_bin1232.fits outfile=/scratch/kocevski/256797/cmap_558662401_558921601_4FGL_J1051.6+2109_daily_bin1232.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.49
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256797/ft1_filtered_4FGL_J1051.6+2109_daily_bin1232.fits scfile=/scratch/kocevski/256797/ft2_4FGL_J1051.6+2109_daily_bin1232.fits outfile=/scratch/kocevski/256797/cmap_HighResolution_558662401_558921601_4FGL_J1051.6+2109_daily_bin1232.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.53
user 0.35
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9895       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8456       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.370       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3829       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1613       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .26313E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.280       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11661E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0583       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2949       1.0000         .10000E-03   10000.    
    15 'norm      '    51.291       1.0000         .10000E-03   10000.    
    16 'norm      '    5.8794       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.9427       1.0000         .10000E-03   10000.    
    18 'Prefactor '    46.089       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3333       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .79750       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=   7977.001     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2076 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9902        4.4490       -.61021E-06    .15675E-03
   2  Prefactor     1.7774        126.51        .18215E-04    .10015E-04
   3  Prefactor     29.372        34.619       -.76504E-07    .30646E-04
   4  Prefactor     5.3828        7.3247       -.11757E-05    .25964E-03
   5  Prefactor     1.1627        1.9440       -.14118E-05    .25576E-03
   6  Prefactor     .10000E-03    4.1072       -.41641E-06** at limit **
   7  Prefactor     .10000E-03    3.7414       -.12101E-06** at limit **
   8  Prefactor     .10000E-03    95.947        .36485E-04** at limit **
   9  Prefactor     10.279        9.2654        .42377E-06    .27705E-03
  10  Prefactor     .10000E-03    30.704        .26849E-05** at limit **
  11  Prefactor     .10000E-03    7.3796       -.20655E-06** at limit **
  12  norm          .10000E-03    .52633       -.93933E-07** at limit **
  13  Prefactor     2.0540        2.6276       -.79674E-06    .89162E-04
  14  Prefactor     2.2951        2.8043        .42653E-07   -.52852E-05
  15  norm          51.295        20.135        .13186E-05    .12421E-03
  16  norm          5.8818        9.4275       -.19472E-06    .11312E-03
  17  Prefactor     9.9446        9.5116       -.18507E-07    .70231E-04
  18  Prefactor     46.103        66.308       -.61879E-05   -.12160E-04
  19  Normalizat    1.3331        .16358        .10759E-05    .88658E-04
  20  Prefactor     .79756        .15891        .16281E-05    .35405E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.99017
  Prefactor  = 1.77743
  Prefactor  = 29.3719
  Prefactor  = 5.3828
  Prefactor  = 1.16272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.2793
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.05402
  Prefactor  = 2.29514
  norm       = 51.295
  norm       = 5.88182
  Prefactor  = 9.94459
  Prefactor  = 46.1028
  Normalizat = 1.3331
  Prefactor  = 0.79756
 **********
 **   18 **HESSE 
 **********

 FCN=   7977.001     FROM HESSE     STATUS=OK           297 CALLS     2373 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9902        4.4555        .22261E-03   -1.5362    
   2  Prefactor     1.7774        131.33        .30696E-03   -1.5441    
   3  Prefactor     29.372        34.640        .73928E-04   -1.4624    
   4  Prefactor     5.3828        7.2497        .17321E-03   -1.5244    
   5  Prefactor     1.1627        1.9376        .14952E-03   -1.5492    
   6  Prefactor     .10000E-03    4.1640        .17682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.7559        .16845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    94.486        .55596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.279        9.2530        .12497E-03   -1.5067    
  10  Prefactor     .10000E-03    31.677        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.4056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .53494        .63254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0540        2.6347        .15207E-03   -1.5421    
  14  Prefactor     2.2951        2.7996        .16106E-03   -1.5405    
  15  norm          51.295        20.225        .55999E-04   -1.4274    
  16  norm          5.8818        9.4461        .16562E-03   -1.5223    
  17  Prefactor     9.9446        9.5240        .12708E-03   -1.5077    
  18  Prefactor     46.103        66.445        .59060E-04   -1.4349    
  19  Normalizat    1.3331        .19482        .22539E-03   -.82584    
  20  Prefactor     .79756        .18844        .29342E-03   -.99818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61878e-10
Minuit parameter uncertainties:
  1  4.45603
  2  30.6261
  3  34.6633
  4  7.25092
  5  1.93765
  6  3.75769e-05
  7  9.35626e-06
  8  0.000627779
  9  9.25426
  10  0.000454395
  11  2.15794e-05
  12  7.86774e-06
  13  2.63485
  14  2.79977
  15  20.2272
  16  9.44846
  17  9.52545
  18  66.5518
  19  0.194926
  20  0.188591
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  9.356e-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:  7.976e-01  1.886e-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.333e+00  1.949e-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.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/256797/likelihoodResults_558662401_558921601_4FGL_J1051.6+2109_daily_bin1232.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) = 7977.00271343
delta logL = -0.00126785660086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7977.00144578
delta logL = -2.08147866942e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7749       1.0000          .0000       10.000    
     3 'Normalizat'    1.3331       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79762       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=   7976.884     FROM MIGRAD    STATUS=FAILED       194 CALLS      349 TOTAL
                     EDM=   .23E-03    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21259E-03    .46785E-03    .69464E-03** at limit **
   2  Index         9.8853        9.6896        .50000        .52285E-02
   3  Normalizat    1.3056        .20928        .22539E-03    .18663E-05
   4  Prefactor     .81769        .20292        .29342E-03    .31384E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7976.884     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      422 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21259E-03    .46785E-03    .31992E-05   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.8853        9.6896        .10296E-01    1.7854    
   3  Normalizat    1.3056        .20928        .69988E-04   -.83401    
   4  Prefactor     .81769        .20292        .56701E-04   -.99079    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7976.884     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      469 TOTAL
                     EDM=   .48E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21259E-03    .46087E-03     .0000    ** at limit **
   2  Index         9.8853        7.6449         .0000        .52275E-02
   3  Normalizat    1.3056        .20382         .0000        .63051E-05
   4  Prefactor     .81769        .19997         .0000        .44558E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00021259
  Index      = 9.88528
  Normalizat = 1.30556
  Prefactor  = 0.817691
 **********
 **   18 **HESSE 
 **********

 FCN=   7976.884     FROM HESSE     STATUS=OK            29 CALLS      498 TOTAL
                     EDM=   .97E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21259E-03    .47568E-03    .96308E-06   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.8853        7.6928        .50000        1.7854    
   3  Normalizat    1.3056        .20257        .18031E-05   -.83401    
   4  Prefactor     .81769        .19932        .23473E-05   -.99079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.71703e-05
Minuit parameter uncertainties:
  1  0.000462848
  2  2.00806
  3  0.202695
  4  0.199498
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256797': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7976.88363589
delta logL = 0.117809679692

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  2.126e-04  4.628e-04  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  9.885e+00  2.008e+00  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.177e-01  1.995e-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.306e+00  2.027e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/256797/cmap_HighResolution_558662401_558921601_4FGL_J1051.6+2109_daily_bin1232.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.51e-03', job_status='DONE', photon_flux_upper_limit='6.97e-08', time_completed='2021-09-02 18:56:45.209617', job_id='256797', GAL2='0.82', fit_tolerance='1e-08', EG2='1.31', EG='1.33', time_epoch_completed='1630634205.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.18e-01', ts2='0.25', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='1232' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:56:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 256797: <4FGL_J1051.6+2109_daily_bin1232> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1232> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 18:42:02 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:45:15 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:45:15 2021
Terminated at Thu Sep  2 18:56:45 2021
Results reported at Thu Sep  2 18:56:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1232 162.913 21.1651 558662401 558921601 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 :                                   611.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            883 sec.

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

