/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 49 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 = 7463
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1051.6+2109_daily_bin439
RA = 162.913, Dec = 21.1651
tmin = 353116801, tmax = 353376001
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='251963', job_status='RUN', time_executed='2021-09-02 18:29:40.935570', time_epoch_executed='1630632580.94' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251963

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251963/ft1_4FGL_J1051.6+2109_daily_bin439.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251963/ft2_4FGL_J1051.6+2109_daily_bin439.fits


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

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

Done.
real 3.44
user 3.22
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/251963/ft2_4FGL_J1051.6+2109_daily_bin439.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/251963/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin439.fits evtable="EVENTS" outfile="/scratch/kocevski/251963/ft1_filtered_4FGL_J1051.6+2109_daily_bin439.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251963/ft1_filtered_4FGL_J1051.6+2109_daily_bin439.fits" evtable="EVENTS" scfile=/scratch/kocevski/251963/ft2_4FGL_J1051.6+2109_daily_bin439.fits sctable="SC_DATA" outfile=/scratch/kocevski/251963/ltcube_353116801_353376001_4FGL_J1051.6+2109_daily_bin439.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/251963/ft2_4FGL_J1051.6+2109_daily_bin439.fits
.....................!
real 15.77
user 15.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251963/ft1_filtered_4FGL_J1051.6+2109_daily_bin439.fits evtable="EVENTS" scfile=/scratch/kocevski/251963/ft2_4FGL_J1051.6+2109_daily_bin439.fits sctable="SC_DATA" expcube=/scratch/kocevski/251963/ltcube_353116801_353376001_4FGL_J1051.6+2109_daily_bin439.fits outfile=/scratch/kocevski/251963/expmap_353116801_353376001_4FGL_J1051.6+2109_daily_bin439.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/251963/ltcube_353116801_353376001_4FGL_J1051.6+2109_daily_bin439.fits
.....................!
real 192.68
user 187.37
sys 4.57

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/251963/ft1_filtered_4FGL_J1051.6+2109_daily_bin439.fits scfile=/scratch/kocevski/251963/ft2_4FGL_J1051.6+2109_daily_bin439.fits outfile=/scratch/kocevski/251963/cmap_353116801_353376001_4FGL_J1051.6+2109_daily_bin439.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251963/ft1_filtered_4FGL_J1051.6+2109_daily_bin439.fits scfile=/scratch/kocevski/251963/ft2_4FGL_J1051.6+2109_daily_bin439.fits outfile=/scratch/kocevski/251963/cmap_HighResolution_353116801_353376001_4FGL_J1051.6+2109_daily_bin439.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14174E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8070       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0518       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.968       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.757       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.145       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10856E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.1834       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1897       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.403       1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .90845       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0789       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21809E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3609       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83255       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6207.885     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     1754 TOTAL
                     EDM=   .90E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.0303         .0000    ** at limit **
   2  Prefactor     .10000E-03    8.9056         .0000    ** at limit **
   3  Prefactor     .10093E-03    460.06         .0000    ** at limit **
   4  Prefactor     7.8084        6.8565         .0000        .29855E-02
   5  Prefactor     1.0526        1.8759         .0000        .90918E-03
   6  Prefactor     10.974        9.2023         .0000        .52385E-03
   7  Prefactor     12.757        10.198         .0000       -.55716E-02
   8  Prefactor     .10000E-03    17.163         .0000    ** at limit **
   9  Prefactor     .10000E-03    3.9867         .0000    ** at limit **
  10  Prefactor     11.144        10.966         .0000        .65569E-02
  11  Prefactor     .10000E-03    10.039         .0000    ** at limit **
  12  norm          3.1845        1.8902         .0000       -.13475E-03
  13  Prefactor     3.1876        3.8137         .0000        .19419E-03
  14  Prefactor     13.406        7.5143         .0000        .33974E-02
  15  norm          .10000E-03    6.9541         .0000    ** at limit **
  16  norm          .91611        9.2151         .0000       -.99667E-03
  17  Prefactor     1.0781        18.153         .0000        .15478E-01
  18  Prefactor     .10000E-03    44.551         .0000    ** at limit **
  19  Normalizat    1.3608        .19909         .0000        .44301E-03
  20  Prefactor     .83236        .19007         .0000        .37217E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100926
  Prefactor  = 7.80843
  Prefactor  = 1.05257
  Prefactor  = 10.9738
  Prefactor  = 12.7573
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 11.1444
  Prefactor  = 0.000100001
  norm       = 3.18454
  Prefactor  = 3.18758
  Prefactor  = 13.4055
  norm       = 0.0001
  norm       = 0.916114
  Prefactor  = 1.07813
  Prefactor  = 0.000100005
  Normalizat = 1.36076
  Prefactor  = 0.832358
 **********
 **   18 **HESSE 
 **********

 FCN=   6207.885     FROM HESSE     STATUS=OK           289 CALLS     2043 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0337        .10964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.9075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10093E-03    474.34        .36375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.8084        6.8417        .71756E-03   -1.5149    
   5  Prefactor     1.0526        1.5508        .13666E-02   -1.5503    
   6  Prefactor     10.974        9.2245        .12098E-03   -1.5045    
   7  Prefactor     12.757        10.200        .11215E-03   -1.4993    
   8  Prefactor     .10000E-03    17.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.9898        .15358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.144        10.942        .12000E-03   -1.5040    
  11  Prefactor     .10000E-03    10.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1845        1.8852        .78167E-04   -1.5351    
  13  Prefactor     3.1876        3.7941        .15153E-03   -1.5351    
  14  Prefactor     13.406        7.4962        .10941E-03   -1.4976    
  15  norm          .10000E-03    6.9811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .91611        80.546        .43883E-02   -1.5517    
  17  Prefactor     1.0781        18.375        .23223E-02   -1.5500    
  18  Prefactor     .10000E-03    44.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3608        .24269        .23878E-03   -.81770    
  20  Prefactor     .83236        .22807        .30063E-03   -.98546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32414e-07
