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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1484
RA = 162.913, Dec = 21.1651
tmin = 623980801, tmax = 624240001
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='258256', job_status='RUN', time_executed='2021-09-02 18:49:00.677758', time_epoch_executed='1630633740.68' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1484'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258256

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258256/ft1_4FGL_J1051.6+2109_daily_bin1484.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258256/ft2_4FGL_J1051.6+2109_daily_bin1484.fits


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

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

Done.
real 4.08
user 3.81
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258256/ft1_filtered_4FGL_J1051.6+2109_daily_bin1484.fits" evtable="EVENTS" scfile=/scratch/kocevski/258256/ft2_4FGL_J1051.6+2109_daily_bin1484.fits sctable="SC_DATA" outfile=/scratch/kocevski/258256/ltcube_623980801_624240001_4FGL_J1051.6+2109_daily_bin1484.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/258256/ft2_4FGL_J1051.6+2109_daily_bin1484.fits
.....................!
real 17.36
user 16.89
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258256/ft1_filtered_4FGL_J1051.6+2109_daily_bin1484.fits evtable="EVENTS" scfile=/scratch/kocevski/258256/ft2_4FGL_J1051.6+2109_daily_bin1484.fits sctable="SC_DATA" expcube=/scratch/kocevski/258256/ltcube_623980801_624240001_4FGL_J1051.6+2109_daily_bin1484.fits outfile=/scratch/kocevski/258256/expmap_623980801_624240001_4FGL_J1051.6+2109_daily_bin1484.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/258256/ltcube_623980801_624240001_4FGL_J1051.6+2109_daily_bin1484.fits
.....................!
real 191.80
user 186.40
sys 4.44

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/258256/ft1_filtered_4FGL_J1051.6+2109_daily_bin1484.fits scfile=/scratch/kocevski/258256/ft2_4FGL_J1051.6+2109_daily_bin1484.fits outfile=/scratch/kocevski/258256/cmap_623980801_624240001_4FGL_J1051.6+2109_daily_bin1484.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.70
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258256/ft1_filtered_4FGL_J1051.6+2109_daily_bin1484.fits scfile=/scratch/kocevski/258256/ft2_4FGL_J1051.6+2109_daily_bin1484.fits outfile=/scratch/kocevski/258256/cmap_HighResolution_623980801_624240001_4FGL_J1051.6+2109_daily_bin1484.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.946       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.810       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4356       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3482       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9546       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0253       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.2765       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14685E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0673       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.855       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0844       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86800       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=   5913.681     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     2014 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.946        7.6722        .62810E-07   -.44840E-05
   2  Prefactor     .10000E-03    12.765        .42961E-05** at limit **
   3  Prefactor     44.808        49.242       -.23588E-05   -.21669E-05
   4  Prefactor     2.4357        7.1207        .37734E-07   -.31505E-03
   5  Prefactor     .10000E-03    .91052       -.42447E-07** at limit **
   6  Prefactor     .10000E-03    5.7471       -.18907E-05** at limit **
   7  Prefactor     1.3477        4.4459        .39810E-07   -.40027E-03
   8  Prefactor     .10000E-03    9.3575       -.78137E-05** at limit **
   9  Prefactor     3.9549        7.2055       -.10061E-06   -.21984E-04
  10  Prefactor     7.0235        8.9758       -.30538E-06   -.20998E-03
  11  Prefactor     .10000E-03    5.2225        .52554E-06** at limit **
  12  norm          2.2765        1.4472        .12401E-07    .17526E-03
  13  Prefactor     .10011E-03    1.3188        .66501E-06** at limit **
  14  Prefactor     8.0675        6.0504       -.17174E-07   -.15780E-04
  15  norm          .10000E-03    11.370       -.25278E-05** at limit **
  16  norm          .10000E-03    7.4155        .50652E-05** at limit **
  17  Prefactor     10.855        9.6437       -.13669E-07   -.28767E-04
  18  Prefactor     .10000E-03    18.476       -.51484E-05** at limit **
  19  Normalizat    1.0844        .17005       -.13450E-07   -.13003E-03
  20  Prefactor     .86803        .17171        .86738E-07   -.83995E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.9463
  Prefactor  = 0.0001
  Prefactor  = 44.8081
  Prefactor  = 2.43568
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.34773
  Prefactor  = 0.0001
  Prefactor  = 3.95492
  Prefactor  = 7.02351
  Prefactor  = 0.0001
  norm       = 2.27648
  Prefactor  = 0.000100107
  Prefactor  = 8.06749
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.855
  Prefactor  = 0.0001
  Normalizat = 1.08436
  Prefactor  = 0.868031
 **********
 **   18 **HESSE 
 **********

 FCN=   5913.681     FROM HESSE     STATUS=OK           291 CALLS     2305 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.946        7.6730        .11133E-03   -1.4988    
   2  Prefactor     .10000E-03    12.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     44.808        49.269        .59893E-04   -1.4368    
   4  Prefactor     2.4357        7.3155        .13109E-02   -1.5396    
   5  Prefactor     .10000E-03    1.5274        .14004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.8323        .17979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3477        14.937        .18848E-02   -1.5476    
   8  Prefactor     .10000E-03    9.3773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.9549        7.3650        .20284E-03   -1.5310    
  10  Prefactor     7.0235        8.8045        .15135E-03   -1.5178    
  11  Prefactor     .10000E-03    5.2307        .17160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.2765        1.4432        .70409E-04   -1.5406    
  13  Prefactor     .10011E-03    13.349        .16307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.0675        6.0502        .14116E-03   -1.5140    
  15  norm          .10000E-03    11.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.4504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.855        9.6545        .60803E-03   -1.5049    
  18  Prefactor     .10000E-03    18.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0844        .19863        .22633E-03   -.90256    
  20  Prefactor     .86803        .19722        .25813E-03   -.97267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.64708e-09
