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


Performing analysis on: 4FGL_J1051.6+3253_daily_bin1527
RA = 162.911, Dec = 32.8853
tmin = 635126401, tmax = 635385601
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='267980', job_status='RUN', time_executed='2021-09-02 19:22:04.077966', time_epoch_executed='1630635724.08' WHERE source_name='4FGL J1051.6+3253' and cadence='daily' and bin_id='1527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267980

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267980/ft1_4FGL_J1051.6+3253_daily_bin1527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267980/ft2_4FGL_J1051.6+3253_daily_bin1527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267980/ft1_4FGL_J1051.6+3253_daily_bin1527.fits outfile=/scratch/kocevski/267980/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1527.fits ra=162.911 dec=32.8853 rad=12.0 tmin=635126401.0 tmax=635385601.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 2.98
user 2.78
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/267980/ft1_filtered_4FGL_J1051.6+3253_daily_bin1527.fits" evtable="EVENTS" scfile=/scratch/kocevski/267980/ft2_4FGL_J1051.6+3253_daily_bin1527.fits sctable="SC_DATA" outfile=/scratch/kocevski/267980/ltcube_635126401_635385601_4FGL_J1051.6+3253_daily_bin1527.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/267980/ft2_4FGL_J1051.6+3253_daily_bin1527.fits
.....................!
real 17.47
user 17.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267980/ft1_filtered_4FGL_J1051.6+3253_daily_bin1527.fits evtable="EVENTS" scfile=/scratch/kocevski/267980/ft2_4FGL_J1051.6+3253_daily_bin1527.fits sctable="SC_DATA" expcube=/scratch/kocevski/267980/ltcube_635126401_635385601_4FGL_J1051.6+3253_daily_bin1527.fits outfile=/scratch/kocevski/267980/expmap_635126401_635385601_4FGL_J1051.6+3253_daily_bin1527.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/267980/ltcube_635126401_635385601_4FGL_J1051.6+3253_daily_bin1527.fits
.....................!
real 192.19
user 187.66
sys 4.08

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/267980/ft1_filtered_4FGL_J1051.6+3253_daily_bin1527.fits scfile=/scratch/kocevski/267980/ft2_4FGL_J1051.6+3253_daily_bin1527.fits outfile=/scratch/kocevski/267980/cmap_635126401_635385601_4FGL_J1051.6+3253_daily_bin1527.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267980/ft1_filtered_4FGL_J1051.6+3253_daily_bin1527.fits scfile=/scratch/kocevski/267980/ft2_4FGL_J1051.6+3253_daily_bin1527.fits outfile=/scratch/kocevski/267980/cmap_HighResolution_635126401_635385601_4FGL_J1051.6+3253_daily_bin1527.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4991       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 '    3.3791       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7573       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7591       1.0000         .10000E-03   10000.    
     7 'norm      '    3.9751       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7933       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8818       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .76461E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .43970E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .63849E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13666E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .71256E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .44949       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .62334E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    115.41       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.7499       1.0000         .10000E-03   10000.    
    19 'Prefactor '    98.098       1.0000         .10000E-03   10000.    
    20 'norm      '    2.0270       1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.158       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .79825E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.166       1.0000         .10000E-03   10000.    
    24 'norm      '    64.138       1.0000         .10000E-03   10000.    
    25 'norm      '    .53845       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .49611E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .35065E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .16156E-02   1.0000         .10000E-03   10000.    
    31 'Prefactor '    8.9724       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2107       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=   451.8817     FROM MIGRAD    STATUS=CONVERGED    529 CALLS      734 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.854        65.913       -.25128E-05   -.14811E-02
   2  Prefactor     1.0098        1.3253         .0000         .0000    
   3  norm          8.6848        1.0017         .0000         .0000    
   4  Prefactor    10000.0        7639.6        .97906E-05** at limit **
   5  Prefactor     1.7829        123.78       -.20641E-05   -.79943E-02
   6  Prefactor     .10977E-02    7160.1       -.48294E-04** at limit **
   7  norm          .10000E-03    236.25       -.12386E-04** at limit **
   8  Prefactor     .15320E-02    117.78        .13365E-04** at limit **
   9  Prefactor     .10258E-03    360.31       -.74564E-05** at limit **
  10  Prefactor     .10000E-03    32.770        .48728E-06** at limit **
  11  Prefactor     .10000E-03    58.449        .74075E-05** at limit **
  12  Prefactor     .10000E-03    217.62       -.16828E-04** at limit **
  13  Prefactor     .10001E-03    153.07        .36598E-05** at limit **
  14  Prefactor     .10000E-03    62.551       -.82699E-06** at limit **
  15  Prefactor     .10000E-03    197.26       -.25696E-04** at limit **
  16  Prefactor     .10000E-03    172.09        .99311E-05** at limit **
  17  Prefactor     115.75        139.69        .43081E-06   -.80004E-02
  18  Prefactor     100.50        341.80       -.18404E-04   -.78153E-03
  19  Prefactor     97.983        176.12       -.77463E-05    .60348E-02
  20  norm          1.8718        1.9646        .10189E-06    .43990E-03
  21  Prefactor     17.216        23.991        .18745E-05   -.21453E-03
  22  Prefactor     .10000E-03    111.24       -.10852E-04** at limit **
  23  Prefactor     35.846        117.43       -.15132E-04   -.28925E-02
  24  norm          29.254        71.373       -.55928E-05    .52246E-02
  25  norm          6.7044        107.53       -.90119E-05    .49600E-04
  26  Prefactor     .10000E-03    3.6689        .20443E-05** at limit **
  27  Prefactor     .10000E-03    41.539       -.85207E-06** at limit **
  28  Prefactor     .10000E-03    19.757       -.32679E-06** at limit **
  29  norm          .10000E-03    2.4746       -.49578E-07** at limit **
  30  Prefactor     .10000E-03    74.475        .76328E-05** at limit **
  31  Prefactor     8.7113        14.337        .48403E-06    .11170E-04
  32  Normalizat    .10000E-01    .21876       -.36733E-05** at limit **
  33  Prefactor     1.1440        .47156        .24424E-05   -.60284E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.8539
  Prefactor  = 1.00983
  norm       = 8.68484
  Prefactor  = 10000
  Prefactor  = 1.78291
  Prefactor  = 0.00109766
  norm       = 0.000100001
  Prefactor  = 0.00153196
  Prefactor  = 0.000102583
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 115.752
  Prefactor  = 100.5
  Prefactor  = 97.9828
  norm       = 1.87183
  Prefactor  = 17.2158
  Prefactor  = 0.0001
  Prefactor  = 35.8462
  norm       = 29.2535
  norm       = 6.70437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.7113
  Normalizat = 0.01
  Prefactor  = 1.14404
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   451.8817     FROM HESSE     STATUS=FAILED        13 CALLS      747 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.854        2289.8        .87450E-02   -1.4839    
   2  Prefactor     588.11        586.66         .0000       -1.5507    
   3  norm          8.6848        1.0017         .0000       -1.5118    
   4  Prefactor    10000.0        .75705E-01    .97906E-05    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7829        .55871       -.20641E-05   -1.5975    
   6  Prefactor     .10977E-02    .93828E-01   -.48294E-04   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .63946E-01   -.12386E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .15320E-02    .67120E-01    .13365E-04   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10258E-03    .65536E-01   -.74564E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .21516        .48728E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .23460        .74075E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .22196       -.16828E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    .20662        .36598E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .21964       -.82699E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .30596       -.25696E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .22283        .99311E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     115.75        1.0015        .43081E-06   -1.3552    
  18  Prefactor     100.50        3.2002       -.18404E-04   -1.3700    
  19  Prefactor     97.983        .99943       -.77463E-05   -1.3725    
  20  norm          1.8718        .99385        .10189E-06   -1.5434    
  21  Prefactor     17.216        .97411        .18745E-05   -1.4878    
  22  Prefactor     .10000E-03    .22159       -.10852E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     35.846        1.0556       -.15132E-04   -1.4510    
  24  norm          29.254        .67656       -.55928E-05   -1.4626    
  25  norm          6.7044        2.9576       -.90119E-05   -1.5190    
  26  Prefactor     .10000E-03    .20571        .20443E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    .27987       -.85207E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    .28416       -.32679E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    .20571       -.49578E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    .26039        .76328E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     8.7113        .98689        .48403E-06   -1.5118    
  32  Normalizat    .10000E-01    .25505       -.36733E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     1.1440        1.0730        .24424E-05   -.88071    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.88844e-10
