/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 0 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1051.6+2109_daily_bin311
RA = 162.913, Dec = 21.1651
tmin = 319939201, tmax = 320198401
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='251774', job_status='RUN', time_executed='2021-09-02 18:28:18.650941', time_epoch_executed='1630632498.65' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251774

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251774/ft1_4FGL_J1051.6+2109_daily_bin311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251774/ft2_4FGL_J1051.6+2109_daily_bin311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251774/ft1_4FGL_J1051.6+2109_daily_bin311.fits outfile=/scratch/kocevski/251774/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin311.fits ra=162.913 dec=21.1651 rad=12.0 tmin=319939201.0 tmax=320198401.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 5.40
user 3.26
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251774/ft1_filtered_4FGL_J1051.6+2109_daily_bin311.fits evtable="EVENTS" scfile=/scratch/kocevski/251774/ft2_4FGL_J1051.6+2109_daily_bin311.fits sctable="SC_DATA" expcube=/scratch/kocevski/251774/ltcube_319939201_320198401_4FGL_J1051.6+2109_daily_bin311.fits outfile=/scratch/kocevski/251774/expmap_319939201_320198401_4FGL_J1051.6+2109_daily_bin311.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/251774/ltcube_319939201_320198401_4FGL_J1051.6+2109_daily_bin311.fits
.....................!
real 195.40
user 188.88
sys 5.28

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/251774/ft1_filtered_4FGL_J1051.6+2109_daily_bin311.fits scfile=/scratch/kocevski/251774/ft2_4FGL_J1051.6+2109_daily_bin311.fits outfile=/scratch/kocevski/251774/cmap_319939201_320198401_4FGL_J1051.6+2109_daily_bin311.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.36
sys 0.17

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/251774/ft1_filtered_4FGL_J1051.6+2109_daily_bin311.fits', '/scratch/kocevski/251774/ft2_4FGL_J1051.6+2109_daily_bin311.fits', expMap='/scratch/kocevski/251774/expmap_319939201_320198401_4FGL_J1051.6+2109_daily_bin311.fits', expCube='/scratch/kocevski/251774/ltcube_319939201_320198401_4FGL_J1051.6+2109_daily_bin311.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/251774/Model_4FGL_J1051.6+2109_daily_bin311.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/251774/ft1_filtered_4FGL_J1051.6+2109_daily_bin311.fits
Spacecraft file(s): /scratch/kocevski/251774/ft2_4FGL_J1051.6+2109_daily_bin311.fits
Exposure map: /scratch/kocevski/251774/expmap_319939201_320198401_4FGL_J1051.6+2109_daily_bin311.fits
Exposure cube: /scratch/kocevski/251774/ltcube_319939201_320198401_4FGL_J1051.6+2109_daily_bin311.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/251774/Model_4FGL_J1051.6+2109_daily_bin311.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5307.23299954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0226       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4133       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3043       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.269       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.825       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10439E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.034       1.0000         .10000E-03   10000.    
    12 'norm      '    .24082       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12160       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .79652       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3398       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=   5306.212     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1746 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0259        6.0602        .32328E-05   -.93305E-03
   2  Prefactor     .10000E-03    21.977       -.21764E-05** at limit **
   3  Prefactor     .10000E-03    20.171        .11968E-05** at limit **
   4  Prefactor     .10000E-03    9.5489        .17249E-05** at limit **
   5  Prefactor     1.4156        3.0364        .71684E-06   -.25832E-03
   6  Prefactor     6.3137        8.2143        .32466E-05   -.80301E-03
   7  Prefactor     12.272        13.153        .17524E-05    .20904E-03
   8  Prefactor     .10000E-03    11.003       -.28237E-05** at limit **
   9  Prefactor     14.809        17.122       -.38865E-05   -.59415E-03
  10  Prefactor     .10000E-03    13.743       -.82147E-06** at limit **
  11  Prefactor     16.042        19.194        .32754E-05    .44858E-03
  12  norm          .24107        1.0763       -.25558E-07   -.51006E-03
  13  Prefactor     .16876        1.8175        .22990E-06    .13067E-03
  14  Prefactor     .10000E-03    2.4753        .43993E-07** at limit **
  15  norm          .10000E-03    14.741        .64189E-06** at limit **
  16  norm          .10000E-03    15.037        .11039E-05** at limit **
  17  Prefactor     .10000E-03    6.1765        .33027E-07** at limit **
  18  Prefactor     .10000E-03    15.684        .15089E-05** at limit **
  19  Normalizat    .79621        .19412       -.29159E-05   -.88847E-04
  20  Prefactor     1.3395        .19587        .41139E-06   -.20590E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.02589
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 1.41563
  Prefactor  = 6.31368
  Prefactor  = 12.2716
  Prefactor  = 0.000100003
  Prefactor  = 14.8094
  Prefactor  = 0.0001
  Prefactor  = 16.0422
  norm       = 0.241067
  Prefactor  = 0.168759
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.796208
  Prefactor  = 1.33953
 **********
 **   18 **HESSE 
 **********

 FCN=   5306.212     FROM HESSE     STATUS=OK           289 CALLS     2035 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0259        6.2607        .10053E-02   -1.5307    
   2  Prefactor     .10000E-03    22.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.7517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4156        3.0042        .16952E-03   -1.5470    
   6  Prefactor     6.3137        8.4195        .79934E-03   -1.5205    
   7  Prefactor     12.272        13.251        .11436E-03   -1.5007    
   8  Prefactor     .10000E-03    11.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.809        17.965        .10403E-03   -1.4938    
  10  Prefactor     .10000E-03    13.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.042        19.642        .10002E-03   -1.4907    
  12  norm          .24107        1.6582        .13883E-02   -1.5610    
  13  Prefactor     .16876        21.513        .18077E-02   -1.5626    
  14  Prefactor     .10000E-03    2.4792        .11192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    15.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    15.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.2021        .17679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .79621        .22495        .26975E-03   -1.0021    
  20  Prefactor     1.3395        .22908        .23323E-03   -.82139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18588e-09
