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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin258
RA = 162.913, Dec = 21.1651
tmin = 306201601, tmax = 306460801
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='251697', job_status='RUN', time_executed='2021-09-02 18:29:42.272913', time_epoch_executed='1630632582.27' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='258'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251697

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251697/ft1_4FGL_J1051.6+2109_daily_bin258.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251697/ft2_4FGL_J1051.6+2109_daily_bin258.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251697/ft1_4FGL_J1051.6+2109_daily_bin258.fits outfile=/scratch/kocevski/251697/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin258.fits ra=162.913 dec=21.1651 rad=12.0 tmin=306201601.0 tmax=306460801.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.54
user 3.30
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/251697/ft2_4FGL_J1051.6+2109_daily_bin258.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/251697/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin258.fits evtable="EVENTS" outfile="/scratch/kocevski/251697/ft1_filtered_4FGL_J1051.6+2109_daily_bin258.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.54
user 0.33
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251697/ft1_filtered_4FGL_J1051.6+2109_daily_bin258.fits evtable="EVENTS" scfile=/scratch/kocevski/251697/ft2_4FGL_J1051.6+2109_daily_bin258.fits sctable="SC_DATA" expcube=/scratch/kocevski/251697/ltcube_306201601_306460801_4FGL_J1051.6+2109_daily_bin258.fits outfile=/scratch/kocevski/251697/expmap_306201601_306460801_4FGL_J1051.6+2109_daily_bin258.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/251697/ltcube_306201601_306460801_4FGL_J1051.6+2109_daily_bin258.fits
.....................!
real 192.19
user 186.35
sys 5.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/251697/ft1_filtered_4FGL_J1051.6+2109_daily_bin258.fits scfile=/scratch/kocevski/251697/ft2_4FGL_J1051.6+2109_daily_bin258.fits outfile=/scratch/kocevski/251697/cmap_306201601_306460801_4FGL_J1051.6+2109_daily_bin258.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251697/ft1_filtered_4FGL_J1051.6+2109_daily_bin258.fits scfile=/scratch/kocevski/251697/ft2_4FGL_J1051.6+2109_daily_bin258.fits outfile=/scratch/kocevski/251697/cmap_HighResolution_306201601_306460801_4FGL_J1051.6+2109_daily_bin258.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/251697/ft1_filtered_4FGL_J1051.6+2109_daily_bin258.fits evtable="EVENTS" scfile=/scratch/kocevski/251697/ft2_4FGL_J1051.6+2109_daily_bin258.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/251697/Model_4FGL_J1051.6+2109_daily_bin258.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/251697/ft1_filtered_4FGL_J1051.6+2109_daily_bin258.fits.....................!
real 52.30
user 50.84
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.600       1.0000         .10000E-03   10000.    
     2 'Prefactor '    54.172       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10673E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7220       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3559       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.810       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9217       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.2202       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    25.398       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7035       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .70739       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2466       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=   5509.970     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     2010 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.600        10.420        .75268E-08    .40417E-04
   2  Prefactor     54.177        43.921        .41508E-05    .29286E-05
   3  Prefactor     .10000E-03    106.51       -.92757E-04** at limit **
   4  Prefactor     8.7241        10.246       -.26030E-05   -.10760E-03
   5  Prefactor     5.3561        2.8414        .30769E-06    .25779E-04
   6  Prefactor     15.812        9.2008       -.36682E-06   -.79806E-04
   7  Prefactor     .10000E-03    3.5762        .84263E-07** at limit **
   8  Prefactor     .10000E-03    16.185       -.31576E-06** at limit **
   9  Prefactor     .10000E-03    2.5571        .78959E-07** at limit **
  10  Prefactor     7.9220        10.416       -.38274E-05   -.12913E-03
  11  Prefactor     .10000E-03    4.6551        .37910E-06** at limit **
  12  norm          1.2203        1.1765       -.12299E-06   -.17531E-03
  13  Prefactor     .10000E-03    1.7999        .39576E-06** at limit **
  14  Prefactor     .10000E-03    2.5673       -.51168E-07** at limit **
  15  norm          25.395        16.120        .23459E-05   -.29573E-03
  16  norm          .10000E-03    4.4508       -.10058E-06** at limit **
  17  Prefactor     1.7030        9.9476       -.21990E-05   -.45253E-03
  18  Prefactor     .10000E-03    94.042        .74740E-04** at limit **
  19  Normalizat    .70729        .18644        .86835E-06   -.40045E-04
  20  Prefactor     1.2467        .19255       -.17507E-06   -.21796E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 26.6004
  Prefactor  = 54.1769
  Prefactor  = 0.0001
  Prefactor  = 8.7241
  Prefactor  = 5.35607
  Prefactor  = 15.8116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.92199
  Prefactor  = 0.0001
  norm       = 1.22031
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 25.3953
  norm       = 0.0001
  Prefactor  = 1.70297
  Prefactor  = 0.000100001
  Normalizat = 0.707293
  Prefactor  = 1.24666
 **********
 **   18 **HESSE 
 **********

 FCN=   5509.970     FROM HESSE     STATUS=OK           293 CALLS     2303 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.600        10.419        .77674E-04   -1.4676    
   2  Prefactor     54.177        43.915        .54497E-04   -1.4235    
   3  Prefactor     .10000E-03    106.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.7241        10.235        .13573E-03   -1.5117    
   5  Prefactor     5.3561        2.8386        .84016E-04   -1.5245    
   6  Prefactor     15.812        9.2078        .10073E-03   -1.4912    
   7  Prefactor     .10000E-03    3.5870        .13703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.5582        .11592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.9220        10.266        .14246E-03   -1.5145    
  11  Prefactor     .10000E-03    4.6618        .15641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2203        1.1759        .40837E-04   -1.5487    
  13  Prefactor     .10000E-03    4.4376        .18904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.5817        .11611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          25.395        16.093        .79488E-04   -1.4700    
  16  norm          .10000E-03    4.4672        .15292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.7030        10.006        .32223E-03   -1.5447    
  18  Prefactor     .10000E-03    93.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .70729        .22006        .28335E-03   -1.0361    
  20  Prefactor     1.2467        .22890        .23709E-03   -.84907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30836e-09
