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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin748
RA = 162.913, Dec = 21.1651
tmin = 433209601, tmax = 433468801
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='254897', job_status='RUN', time_executed='2021-09-02 18:41:08.477429', time_epoch_executed='1630633268.48' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/254897

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/254897/ft1_4FGL_J1051.6+2109_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/254897/ft2_4FGL_J1051.6+2109_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/254897/ft1_4FGL_J1051.6+2109_daily_bin748.fits outfile=/scratch/kocevski/254897/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin748.fits ra=162.913 dec=21.1651 rad=12.0 tmin=433209601.0 tmax=433468801.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 6.23
user 5.79
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/254897/ft2_4FGL_J1051.6+2109_daily_bin748.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/254897/ft2_4FGL_J1051.6+2109_daily_bin748.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/254897/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin748.fits evtable="EVENTS" outfile="/scratch/kocevski/254897/ft1_filtered_4FGL_J1051.6+2109_daily_bin748.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/254897/ft1_filtered_4FGL_J1051.6+2109_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/254897/ft2_4FGL_J1051.6+2109_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/254897/ltcube_433209601_433468801_4FGL_J1051.6+2109_daily_bin748.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/254897/ft2_4FGL_J1051.6+2109_daily_bin748.fits
.....................!
real 17.76
user 17.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/254897/ft1_filtered_4FGL_J1051.6+2109_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/254897/ft2_4FGL_J1051.6+2109_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/254897/ltcube_433209601_433468801_4FGL_J1051.6+2109_daily_bin748.fits outfile=/scratch/kocevski/254897/expmap_433209601_433468801_4FGL_J1051.6+2109_daily_bin748.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/254897/ltcube_433209601_433468801_4FGL_J1051.6+2109_daily_bin748.fits
.....................!
real 194.46
user 188.32
sys 5.06

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J1051.6+2109 @ 162.913 21.1651

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/254897/ft1_filtered_4FGL_J1051.6+2109_daily_bin748.fits scfile=/scratch/kocevski/254897/ft2_4FGL_J1051.6+2109_daily_bin748.fits outfile=/scratch/kocevski/254897/cmap_433209601_433468801_4FGL_J1051.6+2109_daily_bin748.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.913 yref=21.1651 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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/254897/ft1_filtered_4FGL_J1051.6+2109_daily_bin748.fits scfile=/scratch/kocevski/254897/ft2_4FGL_J1051.6+2109_daily_bin748.fits outfile=/scratch/kocevski/254897/cmap_HighResolution_433209601_433468801_4FGL_J1051.6+2109_daily_bin748.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.913 yref=21.1651 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/254897/ft1_filtered_4FGL_J1051.6+2109_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/254897/ft2_4FGL_J1051.6+2109_daily_bin748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/254897/Model_4FGL_J1051.6+2109_daily_bin748.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/254897/ft1_filtered_4FGL_J1051.6+2109_daily_bin748.fits.....................!
real 37.88
user 36.44
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/254897/ft1_filtered_4FGL_J1051.6+2109_daily_bin748.fits', '/scratch/kocevski/254897/ft2_4FGL_J1051.6+2109_daily_bin748.fits', expMap='/scratch/kocevski/254897/expmap_433209601_433468801_4FGL_J1051.6+2109_daily_bin748.fits', expCube='/scratch/kocevski/254897/ltcube_433209601_433468801_4FGL_J1051.6+2109_daily_bin748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/254897/Model_4FGL_J1051.6+2109_daily_bin748.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1051.6+2109'

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.594e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.771e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/254897/ft1_filtered_4FGL_J1051.6+2109_daily_bin748.fits
Spacecraft file(s): /scratch/kocevski/254897/ft2_4FGL_J1051.6+2109_daily_bin748.fits
Exposure map: /scratch/kocevski/254897/expmap_433209601_433468801_4FGL_J1051.6+2109_daily_bin748.fits
Exposure cube: /scratch/kocevski/254897/ltcube_433209601_433468801_4FGL_J1051.6+2109_daily_bin748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/254897/Model_4FGL_J1051.6+2109_daily_bin748.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) = 3416.89006885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3050       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .26899       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.5721       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9743       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8952       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3304       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4389       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2696       1.0000         .10000E-03   10000.    
    15 'norm      '    20.879       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7086       1.0000         .10000E-03   10000.    
    18 'Prefactor '    56.270       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .88376       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83445       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3416.890     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     2013 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6484       -.16687E-07** at limit **
   2  Prefactor     .10000E-03    51.815       -.29856E-07** at limit **
   3  Prefactor     .10000E-03    24.777        .21127E-07** at limit **
   4  Prefactor     1.3047        5.7644       -.68427E-06    .78302E-03
   5  Prefactor     .26919        1.8936       -.11411E-06   -.28294E-03
   6  Prefactor     9.5717        8.7063        .66881E-07   -.64446E-03
   7  Prefactor     1.9731        9.3563       -.36532E-06    .14713E-03
   8  Prefactor     .10000E-03    9.4691       -.26825E-08** at limit **
   9  Prefactor     5.8948        12.114        .48793E-07    .14341E-03
  10  Prefactor     1.3272        23.619       -.89836E-06    .46408E-04
  11  Prefactor     .10000E-03    6.8432        .26800E-07** at limit **
  12  norm          .10000E-03    1.4028       -.44877E-07** at limit **
  13  Prefactor     1.4395        2.8717        .30694E-07   -.56739E-04
  14  Prefactor     4.2697        4.8667        .22481E-07    .28335E-03
  15  norm          20.879        14.788       -.19589E-07    .11938E-04
  16  norm          .10000E-03    4.3580       -.14269E-08** at limit **
  17  Prefactor     4.7088        5.4043       -.11764E-05   -.59844E-03
  18  Prefactor     56.270        55.697       -.71704E-07    .32527E-04
  19  Normalizat    .88383        .19466        .32857E-06    .44711E-04
  20  Prefactor     .83432        .20536        .92626E-07    .28614E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.3047
  Prefactor  = 0.269186
  Prefactor  = 9.57168
  Prefactor  = 1.9731
  Prefactor  = 0.0001
  Prefactor  = 5.89483
  Prefactor  = 1.32723
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.43948
  Prefactor  = 4.26967
  norm       = 20.8788
  norm       = 0.0001
  Prefactor  = 4.70879
  Prefactor  = 56.2699
  Normalizat = 0.883826
  Prefactor  = 0.834318
 **********
 **   18 **HESSE 
 **********

 FCN=   3416.890     FROM HESSE     STATUS=OK           297 CALLS     2310 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6772        .10903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    51.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3047        5.7198        .26588E-03   -1.5480    
   5  Prefactor     .26919        1.8950        .15519E-03   -1.5604    
   6  Prefactor     9.5717        8.6876        .12953E-03   -1.5089    
   7  Prefactor     1.9731        9.1627        .29506E-03   -1.5427    
   8  Prefactor     .10000E-03    9.4705        .17570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.8948        11.889        .16539E-03   -1.5222    
  10  Prefactor     1.3272        23.250        .38074E-03   -1.5478    
  11  Prefactor     .10000E-03    6.8512        .14930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.2301        .13183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4395        2.7434        .12215E-03   -1.5468    
  14  Prefactor     4.2697        4.8803        .13397E-03   -1.5295    
  15  norm          20.879        14.690        .87656E-04   -1.4794    
  16  norm          .10000E-03    4.3648        .11918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.7088        10.139        .92722E-03   -1.5274    
  18  Prefactor     56.270        55.714        .53477E-04   -1.4206    
  19  Normalizat    .88383        .23208        .21060E-03   -.97031    
  20  Prefactor     .83432        .24327        .23508E-03   -.98475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70812e-09
