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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1114
RA = 162.913, Dec = 21.1651
tmin = 528076801, tmax = 528336001
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='256664', job_status='RUN', time_executed='2021-09-02 18:44:28.323731', time_epoch_executed='1630633468.32' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1114'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256664

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256664/ft1_4FGL_J1051.6+2109_daily_bin1114.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256664/ft2_4FGL_J1051.6+2109_daily_bin1114.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256664/ft1_4FGL_J1051.6+2109_daily_bin1114.fits outfile=/scratch/kocevski/256664/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1114.fits ra=162.913 dec=21.1651 rad=12.0 tmin=528076801.0 tmax=528336001.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.58
user 3.33
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256664/ft1_filtered_4FGL_J1051.6+2109_daily_bin1114.fits evtable="EVENTS" scfile=/scratch/kocevski/256664/ft2_4FGL_J1051.6+2109_daily_bin1114.fits sctable="SC_DATA" expcube=/scratch/kocevski/256664/ltcube_528076801_528336001_4FGL_J1051.6+2109_daily_bin1114.fits outfile=/scratch/kocevski/256664/expmap_528076801_528336001_4FGL_J1051.6+2109_daily_bin1114.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/256664/ltcube_528076801_528336001_4FGL_J1051.6+2109_daily_bin1114.fits
.....................!
real 192.98
user 187.88
sys 4.38

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/256664/ft1_filtered_4FGL_J1051.6+2109_daily_bin1114.fits scfile=/scratch/kocevski/256664/ft2_4FGL_J1051.6+2109_daily_bin1114.fits outfile=/scratch/kocevski/256664/cmap_528076801_528336001_4FGL_J1051.6+2109_daily_bin1114.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.59
user 0.40
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5008       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.659       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .50557E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1351       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.804       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13248E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4510       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3644       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.851       1.0000         .10000E-03   10000.    
    15 'norm      '    7.8891       1.0000         .10000E-03   10000.    
    16 'norm      '    10.497       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6388       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .91276       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3506       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=   6565.549     FROM MIGRAD    STATUS=CONVERGED    416 CALLS     2035 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.8268       -.41744E-06** at limit **
   2  Prefactor     4.5008        39.112       -.10462E-06   -.25216E-05
   3  Prefactor     32.656        40.160       -.30753E-05   -.67079E-05
   4  Prefactor     .10000E-03    4.9096       -.11223E-05** at limit **
   5  Prefactor     .10000E-03    1.1308        .14746E-06** at limit **
   6  Prefactor     9.1354        6.6756        .31435E-06   -.19902E-05
   7  Prefactor     14.805        11.814       -.25638E-06   -.99853E-04
   8  Prefactor     .10000E-03    10.852        .21954E-06** at limit **
   9  Prefactor     .10000E-03    27.252        .13485E-05** at limit **
  10  Prefactor     3.4515        4.2465        .89522E-07   -.40353E-03
  11  Prefactor     8.3675        14.960       -.60870E-06   -.32740E-04
  12  norm          .10000E-03    .37303       -.80159E-07** at limit **
  13  Prefactor     .10000E-03    1.8273        .52960E-06** at limit **
  14  Prefactor     10.851        8.5275        .11790E-06    .12730E-04
  15  norm          7.8853        12.103        .20798E-06   -.13433E-03
  16  norm          10.499        12.016       -.95572E-07   -.14399E-04
  17  Prefactor     1.6416        28.402       -.11550E-05   -.18701E-04
  18  Prefactor     .10000E-03    65.936       -.39588E-05** at limit **
  19  Normalizat    .91265        .18706        .50726E-06   -.76307E-04
  20  Prefactor     1.3507        .19001       -.66907E-06   -.11435E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 4.50082
  Prefactor  = 32.6558
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 9.13536
  Prefactor  = 14.8047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.45153
  Prefactor  = 8.36752
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8512
  norm       = 7.88533
  norm       = 10.4986
  Prefactor  = 1.6416
  Prefactor  = 0.0001
  Normalizat = 0.91265
  Prefactor  = 1.3507
 **********
 **   18 **HESSE 
 **********

 FCN=   6565.549     FROM HESSE     STATUS=OK           297 CALLS     2332 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.8514        .17371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.5008        39.192        .18978E-03   -1.5284    
   3  Prefactor     32.656        40.139        .70117E-04   -1.4564    
   4  Prefactor     .10000E-03    4.9062        .17448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.676        .15980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.1354        6.6853        .13260E-03   -1.5103    
   7  Prefactor     14.805        11.635        .10410E-03   -1.4938    
   8  Prefactor     .10000E-03    10.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.022        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.4515        10.485        .10885E-02   -1.5336    
  11  Prefactor     8.3675        14.908        .13861E-03   -1.5129    
  12  norm          .10000E-03    .37768        .48295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.8566        .10680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.851        8.4316        .12163E-03   -1.5049    
  15  norm          7.8853        12.772        .71378E-03   -1.5146    
  16  norm          10.499        12.031        .12366E-03   -1.5060    
  17  Prefactor     1.6416        28.309        .33011E-03   -1.5452    
  18  Prefactor     .10000E-03    66.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .91265        .21950        .27660E-03   -.96017    
  20  Prefactor     1.3507        .22244        .24803E-03   -.81812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.31562e-10
