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


Performing analysis on: 4FGL_J1051.6+3253_daily_bin989
RA = 162.911, Dec = 32.8853
tmin = 495676801, tmax = 495936001
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='264786', job_status='RUN', time_executed='2021-09-02 19:07:04.330432', time_epoch_executed='1630634824.33' WHERE source_name='4FGL J1051.6+3253' and cadence='daily' and bin_id='989'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264786

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264786/ft1_4FGL_J1051.6+3253_daily_bin989.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264786/ft2_4FGL_J1051.6+3253_daily_bin989.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264786/ft1_4FGL_J1051.6+3253_daily_bin989.fits outfile=/scratch/kocevski/264786/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin989.fits ra=162.911 dec=32.8853 rad=12.0 tmin=495676801.0 tmax=495936001.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.55
user 3.31
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/264786/ft2_4FGL_J1051.6+3253_daily_bin989.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/264786/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin989.fits evtable="EVENTS" outfile="/scratch/kocevski/264786/ft1_filtered_4FGL_J1051.6+3253_daily_bin989.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.37
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264786/ft1_filtered_4FGL_J1051.6+3253_daily_bin989.fits evtable="EVENTS" scfile=/scratch/kocevski/264786/ft2_4FGL_J1051.6+3253_daily_bin989.fits sctable="SC_DATA" expcube=/scratch/kocevski/264786/ltcube_495676801_495936001_4FGL_J1051.6+3253_daily_bin989.fits outfile=/scratch/kocevski/264786/expmap_495676801_495936001_4FGL_J1051.6+3253_daily_bin989.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/264786/ltcube_495676801_495936001_4FGL_J1051.6+3253_daily_bin989.fits
.....................!
real 190.31
user 185.86
sys 3.88

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/264786/ft1_filtered_4FGL_J1051.6+3253_daily_bin989.fits scfile=/scratch/kocevski/264786/ft2_4FGL_J1051.6+3253_daily_bin989.fits outfile=/scratch/kocevski/264786/cmap_495676801_495936001_4FGL_J1051.6+3253_daily_bin989.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.59
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264786/ft1_filtered_4FGL_J1051.6+3253_daily_bin989.fits scfile=/scratch/kocevski/264786/ft2_4FGL_J1051.6+3253_daily_bin989.fits outfile=/scratch/kocevski/264786/cmap_HighResolution_495676801_495936001_4FGL_J1051.6+3253_daily_bin989.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.58
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.8852       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4582       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2333       1.0000         .10000E-03   10000.    
     7 'norm      '    17.860       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.996       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20291E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8302       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.3938       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    74.764       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.400       1.0000         .10000E-03   10000.    
    20 'norm      '    .41421       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .75059       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.9604       1.0000         .10000E-03   10000.    
    25 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    17.682       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .30841       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .93805       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0578       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=   5551.079     FROM MIGRAD    STATUS=CONVERGED    907 CALLS     4023 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.073        .15382E-05** at limit **
   2  Prefactor     .10000E-03    2.0406        .13205E-06** at limit **
   3  norm          5.8852        5.8951       -.21123E-07    .41060E-04
   4  Prefactor     3.4582        5.1332        .10510E-06   -.17238E-03
   5  Prefactor     .10000E-03    77.882        .16891E-05** at limit **
   6  Prefactor     6.2326        6.2105        .19274E-07   -.99995E-04
   7  norm          17.858        12.331        .16071E-06   -.36006E-04
   8  Prefactor     .10000E-03    131.91       -.17946E-05** at limit **
   9  Prefactor     .10000E-03    21.277        .75800E-06** at limit **
  10  Prefactor     .10000E-03    4.5171        .25291E-07** at limit **
  11  Prefactor     .10000E-03    3.0829        .40990E-07** at limit **
  12  Prefactor     .10000E-03    6.3793       -.51207E-07** at limit **
  13  Prefactor     26.990        41.768       -.15829E-05   -.84470E-04
  14  Prefactor     .10004E-03    1.4247       -.45477E-06** at limit **
  15  Prefactor     5.8287        13.475        .45291E-06    .11561E-03
  16  Prefactor     7.3897        28.776       -.77842E-06   -.18659E-04
  17  Prefactor     .10000E-03    8.0578        .95627E-06** at limit **
  18  Prefactor     74.747        108.18       -.67502E-05   -.11596E-03
  19  Prefactor     13.403        12.395       -.18411E-06    .67296E-04
  20  norm          .41425        .20104       -.13397E-08   -.45116E-03
  21  Prefactor     .74891        3.7229        .75891E-06   -.32801E-03
  22  Prefactor     .10000E-03    5.0087       -.11325E-06** at limit **
  23  Prefactor     .10000E-03    19.495        .29330E-05** at limit **
  24  norm          4.9613        10.779        .28847E-05   -.64644E-03
  25  norm          .10000E-03    8.8594       -.20281E-05** at limit **
  26  Prefactor     .10000E-03    .87695       -.15807E-07** at limit **
  27  Prefactor     .10000E-03    22.060       -.32208E-05** at limit **
  28  Prefactor     .10000E-03    11.929        .12147E-05** at limit **
  29  norm          .10000E-03    1.5077       -.30928E-08** at limit **
  30  Prefactor     17.682        14.056       -.15806E-06   -.19573E-04
  31  Prefactor     .31041        2.7987       -.13464E-06   -.42607E-04
  32  Normalizat    .93806        .18692       -.17085E-06    .93452E-04
  33  Prefactor     1.0578        .20347       -.15496E-06    .96051E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.88517
  Prefactor  = 3.45824
  Prefactor  = 0.0001
  Prefactor  = 6.23263
  norm       = 17.8578
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.99
  Prefactor  = 0.00010004
  Prefactor  = 5.82866
  Prefactor  = 7.38974
  Prefactor  = 0.0001
  Prefactor  = 74.7466
  Prefactor  = 13.4027
  norm       = 0.414248
  Prefactor  = 0.748907
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.9613
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.6821
  Prefactor  = 0.310412
  Normalizat = 0.938056
  Prefactor  = 1.05777
 **********
 **   18 **HESSE 
 **********

 FCN=   5551.079     FROM HESSE     STATUS=OK           695 CALLS     4718 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.0621        .20508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.8852        5.8980        .16554E-03   -1.5223    
   4  Prefactor     3.4582        5.0861        .16867E-03   -1.5336    
   5  Prefactor     .10000E-03    78.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.2326        6.1602        .15098E-03   -1.5209    
   7  norm          17.858        12.324        .94772E-04   -1.4863    
   8  Prefactor     .10000E-03    132.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.5975        .15418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.1042        .12763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.5127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.990        41.968        .77103E-04   -1.4668    
  14  Prefactor     .10004E-03    13.318        .16155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.8287        13.222        .16633E-03   -1.5225    
  16  Prefactor     7.3897        28.812        .14750E-03   -1.5164    
  17  Prefactor     .10000E-03    8.0946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     74.747        111.90        .46436E-04   -1.3977    
  19  Prefactor     13.403        12.162        .10942E-03   -1.4976    
  20  norm          .41425        .20147        .22542E-04   -1.5579    
  21  Prefactor     .74891        3.7999        .25831E-03   -1.5535    
  22  Prefactor     .10000E-03    5.0181        .16285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    20.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.9613        12.921        .90287E-03   -1.5262    
  25  norm          .10000E-03    9.0614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    .88564        .68071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    22.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    12.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    1.5653        .17849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     17.682        14.033        .95247E-04   -1.4867    
  31  Prefactor     .31041        12.736        .23699E-02   -1.5597    
  32  Normalizat    .93806        .22272        .24511E-03   -.95135    
  33  Prefactor     1.0578        .24230        .26736E-03   -.90828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27164e-08
