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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1605
RA = 162.913, Dec = 21.1651
tmin = 655344001, tmax = 655603201
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='300020', job_status='RUN', time_executed='2021-12-07 21:20:00.030493', time_epoch_executed='1638940800.03' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1605'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300020

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300020/ft1_4FGL_J1051.6+2109_daily_bin1605.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300020/ft2_4FGL_J1051.6+2109_daily_bin1605.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300020/ft1_4FGL_J1051.6+2109_daily_bin1605.fits outfile=/scratch/kocevski/300020/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1605.fits ra=162.913 dec=21.1651 rad=12.0 tmin=655344001.0 tmax=655603201.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 2.76
user 2.52
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300020/ft1_filtered_4FGL_J1051.6+2109_daily_bin1605.fits evtable="EVENTS" scfile=/scratch/kocevski/300020/ft2_4FGL_J1051.6+2109_daily_bin1605.fits sctable="SC_DATA" expcube=/scratch/kocevski/300020/ltcube_655344001_655603201_4FGL_J1051.6+2109_daily_bin1605.fits outfile=/scratch/kocevski/300020/expmap_655344001_655603201_4FGL_J1051.6+2109_daily_bin1605.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/300020/ltcube_655344001_655603201_4FGL_J1051.6+2109_daily_bin1605.fits
.....................!
real 193.01
user 187.76
sys 4.79

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/300020/ft1_filtered_4FGL_J1051.6+2109_daily_bin1605.fits scfile=/scratch/kocevski/300020/ft2_4FGL_J1051.6+2109_daily_bin1605.fits outfile=/scratch/kocevski/300020/cmap_655344001_655603201_4FGL_J1051.6+2109_daily_bin1605.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/300020/ft1_filtered_4FGL_J1051.6+2109_daily_bin1605.fits scfile=/scratch/kocevski/300020/ft2_4FGL_J1051.6+2109_daily_bin1605.fits outfile=/scratch/kocevski/300020/cmap_HighResolution_655344001_655603201_4FGL_J1051.6+2109_daily_bin1605.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.55
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7556       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .56031       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .32234       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1942       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.924       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .23205E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0301       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.532       1.0000         .10000E-03   10000.    
    15 'norm      '    .12495       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6361       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1968       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88191       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=   7368.732     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     1860 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7561        4.2939        .86060E-06    .51108E-03
   2  Prefactor     .10000E-03    8.9297        .18402E-05** at limit **
   3  Prefactor     .10000E-03    21.266        .28536E-06** at limit **
   4  Prefactor     .55904        9.6201       -.80730E-05    .31521E-03
   5  Prefactor     .32250        1.6421        .19522E-05    .97062E-03
   6  Prefactor     .10000E-03    8.0753        .18672E-06** at limit **
   7  Prefactor     7.1931        8.3704        .11468E-05    .53843E-03
   8  Prefactor     .10000E-03    11.412       -.35954E-06** at limit **
   9  Prefactor     .10000E-03    8.4121       -.19504E-05** at limit **
  10  Prefactor     29.925        12.222        .33974E-06    .21329E-03
  11  Prefactor     .10017E-03    6.4429       -.12854E-05** at limit **
  12  norm          1.0301        1.3455        .54863E-06    .12474E-02
  13  Prefactor     .10000E-03    .73497        .59622E-07** at limit **
  14  Prefactor     11.532        7.2949        .33615E-07    .12864E-03
  15  norm          .17732        5.5988        .16784E-05   -.32186E-03
  16  norm          .10000E-03    3.7228        .15713E-06** at limit **
  17  Prefactor     6.6359        7.6806        .72631E-07    .10669E-03
  18  Prefactor     .10000E-03    54.910       -.19088E-05** at limit **
  19  Normalizat    1.1970        .16082       -.28074E-07    .87369E-04
  20  Prefactor     .88166        .16111       -.13323E-05   -.14985E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.75609
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.55904
  Prefactor  = 0.322496
  Prefactor  = 0.0001
  Prefactor  = 7.1931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.9246
  Prefactor  = 0.000100168
  norm       = 1.03013
  Prefactor  = 0.0001
  Prefactor  = 11.532
  norm       = 0.177325
  norm       = 0.0001
  Prefactor  = 6.63591
  Prefactor  = 0.000100002
  Normalizat = 1.19698
  Prefactor  = 0.881665
 **********
 **   18 **HESSE 
 **********

 FCN=   7368.732     FROM HESSE     STATUS=OK           309 CALLS     2169 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7561        4.3254        .21733E-03   -1.5376    
   2  Prefactor     .10000E-03    8.8140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55904        10.910        .27337E-02   -1.5558    
   5  Prefactor     .32250        2.8110        .18739E-02   -1.5594    
   6  Prefactor     .10000E-03    8.2077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.1931        8.3564        .14955E-03   -1.5172    
   8  Prefactor     .10000E-03    11.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.4937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.925        12.260        .36621E-03   -1.4613    
  11  Prefactor     .10017E-03    8.4785        .74518E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0301        1.3411        .11076E-03   -1.5505    
  13  Prefactor     .10000E-03    .74107        .71801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.532        7.2932        .11797E-03   -1.5029    
  15  norm          .17732        79.240        .37877E-02   -1.5624    
  16  norm          .10000E-03    3.7364        .16177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.6359        7.6775        .15577E-03   -1.5193    
  18  Prefactor     .10000E-03    55.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1970        .18868        .22670E-03   -.86696    
  20  Prefactor     .88166        .19094        .27203E-03   -.96785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21252e-09
