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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1411
RA = 162.913, Dec = 21.1651
tmin = 605059201, tmax = 605318401
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='258120', job_status='RUN', time_executed='2021-09-02 18:48:40.434257', time_epoch_executed='1630633720.43' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258120

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258120/ft1_4FGL_J1051.6+2109_daily_bin1411.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258120/ft2_4FGL_J1051.6+2109_daily_bin1411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258120/ft1_4FGL_J1051.6+2109_daily_bin1411.fits outfile=/scratch/kocevski/258120/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1411.fits ra=162.913 dec=21.1651 rad=12.0 tmin=605059201.0 tmax=605318401.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 5.40
user 5.11
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/258120/ft2_4FGL_J1051.6+2109_daily_bin1411.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/258120/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1411.fits evtable="EVENTS" outfile="/scratch/kocevski/258120/ft1_filtered_4FGL_J1051.6+2109_daily_bin1411.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.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258120/ft1_filtered_4FGL_J1051.6+2109_daily_bin1411.fits" evtable="EVENTS" scfile=/scratch/kocevski/258120/ft2_4FGL_J1051.6+2109_daily_bin1411.fits sctable="SC_DATA" outfile=/scratch/kocevski/258120/ltcube_605059201_605318401_4FGL_J1051.6+2109_daily_bin1411.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/258120/ft2_4FGL_J1051.6+2109_daily_bin1411.fits
.....................!
real 16.08
user 15.54
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258120/ft1_filtered_4FGL_J1051.6+2109_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/258120/ft2_4FGL_J1051.6+2109_daily_bin1411.fits sctable="SC_DATA" expcube=/scratch/kocevski/258120/ltcube_605059201_605318401_4FGL_J1051.6+2109_daily_bin1411.fits outfile=/scratch/kocevski/258120/expmap_605059201_605318401_4FGL_J1051.6+2109_daily_bin1411.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/258120/ltcube_605059201_605318401_4FGL_J1051.6+2109_daily_bin1411.fits
.....................!
real 192.38
user 186.54
sys 5.02

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/258120/ft1_filtered_4FGL_J1051.6+2109_daily_bin1411.fits scfile=/scratch/kocevski/258120/ft2_4FGL_J1051.6+2109_daily_bin1411.fits outfile=/scratch/kocevski/258120/cmap_605059201_605318401_4FGL_J1051.6+2109_daily_bin1411.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.57
user 0.38
sys 0.17

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

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

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.401       1.0000         .10000E-03   10000.    
     2 'Prefactor '    61.325       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12060E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.329       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13458E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.204       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14873E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17153E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8856       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .14592       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .25424E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4592       1.0000         .10000E-03   10000.    
    15 'norm      '    22.480       1.0000         .10000E-03   10000.    
    16 'norm      '    29.793       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.423       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2704       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .77177       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1877       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=   4706.235     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2086 TOTAL
                     EDM=   .93E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.394        11.126        .38047E-07   -.27240E-04
   2  Prefactor     61.187        52.468        .45735E-06    .73442E-04
   3  Prefactor     .10000E-03    90.343        .86696E-06** at limit **
   4  Prefactor     10.327        9.2216        .15848E-06    .13334E-03
   5  Prefactor     .10000E-03    1.1639        .16720E-06** at limit **
   6  Prefactor     .10000E-03    11.060        .11936E-06** at limit **
   7  Prefactor     16.190        11.614       -.10059E-07    .44879E-04
   8  Prefactor     .10000E-03    10.358        .65324E-08** at limit **
   9  Prefactor     .10000E-03    4.5324        .12387E-06** at limit **
  10  Prefactor     3.8037        26.682        .14587E-05    .45703E-04
  11  Prefactor     .10000E-03    4.4110        .47836E-07** at limit **
  12  norm          .14418        .84176        .26743E-06   -.38139E-03
  13  Prefactor     .10000E-03    2.7811       -.24118E-06** at limit **
  14  Prefactor     5.4620        5.9183        .18405E-05   -.11103E-03
  15  norm          22.484        13.990       -.13576E-06   -.78237E-04
  16  norm          29.743        17.457       -.15911E-06   -.13798E-03
  17  Prefactor     13.398        12.212       -.23907E-06   -.12935E-04
  18  Prefactor     5.9653        146.82       -.11542E-05   -.19814E-04
  19  Normalizat    .77219        .21082        .10976E-05   -.42793E-04
  20  Prefactor     1.1877        .20741       -.12803E-05    .56225E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.3945
  Prefactor  = 61.1867
  Prefactor  = 0.000100001
  Prefactor  = 10.3266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1897
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.8037
  Prefactor  = 0.0001
  norm       = 0.144183
  Prefactor  = 0.0001
  Prefactor  = 5.46196
  norm       = 22.4841
  norm       = 29.7425
  Prefactor  = 13.3976
  Prefactor  = 5.96529
  Normalizat = 0.772189
  Prefactor  = 1.18771
 **********
 **   18 **HESSE 
 **********

 FCN=   4706.235     FROM HESSE     STATUS=OK           295 CALLS     2381 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.394        11.124        .98897E-04   -1.4898    
   2  Prefactor     61.187        52.509        .51238E-04   -1.4142    
   3  Prefactor     .10000E-03    90.852        .20634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.327        9.2181        .12467E-03   -1.5065    
   5  Prefactor     .10000E-03    1.1732        .72192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.348        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.190        11.635        .99496E-04   -1.4903    
   8  Prefactor     .10000E-03    10.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.5340        .14256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8037        22.122        .20470E-03   -1.5318    
  11  Prefactor     .10000E-03    4.4122        .14069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .14418        1.3663        .11806E-02   -1.5632    
  13  Prefactor     .10000E-03    27.415        .19344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.4620        5.9334        .84411E-03   -1.5241    
  15  norm          22.484        13.945        .84482E-04   -1.4759    
  16  norm          29.743        17.451        .73403E-04   -1.4617    
  17  Prefactor     13.398        12.214        .10933E-03   -1.4976    
  18  Prefactor     5.9653        147.34        .16030E-03   -1.5219    
  19  Normalizat    .77219        .24483        .27871E-03   -1.0111    
  20  Prefactor     1.1877        .24177        .24071E-03   -.86710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68177e-08
