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


Performing analysis on: 4FGL_J1051.6+3253_daily_bin1005
RA = 162.911, Dec = 32.8853
tmin = 499824001, tmax = 500083201
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='264808', job_status='RUN', time_executed='2021-09-02 19:09:18.163505', time_epoch_executed='1630634958.16' WHERE source_name='4FGL J1051.6+3253' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264808

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264808/ft1_4FGL_J1051.6+3253_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264808/ft2_4FGL_J1051.6+3253_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264808/ft1_4FGL_J1051.6+3253_daily_bin1005.fits outfile=/scratch/kocevski/264808/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1005.fits ra=162.911 dec=32.8853 rad=12.0 tmin=499824001.0 tmax=500083201.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.19
user 4.94
sys 0.23

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264808/ft1_filtered_4FGL_J1051.6+3253_daily_bin1005.fits" evtable="EVENTS" scfile=/scratch/kocevski/264808/ft2_4FGL_J1051.6+3253_daily_bin1005.fits sctable="SC_DATA" outfile=/scratch/kocevski/264808/ltcube_499824001_500083201_4FGL_J1051.6+3253_daily_bin1005.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/264808/ft2_4FGL_J1051.6+3253_daily_bin1005.fits
.....................!
real 15.97
user 15.40
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264808/ft1_filtered_4FGL_J1051.6+3253_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/264808/ft2_4FGL_J1051.6+3253_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/264808/ltcube_499824001_500083201_4FGL_J1051.6+3253_daily_bin1005.fits outfile=/scratch/kocevski/264808/expmap_499824001_500083201_4FGL_J1051.6+3253_daily_bin1005.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/264808/ltcube_499824001_500083201_4FGL_J1051.6+3253_daily_bin1005.fits
.....................!
real 194.51
user 188.18
sys 5.62

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/264808/ft1_filtered_4FGL_J1051.6+3253_daily_bin1005.fits scfile=/scratch/kocevski/264808/ft2_4FGL_J1051.6+3253_daily_bin1005.fits outfile=/scratch/kocevski/264808/cmap_499824001_500083201_4FGL_J1051.6+3253_daily_bin1005.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264808/ft1_filtered_4FGL_J1051.6+3253_daily_bin1005.fits scfile=/scratch/kocevski/264808/ft2_4FGL_J1051.6+3253_daily_bin1005.fits outfile=/scratch/kocevski/264808/cmap_HighResolution_499824001_500083201_4FGL_J1051.6+3253_daily_bin1005.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.60
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    29.136       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6625       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1065       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.8260       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.069       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.5808       1.0000         .10000E-03   10000.    
    16 'Prefactor '    48.133       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9532       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .73535       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    9.4257       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .14198E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .13863E-01   1.0000         .10000E-03   10000.    
    29 'norm      '    5.9006       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0772       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .81585       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=   4730.517     FROM MIGRAD    STATUS=CONVERGED    932 CALLS     4737 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5296       -.26220E-07** at limit **
   2  Prefactor     .10001E-03    1.6766       -.16971E-06** at limit **
   3  norm          29.138        17.067        .51769E-06    .19808E-03
   4  Prefactor     .10000E-03    1.0558       -.22230E-07** at limit **
   5  Prefactor     3.6623        17.581        .51835E-05   -.31522E-03
   6  Prefactor     .10000E-03    1.2695       -.20071E-07** at limit **
   7  norm          .10000E-03    3.0590       -.47925E-07** at limit **
   8  Prefactor     .10000E-03    26.779        .12901E-06** at limit **
   9  Prefactor     6.1038        27.709        .18030E-05    .48491E-04
  10  Prefactor     8.8269        5.8513       -.13367E-06   -.67626E-04
  11  Prefactor     .10000E-03    3.3164        .19861E-07** at limit **
  12  Prefactor     .10000E-03    6.0387       -.53441E-07** at limit **
  13  Prefactor     11.069        23.667        .13601E-06    .10922E-04
  14  Prefactor     .10000E-03    1.2598       -.25141E-08** at limit **
  15  Prefactor     9.5595        19.573       -.16326E-05   -.15206E-03
  16  Prefactor     48.135        33.414       -.52060E-06   -.82399E-04
  17  Prefactor     4.9694        17.117        .11370E-05   -.20100E-04
  18  Prefactor     .10000E-03    37.861        .99160E-06** at limit **
  19  Prefactor     .10000E-03    7.9570       -.27708E-07** at limit **
  20  norm          .73529        .28096        .14045E-07    .15881E-03
  21  Prefactor     .10000E-03    2.8782        .28696E-07** at limit **
  22  Prefactor     .10000E-03    13.618       -.14000E-07** at limit **
  23  Prefactor     .10000E-03    6.4005        .35834E-07** at limit **
  24  norm          9.4085        14.920       -.30151E-05   -.38936E-03
  25  norm          .10000E-03    4.5591       -.27262E-07** at limit **
  26  Prefactor     .10000E-03    2.3394       -.15056E-07** at limit **
  27  Prefactor     .10000E-03    114.89        .14933E-05** at limit **
  28  Prefactor     .10017E-03    18.623        .36847E-06** at limit **
  29  norm          5.8940        3.5163        .13778E-06    .13873E-05
  30  Prefactor     .10000E-03    5.0524        .92130E-07** at limit **
  31  Prefactor     .10000E-03    5.0322       -.64048E-07** at limit **
  32  Normalizat    1.0770        .19499        .69986E-06   -.41882E-04
  33  Prefactor     .81597        .21777       -.68454E-06    .22863E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 29.1379
  Prefactor  = 0.0001
  Prefactor  = 3.66233
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.10379
  Prefactor  = 8.8269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0691
  Prefactor  = 0.0001
  Prefactor  = 9.55953
  Prefactor  = 48.135
  Prefactor  = 4.96941
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.735295
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.40846
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100173
  norm       = 5.89397
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.077
  Prefactor  = 0.815972
 **********
 **   18 **HESSE 
 **********

 FCN=   4730.517     FROM HESSE     STATUS=OK           699 CALLS     5436 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5400        .12620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    32.241        .17034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          29.138        17.112        .74224E-04   -1.4628    
   4  Prefactor     .10000E-03    1.0594        .69011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6623        24.984        .10553E-02   -1.5325    
   6  Prefactor     .10000E-03    1.2739        .75673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.0620        .11748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.1038        27.667        .16247E-03   -1.5214    
  10  Prefactor     8.8269        5.8531        .12745E-03   -1.5114    
  11  Prefactor     .10000E-03    3.3334        .12187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.0824        .16496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.069        23.646        .12042E-03   -1.5042    
  14  Prefactor     .10000E-03    1.2844        .75273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.5595        19.440        .12947E-03   -1.5089    
  16  Prefactor     48.135        33.493        .57798E-04   -1.4319    
  17  Prefactor     4.9694        16.801        .18071E-03   -1.5262    
  18  Prefactor     .10000E-03    37.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.9915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .73529        .28160        .21794E-04   -1.5536    
  21  Prefactor     .10000E-03    2.9913        .22753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.4049        .16995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          9.4085        15.865        .13053E-03   -1.5094    
  25  norm          .10000E-03    4.5652        .14342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.1540        .19588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    115.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10017E-03    20.358        .85212E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          5.8940        3.4016        .92402E-04   -1.5222    
  30  Prefactor     .10000E-03    5.0580        .15096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    5.1071        .15051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0770        .22774        .22592E-03   -.90494    
  33  Prefactor     .81597        .25380        .29328E-03   -.99142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02089e-09
