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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1121
RA = 162.913, Dec = 21.1651
tmin = 529891201, tmax = 530150401
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='256675', job_status='RUN', time_executed='2021-09-02 18:48:04.767965', time_epoch_executed='1630633684.77' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256675

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256675/ft1_4FGL_J1051.6+2109_daily_bin1121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256675/ft2_4FGL_J1051.6+2109_daily_bin1121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256675/ft1_4FGL_J1051.6+2109_daily_bin1121.fits outfile=/scratch/kocevski/256675/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1121.fits ra=162.913 dec=21.1651 rad=12.0 tmin=529891201.0 tmax=530150401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.95
user 2.72
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256675/ft1_filtered_4FGL_J1051.6+2109_daily_bin1121.fits" evtable="EVENTS" scfile=/scratch/kocevski/256675/ft2_4FGL_J1051.6+2109_daily_bin1121.fits sctable="SC_DATA" outfile=/scratch/kocevski/256675/ltcube_529891201_530150401_4FGL_J1051.6+2109_daily_bin1121.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/256675/ft2_4FGL_J1051.6+2109_daily_bin1121.fits
.....................!
real 13.65
user 13.29
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256675/ft1_filtered_4FGL_J1051.6+2109_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/256675/ft2_4FGL_J1051.6+2109_daily_bin1121.fits sctable="SC_DATA" expcube=/scratch/kocevski/256675/ltcube_529891201_530150401_4FGL_J1051.6+2109_daily_bin1121.fits outfile=/scratch/kocevski/256675/expmap_529891201_530150401_4FGL_J1051.6+2109_daily_bin1121.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/256675/ltcube_529891201_530150401_4FGL_J1051.6+2109_daily_bin1121.fits
.....................!
real 156.65
user 152.49
sys 3.65

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/256675/ft1_filtered_4FGL_J1051.6+2109_daily_bin1121.fits scfile=/scratch/kocevski/256675/ft2_4FGL_J1051.6+2109_daily_bin1121.fits outfile=/scratch/kocevski/256675/cmap_529891201_530150401_4FGL_J1051.6+2109_daily_bin1121.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.50
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256675/ft1_filtered_4FGL_J1051.6+2109_daily_bin1121.fits scfile=/scratch/kocevski/256675/ft2_4FGL_J1051.6+2109_daily_bin1121.fits outfile=/scratch/kocevski/256675/cmap_HighResolution_529891201_530150401_4FGL_J1051.6+2109_daily_bin1121.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.50
user 0.31
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.019       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6584       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9732       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .89579       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.4709       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .98626       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8878       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.313       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.707       1.0000         .10000E-03   10000.    
    12 'norm      '    .53451       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.654       1.0000         .10000E-03   10000.    
    15 'norm      '    6.9172       1.0000         .10000E-03   10000.    
    16 'norm      '    .16211E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    82.950       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .85861       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0512       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=   4930.979     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     2121 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.020        8.7743        .13891E-06    .15533E-04
   2  Prefactor     .10000E-03    8.5426        .14969E-07** at limit **
   3  Prefactor     7.4624        156.19        .22357E-06   -.24729E-04
   4  Prefactor     7.9754        7.1190        .22122E-05   -.55156E-04
   5  Prefactor     .89627        1.8432       -.18290E-06   -.36224E-03
   6  Prefactor     8.4742        8.1459       -.43451E-07   -.83421E-04
   7  Prefactor     .94707        8.2007       -.29076E-06    .58115E-04
   8  Prefactor     6.8675        37.465        .12160E-05    .46429E-04
   9  Prefactor     14.331        12.503       -.21033E-06    .39843E-04
  10  Prefactor     .10000E-03    4.2617        .11460E-06** at limit **
  11  Prefactor     11.730        18.613       -.19289E-06    .48158E-04
  12  norm          .53388        1.5596        .77108E-06   -.97096E-06
  13  Prefactor     .10000E-03    1.6112        .21605E-06** at limit **
  14  Prefactor     10.655        6.9185        .54623E-07   -.28960E-05
  15  norm          6.9193        9.9777        .56281E-07    .60305E-05
  16  norm          .10000E-03    8.5720        .85723E-06** at limit **
  17  Prefactor     .10000E-03    4.0028        .31547E-07** at limit **
  18  Prefactor     83.032        52.084       -.18196E-08   -.68892E-04
  19  Normalizat    .85847        .19464       -.97572E-06   -.99215E-04
  20  Prefactor     1.0514        .19722       -.69166E-06   -.10141E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.02
  Prefactor  = 0.0001
  Prefactor  = 7.46238
  Prefactor  = 7.97539
  Prefactor  = 0.896265
  Prefactor  = 8.47417
  Prefactor  = 0.947072
  Prefactor  = 6.8675
  Prefactor  = 14.3306
  Prefactor  = 0.0001
  Prefactor  = 11.7301
  norm       = 0.533875
  Prefactor  = 0.0001
  Prefactor  = 10.6551
  norm       = 6.9193
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 83.0321
  Normalizat = 0.858467
  Prefactor  = 1.05143
 **********
 **   18 **HESSE 
 **********

 FCN=   4930.979     FROM HESSE     STATUS=OK           307 CALLS     2428 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.020        8.7692        .12069E-03   -1.5044    
   2  Prefactor     .10000E-03    8.5460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.4624        157.63        .14491E-03   -1.5162    
   4  Prefactor     7.9754        7.0719        .70998E-03   -1.5143    
   5  Prefactor     .89627        1.5548        .12803E-02   -1.5519    
   6  Prefactor     8.4742        8.1116        .13773E-03   -1.5126    
   7  Prefactor     .94707        28.080        .30309E-02   -1.5513    
   8  Prefactor     6.8675        37.467        .15287E-03   -1.5184    
   9  Prefactor     14.331        12.710        .10587E-03   -1.4951    
  10  Prefactor     .10000E-03    4.2729        .14158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.730        18.337        .11708E-03   -1.5023    
  12  norm          .53388        1.5577        .13795E-03   -1.5562    
  13  Prefactor     .10000E-03    1.6560        .17408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.655        6.9187        .12275E-03   -1.5055    
  15  norm          6.9193        9.9462        .15254E-03   -1.5182    
  16  norm          .10000E-03    30.373        .39089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.0099        .13720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     83.032        52.127        .22052E-03   -1.3883    
  19  Normalizat    .85847        .22237        .24235E-03   -.97935    
  20  Prefactor     1.0514        .22873        .24245E-03   -.91034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0474e-10
