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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin548
RA = 162.913, Dec = 21.1651
tmin = 381369601, tmax = 381628801
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='253098', job_status='RUN', time_executed='2021-09-02 18:36:06.880421', time_epoch_executed='1630632966.88' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253098

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253098/ft1_4FGL_J1051.6+2109_daily_bin548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253098/ft2_4FGL_J1051.6+2109_daily_bin548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253098/ft1_4FGL_J1051.6+2109_daily_bin548.fits outfile=/scratch/kocevski/253098/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin548.fits ra=162.913 dec=21.1651 rad=12.0 tmin=381369601.0 tmax=381628801.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.61
user 3.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253098/ft1_filtered_4FGL_J1051.6+2109_daily_bin548.fits" evtable="EVENTS" scfile=/scratch/kocevski/253098/ft2_4FGL_J1051.6+2109_daily_bin548.fits sctable="SC_DATA" outfile=/scratch/kocevski/253098/ltcube_381369601_381628801_4FGL_J1051.6+2109_daily_bin548.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/253098/ft2_4FGL_J1051.6+2109_daily_bin548.fits
.....................!
real 16.46
user 15.95
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253098/ft1_filtered_4FGL_J1051.6+2109_daily_bin548.fits evtable="EVENTS" scfile=/scratch/kocevski/253098/ft2_4FGL_J1051.6+2109_daily_bin548.fits sctable="SC_DATA" expcube=/scratch/kocevski/253098/ltcube_381369601_381628801_4FGL_J1051.6+2109_daily_bin548.fits outfile=/scratch/kocevski/253098/expmap_381369601_381628801_4FGL_J1051.6+2109_daily_bin548.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/253098/ltcube_381369601_381628801_4FGL_J1051.6+2109_daily_bin548.fits
.....................!
real 194.42
user 188.95
sys 4.97

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/253098/ft1_filtered_4FGL_J1051.6+2109_daily_bin548.fits scfile=/scratch/kocevski/253098/ft2_4FGL_J1051.6+2109_daily_bin548.fits outfile=/scratch/kocevski/253098/cmap_381369601_381628801_4FGL_J1051.6+2109_daily_bin548.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.55
user 0.40
sys 0.13

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6080       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.749       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3296       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11069E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.342       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2653       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0235       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .37941       1.0000         .10000E-03   10000.    
    15 'norm      '    17.378       1.0000         .10000E-03   10000.    
    16 'norm      '    20.799       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.732       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .74146       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1103       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.

 FCN=   5447.283     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     2409 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.2904        .90712E-02** at limit **
   2  Prefactor     2.5284        202.07        .63149E-02    .12976E-03
   3  Prefactor     .10000E-03    22.755        .90712E-02** at limit **
   4  Prefactor     11.756        9.7557        .29218E-02    .44654E-03
   5  Prefactor     2.3304        2.3095        .67173E-02    .26600E-03
   6  Prefactor     .10000E-03    8.8417        .90712E-02** at limit **
   7  Prefactor     .10000E-03    11.701        .90712E-02** at limit **
   8  Prefactor     .10000E-03    19.676        .90712E-02** at limit **
   9  Prefactor     13.353        10.616        .27415E-02    .40821E-03
  10  Prefactor     3.2628        8.4218        .56027E-02   -.37859E-03
  11  Prefactor     .10000E-03    6.6970        .90712E-02** at limit **
  12  norm          .10000E-03    .51272        .90712E-02** at limit **
  13  Prefactor     4.0242        2.5782        .50260E-02    .13058E-03
  14  Prefactor     .37331        5.6277        .53080E-01   -.29518E-03
  15  norm          17.372        12.893        .24019E-02   -.27248E-02
  16  norm          20.801        12.698        .21956E-02    .19471E-02
  17  Prefactor     .10000E-03    2.7034        .90712E-02** at limit **
  18  Prefactor     37.735        48.705        .16312E-02    .21625E-03
  19  Normalizat    .74131        .18437        .42841E-01   -.15892E-03
  20  Prefactor     1.1104        .18754        .37210E-01   -.16521E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.5284
  Prefactor  = 0.0001
  Prefactor  = 11.7563
  Prefactor  = 2.33037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3533
  Prefactor  = 3.26285
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.02425
  Prefactor  = 0.37331
  norm       = 17.3717
  norm       = 20.8008
  Prefactor  = 0.0001
  Prefactor  = 37.7352
  Normalizat = 0.74131
  Prefactor  = 1.11044
 **********
 **   18 **HESSE 
 **********

 FCN=   5447.283     FROM HESSE     STATUS=OK           289 CALLS     2698 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.3502        .16575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5284        201.75        .25260E-03   -1.5390    
   3  Prefactor     .10000E-03    22.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.756        9.7367        .11687E-03   -1.5022    
   5  Prefactor     2.3304        2.2929        .10324E-03   -1.5403    
   6  Prefactor     .10000E-03    9.0105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.353        10.596        .10966E-03   -1.4977    
  10  Prefactor     3.2628        8.3819        .22411E-03   -1.5347    
  11  Prefactor     .10000E-03    6.7061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .52348        .51537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.0242        2.5753        .89860E-04   -1.5307    
  14  Prefactor     .37331        19.343        .33451E-02   -1.5586    
  15  norm          17.372        12.887        .96078E-04   -1.4874    
  16  norm          20.801        12.707        .87826E-04   -1.4795    
  17  Prefactor     .10000E-03    2.7052        .11851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     37.735        48.744        .65248E-04   -1.4479    
  19  Normalizat    .74131        .21212        .26257E-03   -1.0228    
  20  Prefactor     1.1104        .21677        .23088E-03   -.89134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74819e-08
