/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 61 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 = 7620
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1051.6+3253_daily_bin1228
RA = 162.911, Dec = 32.8853
tmin = 557625601, tmax = 557884801
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='266266', job_status='RUN', time_executed='2021-09-02 19:13:03.716932', time_epoch_executed='1630635183.72' WHERE source_name='4FGL J1051.6+3253' and cadence='daily' and bin_id='1228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266266

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266266/ft1_4FGL_J1051.6+3253_daily_bin1228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266266/ft2_4FGL_J1051.6+3253_daily_bin1228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266266/ft1_4FGL_J1051.6+3253_daily_bin1228.fits outfile=/scratch/kocevski/266266/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1228.fits ra=162.911 dec=32.8853 rad=12.0 tmin=557625601.0 tmax=557884801.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.48
user 3.25
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/266266/ft2_4FGL_J1051.6+3253_daily_bin1228.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/266266/ft2_4FGL_J1051.6+3253_daily_bin1228.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/266266/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1228.fits evtable="EVENTS" outfile="/scratch/kocevski/266266/ft1_filtered_4FGL_J1051.6+3253_daily_bin1228.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.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266266/ft1_filtered_4FGL_J1051.6+3253_daily_bin1228.fits" evtable="EVENTS" scfile=/scratch/kocevski/266266/ft2_4FGL_J1051.6+3253_daily_bin1228.fits sctable="SC_DATA" outfile=/scratch/kocevski/266266/ltcube_557625601_557884801_4FGL_J1051.6+3253_daily_bin1228.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/266266/ft2_4FGL_J1051.6+3253_daily_bin1228.fits
.....................!
real 16.74
user 16.29
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266266/ft1_filtered_4FGL_J1051.6+3253_daily_bin1228.fits evtable="EVENTS" scfile=/scratch/kocevski/266266/ft2_4FGL_J1051.6+3253_daily_bin1228.fits sctable="SC_DATA" expcube=/scratch/kocevski/266266/ltcube_557625601_557884801_4FGL_J1051.6+3253_daily_bin1228.fits outfile=/scratch/kocevski/266266/expmap_557625601_557884801_4FGL_J1051.6+3253_daily_bin1228.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/266266/ltcube_557625601_557884801_4FGL_J1051.6+3253_daily_bin1228.fits
.....................!
real 191.99
user 186.89
sys 4.38

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 194 point sources and 0 extended sources