Minuit parameter uncertainties:
  1  7.67357
  2  3.15926e-07
  3  49.3138
  4  7.31819
  5  2.23136e-06
  6  6.98554e-06
  7  8.97603
  8  9.95495e-07
  9  7.36665
  10  8.80614
  11  9.10796e-08
  12  1.4432
  13  0.00239363
  14  6.05063
  15  1.30457e-05
  16  1.35968e-05
  17  9.65585
  18  1.06812e-06
  19  0.198771
  20  0.197383
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.348e+00  8.976e+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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  8.680e-01  1.974e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.084e+00  1.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
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/258256/likelihoodResults_623980801_624240001_4FGL_J1051.6+2109_daily_bin1484.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) = 5913.2743024
delta logL = 0.406745794679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5913.13742293
delta logL = 0.543625264772

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7118       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5741       1.0000          .0000       10.000    
     3 'Normalizat'    1.0906       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85689       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=   5913.137     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      227 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7192        5.0607        .52402E-02    .94272E-04
   2  Index         1.5743        .46556        .19282       -.89563E-04
   3  Normalizat    1.0908        .16518        .38394E-01    .30413E-05
   4  Prefactor     .85672        .17136        .44453E-01    .18670E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.7192
  Index      = 1.57428
  Normalizat = 1.09083
  Prefactor  = 0.856716
 **********
 **   18 **HESSE 
 **********

 FCN=   5913.137     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7192        7.4567        .19480E-03   -1.5322    
   2  Index         1.5743        .81295        .95488E-02   -.75480    
   3  Normalizat    1.0908        .18960        .22563E-03   -.90047    
   4  Prefactor     .85672        .19650        .25943E-03   -.97670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15832e-11
Minuit parameter uncertainties:
  1  7.45854
  2  0.819855
  3  0.189721
  4  0.196662
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258256': 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) = 5913.13742159
delta logL = 0.543626605954

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  3.719e+00  7.459e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  1.574e+00  8.199e-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:  8.567e-01  1.967e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.091e+00  1.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 162.913 21.165
Photon Index (Free Index): 1.57 +/- 0.82
Photon Flux (Free Index): 8.17e-09 +/- 1.65e-08
Energy Flux (Free Index): 2.01e-05 +/- 3.69e-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/258256/cmap_HighResolution_623980801_624240001_4FGL_J1051.6+2109_daily_bin1484.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.65e-03', comment='SUCCESS', energy_flux2='2.01e-05', dlogl='5.44e-01', photon_flux2='8.17e-09', job_status='DONE', time_completed='2021-09-02 18:59:44.685907', photon_index_error2='0.82', photon_index2='1.57', ts='0.03', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='3.69e-05', EG='1.08', time_epoch_completed='1630634384.69', return_code='0', job_id='258256', GAL2='0.86', EG2='1.09', return_code2='0', photon_flux_error2='1.65e-08', ts2='1.12', photon_index='2.77' WHERE bin_id='1484' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:59:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 258256: <4FGL_J1051.6+2109_daily_bin1484> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1484 162.913 21.1651 623980801 624240001 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 :                                   603.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            796 sec.

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