Minuit parameter uncertainties:
  1  4.32585
  2  0.000157185
  3  2.01635e-06
  4  4.93992
  5  1.90408
  6  7.98698e-06
  7  8.35777
  8  6.33564e-05
  9  0.000112861
  10  12.2608
  11  0.00239003
  12  1.34112
  13  1.04512e-06
  14  7.29377
  15  7.50488
  16  8.0927e-06
  17  7.67867
  18  0.000671094
  19  0.188791
  20  0.191085
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  8.817e-01  1.911e-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.197e+00  1.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.00
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/300020/likelihoodResults_655344001_655603201_4FGL_J1051.6+2109_daily_bin1605.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) = 7368.72724022
delta logL = 0.00506432730253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7368.72628406
delta logL = 0.00602048963992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5253       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6803       1.0000          .0000       10.000    
     3 'Normalizat'    1.1995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87970       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=   7368.726     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      233 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5237        8.9019        .14619E-03    .28232E-02
   2  Index         2.6805        .82782        .11668E-01    .60370E-03
   3  Normalizat    1.1995        .18280        .22650E-03   -.77721E-03
   4  Prefactor     .87969        .18893        .27229E-03   -.65177E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.52371
  Index      = 2.68049
  Normalizat = 1.19948
  Prefactor  = 0.87969
 **********
 **   18 **HESSE 
 **********

 FCN=   7368.726     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5237        8.7281        .29239E-04   -1.5159    
   2  Index         2.6805        .81137        .46674E-03   -.48239    
   3  Normalizat    1.1995        .18301        .45299E-04   -.86619    
   4  Prefactor     .87969        .18905        .54457E-04   -.96854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65277e-08
Minuit parameter uncertainties:
  1  8.72962
  2  0.815973
  3  0.183109
  4  0.189192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300020': 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) = 7368.72628402
delta logL = 0.00602052257636

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  7.524e+00  8.730e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.680e+00  8.160e-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:  8.797e-01  1.892e-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.199e+00  1.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.00
Ra Dec: 162.913 21.165
Photon Index (Free Index): 2.68 +/- 0.82
Photon Flux (Free Index): 3.47e-08 +/- 4.27e-08
Energy Flux (Free Index): 8.48e-06 +/- 9.54e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/300020/cmap_HighResolution_655344001_655603201_4FGL_J1051.6+2109_daily_bin1605.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.47e-03', comment='SUCCESS', energy_flux2='8.48e-06', dlogl='6.02e-03', photon_flux2='3.47e-08', job_status='DONE', time_completed='2021-12-07 21:30:52.745607', photon_index_error2='0.82', photon_index2='2.68', ts='1.00', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='9.54e-06', EG='1.20', time_epoch_completed='1638941452.75', return_code='0', job_id='300020', GAL2='0.88', EG2='1.20', return_code2='0', photon_flux_error2='4.27e-08', ts2='1.00', photon_index='2.77' WHERE bin_id='1605' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 21:30:52 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 300020: <4FGL_J1051.6+2109_daily_bin1605> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1605> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 21:15:25 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 21:18:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 21:18:00 2021
Terminated at Tue Dec  7 21:30:53 2021
Results reported at Tue Dec  7 21:30:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1605 162.913 21.1651 655344001 655603201 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 :                                   652.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            928 sec.

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

