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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin840
RA = 162.913, Dec = 21.1651
tmin = 457056001, tmax = 457315201
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='256234', job_status='RUN', time_executed='2021-09-02 18:45:27.588846', time_epoch_executed='1630633527.59' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='840'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256234

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256234/ft1_4FGL_J1051.6+2109_daily_bin840.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256234/ft2_4FGL_J1051.6+2109_daily_bin840.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256234/ft1_4FGL_J1051.6+2109_daily_bin840.fits outfile=/scratch/kocevski/256234/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin840.fits ra=162.913 dec=21.1651 rad=12.0 tmin=457056001.0 tmax=457315201.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 4.44
user 4.17
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/256234/ft2_4FGL_J1051.6+2109_daily_bin840.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/256234/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin840.fits evtable="EVENTS" outfile="/scratch/kocevski/256234/ft1_filtered_4FGL_J1051.6+2109_daily_bin840.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.62
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256234/ft1_filtered_4FGL_J1051.6+2109_daily_bin840.fits" evtable="EVENTS" scfile=/scratch/kocevski/256234/ft2_4FGL_J1051.6+2109_daily_bin840.fits sctable="SC_DATA" outfile=/scratch/kocevski/256234/ltcube_457056001_457315201_4FGL_J1051.6+2109_daily_bin840.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/256234/ft2_4FGL_J1051.6+2109_daily_bin840.fits
.....................!
real 15.73
user 15.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256234/ft1_filtered_4FGL_J1051.6+2109_daily_bin840.fits evtable="EVENTS" scfile=/scratch/kocevski/256234/ft2_4FGL_J1051.6+2109_daily_bin840.fits sctable="SC_DATA" expcube=/scratch/kocevski/256234/ltcube_457056001_457315201_4FGL_J1051.6+2109_daily_bin840.fits outfile=/scratch/kocevski/256234/expmap_457056001_457315201_4FGL_J1051.6+2109_daily_bin840.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/256234/ltcube_457056001_457315201_4FGL_J1051.6+2109_daily_bin840.fits
.....................!
real 192.88
user 187.06
sys 4.48

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/256234/ft1_filtered_4FGL_J1051.6+2109_daily_bin840.fits scfile=/scratch/kocevski/256234/ft2_4FGL_J1051.6+2109_daily_bin840.fits outfile=/scratch/kocevski/256234/cmap_457056001_457315201_4FGL_J1051.6+2109_daily_bin840.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256234/ft1_filtered_4FGL_J1051.6+2109_daily_bin840.fits scfile=/scratch/kocevski/256234/ft2_4FGL_J1051.6+2109_daily_bin840.fits outfile=/scratch/kocevski/256234/cmap_HighResolution_457056001_457315201_4FGL_J1051.6+2109_daily_bin840.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/256234/ft1_filtered_4FGL_J1051.6+2109_daily_bin840.fits evtable="EVENTS" scfile=/scratch/kocevski/256234/ft2_4FGL_J1051.6+2109_daily_bin840.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/256234/Model_4FGL_J1051.6+2109_daily_bin840.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/256234/ft1_filtered_4FGL_J1051.6+2109_daily_bin840.fits.....................!
real 48.89
user 47.52
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5262       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1535       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4715       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7178       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.041       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.823       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0632       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0874       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .54813       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3435       1.0000         .10000E-03   10000.    
    15 'norm      '    4.4576       1.0000         .10000E-03   10000.    
    16 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    94.527       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .83781       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2314       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=   5320.539     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     2062 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5263        6.3020        .16511E-06   -.19128E-04
   2  Prefactor     1.0589        33.423        .38766E-05   -.23118E-03
   3  Prefactor     2.4796        214.08        .57645E-05    .63744E-05
   4  Prefactor     2.7184        6.6650        .14711E-05   -.19849E-04
   5  Prefactor     .10000E-03    .89972        .38572E-08** at limit **
   6  Prefactor     11.041        7.2563        .19290E-06   -.47003E-04
   7  Prefactor     .10000E-03    11.023       -.31827E-06** at limit **
   8  Prefactor     .10000E-03    22.792        .20836E-07** at limit **
   9  Prefactor     .10000E-03    6.3492       -.11797E-06** at limit **
  10  Prefactor     13.829        11.831       -.21777E-06   -.95707E-04
  11  Prefactor     6.0646        15.440        .22471E-06   -.76375E-04
  12  norm          1.0870        1.2262       -.11003E-06   -.11291E-03
  13  Prefactor     .54660        2.6247        .15017E-05   -.99057E-05
  14  Prefactor     3.3430        5.9246       -.12903E-07   -.18352E-03
  15  norm          4.4795        13.942        .76759E-05   -.19622E-03
  16  norm          .10000E-03    9.1184       -.24519E-07** at limit **
  17  Prefactor     .10000E-03    5.5942        .37634E-07** at limit **
  18  Prefactor     94.591        57.201        .37477E-05    .40093E-03
  19  Normalizat    .83779        .18926       -.28689E-05   -.18547E-03
  20  Prefactor     1.2315        .19615        .45096E-06   -.31336E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.52632
  Prefactor  = 1.05889
  Prefactor  = 2.47957
  Prefactor  = 2.71837
  Prefactor  = 0.0001
  Prefactor  = 11.0409
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8289
  Prefactor  = 6.06457
  norm       = 1.08696
  Prefactor  = 0.546597
  Prefactor  = 3.34301
  norm       = 4.4795
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 94.5911
  Normalizat = 0.837792
  Prefactor  = 1.23148
 **********
 **   18 **HESSE 
 **********

 FCN=   5320.539     FROM HESSE     STATUS=OK           297 CALLS     2359 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5263        6.3019        .14618E-03   -1.5159    
   2  Prefactor     1.0589        250.60        .78716E-02   -1.5502    
   3  Prefactor     2.4796        215.12        .26009E-03   -1.5393    
   4  Prefactor     2.7184        6.6524        .24704E-03   -1.5378    
   5  Prefactor     .10000E-03    .91107        .67479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.041        7.2564        .12057E-03   -1.5043    
   7  Prefactor     .10000E-03    11.324        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.3930        .17936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.829        11.579        .10773E-03   -1.4964    
  11  Prefactor     6.0646        15.464        .16306E-03   -1.5215    
  12  norm          1.0870        1.2252        .45974E-04   -1.5499    
  13  Prefactor     .54660        2.5060        .20955E-03   -1.5560    
  14  Prefactor     3.3430        5.9209        .22134E-03   -1.5342    
  15  norm          4.4795        14.292        .95360E-03   -1.5285    
  16  norm          .10000E-03    9.2085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.6552        .16846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     94.591        60.991        .20669E-03   -1.3760    
  19  Normalizat    .83779        .22037        .25257E-03   -.98682    
  20  Prefactor     1.2315        .23215        .23830E-03   -.85368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21678e-09
