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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin735
RA = 162.913, Dec = 21.1651
tmin = 429840001, tmax = 430099201
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='254879', job_status='RUN', time_executed='2021-09-02 18:37:08.963566', time_epoch_executed='1630633028.96' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/254879

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/254879/ft1_4FGL_J1051.6+2109_daily_bin735.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/254879/ft2_4FGL_J1051.6+2109_daily_bin735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/254879/ft1_4FGL_J1051.6+2109_daily_bin735.fits outfile=/scratch/kocevski/254879/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin735.fits ra=162.913 dec=21.1651 rad=12.0 tmin=429840001.0 tmax=430099201.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.92
user 5.67
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/254879/ft2_4FGL_J1051.6+2109_daily_bin735.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/254879/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin735.fits evtable="EVENTS" outfile="/scratch/kocevski/254879/ft1_filtered_4FGL_J1051.6+2109_daily_bin735.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/254879/ft1_filtered_4FGL_J1051.6+2109_daily_bin735.fits" evtable="EVENTS" scfile=/scratch/kocevski/254879/ft2_4FGL_J1051.6+2109_daily_bin735.fits sctable="SC_DATA" outfile=/scratch/kocevski/254879/ltcube_429840001_430099201_4FGL_J1051.6+2109_daily_bin735.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/254879/ft2_4FGL_J1051.6+2109_daily_bin735.fits
.....................!
real 13.28
user 12.88
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/254879/ft1_filtered_4FGL_J1051.6+2109_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/254879/ft2_4FGL_J1051.6+2109_daily_bin735.fits sctable="SC_DATA" expcube=/scratch/kocevski/254879/ltcube_429840001_430099201_4FGL_J1051.6+2109_daily_bin735.fits outfile=/scratch/kocevski/254879/expmap_429840001_430099201_4FGL_J1051.6+2109_daily_bin735.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/254879/ltcube_429840001_430099201_4FGL_J1051.6+2109_daily_bin735.fits
.....................!
real 190.17
user 185.46
sys 4.31

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/254879/ft1_filtered_4FGL_J1051.6+2109_daily_bin735.fits scfile=/scratch/kocevski/254879/ft2_4FGL_J1051.6+2109_daily_bin735.fits outfile=/scratch/kocevski/254879/cmap_429840001_430099201_4FGL_J1051.6+2109_daily_bin735.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/254879/ft1_filtered_4FGL_J1051.6+2109_daily_bin735.fits scfile=/scratch/kocevski/254879/ft2_4FGL_J1051.6+2109_daily_bin735.fits outfile=/scratch/kocevski/254879/cmap_HighResolution_429840001_430099201_4FGL_J1051.6+2109_daily_bin735.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/254879/ft1_filtered_4FGL_J1051.6+2109_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/254879/ft2_4FGL_J1051.6+2109_daily_bin735.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/254879/Model_4FGL_J1051.6+2109_daily_bin735.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/254879/ft1_filtered_4FGL_J1051.6+2109_daily_bin735.fits.....................!
real 35.54
user 34.15
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1489       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10701E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    79.985       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7630       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .63408       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.180       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.9276       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6257       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10709E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.9566       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.136       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .52937       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3233       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=   3123.486     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     2051 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1490        11.131       -.86469E-06   -.16271E-04
   2  Prefactor     .10000E-03    108.66        .22496E-05** at limit **
   3  Prefactor     79.985        90.605        .85820E-06    .27961E-04
   4  Prefactor     5.7625        6.6166        .10374E-05    .10921E-02
   5  Prefactor     .10000E-03    1.4707        .60465E-07** at limit **
   6  Prefactor     .62616        21.691        .64313E-05   -.37860E-03
   7  Prefactor     .10000E-03    5.4510        .55876E-06** at limit **
   8  Prefactor     .10000E-03    17.141       -.29110E-06** at limit **
   9  Prefactor     21.177        16.851       -.99232E-06   -.18039E-03
  10  Prefactor     .10000E-03    5.8130       -.45726E-06** at limit **
  11  Prefactor     9.9237        20.266       -.93839E-06   -.80799E-04
  12  norm          1.6255        1.4914       -.24873E-07   -.61666E-04
  13  Prefactor     .10000E-03    5.0954        .29964E-05** at limit **
  14  Prefactor     .10000E-03    8.6477        .34717E-05** at limit **
  15  norm          .10000E-03    4.8625       -.46209E-07** at limit **
  16  norm          8.9504        15.506       -.25325E-05   -.15671E-03
  17  Prefactor     19.137        15.467        .43911E-06   -.54634E-04
  18  Prefactor     .10000E-03    12.050        .13103E-05** at limit **
  19  Normalizat    .53008        .23620        .14297E-05   -.13148E-05
  20  Prefactor     1.3227        .24149        .39358E-06    .96526E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.14898
  Prefactor  = 0.0001
  Prefactor  = 79.9847
  Prefactor  = 5.76248
  Prefactor  = 0.0001
  Prefactor  = 0.626165
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.1774
  Prefactor  = 0.0001
  Prefactor  = 9.92368
  norm       = 1.6255
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.95037
  Prefactor  = 19.1365
  Prefactor  = 0.0001
  Normalizat = 0.530078
  Prefactor  = 1.32273
 **********
 **   18 **HESSE 
 **********

 FCN=   3123.486     FROM HESSE     STATUS=OK           293 CALLS     2344 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1490        11.141        .17717E-03   -1.5254    
   2  Prefactor     .10000E-03    109.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     79.985        90.732        .44906E-04   -1.3917    
   4  Prefactor     5.7625        7.4527        .83274E-03   -1.5228    
   5  Prefactor     .10000E-03    1.4906        .66148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .62616        49.806        .29165E-02   -1.5550    
   7  Prefactor     .10000E-03    5.5016        .12746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.177        16.897        .87032E-04   -1.4787    
  10  Prefactor     .10000E-03    5.8242        .13166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.9237        20.262        .12718E-03   -1.5078    
  12  norm          1.6255        1.5016        .62555E-04   -1.5453    
  13  Prefactor     .10000E-03    9.1524        .16862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.6718        .16000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.8698        .12037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.9504        15.638        .13393E-03   -1.5110    
  17  Prefactor     19.137        15.391        .91560E-04   -1.4833    
  18  Prefactor     .10000E-03    12.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .53008        .27156        .29072E-03   -1.1104    
  20  Prefactor     1.3227        .28375        .21334E-03   -.82634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84438e-09
