/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 129 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 = 7473
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1051.6+2109_daily_bin39
RA = 162.913, Dec = 21.1651
tmin = 249436801, tmax = 249696001
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='250263', job_status='RUN', time_executed='2021-09-02 18:27:23.175988', time_epoch_executed='1630632443.18' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='39'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250263

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250263/ft1_4FGL_J1051.6+2109_daily_bin39.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250263/ft2_4FGL_J1051.6+2109_daily_bin39.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250263/ft1_4FGL_J1051.6+2109_daily_bin39.fits outfile=/scratch/kocevski/250263/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin39.fits ra=162.913 dec=21.1651 rad=12.0 tmin=249436801.0 tmax=249696001.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 1.48
user 1.28
sys 0.16

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250263/ft1_filtered_4FGL_J1051.6+2109_daily_bin39.fits" evtable="EVENTS" scfile=/scratch/kocevski/250263/ft2_4FGL_J1051.6+2109_daily_bin39.fits sctable="SC_DATA" outfile=/scratch/kocevski/250263/ltcube_249436801_249696001_4FGL_J1051.6+2109_daily_bin39.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/250263/ft2_4FGL_J1051.6+2109_daily_bin39.fits
.....................!
real 17.26
user 16.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250263/ft1_filtered_4FGL_J1051.6+2109_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/250263/ft2_4FGL_J1051.6+2109_daily_bin39.fits sctable="SC_DATA" expcube=/scratch/kocevski/250263/ltcube_249436801_249696001_4FGL_J1051.6+2109_daily_bin39.fits outfile=/scratch/kocevski/250263/expmap_249436801_249696001_4FGL_J1051.6+2109_daily_bin39.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/250263/ltcube_249436801_249696001_4FGL_J1051.6+2109_daily_bin39.fits
.....................!
real 196.43
user 189.82
sys 4.88

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/250263/ft1_filtered_4FGL_J1051.6+2109_daily_bin39.fits scfile=/scratch/kocevski/250263/ft2_4FGL_J1051.6+2109_daily_bin39.fits outfile=/scratch/kocevski/250263/cmap_249436801_249696001_4FGL_J1051.6+2109_daily_bin39.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.54
user 0.40
sys 0.12

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

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9443       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .38177       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1801       1.0000         .10000E-03   10000.    
    12 'norm      '    .10506E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.908       1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.332       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8243       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.223       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0870       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .78019       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=   4551.006     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2011 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1219        .90712E-02** at limit **
   2  Prefactor     .10000E-03    14.653        .90712E-02** at limit **
   3  Prefactor     .10000E-03    22.110        .90712E-02** at limit **
   4  Prefactor     8.9448        6.3511        .33505E-02    .10487E-03
   5  Prefactor     .10000E-03    .72252        .90712E-02** at limit **
   6  Prefactor     .10000E-03    2.7751        .90712E-02** at limit **
   7  Prefactor     .37783        3.9146        .67906E-01    .33086E-03
   8  Prefactor     .10001E-03    10.739        .90712E-02** at limit **
   9  Prefactor     .10000E-03    3.3457        .90712E-02** at limit **
  10  Prefactor     .10001E-03    10.911        .90712E-02** at limit **
  11  Prefactor     1.1747        41.255        .10522E-01    .38919E-03
  12  norm          .10000E-03    .82574        .22045E-01** at limit **
  13  Prefactor     .10000E-03    .85742        .90712E-02** at limit **
  14  Prefactor     21.907        9.7774        .21394E-02   -.12325E-03
  15  norm          .10000E-03    4.9746        .90712E-02** at limit **
  16  norm          13.332        13.344        .27426E-02    .28541E-03
  17  Prefactor     3.8243        8.4172        .51597E-02    .18272E-03
  18  Prefactor     33.223        43.283        .17380E-02    .11335E-02
  19  Normalizat    1.0871        .18218        .38555E-01    .13796E-04
  20  Prefactor     .78003        .18733        .43459E-01    .17047E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.94483
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.377832
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 1.17474
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.9068
  norm       = 0.0001
  norm       = 13.3316
  Prefactor  = 3.82427
  Prefactor  = 33.2229
  Normalizat = 1.08709
  Prefactor  = 0.780031
 **********
 **   18 **HESSE 
 **********

 FCN=   4551.006     FROM HESSE     STATUS=OK           289 CALLS     2300 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1252        .95970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.9448        6.3467        .13402E-03   -1.5110    
   5  Prefactor     .10000E-03    .73020        .55964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7917        .10972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .37783        14.201        .24899E-02   -1.5585    
   8  Prefactor     .10001E-03    10.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.3478        .12048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    11.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1747        40.681        .42090E-03   -1.5491    
  12  norm          .10000E-03    1.6839        .11846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .86151        .60989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.907        9.7721        .85575E-04   -1.4772    
  15  norm          .10000E-03    4.9960        .14693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.332        13.371        .10970E-03   -1.4978    
  17  Prefactor     3.8243        8.3960        .20639E-03   -1.5317    
  18  Prefactor     33.223        43.293        .69520E-04   -1.4555    
  19  Normalizat    1.0871        .21023        .20839E-03   -.90167    
  20  Prefactor     .78003        .21735        .25692E-03   -1.0047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33278e-08