Minuit parameter uncertainties:
  1  2.60697e-06
  2  0.00126781
  3  17.1152
  4  1.5419e-06
  5  19.1422
  6  1.85477e-06
  7  4.20694e-06
  8  1.51169e-05
  9  26.0102
  10  5.85351
  11  1.47133e-05
  12  2.57277e-06
  13  23.666
  14  2.53628e-06
  15  19.4529
  16  33.5057
  17  16.8174
  18  0.000185015
  19  1.23693e-06
  20  0.281599
  21  2.3964e-06
  22  8.58331e-05
  23  1.00137e-05
  24  15.8718
  25  2.44331e-06
  26  6.43132e-05
  27  0.000504018
  28  0.003759
  29  3.40176
  30  5.75278e-06
  31  6.25022e-07
  32  0.22795
  33  0.254167
Done.

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

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  4.814e+01  3.351e+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:  8.160e-01  2.542e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  1.077e+00  2.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.30
Ra Dec: 162.911 32.885
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 4.81e-08 +/- 3.35e-08
Energy Flux (Fixed Index): 2.94e-05 +/- 2.04e-05

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) = 4730.09724104
delta logL = 0.419518482237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4730.0964353
delta logL = 0.4203242211

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.206       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5966       1.0000          .0000       10.000    
     3 'Normalizat'    1.0262       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4730.096     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      303 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.182        36.099        .85000E-04    .66326E-03
   2  Index         2.5974        .73786        .31398E-02    .38267E-03
   3  Normalizat    1.0255        .23077        .23063E-03    .10657E-03
   4  Prefactor     .84767        .25608        .28808E-03   -.43319E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.1822
  Index      = 2.59736
  Normalizat = 1.02552
  Prefactor  = 0.847665
 **********
 **   18 **HESSE 
 **********

 FCN=   4730.096     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.182        28.453        .17000E-04   -1.4766    
   2  Index         2.5974        .58156        .12559E-03   -.50126    
   3  Normalizat    1.0255        .22782        .92254E-05   -.92180    
   4  Prefactor     .84767        .25449        .57616E-04   -.97995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33379e-09
Minuit parameter uncertainties:
  1  28.4702
  2  0.583277
  3  0.228038
  4  0.25485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264808': 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) = 4730.09643091
delta logL = 0.420328612964

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  2.218e+01  2.847e+01  1.000e-04  1.000e+04 ( 1.000e-14)
294        Index:  2.597e+00  5.833e-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:  8.477e-01  2.549e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  1.026e+00  2.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.13
Ra Dec: 162.911 32.885
Photon Index (Free Index): 2.60 +/- 0.58
Photon Flux (Free Index): 9.28e-08 +/- 6.75e-08
Energy Flux (Free Index): 2.44e-05 +/- 1.39e-05

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/264808/cmap_HighResolution_499824001_500083201_4FGL_J1051.6+3253_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.81e-08', energy_flux2='2.44e-05', photon_flux_error='3.35e-08', dlogl='4.20e-01', energy_flux='2.94e-05', photon_flux2='9.28e-08', job_status='DONE', time_completed='2021-09-02 19:21:57.963195', photon_index_error2='0.58', photon_index2='2.60', ts='5.30', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='1.08', time_epoch_completed='1630635717.96', return_code='0', job_id='264808', GAL2='0.85', EG2='1.03', return_code2='0', energy_flux_error='2.04e-05', photon_flux_error2='6.75e-08', ts2='6.13', photon_index='2.05' WHERE bin_id='1005' AND source_name='4FGL J1051.6+3253' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:21:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 264808: <4FGL_J1051.6+3253_daily_bin1005> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+3253_daily_bin1005 162.911 32.8853 499824001 500083201 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 :                                   754.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            933 sec.

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

