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


Performing analysis on: 4FGL_J1051.6+3253_daily_bin1597
RA = 162.911, Dec = 32.8853
tmin = 653270401, tmax = 653529601
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='545020', job_status='RUN', time_executed='2021-09-17 00:58:27.472944', time_epoch_executed='1631865507.47' WHERE source_name='4FGL J1051.6+3253' and cadence='daily' and bin_id='1597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/545020

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/545020/ft1_4FGL_J1051.6+3253_daily_bin1597.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/545020/ft2_4FGL_J1051.6+3253_daily_bin1597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/545020/ft1_4FGL_J1051.6+3253_daily_bin1597.fits outfile=/scratch/kocevski/545020/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1597.fits ra=162.911 dec=32.8853 rad=12.0 tmin=653270401.0 tmax=653529601.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.35
user 3.11
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/545020/ft1_filtered_4FGL_J1051.6+3253_daily_bin1597.fits" evtable="EVENTS" scfile=/scratch/kocevski/545020/ft2_4FGL_J1051.6+3253_daily_bin1597.fits sctable="SC_DATA" outfile=/scratch/kocevski/545020/ltcube_653270401_653529601_4FGL_J1051.6+3253_daily_bin1597.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/545020/ft2_4FGL_J1051.6+3253_daily_bin1597.fits
.....................!
real 13.19
user 12.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/545020/ft1_filtered_4FGL_J1051.6+3253_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/545020/ft2_4FGL_J1051.6+3253_daily_bin1597.fits sctable="SC_DATA" expcube=/scratch/kocevski/545020/ltcube_653270401_653529601_4FGL_J1051.6+3253_daily_bin1597.fits outfile=/scratch/kocevski/545020/expmap_653270401_653529601_4FGL_J1051.6+3253_daily_bin1597.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/545020/ltcube_653270401_653529601_4FGL_J1051.6+3253_daily_bin1597.fits
.....................!
real 191.85
user 185.68
sys 5.68

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/545020/ft1_filtered_4FGL_J1051.6+3253_daily_bin1597.fits scfile=/scratch/kocevski/545020/ft2_4FGL_J1051.6+3253_daily_bin1597.fits outfile=/scratch/kocevski/545020/cmap_653270401_653529601_4FGL_J1051.6+3253_daily_bin1597.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/545020/ft1_filtered_4FGL_J1051.6+3253_daily_bin1597.fits scfile=/scratch/kocevski/545020/ft2_4FGL_J1051.6+3253_daily_bin1597.fits outfile=/scratch/kocevski/545020/cmap_HighResolution_653270401_653529601_4FGL_J1051.6+3253_daily_bin1597.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.54
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/545020/ft1_filtered_4FGL_J1051.6+3253_daily_bin1597.fits', '/scratch/kocevski/545020/ft2_4FGL_J1051.6+3253_daily_bin1597.fits', expMap='/scratch/kocevski/545020/expmap_653270401_653529601_4FGL_J1051.6+3253_daily_bin1597.fits', expCube='/scratch/kocevski/545020/ltcube_653270401_653529601_4FGL_J1051.6+3253_daily_bin1597.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/545020/Model_4FGL_J1051.6+3253_daily_bin1597.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/545020/ft1_filtered_4FGL_J1051.6+3253_daily_bin1597.fits
Spacecraft file(s): /scratch/kocevski/545020/ft2_4FGL_J1051.6+3253_daily_bin1597.fits
Exposure map: /scratch/kocevski/545020/expmap_653270401_653529601_4FGL_J1051.6+3253_daily_bin1597.fits
Exposure cube: /scratch/kocevski/545020/ltcube_653270401_653529601_4FGL_J1051.6+3253_daily_bin1597.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/545020/Model_4FGL_J1051.6+3253_daily_bin1597.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) = 759.694706454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.386       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6902       1.0000         .10000E-03   10000.    
     3 'norm      '    51.083       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13847       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.006       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    424.42       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.499       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.9156       1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.791       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.7008       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.407       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0380       1.0000         .10000E-03   10000.    
    20 'norm      '    1.2309       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    15.404       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.7253       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10643E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    183.57       1.0000         .10000E-03   10000.    
    31 'Prefactor '    27.553       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .12772       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0197       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   759.6751     FROM MIGRAD    STATUS=CONVERGED    100 CALLS     5381 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.406        3.7067        .34425E-05   -.68025E-03
   2  Prefactor     5.6922        6.5693        .18491E-05    .10021E-02
   3  norm          51.086        1.0186       -.59126E-07    .30745E-03
   4  Prefactor     .99602E-01    21.036       -.29570E-04    .46946E-03
   5  Prefactor     11.009        1.0389       -.43122E-06    .30117E-03
   6  Prefactor     .10040E-03    19.270        .15044E-04** at limit **
   7  norm          .10002E-03    15.478       -.22659E-04** at limit **
   8  Prefactor     424.43        1.2322        .19211E-06   -.37236E-02
   9  Prefactor     .11092E-03    31.213        .71759E-05** at limit **
  10  Prefactor     10.498        1.1706       -.23791E-06    .42563E-06
  11  Prefactor     .10001E-03    15.349       -.84615E-06** at limit **
  12  Prefactor     9.9182        1.0764        .66923E-06    .52526E-03
  13  Prefactor     39.789        1.0071       -.13103E-07   -.12669E-03
  14  Prefactor     9.7025        4.9602        .75835E-05    .85914E-02
  15  Prefactor     24.407        1.0038       -.28455E-07    .18386E-03
  16  Prefactor     .10116E-03    21.262       -.19095E-04** at limit **
  17  Prefactor     .10001E-03    14.173        .20498E-04** at limit **
  18  Prefactor     .10002E-03    61.972       -.41572E-04** at limit **
  19  Prefactor     3.0629        3.2586        .71401E-05   -.52385E-03
  20  norm          1.2310        .97208        .60853E-06    .44621E-03
  21  Prefactor     .10000E-03    4.7337       -.19302E-05** at limit **
  22  Prefactor     .10002E-03    18.693       -.15638E-04** at limit **
  23  Prefactor     .10102E-03    18.208        .17081E-04** at limit **
  24  norm          .10016E-03    32.690        .24388E-04** at limit **
  25  norm          15.400        1.8640       -.19973E-05    .11046E-02
  26  Prefactor     5.7248        6.4431       -.80456E-05   -.25948E-02
  27  Prefactor     .10000E-03    32.550        .25476E-04** at limit **
  28  Prefactor     .10682E-03    75.889       -.55807E-04** at limit **
  29  norm          .10000E-03    2.6402       -.25489E-06** at limit **
  30  Prefactor     183.57        1.5093       -.43865E-06    .33487E-02
  31  Prefactor     27.551        1.2671       -.61808E-06   -.31613E-03
  32  Normalizat    .12841        .43319        .30753E-04    .39416E-04
  33  Prefactor     1.0192        .54972       -.14890E-04    .68401E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.406
  Prefactor  = 5.69223
  norm       = 51.0861
  Prefactor  = 0.0996022
  Prefactor  = 11.0089
  Prefactor  = 0.000100399
  norm       = 0.000100019
  Prefactor  = 424.427
  Prefactor  = 0.000110916
  Prefactor  = 10.4978
  Prefactor  = 0.00010001
  Prefactor  = 9.91821
  Prefactor  = 39.789
  Prefactor  = 9.70249
  Prefactor  = 24.4073
  Prefactor  = 0.000101164
  Prefactor  = 0.000100014
  Prefactor  = 0.00010002
  Prefactor  = 3.06285
  norm       = 1.23101
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 0.000101021
  norm       = 0.000100158
  norm       = 15.3999
  Prefactor  = 5.72479
  Prefactor  = 0.000100001
  Prefactor  = 0.000106822
  norm       = 0.0001
  Prefactor  = 183.57
  Prefactor  = 27.5515
  Normalizat = 0.128413
  Prefactor  = 1.01921
 **********
 **   18 **HESSE 
 **********

 FCN=   759.6751     FROM HESSE     STATUS=NOT POSDEF   767 CALLS     6148 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.406        40.039        .25527E-02   -1.4923    
   2  Prefactor     5.6922        9.5833        .42098E-02   -1.5231    
   3  norm          51.086        39.032        .14028E-02   -1.4277    
   4  Prefactor     .99602E-01    78.454        .66100E-01   -1.5645    
   5  Prefactor     11.009        465.57        .30190E-02   -1.5044    
   6  Prefactor     .10040E-03    26.740        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10002E-03    19.595        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     424.43        487.88        .49604E-03   -1.1558    
   9  Prefactor     .11092E-03    115.98        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.498        25.811        .30914E-02   -1.5060    
  11  Prefactor     .10001E-03    15.543        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.9182        19.081        .31814E-02   -1.5078    
  13  Prefactor     39.789        144.70        .15886E-02   -1.4446    
  14  Prefactor     9.7025        8.0409        .32165E-02   -1.5085    
  15  Prefactor     24.407        27.413        .20270E-02   -1.4719    
  16  Prefactor     .10116E-03    47.006        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    17.120        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    169.12        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.0629        104.03        .58199E-02   -1.5358    
  20  norm          1.2310        1.1786        .52899E-02   -1.5486    
  21  Prefactor     .10000E-03    4.6199        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    41.409        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10102E-03    32.564        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10016E-03    78.413        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          15.400        55.088        .25512E-02   -1.4923    
  26  Prefactor     5.7248        7.6255        .41967E-02   -1.5229    
  27  Prefactor     .10000E-03    80.373        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10682E-03    190.21        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.5812        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     183.57        109.53        .74494E-03   -1.2990    
  31  Prefactor     27.551        26.147        .19080E-02   -1.4658    
  32  Normalizat    .12841        9.3723        .11713       -1.3526    
  33  Prefactor     1.0192        2.2951        .42168E-01   -.92092    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.15702e-07