Minuit parameter uncertainties:
  1  0.000115465
  2  2.4939e-05
  3  5.89858
  4  5.08673
  5  0.000338083
  6  6.16082
  7  12.3254
  8  0.000599291
  9  0.00010962
  10  2.25994e-05
  11  6.52695e-06
  12  1.58599e-06
  13  42.0135
  14  0.00146177
  15  13.2291
  16  28.8662
  17  6.5964e-05
  18  112.221
  19  12.1641
  20  0.201467
  21  3.37401
  22  7.47122e-06
  23  0.000306982
  24  12.9279
  25  0.000162283
  26  4.81986e-07
  27  0.000401105
  28  0.000110037
  29  1.53206e-07
  30  14.0358
  31  3.97689
  32  0.222937
  33  0.242554
Done.

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

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  7.390e+00  2.887e+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:  1.058e+00  2.426e-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.381e-01  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/264786/likelihoodResults_495676801_495936001_4FGL_J1051.6+3253_daily_bin989.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) = 5551.07193246
delta logL = 0.00674801660625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5551.07096158
delta logL = 0.0077188930245

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3006       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2076       1.0000          .0000       10.000    
     3 'Normalizat'    .93678       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0579       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5551.071     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      279 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3006        30.648        .15992E-03    .35283E-03
   2  Index         2.2079        1.3193        .49434E-02   -.12929E-04
   3  Normalizat    .93650        .20622        .24530E-03   -.79346E-04
   4  Prefactor     1.0583        .23962        .26731E-03   -.16399E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.3006
  Index      = 2.20789
  Normalizat = 0.936498
  Prefactor  = 1.05826
 **********
 **   18 **HESSE 
 **********

 FCN=   5551.071     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3006        27.614        .63966E-05   -1.5206    
   2  Index         2.2079        1.2542        .19774E-03   -.59248    
   3  Normalizat    .93650        .20633        .98119E-05   -.95189    
   4  Prefactor     1.0583        .23969        .53461E-04   -.90812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7609e-09
Minuit parameter uncertainties:
  1  26.401
  2  1.27416
  3  0.206502
  4  0.239935
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264786': 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) = 5551.07096057
delta logL = 0.00771990477369

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  6.301e+00  2.640e+01  1.000e-04  1.000e+04 ( 1.000e-14)
294        Index:  2.208e+00  1.274e+00  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.058e+00  2.399e-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.365e-01  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/264786/cmap_HighResolution_495676801_495936001_4FGL_J1051.6+3253_daily_bin989.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.82e-03', job_status='DONE', photon_flux_upper_limit='7.73e-08', time_completed='2021-09-02 19:21:36.537468', job_id='264786', GAL2='1.06', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630635696.54', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='7.72e-03', ts2='0.09', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='989' AND source_name='4FGL J1051.6+3253' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:21:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 264786: <4FGL_J1051.6+3253_daily_bin989> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+3253_daily_bin989 162.911 32.8853 495676801 495936001 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 :                                   867.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            914 sec.

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