Minuit parameter uncertainties:
  1  10.4192
  2  43.9412
  3  0.000371048
  4  10.2375
  5  2.83862
  6  9.20858
  7  9.96052e-06
  8  8.46371e-06
  9  2.10028e-06
  10  10.2685
  11  2.2831e-06
  12  1.17589
  13  0.000162612
  14  3.66102e-06
  15  16.0953
  16  5.81725e-08
  17  8.25784
  18  0.000626626
  19  0.220339
  20  0.229086
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  9.961e-06  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.247e+00  2.291e-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.073e-01  2.203e-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: 7.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251697/likelihoodResults_306201601_306460801_4FGL_J1051.6+2109_daily_bin258.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) = 5509.97099515
delta logL = -0.00132369852327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5509.96967147
delta logL = -1.92203515326e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7732       1.0000          .0000       10.000    
     3 'Normalizat'    .70730       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2467       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=   5509.969     FROM MIGRAD    STATUS=CONVERGED    171 CALLS      327 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52986E-02    .29663        .79051E-02    .27706E-02
   2  Index         6.3385        7.6016        .50000        .10598E-04
   3  Normalizat    .70358        .80669E-02    .28334E-03    .77759E-04
   4  Prefactor     1.2494        .87705E-02    .23709E-03   -.35004E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00529856
  Index      = 6.33849
  Normalizat = 0.70358
  Prefactor  = 1.24937
 **********
 **   18 **HESSE 
 **********

 FCN=   5509.969     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      358 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52986E-02    82.842        .43583E-03   -1.5694    
   2  Index         6.3385        8.1535        .46191E-01    .27100    
   3  Normalizat    .70358        .82267E-01    .11334E-04   -1.0375    
   4  Prefactor     1.2494        .76886E-01    .94835E-05   -.84825    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.45802e-06
Minuit parameter uncertainties:
  1  1.31431
  2  130.491
  3  0.0822814
  4  0.0768932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251697': 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): 102
logL (Free Index) = 5509.9686843
delta logL = 0.000987147765954

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  5.299e-03  1.314e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  6.338e+00  1.305e+02  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.249e+00  7.689e-02  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.036e-01  8.228e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 162.913 21.165

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/251697/cmap_HighResolution_306201601_306460801_4FGL_J1051.6+2109_daily_bin258.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-03', job_status='DONE', photon_flux_upper_limit='7.77e-08', time_completed='2021-09-02 18:40:18.945814', job_id='251697', GAL2='1.25', fit_tolerance='1e-08', EG2='0.70', EG='0.71', time_epoch_completed='1630633218.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='9.87e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='258' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:40:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 251697: <4FGL_J1051.6+2109_daily_bin258> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin258 162.913 21.1651 306201601 306460801 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 :                                   587.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            834 sec.

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

