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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1397
RA = 162.913, Dec = 21.1651
tmin = 601430401, tmax = 601689601
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='258099', job_status='RUN', time_executed='2021-09-02 18:50:50.078761', time_epoch_executed='1630633850.08' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258099

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258099/ft1_4FGL_J1051.6+2109_daily_bin1397.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258099/ft2_4FGL_J1051.6+2109_daily_bin1397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258099/ft1_4FGL_J1051.6+2109_daily_bin1397.fits outfile=/scratch/kocevski/258099/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1397.fits ra=162.913 dec=21.1651 rad=12.0 tmin=601430401.0 tmax=601689601.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.71
user 3.41
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/258099/ft2_4FGL_J1051.6+2109_daily_bin1397.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/258099/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1397.fits evtable="EVENTS" outfile="/scratch/kocevski/258099/ft1_filtered_4FGL_J1051.6+2109_daily_bin1397.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/258099/ft1_filtered_4FGL_J1051.6+2109_daily_bin1397.fits" evtable="EVENTS" scfile=/scratch/kocevski/258099/ft2_4FGL_J1051.6+2109_daily_bin1397.fits sctable="SC_DATA" outfile=/scratch/kocevski/258099/ltcube_601430401_601689601_4FGL_J1051.6+2109_daily_bin1397.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/258099/ft2_4FGL_J1051.6+2109_daily_bin1397.fits
.....................!
real 16.76
user 16.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258099/ft1_filtered_4FGL_J1051.6+2109_daily_bin1397.fits evtable="EVENTS" scfile=/scratch/kocevski/258099/ft2_4FGL_J1051.6+2109_daily_bin1397.fits sctable="SC_DATA" expcube=/scratch/kocevski/258099/ltcube_601430401_601689601_4FGL_J1051.6+2109_daily_bin1397.fits outfile=/scratch/kocevski/258099/expmap_601430401_601689601_4FGL_J1051.6+2109_daily_bin1397.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/258099/ltcube_601430401_601689601_4FGL_J1051.6+2109_daily_bin1397.fits
.....................!
real 195.38
user 185.98
sys 4.16

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/258099/ft1_filtered_4FGL_J1051.6+2109_daily_bin1397.fits scfile=/scratch/kocevski/258099/ft2_4FGL_J1051.6+2109_daily_bin1397.fits outfile=/scratch/kocevski/258099/cmap_601430401_601689601_4FGL_J1051.6+2109_daily_bin1397.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.61
user 0.40
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.830       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14236E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.093       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.380       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .59325E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.904       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7400       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.6892       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.332       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .73464       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1171       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=   5517.295     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     1767 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.831        9.1749        .20050E-06   -.13594E-03
   2  Prefactor     .10000E-03    116.27        .82158E-06** at limit **
   3  Prefactor     .10000E-03    18.668        .55939E-06** at limit **
   4  Prefactor     16.088        8.2733       -.50335E-06   -.22532E-03
   5  Prefactor     .10000E-03    .82428        .16653E-07** at limit **
   6  Prefactor     14.380        9.1043        .17498E-07   -.86740E-04
   7  Prefactor     .10000E-03    17.422       -.60777E-05** at limit **
   8  Prefactor     .10000E-03    37.253       -.30746E-06** at limit **
   9  Prefactor     11.895        9.8922       -.19686E-05   -.27514E-03
  10  Prefactor     .10000E-03    3.9164       -.26196E-07** at limit **
  11  Prefactor     .10000E-03    9.0083       -.12683E-07** at limit **
  12  norm          .10000E-03    .55225        .16486E-07** at limit **
  13  Prefactor     3.7407        3.4433        .32817E-06    .36537E-04
  14  Prefactor     .10000E-03    1.7805       -.40055E-08** at limit **
  15  norm          2.6893        11.256        .19781E-05    .45365E-04
  16  norm          .10000E-03    5.0326        .11281E-06** at limit **
  17  Prefactor     11.334        9.8054        .85534E-07   -.28595E-04
  18  Prefactor     .10000E-03    14.227       -.96738E-06** at limit **
  19  Normalizat    .73456        .18266       -.12593E-05   -.15710E-03
  20  Prefactor     1.1171        .18471       -.22838E-06   -.36644E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.8308
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 16.0885
  Prefactor  = 0.0001
  Prefactor  = 14.3798
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 11.8946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.74073
  Prefactor  = 0.0001
  norm       = 2.68933
  norm       = 0.0001
  Prefactor  = 11.3336
  Prefactor  = 0.000100005
  Normalizat = 0.734556
  Prefactor  = 1.11707
 **********
 **   18 **HESSE 
 **********

 FCN=   5517.295     FROM HESSE     STATUS=OK           289 CALLS     2056 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.831        9.1775        .10066E-03   -1.4912    
   2  Prefactor     .10000E-03    118.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.088        8.2602        .99839E-04   -1.4906    
   5  Prefactor     .10000E-03    .83270        .65785E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.380        9.1063        .10562E-03   -1.4949    
   7  Prefactor     .10000E-03    17.268        .36480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.895        9.7802        .11611E-03   -1.5018    
  10  Prefactor     .10000E-03    3.9202        .14351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.0478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .57678        .10763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.7407        3.4560        .12381E-03   -1.5321    
  14  Prefactor     .10000E-03    1.7815        .96784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.6893        11.474        .24845E-03   -1.5380    
  16  norm          .10000E-03    5.0536        .16273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.334        9.8216        .11901E-03   -1.5035    
  18  Prefactor     .10000E-03    14.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .73456        .20685        .26259E-03   -1.0254    
  20  Prefactor     1.1171        .21088        .23054E-03   -.88923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.34221e-10
