/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 114 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1051.6+2109_daily_bin429
RA = 162.913, Dec = 21.1651
tmin = 350524801, tmax = 350784001
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='251948', job_status='RUN', time_executed='2021-09-02 18:30:42.385188', time_epoch_executed='1630632642.39' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251948

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251948/ft1_4FGL_J1051.6+2109_daily_bin429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251948/ft2_4FGL_J1051.6+2109_daily_bin429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251948/ft1_4FGL_J1051.6+2109_daily_bin429.fits outfile=/scratch/kocevski/251948/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin429.fits ra=162.913 dec=21.1651 rad=12.0 tmin=350524801.0 tmax=350784001.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.42
user 3.15
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/251948/ft2_4FGL_J1051.6+2109_daily_bin429.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/251948/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin429.fits evtable="EVENTS" outfile="/scratch/kocevski/251948/ft1_filtered_4FGL_J1051.6+2109_daily_bin429.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251948/ft1_filtered_4FGL_J1051.6+2109_daily_bin429.fits evtable="EVENTS" scfile=/scratch/kocevski/251948/ft2_4FGL_J1051.6+2109_daily_bin429.fits sctable="SC_DATA" expcube=/scratch/kocevski/251948/ltcube_350524801_350784001_4FGL_J1051.6+2109_daily_bin429.fits outfile=/scratch/kocevski/251948/expmap_350524801_350784001_4FGL_J1051.6+2109_daily_bin429.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/251948/ltcube_350524801_350784001_4FGL_J1051.6+2109_daily_bin429.fits
.....................!
real 193.31
user 187.39
sys 5.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/251948/ft1_filtered_4FGL_J1051.6+2109_daily_bin429.fits scfile=/scratch/kocevski/251948/ft2_4FGL_J1051.6+2109_daily_bin429.fits outfile=/scratch/kocevski/251948/cmap_350524801_350784001_4FGL_J1051.6+2109_daily_bin429.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.60
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251948/ft1_filtered_4FGL_J1051.6+2109_daily_bin429.fits scfile=/scratch/kocevski/251948/ft2_4FGL_J1051.6+2109_daily_bin429.fits outfile=/scratch/kocevski/251948/cmap_HighResolution_350524801_350784001_4FGL_J1051.6+2109_daily_bin429.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.59
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10433E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.374       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .70382       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14494E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.222       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.5428       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.6507       1.0000         .10000E-03   10000.    
    12 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0171       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4398       1.0000         .10000E-03   10000.    
    15 'norm      '    8.6107       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8771       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3030       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96929       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97462       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=   5191.186     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     1782 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7271        .90712E-02** at limit **
   2  Prefactor     .10000E-03    35.799        .90712E-02** at limit **
   3  Prefactor     10.176        56.950        .31100E-02    .11040E-03
   4  Prefactor     .70522        5.2803        .12076E-01    .12195E-02
   5  Prefactor     .10000E-03    1.0623        .44699E-01** at limit **
   6  Prefactor     20.227        8.8376        .22267E-02    .23927E-02
   7  Prefactor     .10000E-03    6.9016        .90712E-02** at limit **
   8  Prefactor     .10000E-03    14.605        .90712E-02** at limit **
   9  Prefactor     .10000E-03    5.5826        .90712E-02** at limit **
  10  Prefactor     8.5429        8.5180        .34287E-02    .30437E-03
  11  Prefactor     9.6430        13.966        .32249E-02   -.51951E-03
  12  norm          .10000E-03    .80396        .25038E-01** at limit **
  13  Prefactor     7.0190        3.2896        .37860E-02    .67320E-04
  14  Prefactor     4.4406        4.5158        .47778E-02    .12261E-04
  15  norm          8.6069        11.432        .34151E-02   -.62790E-04
  16  norm          1.8796        13.314        .75976E-02    .10498E-02
  17  Prefactor     7.2976        8.4915        .37105E-02   -.11410E-03
  18  Prefactor     .10000E-03    25.423        .90712E-02** at limit **
  19  Normalizat    .96938        .17782        .45781E-01    .12166E-04
  20  Prefactor     .97447        .18269        .45949E-01    .14216E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1764
  Prefactor  = 0.705216
  Prefactor  = 0.0001
  Prefactor  = 20.2267
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.54294
  Prefactor  = 9.643
  norm       = 0.0001
  Prefactor  = 7.01905
  Prefactor  = 4.44063
  norm       = 8.60687
  norm       = 1.87956
  Prefactor  = 7.29762
  Prefactor  = 0.0001
  Normalizat = 0.969375
  Prefactor  = 0.974466
 **********
 **   18 **HESSE 
 **********

 FCN=   5191.186     FROM HESSE     STATUS=OK           295 CALLS     2077 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7419        .11619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.176        56.941        .62200E-03   -1.5070    
   4  Prefactor     .70522        5.2905        .31568E-03   -1.5540    
   5  Prefactor     .10000E-03    8.2351        .14175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.227        8.8257        .89067E-04   -1.4808    
   7  Prefactor     .10000E-03    6.9822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.6021        .16616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.5429        8.5170        .13715E-03   -1.5123    
  11  Prefactor     9.6430        13.964        .12900E-03   -1.5087    
  12  norm          .10000E-03    1.3076        .12422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.0190        3.2929        .84093E-04   -1.5178    
  14  Prefactor     4.4406        4.5144        .14976E-03   -1.5286    
  15  norm          8.6069        11.410        .13660E-03   -1.5121    
  16  norm          1.8796        13.295        .30391E-03   -1.5434    
  17  Prefactor     7.2976        8.4852        .14842E-03   -1.5168    
  18  Prefactor     .10000E-03    25.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .96938        .20449        .23115E-03   -.94064    
  20  Prefactor     .97447        .21112        .25016E-03   -.93586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15318e-09
