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


Performing analysis on: 4FGL_J1051.6+3253_daily_bin1402
RA = 162.911, Dec = 32.8853
tmin = 602726401, tmax = 602985601
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='267776', job_status='RUN', time_executed='2021-09-02 19:21:22.681420', time_epoch_executed='1630635682.68' WHERE source_name='4FGL J1051.6+3253' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267776

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267776/ft1_4FGL_J1051.6+3253_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267776/ft2_4FGL_J1051.6+3253_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267776/ft1_4FGL_J1051.6+3253_daily_bin1402.fits outfile=/scratch/kocevski/267776/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1402.fits ra=162.911 dec=32.8853 rad=12.0 tmin=602726401.0 tmax=602985601.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.15
user 2.92
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/267776/ft2_4FGL_J1051.6+3253_daily_bin1402.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/267776/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1402.fits evtable="EVENTS" outfile="/scratch/kocevski/267776/ft1_filtered_4FGL_J1051.6+3253_daily_bin1402.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.53
user 0.37
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267776/ft1_filtered_4FGL_J1051.6+3253_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/267776/ft2_4FGL_J1051.6+3253_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/267776/ltcube_602726401_602985601_4FGL_J1051.6+3253_daily_bin1402.fits outfile=/scratch/kocevski/267776/expmap_602726401_602985601_4FGL_J1051.6+3253_daily_bin1402.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/267776/ltcube_602726401_602985601_4FGL_J1051.6+3253_daily_bin1402.fits
.....................!
real 193.68
user 188.00
sys 4.66

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/267776/ft1_filtered_4FGL_J1051.6+3253_daily_bin1402.fits scfile=/scratch/kocevski/267776/ft2_4FGL_J1051.6+3253_daily_bin1402.fits outfile=/scratch/kocevski/267776/cmap_602726401_602985601_4FGL_J1051.6+3253_daily_bin1402.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.63
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267776/ft1_filtered_4FGL_J1051.6+3253_daily_bin1402.fits scfile=/scratch/kocevski/267776/ft2_4FGL_J1051.6+3253_daily_bin1402.fits outfile=/scratch/kocevski/267776/cmap_HighResolution_602726401_602985601_4FGL_J1051.6+3253_daily_bin1402.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.61
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/267776/ft1_filtered_4FGL_J1051.6+3253_daily_bin1402.fits', '/scratch/kocevski/267776/ft2_4FGL_J1051.6+3253_daily_bin1402.fits', expMap='/scratch/kocevski/267776/expmap_602726401_602985601_4FGL_J1051.6+3253_daily_bin1402.fits', expCube='/scratch/kocevski/267776/ltcube_602726401_602985601_4FGL_J1051.6+3253_daily_bin1402.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/267776/Model_4FGL_J1051.6+3253_daily_bin1402.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/267776/ft1_filtered_4FGL_J1051.6+3253_daily_bin1402.fits
Spacecraft file(s): /scratch/kocevski/267776/ft2_4FGL_J1051.6+3253_daily_bin1402.fits
Exposure map: /scratch/kocevski/267776/expmap_602726401_602985601_4FGL_J1051.6+3253_daily_bin1402.fits
Exposure cube: /scratch/kocevski/267776/ltcube_602726401_602985601_4FGL_J1051.6+3253_daily_bin1402.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/267776/Model_4FGL_J1051.6+3253_daily_bin1402.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 224.939176445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 221.21604747

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4647       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0098       1.0000         .10000E-03   10000.    
     3 'norm      '    8.6848       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3205       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9150       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9796       1.0000         .10000E-03   10000.    
     7 'norm      '    10.108       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2840       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7441       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0856       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .71368       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22707       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .80041       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .26530E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    178.27       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .72189E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .52816       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2651       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20244E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .19194E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .74196E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    65.668       1.0000         .10000E-03   10000.    
    24 'norm      '    .10056       1.0000         .10000E-03   10000.    
    25 'norm      '    .11433E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    26.907       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.3500       1.0000         .10000E-03   10000.    
    28 'Prefactor '    41.682       1.0000         .10000E-03   10000.    
    29 'norm      '    4.2007       1.0000         .10000E-03   10000.    
    30 'Prefactor '    88.591       1.0000         .10000E-03   10000.    
    31 'Prefactor '    18.177       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .59310E-07   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=   218.2842     FROM MIGRAD    STATUS=CONVERGED    802 CALLS     1113 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4647        1.0750         .0000         .0000    
   2  Prefactor     1.0098        1.3253         .0000         .0000    
   3  norm          8.6848        1.0017         .0000         .0000    
   4  Prefactor    10000.0        9802.6       -.17116E-03    .33363E-03
   5  Prefactor     42.544        49.954       -.19959E-05   -.16712E-02
   6  Prefactor    10000.0        9965.6        .36863E-04   -.16247E-03
   7  norm         10000.0        9638.6       -.97773E-05** at limit **
   8  Prefactor     .12512E-02    8224.3       -.80478E-04** at limit **
   9  Prefactor     1.2992        156.31       -.15747E-04   -.51596E-02
  10  Prefactor    10000.0        6390.3       -.18633E-04** at limit **
  11  Prefactor     .10002E-03    2179.0        .15122E-04** at limit **
  12  Prefactor     .10000E-03    131.92       -.91270E-05** at limit **
  13  Prefactor     .10028E-03    6170.7        .29072E-04** at limit **
  14  Prefactor     .10000E-03    36.748        .20030E-06** at limit **
  15  Prefactor     178.18        145.75        .12146E-04    .10014E-03
  16  Prefactor     .10000E-03    301.32        .48918E-05** at limit **
  17  Prefactor     .10000E-03    169.19       -.24134E-05** at limit **
  18  Prefactor     .10984E-03    1143.4       -.85585E-04** at limit **
  19  Prefactor     .10000E-03    65.644        .70426E-05** at limit **
  20  norm          .10000E-03    1.5814       -.69919E-06** at limit **
  21  Prefactor     .10000E-03    15.289        .52667E-05** at limit **
  22  Prefactor     .10000E-03    64.051       -.25678E-05** at limit **
  23  Prefactor     .10141E-03    151.38       -.77031E-06** at limit **
  24  norm          .10000E-03    63.654        .59408E-06** at limit **
  25  norm          .10000E-03    26.893        .31910E-05** at limit **
  26  Prefactor     22.611        21.091        .15170E-05    .11287E-03
  27  Prefactor     .10159E-03    1080.5        .62092E-04** at limit **
  28  Prefactor     11.188        492.87        .76036E-04   -.53750E-03
  29  norm          4.1826        12.122       -.13600E-06   -.31069E-04
  30  Prefactor     92.725        111.25        .10408E-04    .61689E-03
  31  Prefactor     15.091        25.956        .43713E-05   -.34319E-04
  32  Normalizat    .10000E-01    .47938       -.14473E-04** at limit **
  33  Prefactor     .91038E-12    .34847        .48499E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.46472
  Prefactor  = 1.00983
  norm       = 8.68484
  Prefactor  = 9999.96
  Prefactor  = 42.544
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.00125121
  Prefactor  = 1.29923
  Prefactor  = 10000
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.000100282
  Prefactor  = 0.0001
  Prefactor  = 178.176
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000109835
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101405
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 22.6107
  Prefactor  = 0.000101591
  Prefactor  = 11.1881
  norm       = 4.18258
  Prefactor  = 92.7249
  Prefactor  = 15.0913
  Normalizat = 0.01
  Prefactor  = 9.10383e-13
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   218.2842     FROM HESSE     STATUS=FAILED         9 CALLS     1122 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     578.48        576.82         .0000       -1.5466    
   2  Prefactor     1.0098        1.3253         .0000       -1.5507    
   3  norm          8.6848        1.0017         .0000       -1.5118    
   4  Prefactor    10000.0        .22911       -.17116E-03    1.5750    
   5  Prefactor     42.544        2.6867       -.19959E-05   -1.4403    
   6  Prefactor    10000.0        .13561        .36863E-04    1.5694    
   7  norm         10000.0        .24820E-01   -.97773E-05    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12512E-02    .59201E-01   -.80478E-04   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2992        .41058       -.15747E-04   -1.5936    
  10  Prefactor    10000.0        .49669E-01   -.18633E-04    1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    .36688        .15122E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .25505       -.91270E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10028E-03    .38697        .29072E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .20953        .20030E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     178.18        .99975        .12146E-04   -1.3030    
  16  Prefactor     .10000E-03    .21738        .48918E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .32406       -.24134E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10984E-03    .47945E-01   -.85585E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .25548        .70426E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .20571       -.69919E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .20571        .52667E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .21632       -.25678E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10141E-03    .38324E-02   -.77031E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .22628        .59408E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .20612        .31910E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     22.611        .91705        .15170E-05   -1.6659    
  27  Prefactor     .10159E-03    .39643E-01    .62092E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     11.188        .51892        .76036E-04   -1.6377    
  29  norm          4.1826        1.0051       -.13600E-06   -1.5299    
  30  Prefactor     92.725        1.0229        .10408E-04   -1.3779    
  31  Prefactor     15.091        .91167        .43713E-05   -1.4931    
  32  Normalizat    .10000E-01    .25741       -.14473E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .91038E-12    .25504        .48499E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.98258e-10
