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


Performing analysis on: 4FGL_J1051.6+3253_daily_bin451
RA = 162.911, Dec = 32.8853
tmin = 356227201, tmax = 356486401
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='261537', job_status='RUN', time_executed='2021-09-02 18:58:59.789134', time_epoch_executed='1630634339.79' WHERE source_name='4FGL J1051.6+3253' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261537

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261537/ft1_4FGL_J1051.6+3253_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/261537/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/261537/ft2_4FGL_J1051.6+3253_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261537/ft1_4FGL_J1051.6+3253_daily_bin451.fits outfile=/scratch/kocevski/261537/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin451.fits ra=162.911 dec=32.8853 rad=12.0 tmin=356227201.0 tmax=356486401.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.09
user 2.87
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261537/ft1_filtered_4FGL_J1051.6+3253_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/261537/ft2_4FGL_J1051.6+3253_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/261537/ltcube_356227201_356486401_4FGL_J1051.6+3253_daily_bin451.fits outfile=/scratch/kocevski/261537/expmap_356227201_356486401_4FGL_J1051.6+3253_daily_bin451.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/261537/ltcube_356227201_356486401_4FGL_J1051.6+3253_daily_bin451.fits
.....................!
real 191.07
user 185.89
sys 4.69

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/261537/ft1_filtered_4FGL_J1051.6+3253_daily_bin451.fits scfile=/scratch/kocevski/261537/ft2_4FGL_J1051.6+3253_daily_bin451.fits outfile=/scratch/kocevski/261537/cmap_356227201_356486401_4FGL_J1051.6+3253_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261537/ft1_filtered_4FGL_J1051.6+3253_daily_bin451.fits scfile=/scratch/kocevski/261537/ft2_4FGL_J1051.6+3253_daily_bin451.fits outfile=/scratch/kocevski/261537/cmap_HighResolution_356227201_356486401_4FGL_J1051.6+3253_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.0116       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    96.450       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    38.509       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .81855       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.288       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.059       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.861       1.0000         .10000E-03   10000.    
    20 'norm      '    2.1090       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    41.260       1.0000         .10000E-03   10000.    
    25 'norm      '    19.680       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.1630       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.2926       1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    32.511       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .29279       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .96880       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=   1114.558     FROM MIGRAD    STATUS=CONVERGED    859 CALLS     4495 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.798       -.81781E-07** at limit **
   2  Prefactor     8.0111        6.7362       -.22519E-06    .63991E-04
   3  norm          .10000E-03    9.2876        .66999E-05** at limit **
   4  Prefactor     .10000E-03    10.294       -.42884E-05** at limit **
   5  Prefactor     96.457        103.03        .53766E-05    .31237E-04
   6  Prefactor     .10000E-03    6.8657       -.79540E-06** at limit **
   7  norm          38.513        33.671       -.63875E-06    .10011E-03
   8  Prefactor     .10000E-03    60.818       -.24914E-05** at limit **
   9  Prefactor     .10000E-03    38.300        .12148E-04** at limit **
  10  Prefactor     .81263        18.313       -.39218E-05   -.25598E-03
  11  Prefactor     .10000E-03    7.7728        .70447E-06** at limit **
  12  Prefactor     .10000E-03    8.8117       -.38989E-05** at limit **
  13  Prefactor     .10000E-03    55.777       -.11177E-04** at limit **
  14  Prefactor     11.287        7.8344       -.52813E-06   -.38207E-04
  15  Prefactor     .10000E-03    13.517        .32444E-05** at limit **
  16  Prefactor     34.014        49.430       -.37517E-04    .39422E-04
  17  Prefactor     .10000E-03    15.044        .59978E-06** at limit **
  18  Prefactor     .10000E-03    95.153        .46883E-04** at limit **
  19  Prefactor     28.867        33.626        .16343E-05   -.42588E-05
  20  norm          2.1092        .85622        .44656E-07    .16471E-02
  21  Prefactor     .10000E-03    4.5187        .42297E-06** at limit **
  22  Prefactor     .10001E-03    142.51       -.43124E-04** at limit **
  23  Prefactor     .10000E-03    40.806        .17442E-05** at limit **
  24  norm          41.256        41.518        .35336E-06    .19055E-03
  25  norm          19.676        22.138       -.40397E-06   -.73803E-05
  26  Prefactor     4.1631        6.3070        .74943E-06    .10784E-03
  27  Prefactor     .10000E-03    48.273       -.14371E-04** at limit **
  28  Prefactor     2.2889        71.910       -.34298E-05   -.30308E-04
  29  norm          .10000E-03    2.2799       -.22443E-06** at limit **
  30  Prefactor     .10000E-03    15.917       -.43515E-05** at limit **
  31  Prefactor     32.509        19.988       -.31727E-06    .71230E-04
  32  Normalizat    .29297        .44011        .11657E-04    .14011E-03
  33  Prefactor     .96876        .46074       -.12133E-05    .12221E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.0111
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 96.4575
  Prefactor  = 0.0001
  norm       = 38.5132
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.812628
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2873
  Prefactor  = 0.0001
  Prefactor  = 34.0145
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.8667
  norm       = 2.10923
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 41.2557
  norm       = 19.6761
  Prefactor  = 4.16314
  Prefactor  = 0.0001
  Prefactor  = 2.28886
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.509
  Normalizat = 0.292971
  Prefactor  = 0.968756
 **********
 **   18 **HESSE 
 **********

 FCN=   1114.558     FROM HESSE     STATUS=OK           679 CALLS     5174 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.837        .14874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.0111        6.7219        .76101E-04   -1.5142    
   3  norm          .10000E-03    9.2849        .99379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.479        .10441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     96.457        102.86        .40928E-04   -1.3741    
   6  Prefactor     .10000E-03    6.9218        .85354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          38.513        33.262        .64588E-04   -1.4466    
   8  Prefactor     .10000E-03    60.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    38.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .81263        17.817        .25110E-03   -1.5528    
  11  Prefactor     .10000E-03    7.8214        .90870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.8146        .96807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    55.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.287        7.7885        .72100E-04   -1.5036    
  15  Prefactor     .10000E-03    13.526        .11990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     34.014        49.371        .68665E-04   -1.4541    
  17  Prefactor     .10000E-03    15.051        .12650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    95.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     28.867        33.397        .74575E-04   -1.4633    
  20  norm          2.1092        .85375        .18554E-04   -1.5417    
  21  Prefactor     .10000E-03    4.5397        .69214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    143.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    40.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          41.256        41.280        .62406E-04   -1.4422    
  25  norm          19.676        22.099        .90286E-04   -1.4821    
  26  Prefactor     4.1631        6.2750        .91964E-04   -1.5300    
  27  Prefactor     .10000E-03    48.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.2889        71.067        .27109E-03   -1.5405    
  29  norm          .10000E-03    2.2863        .49227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    15.919        .13003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     32.509        19.827        .70275E-04   -1.4567    
  32  Normalizat    .29297        .43294        .36368E-03   -1.2326    
  33  Prefactor     .96876        .47108        .24667E-03   -.93778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36427e-09