Minuit parameter uncertainties:
  1  433.8
  2  1.32538
  3  1.00167
  4  0.00321531
  5  0.558714
  6  0.0193504
  7  1.38256e-05
  8  0.0196074
  9  0.000822867
  10  1.71078e-06
  11  5.80038e-05
  12  9.00128e-06
  13  8.4875e-05
  14  6.8544e-06
  15  9.63099e-06
  16  5.91663e-05
  17  1.00145
  18  3.20019
  19  0.999432
  20  0.993861
  21  0.974112
  22  1.91261e-05
  23  1.05559
  24  0.676561
  25  2.9577
  26  3.71678e-06
  27  9.50525e-07
  28  1.05997e-06
  29  2.01425e-07
  30  1.79651e-07
  31  0.986891
  32  1.81544e-06
  33  1.09438
Done.

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

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  5.917e-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:  1.144e+00  1.094e+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.000e-02  1.815e-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: 8.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/267980/likelihoodResults_635126401_635385601_4FGL_J1051.6+3253_daily_bin1527.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) = 451.881695891
delta logL = -2.70890283787e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 451.881668982
delta logL = -1.80200686373e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11831E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3712       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1440       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=   451.8817     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      247 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    102.56        .90712E-02** at limit **
   2  Index         2.3444        6.6028        .50000        .17617E-05
   3  Normalizat    .10000E-01    .32042E-03    .13889    ** at limit **
   4  Prefactor     1.1440        .14283E-01    .53211E-01    .89774E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.34438
  Normalizat = 0.01
  Prefactor  = 1.14404
 **********
 **   18 **HESSE 
 **********

 FCN=   451.8817     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      280 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    711.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3444        6.5337        .50000       -.55993    
   3  Normalizat    .10000E-01    .24565E-02    .59375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1440        .38164E-01    .23523E-03   -.88071    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.51572e-08
Minuit parameter uncertainties:
  1  0.00350584
  2  596.894
  3  1.70207e-09
  4  0.0381646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267980': 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) = 451.881668899
delta logL = -9.69135385276e-08

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  3.506e-03  1.000e-04  1.000e+04 ( 1.000e-14)
294        Index:  2.344e+00  5.969e+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.144e+00  3.816e-02  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.702e-09  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/267980/cmap_HighResolution_635126401_635385601_4FGL_J1051.6+3253_daily_bin1527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-02', job_status='DONE', photon_flux_upper_limit='8.22e-07', time_completed='2021-09-02 19:31:36.133149', job_id='267980', GAL2='1.14', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630636296.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.14', dlogl='-9.69e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1527' AND source_name='4FGL J1051.6+3253' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:31:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 267980: <4FGL_J1051.6+3253_daily_bin1527> in cluster <slac> Done

Job <4FGL_J1051.6+3253_daily_bin1527> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 19:16:40 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:18:49 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:18:49 2021
Terminated at Thu Sep  2 19:31:36 2021
Results reported at Thu Sep  2 19:31:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+3253_daily_bin1527 162.911 32.8853 635126401 635385601 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 :                                   340.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            896 sec.

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