Minuit parameter uncertainties:
  1  7.66812e-06
  2  0.000144567
  3  0.0422655
  4  6.8424
  5  1.55087
  6  9.22569
  7  10.2012
  8  0.000283228
  9  1.62004e-05
  10  10.9442
  11  0.00021862
  12  1.88521
  13  3.79438
  14  7.4967
  15  2.37529e-05
  16  17.2031
  17  8.90456
  18  0.000940737
  19  0.242892
  20  0.228327
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.276e+01  1.020e+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:  8.324e-01  2.283e-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.361e+00  2.429e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.29
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 6.46e-08 +/- 5.16e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 1.18e-05

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

Saving results to:
/scratch/kocevski/251963/likelihoodResults_353116801_353376001_4FGL_J1051.6+2109_daily_bin439.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) = 6206.8865479
delta logL = 0.998475879633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6206.87539034
delta logL = 1.00963343885

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.818       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8806       1.0000          .0000       10.000    
     3 'Normalizat'    1.4136       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78848       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=   6206.875     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      218 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.811        9.9561        .26937E-02    .35549E-03
   2  Index         1.8794        .37592        .19661       -.70382E-04
   3  Normalizat    1.4138        .18737        .53140E-01   -.52142E-05
   4  Prefactor     .78831        .19013        .69524E-01    .14219E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.8109
  Index      = 1.8794
  Normalizat = 1.41383
  Prefactor  = 0.788311
 **********
 **   18 **HESSE 
 **********

 FCN=   6206.875     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.811        11.535        .53875E-03   -1.4965    
   2  Index         1.8794        .51323        .73836E-02   -.67401    
   3  Normalizat    1.4138        .22400        .23495E-03   -.80229    
   4  Prefactor     .78831        .22622        .30763E-03   -1.0016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69401e-12
Minuit parameter uncertainties:
  1  11.5364
  2  0.514714
  3  0.224156
  4  0.226483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251963': 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) = 6206.87538701
delta logL = 1.00963677251

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.381e+01  1.154e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  1.879e+00  5.147e-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.883e-01  2.265e-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.414e+00  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.32
Ra Dec: 162.913 21.165
Photon Index (Free Index): 1.88 +/- 0.51
Photon Flux (Free Index): 3.31e-08 +/- 3.28e-08
Energy Flux (Free Index): 3.14e-05 +/- 3.30e-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/251963/cmap_HighResolution_353116801_353376001_4FGL_J1051.6+2109_daily_bin439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', comment='SUCCESS', photon_flux='6.46e-08', energy_flux2='3.14e-05', photon_flux_error='5.16e-08', dlogl='1.01e+00', energy_flux='1.48e-05', photon_flux2='3.31e-08', job_status='DONE', time_completed='2021-09-02 18:40:40.429786', photon_index_error2='0.51', photon_index2='1.88', ts='2.29', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.70e-07', energy_flux_error2='3.30e-05', EG='1.36', time_epoch_completed='1630633240.43', return_code='0', job_id='251963', GAL2='0.79', EG2='1.41', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='3.28e-08', ts2='4.32', photon_index='2.77' WHERE bin_id='439' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:40:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 251963: <4FGL_J1051.6+2109_daily_bin439> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin439> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  2 18:26:44 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:28:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 18:28:29 2021
Terminated at Thu Sep  2 18:40:41 2021
Results reported at Thu Sep  2 18:40:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin439 162.913 21.1651 353116801 353376001 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 :                                   608.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            837 sec.

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