Minuit parameter uncertainties:
  1  9.17829
  2  0.000917198
  3  0.000314707
  4  8.2608
  5  1.14586e-05
  6  9.1072
  7  0.000326395
  8  0.000435669
  9  9.78156
  10  6.87561e-06
  11  5.49373e-05
  12  1.2427e-06
  13  3.45619
  14  5.52518e-06
  15  11.1134
  16  1.50376e-05
  17  9.82304
  18  0.000514237
  19  0.207075
  20  0.211043
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  3.264e-04  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.117e+00  2.110e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  7.346e-01  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 9.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258099/likelihoodResults_601430401_601689601_4FGL_J1051.6+2109_daily_bin1397.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) = 5517.29492538
delta logL = -0.000275080908068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5517.29465055
delta logL = -2.44695002038e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5516.290     FROM MIGRAD    STATUS=CONVERGED    155 CALLS      317 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12692E-02    .19683E-01   -.50444E-07** at limit **
   2  Index         9.4245        9.3438       -.23967E-04    .87245E-05
   3  Normalizat    .65605        .20371        .58972E-05   -.75368E-04
   4  Prefactor     1.1759        .21422       -.37518E-05   -.10525E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00126924
  Index      = 9.42454
  Normalizat = 0.656049
  Prefactor  = 1.17591
 **********
 **   18 **HESSE 
 **********

 FCN=   5516.290     FROM HESSE     STATUS=OK            35 CALLS      352 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12692E-02    .11102E-02    .55282E-03   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.4245        .54017        .22411E-01    1.0863    
   3  Normalizat    .65605        .17639        .62466E-01   -1.0565    
   4  Prefactor     1.1759        .18481        .36981E-01   -.87076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07815e-10
Minuit parameter uncertainties:
  1  0.00111018
  2  0.545133
  3  0.176543
  4  0.184909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258099': 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) = 5516.28961928
delta logL = 1.00503101997

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.269e-03  1.110e-03  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  9.425e+00  5.451e-01  0.000e+00  1.000e+01 (-1.000e+00)
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.176e+00  1.849e-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:  6.560e-01  1.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.15
Ra Dec: 162.913 21.165
Photon Index (Free Index): 9.42 +/- 0.55
Photon Flux (Free Index): 6.76e-08 +/- 8.30e-08
Energy Flux (Free Index): 7.63e-06 +/- 9.37e-06

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/258099/cmap_HighResolution_601430401_601689601_4FGL_J1051.6+2109_daily_bin1397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.74e-03', comment='SUCCESS', energy_flux2='7.63e-06', dlogl='1.01e+00', photon_flux2='6.76e-08', job_status='DONE', time_completed='2021-09-02 19:02:45.166089', photon_index_error2='0.55', photon_index2='9.42', ts='-0.00', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='9.79e-08', energy_flux_error2='9.37e-06', EG='0.73', time_epoch_completed='1630634565.17', return_code='0', job_id='258099', GAL2='1.18', EG2='0.66', return_code2='0', photon_flux_error2='8.30e-08', ts2='2.15', photon_index='2.77' WHERE bin_id='1397' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:02:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 258099: <4FGL_J1051.6+2109_daily_bin1397> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1397> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 18:46:19 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:47:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 18:47:38 2021
Terminated at Thu Sep  2 19:02:46 2021
Results reported at Thu Sep  2 19:02:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1397 162.913 21.1651 601430401 601689601 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 :                                   570.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            987 sec.

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