Minuit parameter uncertainties:
  1  6.30248
  2  32.7176
  3  46.3629
  4  6.65422
  5  5.86445e-07
  6  7.25694
  7  2.93964e-05
  8  2.7449e-05
  9  1.01801e-05
  10  11.5807
  11  15.474
  12  1.22525
  13  2.34071
  14  5.92196
  15  14.3027
  16  2.79524e-05
  17  7.43297e-06
  18  61.031
  19  0.220605
  20  0.232347
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
572   Normalization:  8.378e-01  2.206e-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: 8.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/256234/likelihoodResults_457056001_457315201_4FGL_J1051.6+2109_daily_bin840.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) = 5320.53937536
delta logL = -0.000421446611654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5320.53895372
delta logL = 1.89726051758e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10891E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7088       1.0000          .0000       10.000    
     3 'Normalizat'    .83769       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2316       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=   5320.533     FROM MIGRAD    STATUS=CONVERGED    185 CALLS      344 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74159        6125.0        .36285E-03    .10434E-04
   2  Index         1.9436        8.0066        .50000       -.13428E-04
   3  Normalizat    .83822        .75437E-01    .25257E-03    .27727E-04
   4  Prefactor     1.2292        .11032        .23830E-03    .19274E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.74159
  Index      = 1.94364
  Normalizat = 0.838222
  Prefactor  = 1.22923
 **********
 **   18 **HESSE 
 **********

 FCN=   5320.533     FROM HESSE     STATUS=OK            27 CALLS      371 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74159        16.081        .14514E-04   -1.5536    
   2  Index         1.9436        2.0832        .17561E-01   -.65767    
   3  Normalizat    .83822        .20438        .10103E-04   -.98666    
   4  Prefactor     1.2292        .23087        .95320E-05   -.85436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.98357e-10
Minuit parameter uncertainties:
  1  6.90838
  2  2.19384
  3  0.204563
  4  0.231058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256234': 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) = 5320.53289963
delta logL = 0.00605427761911

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  7.416e-01  6.908e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  1.944e+00  2.194e+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.229e+00  2.311e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  8.382e-01  2.046e-01  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/256234/cmap_HighResolution_457056001_457315201_4FGL_J1051.6+2109_daily_bin840.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.91e-03', job_status='DONE', photon_flux_upper_limit='8.74e-08', time_completed='2021-09-02 18:55:32.417788', job_id='256234', GAL2='1.23', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630634132.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='6.05e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='840' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:55:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 256234: <4FGL_J1051.6+2109_daily_bin840> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin840> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 18:41:20 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:41:34 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:41:34 2021
Terminated at Thu Sep  2 18:55:33 2021
Results reported at Thu Sep  2 18:55:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin840 162.913 21.1651 457056001 457315201 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 :                                   595.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             227.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            853 sec.

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