Minuit parameter uncertainties:
  1  2.54903e-06
  2  5.98386e-05
  3  48.2138
  4  3.86332
  5  2.74702e-06
  6  8.82622
  7  1.18414e-06
  8  4.00203e-05
  9  2.31543e-07
  10  8.51825
  11  13.9686
  12  1.16891e-07
  13  3.29296
  14  4.51476
  15  11.4129
  16  10.0005
  17  8.48657
  18  7.27204e-05
  19  0.204657
  20  0.211295
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
572   Normalization:  9.694e-01  2.047e-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: 8.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251948/likelihoodResults_350524801_350784001_4FGL_J1051.6+2109_daily_bin429.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) = 5191.1866463
delta logL = -0.00068274113346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5191.18596352
delta logL = 3.72929207515e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7499       1.0000          .0000       10.000    
     3 'Normalizat'    .96939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97447       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=   5191.186     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      252 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7551        .64590E-01** at limit **
   2  Index         2.2868        5.0670        .50000        .19297E-06
   3  Normalizat    .96937        .31274E-02    .23115E-03   -.56722E-03
   4  Prefactor     .97446        .34103E-02    .25016E-03   -.53331E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.28683
  Normalizat = 0.969374
  Prefactor  = 0.974464
 **********
 **   18 **HESSE 
 **********

 FCN=   5191.186     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      283 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    276.10        .32268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2868        6.7013        .50000       -.57357    
   3  Normalizat    .96937        .24816E-01    .46231E-04   -.94064    
   4  Prefactor     .97446        .27061E-01    .50032E-04   -.93586    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.74119e-11
Minuit parameter uncertainties:
  1  0.000576614
  2  671.077
  3  0.0248161
  4  0.0270611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251948': 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) = 5191.18596193
delta logL = 1.62611831911e-06

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  5.766e-04  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.287e+00  6.711e+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:  9.745e-01  2.706e-02  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  9.694e-01  2.482e-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/251948/cmap_HighResolution_350524801_350784001_4FGL_J1051.6+2109_daily_bin429.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.62e-03', job_status='DONE', photon_flux_upper_limit='8.38e-08', time_completed='2021-09-02 18:40:13.071129', job_id='251948', GAL2='0.97', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630633213.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.63e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='429' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:40:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 251948: <4FGL_J1051.6+2109_daily_bin429> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin429> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  2 18:26:43 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:28:26 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:28:26 2021
Terminated at Thu Sep  2 18:40:13 2021
Results reported at Thu Sep  2 18:40:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin429 162.913 21.1651 350524801 350784001 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 :                                   560.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            810 sec.

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