Minuit parameter uncertainties:
  1  3.19466e-05
  2  6.72254
  3  2.49461e-06
  4  5.45196e-05
  5  103.05
  6  1.91299e-05
  7  33.2783
  8  1.24571e-05
  9  2.15618e-06
  10  7.6122
  11  2.53745e-06
  12  4.01987e-06
  13  7.19997e-05
  14  7.7892
  15  6.59013e-06
  16  49.4306
  17  1.00542e-05
  18  4.69478e-05
  19  33.4189
  20  0.853757
  21  1.10256e-05
  22  0.00181077
  23  2.65239e-05
  24  41.3091
  25  22.108
  26  6.27594
  27  4.82685e-05
  28  25.5406
  29  6.01117e-06
  30  4.71346e-06
  31  19.8306
  32  0.438017
  33  0.4731
Done.

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

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  3.401e+01  4.943e+01  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.688e-01  4.731e-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:  2.930e-01  4.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/261537/likelihoodResults_356227201_356486401_4FGL_J1051.6+3253_daily_bin451.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): 0
logL (Free Index) = 1114.17500269
delta logL = 0.383350112463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1113.98974863
delta logL = 0.56860417092

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    80.782       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1961       1.0000          .0000       10.000    
     3 'Normalizat'    .32920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93186       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=   1113.990     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      211 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     80.827        95.891        .94006E-05   -.54198E-05
   2  Index         1.1961        .66557        .39736E-04   -.69223E-05
   3  Normalizat    .32939        .35497       -.38451E-05   -.11000E-03
   4  Prefactor     .93165        .43019        .92005E-06   -.10275E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 80.8272
  Index      = 1.19607
  Normalizat = 0.329386
  Prefactor  = 0.931654
 **********
 **   18 **HESSE 
 **********

 FCN=   1113.990     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     80.827        95.739        .22343E-03   -1.3907    
   2  Index         1.1961        .66457        .64474E-02   -.86452    
   3  Normalizat    .32939        .37649        .34256E-03   -1.2113    
   4  Prefactor     .93165        .45683        .24987E-03   -.95044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54493e-10
Minuit parameter uncertainties:
  1  95.9227
  2  0.669309
  3  0.379427
  4  0.458731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261537': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1113.9897484
delta logL = 0.568604408752

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  8.083e+01  9.592e+01  1.000e-04  1.000e+04 ( 1.000e-14)
294        Index:  1.196e+00  6.693e-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.317e-01  4.587e-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:  3.294e-01  3.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.04
Ra Dec: 162.911 32.885
Photon Index (Free Index): 1.20 +/- 0.67
Photon Flux (Free Index): 1.77e-08 +/- 2.31e-08
Energy Flux (Free Index): 1.49e-04 +/- 2.79e-04

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/261537/cmap_HighResolution_356227201_356486401_4FGL_J1051.6+3253_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', comment='SUCCESS', energy_flux2='1.49e-04', dlogl='5.69e-01', photon_flux2='1.77e-08', job_status='DONE', time_completed='2021-09-02 19:06:25.184370', photon_index_error2='0.67', photon_index2='1.20', ts='0.90', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.93e-07', energy_flux_error2='2.79e-04', EG='0.29', time_epoch_completed='1630634785.18', return_code='0', job_id='261537', GAL2='0.93', EG2='0.33', return_code2='0', photon_flux_error2='2.31e-08', ts2='2.04', photon_index='2.05' WHERE bin_id='451' AND source_name='4FGL J1051.6+3253' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:06:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 261537: <4FGL_J1051.6+3253_daily_bin451> in cluster <slac> Done

Job <4FGL_J1051.6+3253_daily_bin451> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep  2 18:56:27 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:58:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 18:58:40 2021
Terminated at Thu Sep  2 19:06:25 2021
Results reported at Thu Sep  2 19:06:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+3253_daily_bin451 162.911 32.8853 356227201 356486401 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 :                                   439.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   465 sec.
    Turnaround time :                            598 sec.

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