Minuit parameter uncertainties:
  1  6.26176
  2  0.000422212
  3  0.000230431
  4  0.000160074
  5  3.0045
  6  8.42106
  7  13.2537
  8  0.000390783
  9  17.9717
  10  8.43952e-05
  11  19.6496
  12  1.26427
  13  3.81103
  14  7.07644e-07
  15  0.000101845
  16  0.00018786
  17  1.84329e-06
  18  0.000251498
  19  0.22521
  20  0.229257
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.227e+01  1.325e+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.340e+00  2.293e-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.962e-01  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.76
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 6.22e-08 +/- 6.71e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.53e-05

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

Saving results to:
/scratch/kocevski/251774/likelihoodResults_319939201_320198401_4FGL_J1051.6+2109_daily_bin311.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) = 5306.15518948
delta logL = 0.0573087227667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5306.15244876
delta logL = 0.0600494448463

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8922       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1055       1.0000          .0000       10.000    
     3 'Normalizat'    .78261       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3507       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=   5306.152     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      285 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8968        13.346        .12741E-03    .16990E-03
   2  Index         3.1057        1.1458        .78396E-02    .46869E-04
   3  Normalizat    .78259        .21625        .27181E-03    .13880E-02
   4  Prefactor     1.3505        .23138        .23246E-03    .15344E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.89676
  Index      = 3.1057
  Normalizat = 0.78259
  Prefactor  = 1.35046
 **********
 **   18 **HESSE 
 **********

 FCN=   5306.152     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8968        12.099        .50962E-05   -1.5079    
   2  Index         3.1057        1.0392        .31358E-03   -.38856    
   3  Normalizat    .78259        .21627        .54363E-04   -1.0072    
   4  Prefactor     1.3505        .23129        .46493E-04   -.81819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96655e-09
Minuit parameter uncertainties:
  1  12.1017
  2  1.04811
  3  0.216512
  4  0.231463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251774': 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) = 5306.15244588
delta logL = 0.0600523192952

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  9.897e+00  1.210e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.106e+00  1.048e+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.350e+00  2.315e-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.826e-01  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.96
Ra Dec: 162.913 21.165
Photon Index (Free Index): 3.11 +/- 1.05
Photon Flux (Free Index): 7.26e-08 +/- 6.42e-08
Energy Flux (Free Index): 1.38e-05 +/- 1.16e-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/251774/cmap_HighResolution_319939201_320198401_4FGL_J1051.6+2109_daily_bin311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-02', comment='SUCCESS', photon_flux='6.22e-08', energy_flux2='1.38e-05', photon_flux_error='6.71e-08', dlogl='6.01e-02', energy_flux='1.42e-05', photon_flux2='7.26e-08', job_status='DONE', time_completed='2021-09-02 18:37:46.682065', photon_index_error2='1.05', photon_index2='3.11', ts='1.76', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', photon_flux_upper_limit='1.72e-07', energy_flux_error2='1.16e-05', EG='0.80', time_epoch_completed='1630633066.68', return_code='0', job_id='251774', GAL2='1.35', EG2='0.78', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='6.42e-08', ts2='1.96', photon_index='2.77' WHERE bin_id='311' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:37:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 251774: <4FGL_J1051.6+2109_daily_bin311> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin311> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  2 18:26:30 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:27:47 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:27:47 2021
Terminated at Thu Sep  2 18:37:47 2021
Results reported at Thu Sep  2 18:37:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin311 162.913 21.1651 319939201 320198401 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 :                                   559.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   599 sec.
    Turnaround time :                            677 sec.

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