Minuit parameter uncertainties:
  1  4.7221e-05
  2  45.3297
  3  0.000176945
  4  9.73803
  5  2.29297
  6  0.00012492
  7  0.000125187
  8  0.000103932
  9  10.5978
  10  8.38487
  11  1.1629e-05
  12  2.87492e-06
  13  2.57533
  14  5.37548
  15  12.8888
  16  12.7084
  17  1.32512e-05
  18  48.7951
  19  0.212357
  20  0.216938
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  1.252e-04  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.110e+00  2.169e-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:  7.413e-01  2.124e-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: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253098/likelihoodResults_381369601_381628801_4FGL_J1051.6+2109_daily_bin548.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) = 5447.283309
delta logL = -0.000402794232286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5447.28290699
delta logL = -7.84285475675e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12929E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8234       1.0000          .0000       10.000    
     3 'Normalizat'    .74144       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1103       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=   5447.283     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      245 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    18.076        .36285E-03** at limit **
   2  Index         2.8880        6.4362        .50000       -.46717E-04
   3  Normalizat    .74131        .20060        .26257E-03   -.11777E-04
   4  Prefactor     1.1104        .21316        .23088E-03   -.25753E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100037
  Index      = 2.88801
  Normalizat = 0.741311
  Prefactor  = 1.11044
 **********
 **   18 **HESSE 
 **********

 FCN=   5447.283     FROM HESSE     STATUS=OK            29 CALLS      274 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    16.295        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8880        6.4222        .50000       -.43609    
   3  Normalizat    .74131        .20081        .10503E-04   -1.0228    
   4  Prefactor     1.1104        .21338        .92353E-05   -.89134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15846e-09
Minuit parameter uncertainties:
  1  0.00155787
  2  4.54306
  3  0.20101
  4  0.213546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253098': 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) = 5447.28290505
delta logL = 1.15850161819e-06

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  1.558e-03  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.888e+00  4.543e+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:  1.110e+00  2.135e-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:  7.413e-01  2.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 162.913 21.165

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/253098/cmap_HighResolution_381369601_381628801_4FGL_J1051.6+2109_daily_bin548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.65e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-02 18:46:13.921392', job_id='253098', GAL2='1.11', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1630633573.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.16e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='548' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:46:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 253098: <4FGL_J1051.6+2109_daily_bin548> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin548> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 18:31:11 2021
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:32:08 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:32:08 2021
Terminated at Thu Sep  2 18:46:14 2021
Results reported at Thu Sep  2 18:46:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin548 162.913 21.1651 381369601 381628801 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 :                                   604.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            903 sec.

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