Minuit parameter uncertainties:
  1  9.82128e-06
  2  3.70349e-05
  3  5.67866e-05
  4  5.46423
  5  1.42824
  6  8.68877
  7  8.50577
  8  2.37822e-06
  9  11.8935
  10  11.1146
  11  1.96054e-05
  12  2.53532e-06
  13  2.74361
  14  4.88071
  15  14.6929
  16  2.67475e-08
  17  10.1427
  18  55.7655
  19  0.232339
  20  0.243583
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.973e+00  8.506e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.771e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  8.343e-01  2.436e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  8.838e-01  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/254897/likelihoodResults_433209601_433468801_4FGL_J1051.6+2109_daily_bin748.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) = 3416.74087947
delta logL = 0.148738664704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3416.62629132
delta logL = 0.26332681906

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3416.626     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      254 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52903E-01    1.4456        .40779E-02    .16683E-02
   2  Index         6.5106        7.5823        .21179        .43427E-04
   3  Normalizat    .84046        .36364E-01    .44135E-01   -.55985E-04
   4  Prefactor     .86914        .39809E-01    .44612E-01   -.73790E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0529026
  Index      = 6.51057
  Normalizat = 0.840461
  Prefactor  = 0.869137
 **********
 **   18 **HESSE 
 **********

 FCN=   3416.626     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      289 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52903E-01    5.1183        .18712E-03   -1.5662    
   2  Index         6.5106        7.1585        .87648E-02    .30691    
   3  Normalizat    .84046        .15444        .21534E-03   -.98585    
   4  Prefactor     .86914        .16629        .23088E-03   -.97228    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.07689e-08
Minuit parameter uncertainties:
  1  1.03982
  2  13.5963
  3  0.154516
  4  0.166391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/254897': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3416.62628862
delta logL = 0.263329518067

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  5.290e-02  1.040e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  6.511e+00  1.360e+01  0.000e+00  1.000e+01 (-1.000e+00)
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  8.691e-01  1.664e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  8.405e-01  1.545e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
Ra Dec: 162.913 21.165

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/254897/cmap_HighResolution_433209601_433468801_4FGL_J1051.6+2109_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.81e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-02 18:49:44.506511', job_id='254897', GAL2='0.87', fit_tolerance='1e-08', EG2='0.84', EG='0.88', time_epoch_completed='1630633784.51', return_code2='102', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.63e-01', ts2='0.65', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='748' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:49:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 254897: <4FGL_J1051.6+2109_daily_bin748> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin748> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 18:36:23 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:37: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 18:37:01 2021
Terminated at Thu Sep  2 18:49:45 2021
Results reported at Thu Sep  2 18:49:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin748 162.913 21.1651 433209601 433468801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1051.6+2109 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   510.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             279.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            802 sec.

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