Minuit parameter uncertainties:
  1  40.1087
  2  9.58589
  3  39.0515
  4  5.59532
  5  144.401
  6  0.00653441
  7  0.00120953
  8  492.777
  9  0.0713007
  10  25.838
  11  0.000802957
  12  19.0931
  13  146.009
  14  8.0418
  15  27.4275
  16  0.0148079
  17  0.000973552
  18  0.00366326
  19  35.7667
  20  1.17862
  21  1.19572e-05
  22  0.00201333
  23  0.0115398
  24  0.00704304
  25  55.2713
  26  7.62677
  27  0.000564702
  28  0.072276
  29  1.67154e-06
  30  109.655
  31  26.1579
  32  2.8952
  33  2.60534
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 759.675124482

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  1.012e-04  1.481e-02  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:  1.019e+00  2.605e+00  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.284e-01  2.895e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.911 32.885
Photon Flux Upper Limit: 2.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.92e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/545020/likelihoodResults_653270401_653529601_4FGL_J1051.6+3253_daily_bin1597.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) = 759.675221425
delta logL = -9.69428690496e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 759.675126237
delta logL = -1.75429170213e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4020       1.0000          .0000       10.000    
     3 'Normalizat'    .12839       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0189       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=   759.6751     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      241 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    231.10        .90712E-02** at limit **
   2  Index         2.3570        7.0210        .50000        .13653E-04
   3  Normalizat    .12841        .26179E-01    .11713        .63722E-04
   4  Prefactor     1.0192        .33614E-01    .42252E-01    .13176E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.35698
  Normalizat = 0.12841
  Prefactor  = 1.01922
 **********
 **   18 **HESSE 
 **********

 FCN=   759.6751     FROM HESSE     STATUS=OK            31 CALLS      272 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    43.504        .14408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3570        6.1147        .50000       -.55696    
   3  Normalizat    .12841        .39247        .51354E-03   -1.3526    
   4  Prefactor     1.0192        .50877        .23231E-03   -.92092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3996e-09
