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


Performing analysis on: 4FGL_J1051.6+3253_daily_bin712
RA = 162.911, Dec = 32.8853
tmin = 423878401, tmax = 424137601
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='263033', job_status='RUN', time_executed='2021-09-02 19:02:01.553862', time_epoch_executed='1630634521.55' WHERE source_name='4FGL J1051.6+3253' and cadence='daily' and bin_id='712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263033

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263033/ft1_4FGL_J1051.6+3253_daily_bin712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263033/ft2_4FGL_J1051.6+3253_daily_bin712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263033/ft1_4FGL_J1051.6+3253_daily_bin712.fits outfile=/scratch/kocevski/263033/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin712.fits ra=162.911 dec=32.8853 rad=12.0 tmin=423878401.0 tmax=424137601.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 5.45
user 5.10
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263033/ft1_filtered_4FGL_J1051.6+3253_daily_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/263033/ft2_4FGL_J1051.6+3253_daily_bin712.fits sctable="SC_DATA" expcube=/scratch/kocevski/263033/ltcube_423878401_424137601_4FGL_J1051.6+3253_daily_bin712.fits outfile=/scratch/kocevski/263033/expmap_423878401_424137601_4FGL_J1051.6+3253_daily_bin712.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/263033/ltcube_423878401_424137601_4FGL_J1051.6+3253_daily_bin712.fits
.....................!
real 191.06
user 186.44
sys 4.10

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/263033/ft1_filtered_4FGL_J1051.6+3253_daily_bin712.fits scfile=/scratch/kocevski/263033/ft2_4FGL_J1051.6+3253_daily_bin712.fits outfile=/scratch/kocevski/263033/cmap_423878401_424137601_4FGL_J1051.6+3253_daily_bin712.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.92
user 0.42
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263033/ft1_filtered_4FGL_J1051.6+3253_daily_bin712.fits scfile=/scratch/kocevski/263033/ft2_4FGL_J1051.6+3253_daily_bin712.fits outfile=/scratch/kocevski/263033/cmap_HighResolution_423878401_424137601_4FGL_J1051.6+3253_daily_bin712.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 1.07
user 0.44
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.0845       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3801       1.0000         .10000E-03   10000.    
     5 'Prefactor '    57.161       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.8416       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10521E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    52.540       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.450       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1900       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16954E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.7310       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.4208       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.0910       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    50.362       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .27312       1.0000         .10000E-03   10000.    
    29 'norm      '    .38733       1.0000         .10000E-03   10000.    
    30 'Prefactor '    7.9640       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .99705       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .96811       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3418.428     FROM MIGRAD    STATUS=CONVERGED    938 CALLS     4666 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.347       -.13194E-07** at limit **
   2  Prefactor     .10000E-03    2.4412        .30967E-07** at limit **
   3  norm          7.0777        15.060        .16535E-06   -.78633E-05
   4  Prefactor     1.3789        2.8189        .23806E-06    .81900E-05
   5  Prefactor     57.122        56.149       -.14831E-05    .59289E-04
   6  Prefactor     .10000E-03    1.6802       -.29696E-07** at limit **
   7  norm          1.8451        33.163       -.23612E-05   -.13105E-04
   8  Prefactor     .10000E-03    26.715       -.43865E-07** at limit **
   9  Prefactor     52.528        38.054        .41171E-06    .13605E-04
  10  Prefactor     11.446        7.2573        .53387E-06    .10586E-03
  11  Prefactor     .10000E-03    3.1234        .32910E-07** at limit **
  12  Prefactor     3.1886        6.3707        .33641E-06   -.28583E-04
  13  Prefactor     .10000E-03    18.122        .57073E-07** at limit **
  14  Prefactor     .10000E-03    1.6374        .35850E-07** at limit **
  15  Prefactor     .10000E-03    4.2113       -.31478E-08** at limit **
  16  Prefactor     .10000E-03    62.138       -.91116E-06** at limit **
  17  Prefactor     .10000E-03    7.3494        .19948E-06** at limit **
  18  Prefactor     .10000E-03    171.84        .56085E-05** at limit **
  19  Prefactor     .10000E-03    8.3083        .10165E-08** at limit **
  20  norm          1.7310        .53172       -.10543E-07   -.31001E-03
  21  Prefactor     .10000E-03    4.4458        .10562E-06** at limit **
  22  Prefactor     2.4207        56.176        .20835E-05   -.17317E-04
  23  Prefactor     .10000E-03    7.3037       -.14292E-06** at limit **
  24  norm          .10000E-03    10.610        .64511E-07** at limit **
  25  norm          6.0938        11.198        .15592E-06   -.34904E-04
  26  Prefactor     .10000E-03    2.4411        .28595E-07** at limit **
  27  Prefactor     50.373        56.609       -.91106E-06   -.45158E-04
  28  Prefactor     .10861E-03    39.849        .38639E-05** at limit **
  29  norm          .38776        4.6260        .72747E-06   -.18637E-03
  30  Prefactor     8.0750        19.847       -.21530E-05   -.15503E-03
  31  Prefactor     .10000E-03    2.0758        .40819E-07** at limit **
  32  Normalizat    .99753        .23839       -.17397E-05   -.12272E-03
  33  Prefactor     .96794        .26841       -.14462E-07   -.10922E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.07772
  Prefactor  = 1.37892
  Prefactor  = 57.1223
  Prefactor  = 0.0001
  norm       = 1.8451
  Prefactor  = 0.0001
  Prefactor  = 52.5277
  Prefactor  = 11.4459
  Prefactor  = 0.0001
  Prefactor  = 3.18859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.73096
  Prefactor  = 0.0001
  Prefactor  = 2.42072
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.09383
  Prefactor  = 0.0001
  Prefactor  = 50.373
  Prefactor  = 0.000108612
  norm       = 0.387757
  Prefactor  = 8.07499
  Prefactor  = 0.0001
  Normalizat = 0.997535
  Prefactor  = 0.967936
 **********
 **   18 **HESSE 
 **********

 FCN=   3418.428     FROM HESSE     STATUS=OK           701 CALLS     5367 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.727        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.5224        .17836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.0777        15.067        .15071E-03   -1.5176    
   4  Prefactor     1.3789        2.7765        .13522E-03   -1.5473    
   5  Prefactor     57.122        54.614        .53061E-04   -1.4195    
   6  Prefactor     .10000E-03    1.6856        .73959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.8451        33.496        .30736E-03   -1.5436    
   8  Prefactor     .10000E-03    26.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     52.528        38.023        .27666E-03   -1.4257    
  10  Prefactor     11.446        7.2809        .11258E-03   -1.5031    
  11  Prefactor     .10000E-03    3.1389        .10077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1886        6.3476        .20251E-03   -1.5351    
  13  Prefactor     .10000E-03    18.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.6807        .14604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.2130        .11719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    62.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.3670        .15483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    171.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.3360        .16459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.7310        .53109        .21248E-04   -1.5445    
  21  Prefactor     .10000E-03    4.6511        .24060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.4207        55.635        .26306E-03   -1.5397    
  23  Prefactor     .10000E-03    7.3040        .15431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    10.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.0938        11.185        .16268E-03   -1.5214    
  26  Prefactor     .10000E-03    3.6953        .17163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     50.373        56.458        .56510E-04   -1.4287    
  28  Prefactor     .10861E-03    66.225        .85972E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .38776        8.6134        .21099E-02   -1.5583    
  30  Prefactor     8.0750        22.566        .14208E-03   -1.5140    
  31  Prefactor     .10000E-03    2.0777        .82268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .99753        .28318        .23519E-03   -.93113    
  33  Prefactor     .96794        .31654        .28484E-03   -.93806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84714e-10