Minuit parameter uncertainties:
  1  8.77027
  2  8.89197e-07
  3  68.8008
  4  7.07265
  5  1.55483
  6  8.11267
  7  10.3185
  8  32.1123
  9  12.7128
  10  3.16166e-06
  11  18.346
  12  1.55786
  13  3.50968e-06
  14  6.91923
  15  9.94856
  16  0.000464009
  17  3.23727e-06
  18  52.1562
  19  0.22261
  20  0.228941
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  9.471e-01  1.032e+01  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.051e+00  2.289e-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.585e-01  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/256675/likelihoodResults_529891201_530150401_4FGL_J1051.6+2109_daily_bin1121.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) = 4930.74081836
delta logL = 0.238209150226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4930.74079235
delta logL = 0.238235162659

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86706       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5876       1.0000          .0000       10.000    
     3 'Normalizat'    .81189       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0840       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=   4930.741     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      273 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86886        6.3274        .89881E-04   -.63951E-03
   2  Index         4.5879        3.4454        .40417E-02   -.40980E-04
   3  Normalizat    .81183        .21747        .24828E-03   -.21118E-03
   4  Prefactor     1.0840        .23209        .23914E-03    .36557E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.868855
  Index      = 4.58788
  Normalizat = 0.811825
  Prefactor  = 1.08405
 **********
 **   18 **HESSE 
 **********

 FCN=   4930.741     FROM HESSE     STATUS=OK            23 CALLS      296 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86886        3.1601        .35952E-05   -1.5522    
   2  Index         4.5879        2.4497        .16167E-03   -.82518E-01
   3  Normalizat    .81183        .21787        .99311E-05   -.99632    
   4  Prefactor     1.0840        .23240        .95658E-05   -.89978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49423e-10
Minuit parameter uncertainties:
  1  3.1607
  2  2.56096
  3  0.218105
  4  0.232621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256675': 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) = 4930.74079096
delta logL = 0.238236550538

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  8.689e-01  3.161e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  4.588e+00  2.561e+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.084e+00  2.326e-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.118e-01  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/256675/cmap_HighResolution_529891201_530150401_4FGL_J1051.6+2109_daily_bin1121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.83e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-02 18:57:35.972242', job_id='256675', GAL2='1.08', fit_tolerance='1e-08', EG2='0.81', EG='0.86', time_epoch_completed='1630634255.97', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.38e-01', ts2='0.54', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='1121' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:57:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 256675: <4FGL_J1051.6+2109_daily_bin1121> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1121> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 18:41:49 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:44:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 18:44:09 2021
Terminated at Thu Sep  2 18:57:36 2021
Results reported at Thu Sep  2 18:57:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1121 162.913 21.1651 529891201 530150401 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 :                                   466.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             214.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            947 sec.

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