Minuit parameter uncertainties:
  1  11.1457
  2  8.61604e-05
  3  90.8893
  4  7.45393
  5  2.28931e-06
  6  11.1778
  7  4.10347e-05
  8  3.15904e-05
  9  16.9009
  10  2.57962e-05
  11  20.2762
  12  1.50166
  13  9.09688e-06
  14  0.000130163
  15  7.90881e-06
  16  15.6446
  17  15.3942
  18  7.77567e-05
  19  0.272238
  20  0.284083
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  4.103e-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.323e+00  2.841e-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:  5.301e-01  2.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/254879/likelihoodResults_429840001_430099201_4FGL_J1051.6+2109_daily_bin735.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) = 3123.48646375
delta logL = -0.00085949386812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3123.48560423
delta logL = 2.701244739e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7603       1.0000          .0000       10.000    
     3 'Normalizat'    .53007       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3228       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3123.486     FROM MIGRAD    STATUS=FAILED        89 CALLS      245 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10123E-03    158.46        .12809E-02** at limit **
   2  Index         2.6812        5.5706        .50000        .13386E-04
   3  Normalizat    .53008        .28704E-01    .29072E-03    .68824E-05
   4  Prefactor     1.3227        .32214E-01    .21334E-03    .10125E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3123.486     FROM SIMPLEX   STATUS=UNCHANGED    132 CALLS      377 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10123E-03    158.46        .41489E-03** at limit **
   2  Index         2.6812        5.5706        .57118E-04    .13386E-04
   3  Normalizat    .53008        .28704E-01    .21042E-05    .68824E-05
   4  Prefactor     1.3227        .32214E-01    .11485E-05    .10125E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3123.486     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      419 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    902.50        .25619E-03** at limit **
   2  Index         2.4371        6.5087        .50000        .39631E-07
   3  Normalizat    .53008        .86806E-01    .11629E-04   -.49272E-04
   4  Prefactor     1.3227        .97428E-01    .85337E-05   -.63280E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43715
  Normalizat = 0.530079
  Prefactor  = 1.32272
 **********
 **   18 **HESSE 
 **********

 FCN=   3123.486     FROM HESSE     STATUS=OK            29 CALLS      448 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3771        .51238E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4371        6.1728        .50000       -.53818    
   3  Normalizat    .53008        .25025        .23258E-05   -1.1104    
   4  Prefactor     1.3227        .28109        .17067E-05   -.82634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07974e-11
Minuit parameter uncertainties:
  1  2.44711e-05
  2  165.461
  3  0.250786
  4  0.281411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/254879': 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) = 3123.48560358
delta logL = 6.78445303492e-07

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  2.447e-05  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.437e+00  1.655e+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.323e+00  2.814e-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:  5.301e-01  2.508e-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/254879/cmap_HighResolution_429840001_430099201_4FGL_J1051.6+2109_daily_bin735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.70e-03', job_status='DONE', photon_flux_upper_limit='9.74e-08', time_completed='2021-09-02 18:45:15.485568', job_id='254879', GAL2='1.32', fit_tolerance='1e-08', EG2='0.53', EG='0.53', time_epoch_completed='1630633515.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='6.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='735' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:45:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 254879: <4FGL_J1051.6+2109_daily_bin735> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin735> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 18:36:21 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:36:55 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:36:55 2021
Terminated at Thu Sep  2 18:45:16 2021
Results reported at Thu Sep  2 18:45:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin735 162.913 21.1651 429840001 430099201 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 :                                   482.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   500 sec.
    Turnaround time :                            535 sec.

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