Minuit parameter uncertainties:
  1  5.64017e-08
  2  0.000142557
  3  2.87975e-05
  4  6.34716
  5  4.49938e-07
  6  7.25138e-08
  7  4.63337
  8  0.000471173
  9  2.65175e-07
  10  0.000576776
  11  13.8356
  12  5.08951e-07
  13  1.58222e-08
  14  9.77278
  15  1.9813e-06
  16  13.3741
  17  8.39857
  18  43.3342
  19  0.210393
  20  0.217587
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  3.778e-01  4.633e+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:  7.800e-01  2.176e-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.087e+00  2.104e-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: 7.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250263/likelihoodResults_249436801_249696001_4FGL_J1051.6+2109_daily_bin39.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) = 4550.8671295
delta logL = 0.13851604895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4550.60598859
delta logL = 0.39965696645

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1646       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7061       1.0000          .0000       10.000    
     3 'Normalizat'    1.0947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76573       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=   4550.606     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      233 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1598        5.0059        .56957E-02    .12620E-03
   2  Index         1.7067        .57901        .27813       -.41466E-04
   3  Normalizat    1.0948        .17580        .38219E-01    .15212E-04
   4  Prefactor     .76563        .18756        .43270E-01    .27002E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.15985
  Index      = 1.70673
  Normalizat = 1.09482
  Prefactor  = 0.765628
 **********
 **   18 **HESSE 
 **********

 FCN=   4550.606     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1598        5.1785        .17692E-03   -1.5352    
   2  Index         1.7067        .79435        .97235E-02   -.71903    
   3  Normalizat    1.0948        .20313        .20767E-03   -.89918    
   4  Prefactor     .76563        .21655        .25883E-03   -1.0101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85682e-12
Minuit parameter uncertainties:
  1  5.17921
  2  0.800377
  3  0.203276
  4  0.216788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250263': 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) = 4550.60598724
delta logL = 0.399658315941

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  3.160e+00  5.179e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  1.707e+00  8.004e-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:  7.656e-01  2.168e-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.095e+00  2.033e-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/250263/cmap_HighResolution_249436801_249696001_4FGL_J1051.6+2109_daily_bin39.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.09e-03', job_status='DONE', photon_flux_upper_limit='7.71e-08', time_completed='2021-09-02 18:36:20.917655', job_id='250263', GAL2='0.77', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630632980.92', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='4.00e-01', ts2='0.81', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='39' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:36:20 PDT 2021


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

Job <4FGL_J1051.6+2109_daily_bin39> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 18:21:16 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:25:00 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:25:00 2021
Terminated at Thu Sep  2 18:36:21 2021
Results reported at Thu Sep  2 18:36:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin39 162.913 21.1651 249436801 249696001 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 :                                   534.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            905 sec.

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