Setting source of interest to:
4FGL J1051.6+3253 @ 162.911 32.8853

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/266266/ft1_filtered_4FGL_J1051.6+3253_daily_bin1228.fits scfile=/scratch/kocevski/266266/ft2_4FGL_J1051.6+3253_daily_bin1228.fits outfile=/scratch/kocevski/266266/cmap_557625601_557884801_4FGL_J1051.6+3253_daily_bin1228.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.911 yref=32.8853 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.62
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266266/ft1_filtered_4FGL_J1051.6+3253_daily_bin1228.fits scfile=/scratch/kocevski/266266/ft2_4FGL_J1051.6+3253_daily_bin1228.fits outfile=/scratch/kocevski/266266/cmap_HighResolution_557625601_557884801_4FGL_J1051.6+3253_daily_bin1228.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.911 yref=32.8853 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.59
user 0.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/266266/ft1_filtered_4FGL_J1051.6+3253_daily_bin1228.fits evtable="EVENTS" scfile=/scratch/kocevski/266266/ft2_4FGL_J1051.6+3253_daily_bin1228.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/266266/Model_4FGL_J1051.6+3253_daily_bin1228.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/266266/ft1_filtered_4FGL_J1051.6+3253_daily_bin1228.fits.............................!
real 16.48
user 14.95
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/266266/ft1_filtered_4FGL_J1051.6+3253_daily_bin1228.fits', '/scratch/kocevski/266266/ft2_4FGL_J1051.6+3253_daily_bin1228.fits', expMap='/scratch/kocevski/266266/expmap_557625601_557884801_4FGL_J1051.6+3253_daily_bin1228.fits', expCube='/scratch/kocevski/266266/ltcube_557625601_557884801_4FGL_J1051.6+3253_daily_bin1228.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/266266/Model_4FGL_J1051.6+3253_daily_bin1228.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1051.6+3253'

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  1.091e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
294        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  2.968e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/266266/ft1_filtered_4FGL_J1051.6+3253_daily_bin1228.fits
Spacecraft file(s): /scratch/kocevski/266266/ft2_4FGL_J1051.6+3253_daily_bin1228.fits
Exposure map: /scratch/kocevski/266266/expmap_557625601_557884801_4FGL_J1051.6+3253_daily_bin1228.fits
Exposure cube: /scratch/kocevski/266266/ltcube_557625601_557884801_4FGL_J1051.6+3253_daily_bin1228.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/266266/Model_4FGL_J1051.6+3253_daily_bin1228.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) = 300.184441565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85534E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19692E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    176.42       1.0000         .10000E-03   10000.    
     4 'Prefactor '    201.54       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9937.9       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9965.4       1.0000         .10000E-03   10000.    
     7 'norm      '    9802.9       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9925.9       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8959.8       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31988E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9997.0       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8558.8       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.645       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9999.7       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9633.3       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9898.1       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9747.3       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11630E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    257.34       1.0000         .10000E-03   10000.    
    20 'norm      '    .10152E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7396       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .51820E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .53071E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    .28168E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.0928       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .22910E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .23607E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10718E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .26863E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    19.421       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .50393       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   298.8852     FROM MIGRAD    STATUS=CONVERGED   1263 CALLS     5282 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    105.33        .10556E-08** at limit **
   2  Prefactor     .10000E-03    19.806        .24769E-07** at limit **
   3  norm          139.09        239.34       -.32746E-05   -.46306E-04
   4  Prefactor     .10000E-03    1803.9        .13563E-07** at limit **
   5  Prefactor    10000.0        8922.8        .42787E-05** at limit **
   6  Prefactor    10000.0        6180.4       -.70290E-07** at limit **
   7  norm         10000.0        6332.4       -.31041E-06** at limit **
   8  Prefactor    10000.0        9976.1       -.24438E-05** at limit **
   9  Prefactor    10000.0        7533.7        .50133E-05** at limit **
  10  Prefactor     .10000E-03    176.95        .51652E-09** at limit **
  11  Prefactor     10000.        777.40       -.15566E-08** at limit **
  12  Prefactor    10000.0        9056.2        .60788E-04** at limit **
  13  Prefactor     .10000E-03    779.46       -.76402E-09** at limit **
  14  Prefactor    10000.0        6862.2       -.84497E-09** at limit **
  15  Prefactor    10000.0        9746.3        .20962E-05** at limit **
  16  Prefactor    10000.0        8974.9       -.61867E-07** at limit **
  17  Prefactor    10000.0        9965.1        .34889E-05** at limit **
  18  Prefactor     .10000E-03    120.08       -.96591E-09** at limit **
  19  Prefactor     6508.1        8093.6        .16331E-04   -.76519E-06
  20  norm          .10000E-03    .70195       -.26057E-07** at limit **
  21  Prefactor     .10000E-03    83.488        .94880E-08** at limit **
  22  Prefactor     .10000E-03    29.845       -.38637E-08** at limit **
  23  Prefactor     .10000E-03    38.460       -.52979E-07** at limit **
  24  norm          .10000E-03    44.073       -.23589E-07** at limit **
  25  norm          .10000E-03    73.586        .67526E-08** at limit **
  26  Prefactor     6.0313        9.4607       -.76155E-07    .91380E-05
  27  Prefactor     .10000E-03    299.58       -.93786E-07** at limit **
  28  Prefactor     .10000E-03    24.966        .16319E-08** at limit **
  29  norm          .10000E-03    5.5585       -.67279E-07** at limit **
  30  Prefactor     .10000E-03    20.090        .26296E-08** at limit **
  31  Prefactor     18.356        17.077        .27632E-06   -.43829E-04
  32  Normalizat    .10000E-01    .41705        .77890E-06** at limit **
  33  Prefactor     .43955        .42493        .19777E-04   -.22438E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 139.086
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 6508.15
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.03125
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.356
  Normalizat = 0.01
  Prefactor  = 0.439554
 **********
 **   18 **HESSE 
 **********

 FCN=   298.8852     FROM HESSE     STATUS=OK           679 CALLS     5961 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    105.32        .17372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.806        .75226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          139.09        243.56        .15192E-03   -1.3344    
   4  Prefactor     .10000E-03    1803.3        .14232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        8915.7        .25452E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        6181.3        .34070E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm         10000.0        6332.9        .14389E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        9976.2        .23328E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        7523.8        .65513E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    176.92        .18364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10000.        777.77        .11805E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        9163.1        .56946E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    779.38        .54217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor    10000.0        6863.4        .20823E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        9746.6        .10641E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        8982.3        .19916E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        9964.4        .12744E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    120.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6508.1        8102.5        .12631E-03    .30640    
  20  norm          .10000E-03    .70391        .14159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    83.386        .10440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.842        .92359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    38.464        .10486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    44.068        .11226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    73.564        .14513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     6.0313        9.5131        .59814E-04   -1.5217    
  27  Prefactor     .10000E-03    300.00        .18274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    24.963        .84466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    5.6006        .39808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    20.087        .75764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     18.356        17.065        .66344E-04   -1.4851    
  32  Normalizat    .10000E-01    .49370        .67216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .43955        .42643        .31755E-03   -1.1484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65105e-09