Minuit parameter uncertainties:
  1  1.075
  2  1.32538
  3  1.00167
  4  0.199431
  5  2.68668
  6  0.0517753
  7  0.00298728
  8  0.016511
  9  0.410577
  10  0.00705994
  11  0.000161794
  12  2.04191e-05
  13  0.000660401
  14  7.62343e-06
  15  0.999752
  16  2.17395e-05
  17  4.19269e-06
  18  0.00137341
  19  1.31679e-05
  20  5.26532e-09
  21  1.27189e-05
  22  1.53908e-05
  23  0.00014677
  24  1.09132e-05
  25  1.49919e-05
  26  0.917053
  27  0.000502355
  28  0.518919
  29  1.00509
  30  1.02287
  31  0.91167
  32  1.74166e-06
  33  9.67917e-07
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 218.284186565

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  2.174e-05  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:  9.104e-13  9.679e-07  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  1.742e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.911 32.885
Photon Flux Upper Limit: 1.62e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/267776/likelihoodResults_602726401_602985601_4FGL_J1051.6+3253_daily_bin1402.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) = 218.284202902
delta logL = -1.63371513224e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 218.284187184
delta logL = -6.19093299292e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30791E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3360       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61424E-09   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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   218.2842     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      272 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10171E-03    27.280        .20813E-01** at limit **
   2  Index         2.5425        8.4070        .50000        .23362E-05
   3  Normalizat    .10000E-01    .16774E-03    .58686E-02** at limit **
   4  Prefactor     .10769E-12    .11742E-03    .51023E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101712
  Index      = 2.5425
  Normalizat = 0.01
  Prefactor  = 1.07692e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   218.2842     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      301 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10171E-03    862.14        .17780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5425        6.2573        .50000       -.51381    
   3  Normalizat    .10000E-01    .55161E-02    .11737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10769E-12    .38606E-02    .10205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.62287e-08
Minuit parameter uncertainties:
  1  0.0779916
  2  715.488
  3  1.95318e-07
  4  4.07387e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267776': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 218.284186736
delta logL = -1.71062850995e-07

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  1.017e-04  7.799e-02  1.000e-04  1.000e+04 ( 1.000e-14)
294        Index:  2.543e+00  7.155e+02  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.077e-13  4.074e-08  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  1.953e-07  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/267776/cmap_HighResolution_602726401_602985601_4FGL_J1051.6+3253_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-01', job_status='DONE', photon_flux_upper_limit='1.62e-06', time_completed='2021-09-02 19:29:26.014983', job_id='267776', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630636166.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='-1.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1402' AND source_name='4FGL J1051.6+3253' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:29:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 267776: <4FGL_J1051.6+3253_daily_bin1402> in cluster <slac> Done

Job <4FGL_J1051.6+3253_daily_bin1402> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 19:16:23 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:17:33 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:17:33 2021
Terminated at Thu Sep  2 19:29:26 2021
Results reported at Thu Sep  2 19:29:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+3253_daily_bin1402 162.911 32.8853 602726401 602985601 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 :                                   343.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             205.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            783 sec.

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