Minuit parameter uncertainties:
  1  0.00131271
  2  5.26426
  3  0.401646
  4  0.511203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/545020': 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) = 759.675125178
delta logL = -6.95274707141e-07

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  1.313e-03  1.000e-04  1.000e+04 ( 1.000e-14)
294        Index:  2.357e+00  5.264e+00  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:  1.019e+00  5.112e-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.284e-01  4.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 162.911 32.885

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/545020/cmap_HighResolution_653270401_653529601_4FGL_J1051.6+3253_daily_bin1597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.92e-02', job_status='DONE', photon_flux_upper_limit='2.54e-07', time_completed='2021-09-17 01:05:35.335052', job_id='545020', GAL2='1.02', fit_tolerance='1e-08', EG2='0.13', EG='0.13', time_epoch_completed='1631865935.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='102', GAL='1.02', dlogl='-6.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1597' AND source_name='4FGL J1051.6+3253' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 01:05:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 545020: <4FGL_J1051.6+3253_daily_bin1597> in cluster <slac> Done

Job <4FGL_J1051.6+3253_daily_bin1597> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 17 00:55:23 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 00:55:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 00:55:24 2021
Terminated at Fri Sep 17 01:05:36 2021
Results reported at Fri Sep 17 01:05:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+3253_daily_bin1597 162.911 32.8853 653270401 653529601 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 :                                   430.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   611 sec.
    Turnaround time :                            613 sec.

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