Minuit parameter uncertainties:
  1  7.05482e-07
  2  7.69688e-06
  3  245.356
  4  4.38997e-05
  5  0.0455562
  6  0.000101866
  7  0.00150104
  8  0.0222029
  9  0.0403673
  10  7.20903e-06
  11  2.45292e-05
  12  0.40558
  13  5.12473e-06
  14  0.000225273
  15  0.0261307
  16  0.000908322
  17  0.0565346
  18  2.88477e-06
  19  7280.59
  20  2.26985e-06
  21  1.07252e-06
  22  5.41533e-06
  23  3.33038e-05
  24  2.03577e-05
  25  1.48482e-07
  26  9.51544
  27  0.000737533
  28  2.2042e-06
  29  4.09425e-05
  30  3.55099e-06
  31  17.0699
  32  3.58839e-05
  33  0.429569
Done.

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

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  1.000e+04  9.083e-04  1.000e-04  1.000e+04 ( 1.000e-14)
294        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  2.968e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  4.396e-01  4.296e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  1.000e-02  3.588e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.96
Ra Dec: 162.911 32.885
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 9.99e-06 +/- 9.07e-13
Energy Flux (Fixed Index): 6.10e-03 +/- 5.54e-10
calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0

TS (Fixed Index): 2.96
Ra Dec: 162.911 32.885
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.53e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/266266/likelihoodResults_557625601_557884801_4FGL_J1051.6+3253_daily_bin1228.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) = 295.268515002
delta logL = 3.61670073204

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 295.268511755
delta logL = 3.61670397925

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.9462       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   295.2685     FROM MIGRAD    STATUS=CONVERGED     14 CALLS       75 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.9462        .15074        .12491E-01    .12087E-04
                               ERR DEF=  .500    
Final values: 
  Index      = 2.94622
 **********
 **   18 **HESSE 
 **********

 FCN=   295.2685     FROM HESSE     STATUS=OK             7 CALLS       82 TOTAL
                     EDM=   .22E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       2.9462        .15118        .55546E-04   -.42328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1783e-17
Minuit parameter uncertainties:
  1  0.151208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266266': 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) = 295.268511755
delta logL = 3.61670397926

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
294        Index:  2.946e+00  1.512e-01  0.000e+00  1.000e+01 (-1.000e+00)
295        Scale:  2.968e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  4.395e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 10.20
Ra Dec: 162.911 32.885
Photon Index (Free Index): 2.95 +/- 0.15
Photon Flux (Free Index): 1.12e-04 +/- 4.87e-05
Energy Flux (Free Index): 2.30e-02 +/- 8.15e-03

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/266266/cmap_HighResolution_557625601_557884801_4FGL_J1051.6+3253_daily_bin1228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.53e+04', comment='SUCCESS', photon_flux='9.99e-06', energy_flux2='2.30e-02', photon_flux_error='9.07e-13', dlogl='3.62e+00', energy_flux='6.10e-03', photon_flux2='1.12e-04', job_status='DONE', time_completed='2021-09-02 19:19:51.401834', photon_index_error2='0.15', photon_index2='2.95', ts='2.96', fit_tolerance='1e-08', GAL='0.44', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='8.15e-03', EG='0.01', time_epoch_completed='1630635591.4', return_code='0', job_id='266266', GAL2='0.44', EG2='0.01', return_code2='0', energy_flux_error='5.54e-10', photon_flux_error2='4.87e-05', ts2='10.20', photon_index='2.05' WHERE bin_id='1228' AND source_name='4FGL J1051.6+3253' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:19:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 266266: <4FGL_J1051.6+3253_daily_bin1228> in cluster <slac> Done

Job <4FGL_J1051.6+3253_daily_bin1228> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  2 19:11:26 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:11:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 19:11:37 2021
Terminated at Thu Sep  2 19:19:52 2021
Results reported at Thu Sep  2 19:19:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+3253_daily_bin1228 162.911 32.8853 557625601 557884801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1051.6+3253 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   378.55 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             225.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   494 sec.
    Turnaround time :                            506 sec.

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