Minuit parameter uncertainties:
  1  11.125
  2  52.5491
  3  0.000576119
  4  9.21937
  5  1.03837e-06
  6  1.56606e-05
  7  11.6362
  8  1.46639e-06
  9  1.77582e-06
  10  18.3561
  11  1.26262e-06
  12  0.887397
  13  4.29808e-05
  14  5.93408
  15  13.9471
  16  17.4535
  17  12.2161
  18  59.4575
  19  0.245179
  20  0.242
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.619e+01  1.164e+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.188e+00  2.420e-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.722e-01  2.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.92
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 8.20e-08 +/- 5.89e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.35e-05

TS (Fixed Index): 2.92
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 2.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.59e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258120/likelihoodResults_605059201_605318401_4FGL_J1051.6+2109_daily_bin1411.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): 0
logL (Free Index) = 4706.13239662
delta logL = 0.102292539416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4706.12712732
delta logL = 0.107561838284

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.457       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1334       1.0000          .0000       10.000    
     3 'Normalizat'    .75657       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2018       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=   4706.127     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      266 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.476        202.52        .28374E-02    .73002E-04
   2  Index         3.1349        6.5640        .17697        .63075E-04
   3  Normalizat    .75638        .81885E-01    .63592E-01    .29921E-05
   4  Prefactor     1.2015        .88625E-01    .54185E-01   -.14079E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4761
  Index      = 3.13491
  Normalizat = 0.75638
  Prefactor  = 1.20149
 **********
 **   18 **HESSE 
 **********

 FCN=   4706.127     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.476        14.327        .11350E-03   -1.5001    
   2  Index         3.1349        .93376        .67888E-02   -.38226    
   3  Normalizat    .75638        .23331        .28132E-03   -1.0171    
   4  Prefactor     1.2015        .24226        .23957E-03   -.86285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66626e-09
Minuit parameter uncertainties:
  1  14.3309
  2  0.940186
  3  0.233621
  4  0.24248
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258120': 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) = 4706.12711103
delta logL = 0.107578125335

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.248e+01  1.433e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.135e+00  9.402e-01  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.201e+00  2.425e-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.564e-01  2.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.17
Ra Dec: 162.913 21.165
Photon Index (Free Index): 3.13 +/- 0.94
Photon Flux (Free Index): 9.47e-08 +/- 6.68e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.28e-05

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/258120/cmap_HighResolution_605059201_605318401_4FGL_J1051.6+2109_daily_bin1411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.59e-02', comment='SUCCESS', photon_flux='8.20e-08', energy_flux2='1.78e-05', photon_flux_error='5.89e-08', dlogl='1.08e-01', energy_flux='1.87e-05', photon_flux2='9.47e-08', job_status='DONE', time_completed='2021-09-02 18:58:19.661842', photon_index_error2='0.94', photon_index2='3.13', ts='2.92', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='2.01e-07', energy_flux_error2='1.28e-05', EG='0.77', time_epoch_completed='1630634299.66', return_code='0', job_id='258120', GAL2='1.20', EG2='0.76', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='6.68e-08', ts2='3.17', photon_index='2.77' WHERE bin_id='1411' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:58:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 258120: <4FGL_J1051.6+2109_daily_bin1411> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1411> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 18:46:20 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:47:48 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:47:48 2021
Terminated at Thu Sep  2 18:58:20 2021
Results reported at Thu Sep  2 18:58:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1411 162.913 21.1651 605059201 605318401 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 :                                   553.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   631 sec.
    Turnaround time :                            720 sec.

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