Minuit parameter uncertainties:
  1  1.40341e-06
  2  26.586
  3  40.1723
  4  2.96166e-06
  5  0.000339121
  6  6.68589
  7  11.6372
  8  1.48886e-06
  9  9.64277e-05
  10  10.4903
  11  14.915
  12  8.42004e-08
  13  4.70261e-08
  14  8.43253
  15  12.776
  16  12.0335
  17  13.6413
  18  3.23429e-06
  19  0.219713
  20  0.2226
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.480e+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.351e+00  2.226e-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:  9.127e-01  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.41
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 7.50e-08 +/- 5.89e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.35e-05

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

Saving results to:
/scratch/kocevski/256664/likelihoodResults_528076801_528336001_4FGL_J1051.6+2109_daily_bin1114.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) = 6565.22347687
delta logL = 0.325690674315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6565.21843573
delta logL = 0.330731816208

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9178       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4628       1.0000          .0000       10.000    
     3 'Normalizat'    .87779       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3796       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6565.218     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      277 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9154        14.691        .13422E-03   -.20142E-03
   2  Index         3.4635        1.2932        .67252E-02   -.44054E-04
   3  Normalizat    .87794        .21623        .28136E-03    .62832E-04
   4  Prefactor     1.3796        .22553        .24589E-03    .11977E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.91543
  Index      = 3.46352
  Normalizat = 0.877942
  Prefactor  = 1.37955
 **********
 **   18 **HESSE 
 **********

 FCN=   6565.218     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9154        11.709        .53687E-05   -1.5111    
   2  Index         3.4635        1.0339        .26901E-03   -.31235    
   3  Normalizat    .87794        .21630        .11254E-04   -.97240    
   4  Prefactor     1.3796        .22505        .49178E-04   -.80971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96215e-11
Minuit parameter uncertainties:
  1  11.7118
  2  1.04217
  3  0.216511
  4  0.225208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256664': 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) = 6565.21843432
delta logL = 0.330733224603

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  8.915e+00  1.171e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.464e+00  1.042e+00  0.000e+00  1.000e+01 (-1.000e+00)
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
572   Normalization:  8.779e-01  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.20
Ra Dec: 162.913 21.165
Photon Index (Free Index): 3.46 +/- 1.04
Photon Flux (Free Index): 1.00e-07 +/- 6.75e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.14e-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/256664/cmap_HighResolution_528076801_528336001_4FGL_J1051.6+2109_daily_bin1114.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-02', comment='SUCCESS', photon_flux='7.50e-08', energy_flux2='1.68e-05', photon_flux_error='5.89e-08', dlogl='3.31e-01', energy_flux='1.71e-05', photon_flux2='1.00e-07', job_status='DONE', time_completed='2021-09-02 18:55:11.299147', photon_index_error2='1.04', photon_index2='3.46', ts='2.41', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='1.81e-07', energy_flux_error2='1.14e-05', EG='0.91', time_epoch_completed='1630634111.3', return_code='0', job_id='256664', GAL2='1.38', EG2='0.88', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='6.75e-08', ts2='3.20', photon_index='2.77' WHERE bin_id='1114' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:55:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 256664: <4FGL_J1051.6+2109_daily_bin1114> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1114 162.913 21.1651 528076801 528336001 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 :                                   634.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   667 sec.
    Turnaround time :                            804 sec.

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

