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


Performing analysis on: 4FGL_J1051.6+3253_daily_bin1033
RA = 162.911, Dec = 32.8853
tmin = 507081601, tmax = 507340801
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='264847', job_status='RUN', time_executed='2021-09-02 19:07:55.358190', time_epoch_executed='1630634875.36' WHERE source_name='4FGL J1051.6+3253' and cadence='daily' and bin_id='1033'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264847

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264847/ft1_4FGL_J1051.6+3253_daily_bin1033.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264847/ft2_4FGL_J1051.6+3253_daily_bin1033.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264847/ft1_4FGL_J1051.6+3253_daily_bin1033.fits outfile=/scratch/kocevski/264847/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1033.fits ra=162.911 dec=32.8853 rad=12.0 tmin=507081601.0 tmax=507340801.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.77
user 3.52
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264847/ft1_filtered_4FGL_J1051.6+3253_daily_bin1033.fits" evtable="EVENTS" scfile=/scratch/kocevski/264847/ft2_4FGL_J1051.6+3253_daily_bin1033.fits sctable="SC_DATA" outfile=/scratch/kocevski/264847/ltcube_507081601_507340801_4FGL_J1051.6+3253_daily_bin1033.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/264847/ft2_4FGL_J1051.6+3253_daily_bin1033.fits
.....................!
real 11.68
user 11.31
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264847/ft1_filtered_4FGL_J1051.6+3253_daily_bin1033.fits evtable="EVENTS" scfile=/scratch/kocevski/264847/ft2_4FGL_J1051.6+3253_daily_bin1033.fits sctable="SC_DATA" expcube=/scratch/kocevski/264847/ltcube_507081601_507340801_4FGL_J1051.6+3253_daily_bin1033.fits outfile=/scratch/kocevski/264847/expmap_507081601_507340801_4FGL_J1051.6+3253_daily_bin1033.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/264847/ltcube_507081601_507340801_4FGL_J1051.6+3253_daily_bin1033.fits
.....................!
real 157.66
user 152.11
sys 4.65

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/264847/ft1_filtered_4FGL_J1051.6+3253_daily_bin1033.fits scfile=/scratch/kocevski/264847/ft2_4FGL_J1051.6+3253_daily_bin1033.fits outfile=/scratch/kocevski/264847/cmap_507081601_507340801_4FGL_J1051.6+3253_daily_bin1033.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.50
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264847/ft1_filtered_4FGL_J1051.6+3253_daily_bin1033.fits scfile=/scratch/kocevski/264847/ft2_4FGL_J1051.6+3253_daily_bin1033.fits outfile=/scratch/kocevski/264847/cmap_HighResolution_507081601_507340801_4FGL_J1051.6+3253_daily_bin1033.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.51
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17782       1.0000         .10000E-03   10000.    
     3 'norm      '    24.652       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.379       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10644E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.097       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.2395       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10463E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7725       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11190E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .48878       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5011       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7549       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14858E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.873       1.0000         .10000E-03   10000.    
    20 'norm      '    1.9471       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .97055       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.575       1.0000         .10000E-03   10000.    
    24 'norm      '    6.8985       1.0000         .10000E-03   10000.    
    25 'norm      '    3.9458       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.2991       1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.395       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10876E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .97974       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1512       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .73503       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=   5395.145     FROM MIGRAD    STATUS=CONVERGED   1628 CALLS     4693 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2951        .18142E-02** at limit **
   2  Prefactor     .17682        5.9461        .16679E-02   -.12510E-02
   3  norm          24.649        12.951        .80680E-04   -.15018E-03
   4  Prefactor     .10000E-03    1.5184        .87834E-03** at limit **
   5  Prefactor     11.387        36.557        .11876E-03    .34462E-05
   6  Prefactor     .10000E-03    2.5986        .22826E-03** at limit **
   7  norm          .10000E-03    4.2392        .14749E-02** at limit **
   8  Prefactor     35.190        36.982        .33822E-03   -.14482E-03
   9  Prefactor     7.2170        17.642        .14908E-03   -.21734E-04
  10  Prefactor     .10000E-03    2.6781        .11636E-02** at limit **
  11  Prefactor     .10000E-03    3.8609        .27728E-03** at limit **
  12  Prefactor     9.7762        8.6372        .12819E-03   -.14190E-04
  13  Prefactor     .10000E-03    57.381        .18142E-02** at limit **
  14  Prefactor     .48715        2.4864        .21131E-03   -.70373E-04
  15  Prefactor     6.5013        8.3930        .15740E-03   -.93174E-05
  16  Prefactor     .10000E-03    10.968        .18142E-02** at limit **
  17  Prefactor     9.7559        8.8217        .12830E-03    .93925E-05
  18  Prefactor     .10001E-03    103.77        .20779    ** at limit **
  19  Prefactor     20.861        15.839        .87669E-04   -.33327E-04
  20  norm          1.9472        .42636        .20552E-04    .88837E-03
  21  Prefactor     .97432        2.6902        .18032E-03   -.60146E-04
  22  Prefactor     .10000E-03    7.4553        .18142E-02** at limit **
  23  Prefactor     12.574        17.736        .11296E-03    .59279E-04
  24  norm          6.8988        14.108        .15275E-03    .57085E-04
  25  norm          3.9440        8.0969        .10154E-02   -.17324E-03
  26  Prefactor     3.3002        2.2022        .83064E-04    .34729E-03
  27  Prefactor     13.404        27.444        .10944E-03   -.13712E-04
  28  Prefactor     .10000E-03    15.473        .18142E-02** at limit **
  29  norm          .97915        2.0341        .14974E-02   -.42531E-03
  30  Prefactor     .10000E-03    7.1080        .18142E-02** at limit **
  31  Prefactor     .10000E-03    5.3339        .32430E-03** at limit **
  32  Normalizat    1.1512        .21314        .21871E-03    .59727E-04
  33  Prefactor     .73508        .23884        .31519E-03    .46386E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.176821
  norm       = 24.6494
  Prefactor  = 0.0001
  Prefactor  = 11.3871
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.1901
  Prefactor  = 7.21701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.77625
  Prefactor  = 0.0001
  Prefactor  = 0.487155
  Prefactor  = 6.50135
  Prefactor  = 0.0001
  Prefactor  = 9.75592
  Prefactor  = 0.000100005
  Prefactor  = 20.8614
  norm       = 1.94718
  Prefactor  = 0.97432
  Prefactor  = 0.0001
  Prefactor  = 12.5742
  norm       = 6.89885
  norm       = 3.94398
  Prefactor  = 3.30022
  Prefactor  = 13.4043
  Prefactor  = 0.0001
  norm       = 0.979154
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.15121
  Prefactor  = 0.735081
 **********
 **   18 **HESSE 
 **********

 FCN=   5395.145     FROM HESSE     STATUS=OK           675 CALLS     5368 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3013        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .17682        5.9510        .66714E-04   -1.5624    
   3  norm          24.649        12.951        .16136E-04   -1.4715    
   4  Prefactor     .10000E-03    1.5186        .17567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.387        36.553        .47505E-05   -1.5033    
   6  Prefactor     .10000E-03    2.5987        .45653E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.2394        .29497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.190        36.982        .67645E-04   -1.4521    
   9  Prefactor     7.2170        17.641        .59631E-05   -1.5171    
  10  Prefactor     .10000E-03    2.6788        .23273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.8609        .55457E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.7762        8.6341        .51275E-05   -1.5083    
  13  Prefactor     .10000E-03    57.401        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .48715        2.4831        .84522E-05   -1.5568    
  15  Prefactor     6.5013        8.3926        .62960E-05   -1.5198    
  16  Prefactor     .10000E-03    10.969        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.7559        8.8214        .51321E-05   -1.5083    
  18  Prefactor     .10001E-03    109.04        .20109       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.861        15.831        .35068E-05   -1.4794    
  20  norm          1.9472        .42635        .82209E-06   -1.5429    
  21  Prefactor     .97432        2.6886        .72129E-05   -1.5511    
  22  Prefactor     .10000E-03    7.4560        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.574        17.736        .45184E-05   -1.4999    
  24  norm          6.8988        14.106        .61101E-05   -1.5183    
  25  norm          3.9440        8.0949        .40615E-04   -1.5311    
  26  Prefactor     3.3002        2.2014        .16613E-04   -1.5345    
  27  Prefactor     13.404        27.426        .43776E-05   -1.4976    
  28  Prefactor     .10000E-03    15.477        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .97915        2.0295        .59895E-04   -1.5510    
  30  Prefactor     .10000E-03    7.1094        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    5.3342        .64859E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1512        .21315        .87482E-05   -.88124    
  33  Prefactor     .73508        .23910        .12607E-04   -1.0217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88275e-09