Minuit parameter uncertainties:
  1  2.80683e-05
  2  6.93828e-06
  3  15.0747
  4  2.77674
  5  54.6615
  6  4.00968e-06
  7  15.7328
  8  1.25566e-05
  9  38.0409
  10  7.28144
  11  3.1709e-06
  12  6.34898
  13  2.4569e-06
  14  3.37806e-06
  15  1.58798e-06
  16  0.000111674
  17  3.51135e-06
  18  0.000111853
  19  8.18559e-06
  20  0.531095
  21  1.44749e-05
  22  23.234
  23  2.807e-07
  24  1.73791e-06
  25  11.1885
  26  1.31053e-05
  27  56.5184
  28  0.0478172
  29  3.65521
  30  22.5897
  31  8.05709e-08
  32  0.283603
  33  0.317149
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  9.679e-01  3.171e-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:  9.975e-01  2.836e-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: 8.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263033/likelihoodResults_423878401_424137601_4FGL_J1051.6+3253_daily_bin712.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) = 3418.42792972
delta logL = -7.60253710723e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3418.4278538
delta logL = -1.14468548418e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1201       1.0000          .0000       10.000    
     3 'Normalizat'    .99754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96793       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=   3418.428     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      232 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.271        .90712E-02** at limit **
   2  Index         2.0761        5.5346        .50000        .49960E-05
   3  Normalizat    .99753        .27682E-02    .46136E-01   -.97027E-04
   4  Prefactor     .96794        .33246E-02    .45865E-01   -.59363E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07611
  Normalizat = 0.997534
  Prefactor  = 0.967937
 **********
 **   18 **HESSE 
 **********

 FCN=   3418.428     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    108.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0761        8.1115        .50000       -.62461    
   3  Normalizat    .99753        .73657E-02    .23519E-03   -.93113    
   4  Prefactor     .96794        .88465E-02    .28484E-03   -.93806    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.24207e-09
Minuit parameter uncertainties:
  1  0.000405195
  2  70.9972
  3  0.00736574
  4  0.00884655
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263033': 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) = 3418.42785372
delta logL = -2.656270226e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  9.679e-01  8.847e-03  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:  9.975e-01  7.366e-03  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/263033/cmap_HighResolution_423878401_424137601_4FGL_J1051.6+3253_daily_bin712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.62e-03', job_status='DONE', photon_flux_upper_limit='8.79e-08', time_completed='2021-09-02 19:14:06.325009', job_id='263033', GAL2='0.97', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630635246.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-2.66e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='712' AND source_name='4FGL J1051.6+3253' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:14:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 263033: <4FGL_J1051.6+3253_daily_bin712> in cluster <slac> Done

Job <4FGL_J1051.6+3253_daily_bin712> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 19:01:05 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:01:48 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:01:48 2021
Terminated at Thu Sep  2 19:14:06 2021
Results reported at Thu Sep  2 19:14:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+3253_daily_bin712 162.911 32.8853 423878401 424137601 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 :                                   717.00 sec.
    Max Memory :                                 1097 MB
    Average Memory :                             285.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            781 sec.

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