Minuit parameter uncertainties:
  1  1.04596e-05
  2  2.05123
  3  12.9522
  4  2.76496e-06
  5  36.6246
  6  6.67173e-06
  7  5.85439e-06
  8  37.0057
  9  17.6537
  10  7.2889e-06
  11  3.28228e-05
  12  8.63516
  13  0.000170818
  14  2.19961
  15  8.39415
  16  1.79386e-05
  17  8.82259
  18  0.00151988
  19  15.8342
  20  0.426351
  21  2.68897
  22  3.09637e-05
  23  17.7437
  24  14.1123
  25  8.09717
  26  2.20144
  27  27.4513
  28  3.40869e-05
  29  2.02967
  30  3.43737e-06
  31  1.74554e-05
  32  0.213311
  33  0.239433
Done.

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

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  1.794e-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:  7.351e-01  2.394e-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.151e+00  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.911 32.885
Photon Flux Upper Limit: 4.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/264847/likelihoodResults_507081601_507340801_4FGL_J1051.6+3253_daily_bin1033.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) = 5395.14532527
delta logL = -0.000433781406173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5395.14489142
delta logL = 6.87368810759e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0237       1.0000          .0000       10.000    
     3 'Normalizat'    1.1512       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73509       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=   5395.145     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10099E-03    61.858        .18142E-02** at limit **
   2  Index         1.9736        5.2255        .50000        .17791E-04
   3  Normalizat    1.1512        .99005E-02    .21871E-03    .80175E-03
   4  Prefactor     .73508        .11696E-01    .31519E-03    .39563E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100994
  Index      = 1.97358
  Normalizat = 1.15122
  Prefactor  = 0.735078
 **********
 **   18 **HESSE 
 **********

 FCN=   5395.145     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 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     .10099E-03    286.30        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9736        8.9950        .50000       -.65012    
   3  Normalizat    1.1512        .21823E-01    .43741E-04   -.88124    
   4  Prefactor     .73508        .25781E-01    .63037E-04   -1.0217    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.61199e-08
Minuit parameter uncertainties:
  1  0.0338962
  2  340.784
  3  0.0218234
  4  0.025781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264847': 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) = 5395.14489116
delta logL = 3.38023710356e-07

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  1.010e-04  3.390e-02  1.000e-04  1.000e+04 ( 1.000e-14)
294        Index:  1.974e+00  3.408e+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:  7.351e-01  2.578e-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.151e+00  2.182e-02  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/264847/cmap_HighResolution_507081601_507340801_4FGL_J1051.6+3253_daily_bin1033.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-03', job_status='DONE', photon_flux_upper_limit='4.76e-08', time_completed='2021-09-02 19:21:02.532552', job_id='264847', GAL2='0.74', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630635662.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='3.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1033' AND source_name='4FGL J1051.6+3253' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:21:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 264847: <4FGL_J1051.6+3253_daily_bin1033> in cluster <slac> Done

Job <4FGL_J1051.6+3253_daily_bin1033> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 19:06:27 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:07:22 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:07:22 2021
Terminated at Thu Sep  2 19:21:09 2021
Results reported at Thu Sep  2 19:21:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+3253_daily_bin1033 162.911 32.8853 507081601 507340801 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 :                                   775.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            882 sec.

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

